Interface PolicyMetadatasClient
-
public interface PolicyMetadatasClient
An instance of this class provides access to all the operations defined in PolicyMetadatasClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PolicyMetadataInner
getResource(String resourceName)
Get policy metadata resource.com.azure.core.http.rest.Response<PolicyMetadataInner>
getResourceWithResponse(String resourceName, com.azure.core.util.Context context)
Get policy metadata resource.com.azure.core.http.rest.PagedIterable<SlimPolicyMetadataInner>
list()
Get a list of the policy metadata resources.com.azure.core.http.rest.PagedIterable<SlimPolicyMetadataInner>
list(Integer top, com.azure.core.util.Context context)
Get a list of the policy metadata resources.
-
-
-
Method Detail
-
getResource
PolicyMetadataInner 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<PolicyMetadataInner> 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<SlimPolicyMetadataInner> 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<SlimPolicyMetadataInner> 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.
-
-