public interface PolicyDefinitionsClient
| Modifier and Type | Method and Description |
|---|---|
PolicyDefinitionInner |
createOrUpdate(String policyDefinitionName,
PolicyDefinitionInner parameters)
This operation creates or updates a policy definition in the given subscription with the given name.
|
Mono<PolicyDefinitionInner> |
createOrUpdateAsync(String policyDefinitionName,
PolicyDefinitionInner parameters)
This operation creates or updates a policy definition in the given subscription with the given name.
|
PolicyDefinitionInner |
createOrUpdateAtManagementGroup(String policyDefinitionName,
String managementGroupId,
PolicyDefinitionInner parameters)
This operation creates or updates a policy definition in the given management group with the given name.
|
Mono<PolicyDefinitionInner> |
createOrUpdateAtManagementGroupAsync(String policyDefinitionName,
String managementGroupId,
PolicyDefinitionInner parameters)
This operation creates or updates a policy definition in the given management group with the given name.
|
com.azure.core.http.rest.Response<PolicyDefinitionInner> |
createOrUpdateAtManagementGroupWithResponse(String policyDefinitionName,
String managementGroupId,
PolicyDefinitionInner parameters,
com.azure.core.util.Context context)
This operation creates or updates a policy definition in the given management group with the given name.
|
Mono<com.azure.core.http.rest.Response<PolicyDefinitionInner>> |
createOrUpdateAtManagementGroupWithResponseAsync(String policyDefinitionName,
String managementGroupId,
PolicyDefinitionInner parameters)
This operation creates or updates a policy definition in the given management group with the given name.
|
com.azure.core.http.rest.Response<PolicyDefinitionInner> |
createOrUpdateWithResponse(String policyDefinitionName,
PolicyDefinitionInner parameters,
com.azure.core.util.Context context)
This operation creates or updates a policy definition in the given subscription with the given name.
|
Mono<com.azure.core.http.rest.Response<PolicyDefinitionInner>> |
createOrUpdateWithResponseAsync(String policyDefinitionName,
PolicyDefinitionInner parameters)
This operation creates or updates a policy definition in the given subscription with the given name.
|
void |
delete(String policyDefinitionName)
This operation deletes the policy definition in the given subscription with the given name.
|
Mono<Void> |
deleteAsync(String policyDefinitionName)
This operation deletes the policy definition in the given subscription with the given name.
|
void |
deleteAtManagementGroup(String policyDefinitionName,
String managementGroupId)
This operation deletes the policy definition in the given management group with the given name.
|
Mono<Void> |
deleteAtManagementGroupAsync(String policyDefinitionName,
String managementGroupId)
This operation deletes the policy definition in the given management group with the given name.
|
com.azure.core.http.rest.Response<Void> |
deleteAtManagementGroupWithResponse(String policyDefinitionName,
String managementGroupId,
com.azure.core.util.Context context)
This operation deletes the policy definition in the given management group with the given name.
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteAtManagementGroupWithResponseAsync(String policyDefinitionName,
String managementGroupId)
This operation deletes the policy definition in the given management group with the given name.
|
com.azure.core.http.rest.Response<Void> |
deleteWithResponse(String policyDefinitionName,
com.azure.core.util.Context context)
This operation deletes the policy definition in the given subscription with the given name.
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteWithResponseAsync(String policyDefinitionName)
This operation deletes the policy definition in the given subscription with the given name.
|
PolicyDefinitionInner |
get(String policyDefinitionName)
This operation retrieves the policy definition in the given subscription with the given name.
|
Mono<PolicyDefinitionInner> |
getAsync(String policyDefinitionName)
This operation retrieves the policy definition in the given subscription with the given name.
|
PolicyDefinitionInner |
getAtManagementGroup(String policyDefinitionName,
String managementGroupId)
This operation retrieves the policy definition in the given management group with the given name.
|
Mono<PolicyDefinitionInner> |
getAtManagementGroupAsync(String policyDefinitionName,
String managementGroupId)
This operation retrieves the policy definition in the given management group with the given name.
|
com.azure.core.http.rest.Response<PolicyDefinitionInner> |
getAtManagementGroupWithResponse(String policyDefinitionName,
String managementGroupId,
com.azure.core.util.Context context)
This operation retrieves the policy definition in the given management group with the given name.
|
Mono<com.azure.core.http.rest.Response<PolicyDefinitionInner>> |
getAtManagementGroupWithResponseAsync(String policyDefinitionName,
String managementGroupId)
This operation retrieves the policy definition in the given management group with the given name.
|
PolicyDefinitionInner |
getBuiltIn(String policyDefinitionName)
This operation retrieves the built-in policy definition with the given name.
|
Mono<PolicyDefinitionInner> |
getBuiltInAsync(String policyDefinitionName)
This operation retrieves the built-in policy definition with the given name.
|
com.azure.core.http.rest.Response<PolicyDefinitionInner> |
getBuiltInWithResponse(String policyDefinitionName,
com.azure.core.util.Context context)
This operation retrieves the built-in policy definition with the given name.
|
Mono<com.azure.core.http.rest.Response<PolicyDefinitionInner>> |
getBuiltInWithResponseAsync(String policyDefinitionName)
This operation retrieves the built-in policy definition with the given name.
|
com.azure.core.http.rest.Response<PolicyDefinitionInner> |
getWithResponse(String policyDefinitionName,
com.azure.core.util.Context context)
This operation retrieves the policy definition in the given subscription with the given name.
|
Mono<com.azure.core.http.rest.Response<PolicyDefinitionInner>> |
getWithResponseAsync(String policyDefinitionName)
This operation retrieves the policy definition in the given subscription with the given name.
|
com.azure.core.http.rest.PagedIterable<PolicyDefinitionInner> |
list()
This operation retrieves a list of all the policy definitions in a given subscription.
|
com.azure.core.http.rest.PagedIterable<PolicyDefinitionInner> |
list(com.azure.core.util.Context context)
This operation retrieves a list of all the policy definitions in a given subscription.
|
com.azure.core.http.rest.PagedFlux<PolicyDefinitionInner> |
listAsync()
This operation retrieves a list of all the policy definitions in a given subscription.
|
com.azure.core.http.rest.PagedIterable<PolicyDefinitionInner> |
listBuiltIn()
This operation retrieves a list of all the built-in policy definitions.
|
com.azure.core.http.rest.PagedIterable<PolicyDefinitionInner> |
listBuiltIn(com.azure.core.util.Context context)
This operation retrieves a list of all the built-in policy definitions.
|
com.azure.core.http.rest.PagedFlux<PolicyDefinitionInner> |
listBuiltInAsync()
This operation retrieves a list of all the built-in policy definitions.
|
com.azure.core.http.rest.PagedIterable<PolicyDefinitionInner> |
listByManagementGroup(String managementGroupId)
This operation retrieves a list of all the policy definitions in a given management group.
|
com.azure.core.http.rest.PagedIterable<PolicyDefinitionInner> |
listByManagementGroup(String managementGroupId,
com.azure.core.util.Context context)
This operation retrieves a list of all the policy definitions in a given management group.
|
com.azure.core.http.rest.PagedFlux<PolicyDefinitionInner> |
listByManagementGroupAsync(String managementGroupId)
This operation retrieves a list of all the policy definitions in a given management group.
|
Mono<com.azure.core.http.rest.Response<PolicyDefinitionInner>> createOrUpdateWithResponseAsync(String policyDefinitionName, PolicyDefinitionInner parameters)
policyDefinitionName - The name of the policy definition to create.parameters - The policy definition.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.Mono<PolicyDefinitionInner> createOrUpdateAsync(String policyDefinitionName, PolicyDefinitionInner parameters)
policyDefinitionName - The name of the policy definition to create.parameters - The policy definition.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.PolicyDefinitionInner createOrUpdate(String policyDefinitionName, PolicyDefinitionInner parameters)
policyDefinitionName - The name of the policy definition to create.parameters - The policy definition.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.com.azure.core.http.rest.Response<PolicyDefinitionInner> createOrUpdateWithResponse(String policyDefinitionName, PolicyDefinitionInner parameters, com.azure.core.util.Context context)
policyDefinitionName - The name of the policy definition to create.parameters - The policy definition.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String policyDefinitionName)
policyDefinitionName - The name of the policy definition to delete.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.Mono<Void> deleteAsync(String policyDefinitionName)
policyDefinitionName - The name of the policy definition to delete.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.void delete(String policyDefinitionName)
policyDefinitionName - The name of the policy definition to delete.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.com.azure.core.http.rest.Response<Void> deleteWithResponse(String policyDefinitionName, com.azure.core.util.Context context)
policyDefinitionName - The name of the policy definition to delete.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<PolicyDefinitionInner>> getWithResponseAsync(String policyDefinitionName)
policyDefinitionName - The name of the policy definition to get.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.Mono<PolicyDefinitionInner> getAsync(String policyDefinitionName)
policyDefinitionName - The name of the policy definition to get.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.PolicyDefinitionInner get(String policyDefinitionName)
policyDefinitionName - The name of the policy definition to get.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.com.azure.core.http.rest.Response<PolicyDefinitionInner> getWithResponse(String policyDefinitionName, com.azure.core.util.Context context)
policyDefinitionName - The name of the policy definition to get.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<PolicyDefinitionInner>> getBuiltInWithResponseAsync(String policyDefinitionName)
policyDefinitionName - The name of the built-in policy definition to get.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.Mono<PolicyDefinitionInner> getBuiltInAsync(String policyDefinitionName)
policyDefinitionName - The name of the built-in policy definition to get.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.PolicyDefinitionInner getBuiltIn(String policyDefinitionName)
policyDefinitionName - The name of the built-in policy definition to get.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.com.azure.core.http.rest.Response<PolicyDefinitionInner> getBuiltInWithResponse(String policyDefinitionName, com.azure.core.util.Context context)
policyDefinitionName - The name of the built-in policy definition to get.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<PolicyDefinitionInner>> createOrUpdateAtManagementGroupWithResponseAsync(String policyDefinitionName, String managementGroupId, PolicyDefinitionInner parameters)
policyDefinitionName - The name of the policy definition to create.managementGroupId - The ID of the management group.parameters - The policy definition.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.Mono<PolicyDefinitionInner> createOrUpdateAtManagementGroupAsync(String policyDefinitionName, String managementGroupId, PolicyDefinitionInner parameters)
policyDefinitionName - The name of the policy definition to create.managementGroupId - The ID of the management group.parameters - The policy definition.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.PolicyDefinitionInner createOrUpdateAtManagementGroup(String policyDefinitionName, String managementGroupId, PolicyDefinitionInner parameters)
policyDefinitionName - The name of the policy definition to create.managementGroupId - The ID of the management group.parameters - The policy definition.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.com.azure.core.http.rest.Response<PolicyDefinitionInner> createOrUpdateAtManagementGroupWithResponse(String policyDefinitionName, String managementGroupId, PolicyDefinitionInner parameters, com.azure.core.util.Context context)
policyDefinitionName - The name of the policy definition to create.managementGroupId - The ID of the management group.parameters - The policy definition.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Void>> deleteAtManagementGroupWithResponseAsync(String policyDefinitionName, String managementGroupId)
policyDefinitionName - The name of the policy definition to delete.managementGroupId - The ID of the management group.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.Mono<Void> deleteAtManagementGroupAsync(String policyDefinitionName, String managementGroupId)
policyDefinitionName - The name of the policy definition to delete.managementGroupId - The ID of the management group.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.void deleteAtManagementGroup(String policyDefinitionName, String managementGroupId)
policyDefinitionName - The name of the policy definition to delete.managementGroupId - The ID of the management group.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.com.azure.core.http.rest.Response<Void> deleteAtManagementGroupWithResponse(String policyDefinitionName, String managementGroupId, com.azure.core.util.Context context)
policyDefinitionName - The name of the policy definition to delete.managementGroupId - The ID of the management group.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<PolicyDefinitionInner>> getAtManagementGroupWithResponseAsync(String policyDefinitionName, String managementGroupId)
policyDefinitionName - The name of the policy definition to get.managementGroupId - The ID of the management group.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.Mono<PolicyDefinitionInner> getAtManagementGroupAsync(String policyDefinitionName, String managementGroupId)
policyDefinitionName - The name of the policy definition to get.managementGroupId - The ID of the management group.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.PolicyDefinitionInner getAtManagementGroup(String policyDefinitionName, String managementGroupId)
policyDefinitionName - The name of the policy definition to get.managementGroupId - The ID of the management group.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.com.azure.core.http.rest.Response<PolicyDefinitionInner> getAtManagementGroupWithResponse(String policyDefinitionName, String managementGroupId, com.azure.core.util.Context context)
policyDefinitionName - The name of the policy definition to get.managementGroupId - The ID of the management group.context - The context to associate with this operation.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.com.azure.core.http.rest.PagedFlux<PolicyDefinitionInner> listAsync()
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.com.azure.core.http.rest.PagedIterable<PolicyDefinitionInner> list()
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.com.azure.core.http.rest.PagedIterable<PolicyDefinitionInner> list(com.azure.core.util.Context context)
context - The context to associate with this operation.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.com.azure.core.http.rest.PagedFlux<PolicyDefinitionInner> listBuiltInAsync()
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.com.azure.core.http.rest.PagedIterable<PolicyDefinitionInner> listBuiltIn()
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.com.azure.core.http.rest.PagedIterable<PolicyDefinitionInner> listBuiltIn(com.azure.core.util.Context context)
context - The context to associate with this operation.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.com.azure.core.http.rest.PagedFlux<PolicyDefinitionInner> listByManagementGroupAsync(String managementGroupId)
managementGroupId - The ID of the management group.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.com.azure.core.http.rest.PagedIterable<PolicyDefinitionInner> listByManagementGroup(String managementGroupId)
managementGroupId - The ID of the management group.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.com.azure.core.http.rest.PagedIterable<PolicyDefinitionInner> listByManagementGroup(String managementGroupId, com.azure.core.util.Context context)
managementGroupId - The ID of the management group.context - The context to associate with this operation.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.Copyright © 2021 Microsoft Corporation. All rights reserved.