Interface PolicyMetadatas


  • public interface PolicyMetadatas
    Resource collection API of PolicyMetadatas.
    • Method Detail

      • getResource

        PolicyMetadata getResource​(String resourceName)
        Get policy metadata resource.
        Parameters:
        resourceName - The name of the policy metadata resource.
        Returns:
        policy metadata resource.
        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.
      • getResourceWithResponse

        com.azure.core.http.rest.Response<PolicyMetadata> getResourceWithResponse​(String resourceName,
                                                                                  com.azure.core.util.Context context)
        Get policy metadata resource.
        Parameters:
        resourceName - The name of the policy metadata resource.
        context - The context to associate with this operation.
        Returns:
        policy metadata resource.
        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<SlimPolicyMetadata> list()
        Get a list of the policy metadata resources.
        Returns:
        a list of the policy metadata resources.
        Throws:
        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<SlimPolicyMetadata> list​(Integer top,
                                                                        com.azure.core.util.Context context)
        Get a list of the policy metadata resources.
        Parameters:
        top - Maximum number of records to return.
        context - The context to associate with this operation.
        Returns:
        a list of the policy metadata resources.
        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.