PolicyDefinitionsClient Interface
public interface PolicyDefinitionsClient
An instance of this class provides access to all the operations defined in PolicyDefinitionsClient.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Policy |
createOrUpdate(String policyDefinitionName, PolicyDefinitionInner parameters)
Creates or updates a policy definition in a subscription. |
abstract
Mono<Policy |
createOrUpdateAsync(String policyDefinitionName, PolicyDefinitionInner parameters)
Creates or updates a policy definition in a subscription. |
abstract
Policy |
createOrUpdateAtManagementGroup(String policyDefinitionName, String managementGroupId, PolicyDefinitionInner parameters)
Creates or updates a policy definition in a management group. |
abstract
Mono<Policy |
createOrUpdateAtManagementGroupAsync(String policyDefinitionName, String managementGroupId, PolicyDefinitionInner parameters)
Creates or updates a policy definition in a management group. |
abstract
Response<Policy |
createOrUpdateAtManagementGroupWithResponse(String policyDefinitionName, String managementGroupId, PolicyDefinitionInner parameters, Context context)
Creates or updates a policy definition in a management group. |
abstract
Mono<Response<Policy |
createOrUpdateAtManagementGroupWithResponseAsync(String policyDefinitionName, String managementGroupId, PolicyDefinitionInner parameters)
Creates or updates a policy definition in a management group. |
abstract
Response<Policy |
createOrUpdateWithResponse(String policyDefinitionName, PolicyDefinitionInner parameters, Context context)
Creates or updates a policy definition in a subscription. |
abstract
Mono<Response<Policy |
createOrUpdateWithResponseAsync(String policyDefinitionName, PolicyDefinitionInner parameters)
Creates or updates a policy definition in a subscription. |
abstract void |
delete(String policyDefinitionName)
Deletes a policy definition in a subscription. |
abstract Mono<Void> |
deleteAsync(String policyDefinitionName)
Deletes a policy definition in a subscription. |
abstract void |
deleteAtManagementGroup(String policyDefinitionName, String managementGroupId)
Deletes a policy definition in a management group. |
abstract Mono<Void> |
deleteAtManagementGroupAsync(String policyDefinitionName, String managementGroupId)
Deletes a policy definition in a management group. |
abstract Response<Void> |
deleteAtManagementGroupWithResponse(String policyDefinitionName, String managementGroupId, Context context)
Deletes a policy definition in a management group. |
abstract Mono<Response<Void>> |
deleteAtManagementGroupWithResponseAsync(String policyDefinitionName, String managementGroupId)
Deletes a policy definition in a management group. |
abstract Response<Void> |
deleteWithResponse(String policyDefinitionName, Context context)
Deletes a policy definition in a subscription. |
abstract Mono<Response<Void>> |
deleteWithResponseAsync(String policyDefinitionName)
Deletes a policy definition in a subscription. |
abstract
Policy |
get(String policyDefinitionName)
Retrieves a policy definition in a subscription. |
abstract
Mono<Policy |
getAsync(String policyDefinitionName)
Retrieves a policy definition in a subscription. |
abstract
Policy |
getAtManagementGroup(String policyDefinitionName, String managementGroupId)
Retrieve a policy definition in a management group. |
abstract
Mono<Policy |
getAtManagementGroupAsync(String policyDefinitionName, String managementGroupId)
Retrieve a policy definition in a management group. |
abstract
Response<Policy |
getAtManagementGroupWithResponse(String policyDefinitionName, String managementGroupId, Context context)
Retrieve a policy definition in a management group. |
abstract
Mono<Response<Policy |
getAtManagementGroupWithResponseAsync(String policyDefinitionName, String managementGroupId)
Retrieve a policy definition in a management group. |
abstract
Policy |
getBuiltIn(String policyDefinitionName)
Retrieves a built-in policy definition. |
abstract
Mono<Policy |
getBuiltInAsync(String policyDefinitionName)
Retrieves a built-in policy definition. |
abstract
Response<Policy |
getBuiltInWithResponse(String policyDefinitionName, Context context)
Retrieves a built-in policy definition. |
abstract
Mono<Response<Policy |
getBuiltInWithResponseAsync(String policyDefinitionName)
Retrieves a built-in policy definition. |
abstract
Response<Policy |
getWithResponse(String policyDefinitionName, Context context)
Retrieves a policy definition in a subscription. |
abstract
Mono<Response<Policy |
getWithResponseAsync(String policyDefinitionName)
Retrieves a policy definition in a subscription. |
abstract
Paged |
list()
Retrieves policy definitions in a subscription This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. |
abstract
Paged |
list(String filter, Integer top, Context context)
Retrieves policy definitions in a subscription This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. |
abstract
Paged |
listAsync()
Retrieves policy definitions in a subscription This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. |
abstract
Paged |
listAsync(String filter, Integer top)
Retrieves policy definitions in a subscription This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. |
abstract
Paged |
listBuiltIn()
Retrieve built-in policy definitions This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. |
abstract
Paged |
listBuiltIn(String filter, Integer top, Context context)
Retrieve built-in policy definitions This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. |
abstract
Paged |
listBuiltInAsync()
Retrieve built-in policy definitions This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. |
abstract
Paged |
listBuiltInAsync(String filter, Integer top)
Retrieve built-in policy definitions This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. |
abstract
Paged |
listByManagementGroup(String managementGroupId)
Retrieve policy definitions in a management group This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. |
abstract
Paged |
listByManagementGroup(String managementGroupId, String filter, Integer top, Context context)
Retrieve policy definitions in a management group This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. |
abstract
Paged |
listByManagementGroupAsync(String managementGroupId)
Retrieve policy definitions in a management group This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. |
abstract
Paged |
listByManagementGroupAsync(String managementGroupId, String filter, Integer top)
Retrieve policy definitions in a management group This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. |
Method Details
createOrUpdate
public abstract PolicyDefinitionInner createOrUpdate(String policyDefinitionName, PolicyDefinitionInner parameters)
Creates or updates a policy definition in a subscription. This operation creates or updates a policy definition in the given subscription with the given name.
Parameters:
Returns:
createOrUpdateAsync
public abstract Mono
Creates or updates a policy definition in a subscription. This operation creates or updates a policy definition in the given subscription with the given name.
Parameters:
Returns:
createOrUpdateAtManagementGroup
public abstract PolicyDefinitionInner createOrUpdateAtManagementGroup(String policyDefinitionName, String managementGroupId, PolicyDefinitionInner parameters)
Creates or updates a policy definition in a management group. This operation creates or updates a policy definition in the given management group with the given name.
Parameters:
Returns:
createOrUpdateAtManagementGroupAsync
public abstract Mono
Creates or updates a policy definition in a management group. This operation creates or updates a policy definition in the given management group with the given name.
Parameters:
Returns:
createOrUpdateAtManagementGroupWithResponse
public abstract Response
Creates or updates a policy definition in a management group. This operation creates or updates a policy definition in the given management group with the given name.
Parameters:
Returns:
createOrUpdateAtManagementGroupWithResponseAsync
public abstract Mono
Creates or updates a policy definition in a management group. This operation creates or updates a policy definition in the given management group with the given name.
Parameters:
Returns:
createOrUpdateWithResponse
public abstract Response
Creates or updates a policy definition in a subscription. This operation creates or updates a policy definition in the given subscription with the given name.
Parameters:
Returns:
createOrUpdateWithResponseAsync
public abstract Mono
Creates or updates a policy definition in a subscription. This operation creates or updates a policy definition in the given subscription with the given name.
Parameters:
Returns:
delete
public abstract void delete(String policyDefinitionName)
Deletes a policy definition in a subscription. This operation deletes the policy definition in the given subscription with the given name.
Parameters:
deleteAsync
public abstract Mono
Deletes a policy definition in a subscription. This operation deletes the policy definition in the given subscription with the given name.
Parameters:
Returns:
deleteAtManagementGroup
public abstract void deleteAtManagementGroup(String policyDefinitionName, String managementGroupId)
Deletes a policy definition in a management group. This operation deletes the policy definition in the given management group with the given name.
Parameters:
deleteAtManagementGroupAsync
public abstract Mono
Deletes a policy definition in a management group. This operation deletes the policy definition in the given management group with the given name.
Parameters:
Returns:
deleteAtManagementGroupWithResponse
public abstract Response
Deletes a policy definition in a management group. This operation deletes the policy definition in the given management group with the given name.
Parameters:
Returns:
deleteAtManagementGroupWithResponseAsync
public abstract Mono
Deletes a policy definition in a management group. This operation deletes the policy definition in the given management group with the given name.
Parameters:
Returns:
deleteWithResponse
public abstract Response
Deletes a policy definition in a subscription. This operation deletes the policy definition in the given subscription with the given name.
Parameters:
Returns:
deleteWithResponseAsync
public abstract Mono
Deletes a policy definition in a subscription. This operation deletes the policy definition in the given subscription with the given name.
Parameters:
Returns:
get
public abstract PolicyDefinitionInner get(String policyDefinitionName)
Retrieves a policy definition in a subscription. This operation retrieves the policy definition in the given subscription with the given name.
Parameters:
Returns:
getAsync
public abstract Mono
Retrieves a policy definition in a subscription. This operation retrieves the policy definition in the given subscription with the given name.
Parameters:
Returns:
getAtManagementGroup
public abstract PolicyDefinitionInner getAtManagementGroup(String policyDefinitionName, String managementGroupId)
Retrieve a policy definition in a management group. This operation retrieves the policy definition in the given management group with the given name.
Parameters:
Returns:
getAtManagementGroupAsync
public abstract Mono
Retrieve a policy definition in a management group. This operation retrieves the policy definition in the given management group with the given name.
Parameters:
Returns:
getAtManagementGroupWithResponse
public abstract Response
Retrieve a policy definition in a management group. This operation retrieves the policy definition in the given management group with the given name.
Parameters:
Returns:
getAtManagementGroupWithResponseAsync
public abstract Mono
Retrieve a policy definition in a management group. This operation retrieves the policy definition in the given management group with the given name.
Parameters:
Returns:
getBuiltIn
public abstract PolicyDefinitionInner getBuiltIn(String policyDefinitionName)
Retrieves a built-in policy definition. This operation retrieves the built-in policy definition with the given name.
Parameters:
Returns:
getBuiltInAsync
public abstract Mono
Retrieves a built-in policy definition. This operation retrieves the built-in policy definition with the given name.
Parameters:
Returns:
getBuiltInWithResponse
public abstract Response
Retrieves a built-in policy definition. This operation retrieves the built-in policy definition with the given name.
Parameters:
Returns:
getBuiltInWithResponseAsync
public abstract Mono
Retrieves a built-in policy definition. This operation retrieves the built-in policy definition with the given name.
Parameters:
Returns:
getWithResponse
public abstract Response
Retrieves a policy definition in a subscription. This operation retrieves the policy definition in the given subscription with the given name.
Parameters:
Returns:
getWithResponseAsync
public abstract Mono
Retrieves a policy definition in a subscription. This operation retrieves the policy definition in the given subscription with the given name.
Parameters:
Returns:
list
public abstract PagedIterable
Retrieves policy definitions in a subscription This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
Returns:
list
public abstract PagedIterable
Retrieves policy definitions in a subscription This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
Parameters:
Returns:
listAsync
public abstract PagedFlux
Retrieves policy definitions in a subscription This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
Returns:
listAsync
public abstract PagedFlux
Retrieves policy definitions in a subscription This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
Parameters:
Returns:
listBuiltIn
public abstract PagedIterable
Retrieve built-in policy definitions This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. If $filter='policyType -eq {value}' is provided, the returned list only includes all built-in policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy definitions whose category match the {value}.
Returns:
listBuiltIn
public abstract PagedIterable
Retrieve built-in policy definitions This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. If $filter='policyType -eq {value}' is provided, the returned list only includes all built-in policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy definitions whose category match the {value}.
Parameters:
Returns:
listBuiltInAsync
public abstract PagedFlux
Retrieve built-in policy definitions This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. If $filter='policyType -eq {value}' is provided, the returned list only includes all built-in policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy definitions whose category match the {value}.
Returns:
listBuiltInAsync
public abstract PagedFlux
Retrieve built-in policy definitions This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. If $filter='policyType -eq {value}' is provided, the returned list only includes all built-in policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy definitions whose category match the {value}.
Parameters:
Returns:
listByManagementGroup
public abstract PagedIterable
Retrieve policy definitions in a management group This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
Parameters:
Returns:
listByManagementGroup
public abstract PagedIterable
Retrieve policy definitions in a management group This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
Parameters:
Returns:
listByManagementGroupAsync
public abstract PagedFlux
Retrieve policy definitions in a management group This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
Parameters:
Returns:
listByManagementGroupAsync
public abstract PagedFlux
Retrieve policy definitions in a management group This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
Parameters:
Returns:
Applies to
Azure SDK for Java