Interface OfficeConsentsClient
public interface OfficeConsentsClient
An instance of this class provides access to all the operations defined in OfficeConsentsClient.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Gets an office365 consent.com.azure.core.http.rest.Response<OfficeConsentInner>
getWithResponse
(String resourceGroupName, String workspaceName, String consentId, com.azure.core.util.Context context) Gets an office365 consent.com.azure.core.http.rest.PagedIterable<OfficeConsentInner>
Gets all office365 consents.com.azure.core.http.rest.PagedIterable<OfficeConsentInner>
Gets all office365 consents.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<OfficeConsentInner> 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<OfficeConsentInner> 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
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<OfficeConsentInner> 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
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.
-