Interface OfficeConsents


public interface OfficeConsents
Resource collection API of OfficeConsents.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(String resourceGroupName, String workspaceName, String consentId)
    Delete the office365 consent.
    com.azure.core.http.rest.Response<Void>
    deleteWithResponse(String resourceGroupName, String workspaceName, String consentId, com.azure.core.util.Context context)
    Delete the office365 consent.
    get(String resourceGroupName, String workspaceName, String consentId)
    Gets an office365 consent.
    com.azure.core.http.rest.Response<OfficeConsent>
    getWithResponse(String resourceGroupName, String workspaceName, String consentId, com.azure.core.util.Context context)
    Gets an office365 consent.
    com.azure.core.http.rest.PagedIterable<OfficeConsent>
    list(String resourceGroupName, String workspaceName)
    Gets all office365 consents.
    com.azure.core.http.rest.PagedIterable<OfficeConsent>
    list(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
    Gets all office365 consents.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<OfficeConsent> list(String resourceGroupName, String workspaceName)
      Gets all office365 consents.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      Returns:
      all office365 consents as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<OfficeConsent> list(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
      Gets all office365 consents.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      context - The context to associate with this operation.
      Returns:
      all office365 consents as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      OfficeConsent get(String resourceGroupName, String workspaceName, String consentId)
      Gets an office365 consent.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      consentId - consent ID.
      Returns:
      an office365 consent.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<OfficeConsent> getWithResponse(String resourceGroupName, String workspaceName, String consentId, com.azure.core.util.Context context)
      Gets an office365 consent.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      consentId - consent ID.
      context - The context to associate with this operation.
      Returns:
      an office365 consent along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String workspaceName, String consentId)
      Delete the office365 consent.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      consentId - consent ID.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String consentId, com.azure.core.util.Context context)
      Delete the office365 consent.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      consentId - consent ID.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.