Interface PolicyTokensClient


public interface PolicyTokensClient
An instance of this class provides access to all the operations defined in PolicyTokensClient.
  • Method Details

    • acquireWithResponseAsync

      Mono<com.azure.core.http.rest.Response<PolicyTokenResponseInner>> acquireWithResponseAsync(PolicyTokenRequest parameters)
      Acquires a policy token. This operation acquires a policy token in the given subscription for the given request body.
      Parameters:
      parameters - The policy token properties.
      Returns:
      the policy token response properties along with Response on successful completion of Mono.
      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.
    • acquireAsync

      Acquires a policy token. This operation acquires a policy token in the given subscription for the given request body.
      Parameters:
      parameters - The policy token properties.
      Returns:
      the policy token response properties on successful completion of Mono.
      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.
    • acquireWithResponse

      com.azure.core.http.rest.Response<PolicyTokenResponseInner> acquireWithResponse(PolicyTokenRequest parameters, com.azure.core.util.Context context)
      Acquires a policy token. This operation acquires a policy token in the given subscription for the given request body.
      Parameters:
      parameters - The policy token properties.
      context - The context to associate with this operation.
      Returns:
      the policy token response properties 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.
    • acquire

      Acquires a policy token. This operation acquires a policy token in the given subscription for the given request body.
      Parameters:
      parameters - The policy token properties.
      Returns:
      the policy token response properties.
      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.
    • acquireAtManagementGroupWithResponseAsync

      Mono<com.azure.core.http.rest.Response<PolicyTokenResponseInner>> acquireAtManagementGroupWithResponseAsync(String managementGroupName, PolicyTokenRequest parameters)
      Acquires a policy token at management group level. This operation acquires a policy token in the given management group for the given request body.
      Parameters:
      managementGroupName - The name of the management group.
      parameters - The policy token properties.
      Returns:
      the policy token response properties along with Response on successful completion of Mono.
      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.
    • acquireAtManagementGroupAsync

      Mono<PolicyTokenResponseInner> acquireAtManagementGroupAsync(String managementGroupName, PolicyTokenRequest parameters)
      Acquires a policy token at management group level. This operation acquires a policy token in the given management group for the given request body.
      Parameters:
      managementGroupName - The name of the management group.
      parameters - The policy token properties.
      Returns:
      the policy token response properties on successful completion of Mono.
      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.
    • acquireAtManagementGroupWithResponse

      com.azure.core.http.rest.Response<PolicyTokenResponseInner> acquireAtManagementGroupWithResponse(String managementGroupName, PolicyTokenRequest parameters, com.azure.core.util.Context context)
      Acquires a policy token at management group level. This operation acquires a policy token in the given management group for the given request body.
      Parameters:
      managementGroupName - The name of the management group.
      parameters - The policy token properties.
      context - The context to associate with this operation.
      Returns:
      the policy token response properties 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.
    • acquireAtManagementGroup

      PolicyTokenResponseInner acquireAtManagementGroup(String managementGroupName, PolicyTokenRequest parameters)
      Acquires a policy token at management group level. This operation acquires a policy token in the given management group for the given request body.
      Parameters:
      managementGroupName - The name of the management group.
      parameters - The policy token properties.
      Returns:
      the policy token response properties.
      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.