Interface InformationProtectionPolicies


public interface InformationProtectionPolicies
Resource collection API of InformationProtectionPolicies.
  • Method Details

    • get

      InformationProtectionPolicy 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<InformationProtectionPolicy> 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.
    • list

      com.azure.core.http.rest.PagedIterable<InformationProtectionPolicy> 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<InformationProtectionPolicy> 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.
    • getById

      Details of the information protection policy.
      Parameters:
      id - the resource ID.
      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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<InformationProtectionPolicy> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Details of the information protection policy.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new InformationProtectionPolicy resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new InformationProtectionPolicy definition.