Interface PolicySetDefinitionsClient
public interface PolicySetDefinitionsClient
An instance of this class provides access to all the operations defined in PolicySetDefinitionsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String policySetDefinitionName, PolicySetDefinitionInner parameters) Creates or updates a policy set definition.createOrUpdateAsync(String policySetDefinitionName, PolicySetDefinitionInner parameters) Creates or updates a policy set definition.createOrUpdateAtManagementGroup(String policySetDefinitionName, String managementGroupId, PolicySetDefinitionInner parameters) Creates or updates a policy set definition.createOrUpdateAtManagementGroupAsync(String policySetDefinitionName, String managementGroupId, PolicySetDefinitionInner parameters) Creates or updates a policy set definition.com.azure.core.http.rest.Response<PolicySetDefinitionInner> createOrUpdateAtManagementGroupWithResponse(String policySetDefinitionName, String managementGroupId, PolicySetDefinitionInner parameters, com.azure.core.util.Context context) Creates or updates a policy set definition.Mono<com.azure.core.http.rest.Response<PolicySetDefinitionInner>> createOrUpdateAtManagementGroupWithResponseAsync(String policySetDefinitionName, String managementGroupId, PolicySetDefinitionInner parameters) Creates or updates a policy set definition.com.azure.core.http.rest.Response<PolicySetDefinitionInner> createOrUpdateWithResponse(String policySetDefinitionName, PolicySetDefinitionInner parameters, com.azure.core.util.Context context) Creates or updates a policy set definition.Mono<com.azure.core.http.rest.Response<PolicySetDefinitionInner>> createOrUpdateWithResponseAsync(String policySetDefinitionName, PolicySetDefinitionInner parameters) Creates or updates a policy set definition.voidDeletes a policy set definition.deleteAsync(String policySetDefinitionName) Deletes a policy set definition.voiddeleteAtManagementGroup(String policySetDefinitionName, String managementGroupId) Deletes a policy set definition.deleteAtManagementGroupAsync(String policySetDefinitionName, String managementGroupId) Deletes a policy set definition.com.azure.core.http.rest.Response<Void> deleteAtManagementGroupWithResponse(String policySetDefinitionName, String managementGroupId, com.azure.core.util.Context context) Deletes a policy set definition.deleteAtManagementGroupWithResponseAsync(String policySetDefinitionName, String managementGroupId) Deletes a policy set definition.com.azure.core.http.rest.Response<Void> deleteWithResponse(String policySetDefinitionName, com.azure.core.util.Context context) Deletes a policy set definition.deleteWithResponseAsync(String policySetDefinitionName) Deletes a policy set definition.Retrieves a policy set definition.Retrieves a policy set definition.getAtManagementGroup(String policySetDefinitionName, String managementGroupId) Retrieves a policy set definition.getAtManagementGroupAsync(String policySetDefinitionName, String managementGroupId) Retrieves a policy set definition.com.azure.core.http.rest.Response<PolicySetDefinitionInner> getAtManagementGroupWithResponse(String policySetDefinitionName, String managementGroupId, com.azure.core.util.Context context) Retrieves a policy set definition.Mono<com.azure.core.http.rest.Response<PolicySetDefinitionInner>> getAtManagementGroupWithResponseAsync(String policySetDefinitionName, String managementGroupId) Retrieves a policy set definition.getBuiltIn(String policySetDefinitionName) Retrieves a built in policy set definition.getBuiltInAsync(String policySetDefinitionName) Retrieves a built in policy set definition.com.azure.core.http.rest.Response<PolicySetDefinitionInner> getBuiltInWithResponse(String policySetDefinitionName, com.azure.core.util.Context context) Retrieves a built in policy set definition.Mono<com.azure.core.http.rest.Response<PolicySetDefinitionInner>> getBuiltInWithResponseAsync(String policySetDefinitionName) Retrieves a built in policy set definition.com.azure.core.http.rest.Response<PolicySetDefinitionInner> getWithResponse(String policySetDefinitionName, com.azure.core.util.Context context) Retrieves a policy set definition.Mono<com.azure.core.http.rest.Response<PolicySetDefinitionInner>> getWithResponseAsync(String policySetDefinitionName) Retrieves a policy set definition.com.azure.core.http.rest.PagedIterable<PolicySetDefinitionInner> list()Retrieves the policy set definitions for a subscription.com.azure.core.http.rest.PagedIterable<PolicySetDefinitionInner> Retrieves the policy set definitions for a subscription.com.azure.core.http.rest.PagedFlux<PolicySetDefinitionInner> Retrieves the policy set definitions for a subscription.com.azure.core.http.rest.PagedFlux<PolicySetDefinitionInner> Retrieves the policy set definitions for a subscription.com.azure.core.http.rest.PagedIterable<PolicySetDefinitionInner> Retrieves built-in policy set definitions.com.azure.core.http.rest.PagedIterable<PolicySetDefinitionInner> listBuiltIn(String filter, Integer top, com.azure.core.util.Context context) Retrieves built-in policy set definitions.com.azure.core.http.rest.PagedFlux<PolicySetDefinitionInner> Retrieves built-in policy set definitions.com.azure.core.http.rest.PagedFlux<PolicySetDefinitionInner> listBuiltInAsync(String filter, Integer top) Retrieves built-in policy set definitions.com.azure.core.http.rest.PagedIterable<PolicySetDefinitionInner> listByManagementGroup(String managementGroupId) Retrieves all policy set definitions in management group.com.azure.core.http.rest.PagedIterable<PolicySetDefinitionInner> listByManagementGroup(String managementGroupId, String filter, Integer top, com.azure.core.util.Context context) Retrieves all policy set definitions in management group.com.azure.core.http.rest.PagedFlux<PolicySetDefinitionInner> listByManagementGroupAsync(String managementGroupId) Retrieves all policy set definitions in management group.com.azure.core.http.rest.PagedFlux<PolicySetDefinitionInner> listByManagementGroupAsync(String managementGroupId, String filter, Integer top) Retrieves all policy set definitions in management group.
-
Method Details
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<PolicySetDefinitionInner>> createOrUpdateWithResponseAsync(String policySetDefinitionName, PolicySetDefinitionInner parameters) Creates or updates a policy set definition. This operation creates or updates a policy set definition in the given subscription with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to create.parameters- The policy set definition properties.- Returns:
- the policy set definition along with
Responseon successful completion ofMono. - 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.
-
createOrUpdateAsync
Mono<PolicySetDefinitionInner> createOrUpdateAsync(String policySetDefinitionName, PolicySetDefinitionInner parameters) Creates or updates a policy set definition. This operation creates or updates a policy set definition in the given subscription with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to create.parameters- The policy set definition properties.- Returns:
- the policy set definition on successful completion of
Mono. - 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<PolicySetDefinitionInner> createOrUpdateWithResponse(String policySetDefinitionName, PolicySetDefinitionInner parameters, com.azure.core.util.Context context) Creates or updates a policy set definition. This operation creates or updates a policy set definition in the given subscription with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to create.parameters- The policy set definition properties.context- The context to associate with this operation.- Returns:
- the policy set definition 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.
-
createOrUpdate
PolicySetDefinitionInner createOrUpdate(String policySetDefinitionName, PolicySetDefinitionInner parameters) Creates or updates a policy set definition. This operation creates or updates a policy set definition in the given subscription with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to create.parameters- The policy set definition properties.- Returns:
- the policy set definition.
- 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String policySetDefinitionName) Deletes a policy set definition. This operation deletes the policy set definition in the given subscription with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to delete.- Returns:
- the
Responseon successful completion ofMono. - 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.
-
deleteAsync
Deletes a policy set definition. This operation deletes the policy set definition in the given subscription with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to delete.- Returns:
- A
Monothat completes when a successful response is received. - 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String policySetDefinitionName, com.azure.core.util.Context context) Deletes a policy set definition. This operation deletes the policy set definition in the given subscription with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to delete.context- The context to associate with this operation.- Returns:
- the
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.
-
delete
Deletes a policy set definition. This operation deletes the policy set definition in the given subscription with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to delete.- 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<PolicySetDefinitionInner>> getWithResponseAsync(String policySetDefinitionName) Retrieves a policy set definition. This operation retrieves the policy set definition in the given subscription with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to get.- Returns:
- the policy set definition along with
Responseon successful completion ofMono. - 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.
-
getAsync
Retrieves a policy set definition. This operation retrieves the policy set definition in the given subscription with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to get.- Returns:
- the policy set definition on successful completion of
Mono. - 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<PolicySetDefinitionInner> getWithResponse(String policySetDefinitionName, com.azure.core.util.Context context) Retrieves a policy set definition. This operation retrieves the policy set definition in the given subscription with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to get.context- The context to associate with this operation.- Returns:
- the policy set definition 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.
-
get
Retrieves a policy set definition. This operation retrieves the policy set definition in the given subscription with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to get.- Returns:
- the policy set definition.
- 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.
-
getBuiltInWithResponseAsync
Mono<com.azure.core.http.rest.Response<PolicySetDefinitionInner>> getBuiltInWithResponseAsync(String policySetDefinitionName) Retrieves a built in policy set definition. This operation retrieves the built-in policy set definition with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to get.- Returns:
- the policy set definition along with
Responseon successful completion ofMono. - 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.
-
getBuiltInAsync
Retrieves a built in policy set definition. This operation retrieves the built-in policy set definition with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to get.- Returns:
- the policy set definition on successful completion of
Mono. - 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.
-
getBuiltInWithResponse
com.azure.core.http.rest.Response<PolicySetDefinitionInner> getBuiltInWithResponse(String policySetDefinitionName, com.azure.core.util.Context context) Retrieves a built in policy set definition. This operation retrieves the built-in policy set definition with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to get.context- The context to associate with this operation.- Returns:
- the policy set definition 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.
-
getBuiltIn
Retrieves a built in policy set definition. This operation retrieves the built-in policy set definition with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to get.- Returns:
- the policy set definition.
- 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.
-
listAsync
Retrieves the policy set definitions for a subscription. This operation retrieves a list of all the policy set 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 set 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 set definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.- Parameters:
filter- The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set 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 set definitions whose category match the {value}.top- Maximum number of records to return. When the $top filter is not provided, it will return 500 records.- Returns:
- list of policy set definitions as paginated response with
PagedFlux. - 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<PolicySetDefinitionInner> listAsync()Retrieves the policy set definitions for a subscription. This operation retrieves a list of all the policy set 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 set 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 set definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.- Returns:
- list of policy set definitions as paginated response with
PagedFlux. - 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<PolicySetDefinitionInner> list()Retrieves the policy set definitions for a subscription. This operation retrieves a list of all the policy set 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 set 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 set definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.- Returns:
- list of policy set definitions as paginated response with
PagedIterable. - 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<PolicySetDefinitionInner> list(String filter, Integer top, com.azure.core.util.Context context) Retrieves the policy set definitions for a subscription. This operation retrieves a list of all the policy set 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 set 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 set definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.- Parameters:
filter- The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set 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 set definitions whose category match the {value}.top- Maximum number of records to return. When the $top filter is not provided, it will return 500 records.context- The context to associate with this operation.- Returns:
- list of policy set definitions 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.
-
listBuiltInAsync
com.azure.core.http.rest.PagedFlux<PolicySetDefinitionInner> listBuiltInAsync(String filter, Integer top) Retrieves built-in policy set definitions. This operation retrieves a list of all the built-in policy set definitions that match the optional given $filter. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy set definitions whose category match the {value}.- Parameters:
filter- The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set 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 set definitions whose category match the {value}.top- Maximum number of records to return. When the $top filter is not provided, it will return 500 records.- Returns:
- list of policy set definitions as paginated response with
PagedFlux. - 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.
-
listBuiltInAsync
com.azure.core.http.rest.PagedFlux<PolicySetDefinitionInner> listBuiltInAsync()Retrieves built-in policy set definitions. This operation retrieves a list of all the built-in policy set definitions that match the optional given $filter. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy set definitions whose category match the {value}.- Returns:
- list of policy set definitions as paginated response with
PagedFlux. - 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.
-
listBuiltIn
com.azure.core.http.rest.PagedIterable<PolicySetDefinitionInner> listBuiltIn()Retrieves built-in policy set definitions. This operation retrieves a list of all the built-in policy set definitions that match the optional given $filter. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy set definitions whose category match the {value}.- Returns:
- list of policy set definitions as paginated response with
PagedIterable. - 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.
-
listBuiltIn
com.azure.core.http.rest.PagedIterable<PolicySetDefinitionInner> listBuiltIn(String filter, Integer top, com.azure.core.util.Context context) Retrieves built-in policy set definitions. This operation retrieves a list of all the built-in policy set definitions that match the optional given $filter. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy set definitions whose category match the {value}.- Parameters:
filter- The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set 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 set definitions whose category match the {value}.top- Maximum number of records to return. When the $top filter is not provided, it will return 500 records.context- The context to associate with this operation.- Returns:
- list of policy set definitions 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.
-
createOrUpdateAtManagementGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<PolicySetDefinitionInner>> createOrUpdateAtManagementGroupWithResponseAsync(String policySetDefinitionName, String managementGroupId, PolicySetDefinitionInner parameters) Creates or updates a policy set definition. This operation creates or updates a policy set definition in the given management group with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to create.managementGroupId- The ID of the management group.parameters- The policy set definition properties.- Returns:
- the policy set definition along with
Responseon successful completion ofMono. - 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.
-
createOrUpdateAtManagementGroupAsync
Mono<PolicySetDefinitionInner> createOrUpdateAtManagementGroupAsync(String policySetDefinitionName, String managementGroupId, PolicySetDefinitionInner parameters) Creates or updates a policy set definition. This operation creates or updates a policy set definition in the given management group with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to create.managementGroupId- The ID of the management group.parameters- The policy set definition properties.- Returns:
- the policy set definition on successful completion of
Mono. - 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.
-
createOrUpdateAtManagementGroupWithResponse
com.azure.core.http.rest.Response<PolicySetDefinitionInner> createOrUpdateAtManagementGroupWithResponse(String policySetDefinitionName, String managementGroupId, PolicySetDefinitionInner parameters, com.azure.core.util.Context context) Creates or updates a policy set definition. This operation creates or updates a policy set definition in the given management group with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to create.managementGroupId- The ID of the management group.parameters- The policy set definition properties.context- The context to associate with this operation.- Returns:
- the policy set definition 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.
-
createOrUpdateAtManagementGroup
PolicySetDefinitionInner createOrUpdateAtManagementGroup(String policySetDefinitionName, String managementGroupId, PolicySetDefinitionInner parameters) Creates or updates a policy set definition. This operation creates or updates a policy set definition in the given management group with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to create.managementGroupId- The ID of the management group.parameters- The policy set definition properties.- Returns:
- the policy set definition.
- 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.
-
deleteAtManagementGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteAtManagementGroupWithResponseAsync(String policySetDefinitionName, String managementGroupId) Deletes a policy set definition. This operation deletes the policy set definition in the given management group with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to delete.managementGroupId- The ID of the management group.- Returns:
- the
Responseon successful completion ofMono. - 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.
-
deleteAtManagementGroupAsync
Deletes a policy set definition. This operation deletes the policy set definition in the given management group with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to delete.managementGroupId- The ID of the management group.- Returns:
- A
Monothat completes when a successful response is received. - 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.
-
deleteAtManagementGroupWithResponse
com.azure.core.http.rest.Response<Void> deleteAtManagementGroupWithResponse(String policySetDefinitionName, String managementGroupId, com.azure.core.util.Context context) Deletes a policy set definition. This operation deletes the policy set definition in the given management group with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to delete.managementGroupId- The ID of the management group.context- The context to associate with this operation.- Returns:
- the
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.
-
deleteAtManagementGroup
Deletes a policy set definition. This operation deletes the policy set definition in the given management group with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to delete.managementGroupId- The ID of the management group.- 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.
-
getAtManagementGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<PolicySetDefinitionInner>> getAtManagementGroupWithResponseAsync(String policySetDefinitionName, String managementGroupId) Retrieves a policy set definition. This operation retrieves the policy set definition in the given management group with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to get.managementGroupId- The ID of the management group.- Returns:
- the policy set definition along with
Responseon successful completion ofMono. - 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.
-
getAtManagementGroupAsync
Mono<PolicySetDefinitionInner> getAtManagementGroupAsync(String policySetDefinitionName, String managementGroupId) Retrieves a policy set definition. This operation retrieves the policy set definition in the given management group with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to get.managementGroupId- The ID of the management group.- Returns:
- the policy set definition on successful completion of
Mono. - 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.
-
getAtManagementGroupWithResponse
com.azure.core.http.rest.Response<PolicySetDefinitionInner> getAtManagementGroupWithResponse(String policySetDefinitionName, String managementGroupId, com.azure.core.util.Context context) Retrieves a policy set definition. This operation retrieves the policy set definition in the given management group with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to get.managementGroupId- The ID of the management group.context- The context to associate with this operation.- Returns:
- the policy set definition 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.
-
getAtManagementGroup
PolicySetDefinitionInner getAtManagementGroup(String policySetDefinitionName, String managementGroupId) Retrieves a policy set definition. This operation retrieves the policy set definition in the given management group with the given name.- Parameters:
policySetDefinitionName- The name of the policy set definition to get.managementGroupId- The ID of the management group.- Returns:
- the policy set definition.
- 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.
-
listByManagementGroupAsync
com.azure.core.http.rest.PagedFlux<PolicySetDefinitionInner> listByManagementGroupAsync(String managementGroupId, String filter, Integer top) Retrieves all policy set definitions in management group. This operation retrieves a list of all the policy set 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 set 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 set definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.- Parameters:
managementGroupId- The ID of the management group.filter- The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set 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 set definitions whose category match the {value}.top- Maximum number of records to return. When the $top filter is not provided, it will return 500 records.- Returns:
- list of policy set definitions as paginated response with
PagedFlux. - 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.
-
listByManagementGroupAsync
com.azure.core.http.rest.PagedFlux<PolicySetDefinitionInner> listByManagementGroupAsync(String managementGroupId) Retrieves all policy set definitions in management group. This operation retrieves a list of all the policy set 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 set 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 set definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.- Parameters:
managementGroupId- The ID of the management group.- Returns:
- list of policy set definitions as paginated response with
PagedFlux. - 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.
-
listByManagementGroup
com.azure.core.http.rest.PagedIterable<PolicySetDefinitionInner> listByManagementGroup(String managementGroupId) Retrieves all policy set definitions in management group. This operation retrieves a list of all the policy set 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 set 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 set definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.- Parameters:
managementGroupId- The ID of the management group.- Returns:
- list of policy set definitions 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.
-
listByManagementGroup
com.azure.core.http.rest.PagedIterable<PolicySetDefinitionInner> listByManagementGroup(String managementGroupId, String filter, Integer top, com.azure.core.util.Context context) Retrieves all policy set definitions in management group. This operation retrieves a list of all the policy set 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 set 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 set definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.- Parameters:
managementGroupId- The ID of the management group.filter- The filter to apply on the operation. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, no filtering is performed. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given scope. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set 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 set definitions whose category match the {value}.top- Maximum number of records to return. When the $top filter is not provided, it will return 500 records.context- The context to associate with this operation.- Returns:
- list of policy set definitions 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.
-