Interface InformationProtectionPoliciesClient


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

    • get

      InformationProtectionPolicyInner get(String scope, InformationProtectionPolicyName informationProtectionPolicyName)
      Details of the information protection policy.
      Parameters:
      scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
      informationProtectionPolicyName - Name of the information protection policy.
      Returns:
      information protection policy.
      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<InformationProtectionPolicyInner> getWithResponse(String scope, InformationProtectionPolicyName informationProtectionPolicyName, com.azure.core.util.Context context)
      Details of the information protection policy.
      Parameters:
      scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
      informationProtectionPolicyName - Name of the information protection policy.
      context - The context to associate with this operation.
      Returns:
      information protection policy 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.
    • createOrUpdate

      InformationProtectionPolicyInner createOrUpdate(String scope, InformationProtectionPolicyName informationProtectionPolicyName, InformationProtectionPolicyInner informationProtectionPolicy)
      Details of the information protection policy.
      Parameters:
      scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
      informationProtectionPolicyName - Name of the information protection policy.
      informationProtectionPolicy - Information protection policy.
      Returns:
      information protection policy.
      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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<InformationProtectionPolicyInner> createOrUpdateWithResponse(String scope, InformationProtectionPolicyName informationProtectionPolicyName, InformationProtectionPolicyInner informationProtectionPolicy, com.azure.core.util.Context context)
      Details of the information protection policy.
      Parameters:
      scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
      informationProtectionPolicyName - Name of the information protection policy.
      informationProtectionPolicy - Information protection policy.
      context - The context to associate with this operation.
      Returns:
      information protection policy 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.
    • list

      com.azure.core.http.rest.PagedIterable<InformationProtectionPolicyInner> list(String scope)
      Information protection policies of a specific management group.
      Parameters:
      scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
      Returns:
      information protection policies response 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<InformationProtectionPolicyInner> list(String scope, com.azure.core.util.Context context)
      Information protection policies of a specific management group.
      Parameters:
      scope - Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).
      context - The context to associate with this operation.
      Returns:
      information protection policies response 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.