Interface PolicyDefinitionVersionsClient
- All Superinterfaces:
InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in PolicyDefinitionVersionsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters) Creates or updates a policy definition in a subscription.createOrUpdateAsync(String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters) Creates or updates a policy definition in a subscription.createOrUpdateAtManagementGroup(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters) Creates or updates a policy definition version in a management group.createOrUpdateAtManagementGroupAsync(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters) Creates or updates a policy definition version in a management group.com.azure.core.http.rest.Response<PolicyDefinitionVersionInner> createOrUpdateAtManagementGroupWithResponse(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters, com.azure.core.util.Context context) Creates or updates a policy definition version in a management group.Mono<com.azure.core.http.rest.Response<PolicyDefinitionVersionInner>> createOrUpdateAtManagementGroupWithResponseAsync(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters) Creates or updates a policy definition version in a management group.com.azure.core.http.rest.Response<PolicyDefinitionVersionInner> createOrUpdateWithResponse(String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters, com.azure.core.util.Context context) Creates or updates a policy definition in a subscription.Mono<com.azure.core.http.rest.Response<PolicyDefinitionVersionInner>> createOrUpdateWithResponseAsync(String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters) Creates or updates a policy definition in a subscription.voidDeletes a policy definition version in a subscription.deleteAsync(String policyDefinitionName, String policyDefinitionVersion) Deletes a policy definition version in a subscription.voiddeleteAtManagementGroup(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion) Deletes a policy definition in a management group.deleteAtManagementGroupAsync(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion) Deletes a policy definition in a management group.com.azure.core.http.rest.Response<Void> deleteAtManagementGroupWithResponse(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion, com.azure.core.util.Context context) Deletes a policy definition in a management group.deleteAtManagementGroupWithResponseAsync(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion) Deletes a policy definition in a management group.com.azure.core.http.rest.Response<Void> deleteWithResponse(String policyDefinitionName, String policyDefinitionVersion, com.azure.core.util.Context context) Deletes a policy definition version in a subscription.deleteWithResponseAsync(String policyDefinitionName, String policyDefinitionVersion) Deletes a policy definition version in a subscription.Retrieves a policy definition version in a subscription.Retrieves a policy definition version in a subscription.getAtManagementGroup(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion) Retrieve a policy definition version in a management group.getAtManagementGroupAsync(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion) Retrieve a policy definition version in a management group.com.azure.core.http.rest.Response<PolicyDefinitionVersionInner> getAtManagementGroupWithResponse(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion, com.azure.core.util.Context context) Retrieve a policy definition version in a management group.Mono<com.azure.core.http.rest.Response<PolicyDefinitionVersionInner>> getAtManagementGroupWithResponseAsync(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion) Retrieve a policy definition version in a management group.getBuiltIn(String policyDefinitionName, String policyDefinitionVersion) Retrieves a built-in policy definition version.getBuiltInAsync(String policyDefinitionName, String policyDefinitionVersion) Retrieves a built-in policy definition version.com.azure.core.http.rest.Response<PolicyDefinitionVersionInner> getBuiltInWithResponse(String policyDefinitionName, String policyDefinitionVersion, com.azure.core.util.Context context) Retrieves a built-in policy definition version.Mono<com.azure.core.http.rest.Response<PolicyDefinitionVersionInner>> getBuiltInWithResponseAsync(String policyDefinitionName, String policyDefinitionVersion) Retrieves a built-in policy definition version.com.azure.core.http.rest.Response<PolicyDefinitionVersionInner> getWithResponse(String policyDefinitionName, String policyDefinitionVersion, com.azure.core.util.Context context) Retrieves a policy definition version in a subscription.Mono<com.azure.core.http.rest.Response<PolicyDefinitionVersionInner>> getWithResponseAsync(String policyDefinitionName, String policyDefinitionVersion) Retrieves a policy definition version in a subscription.com.azure.core.http.rest.PagedIterable<PolicyDefinitionVersionInner> Retrieves policy definition versions for a given policy definition in a subscription This operation retrieves a list of all the policy definition versions for the given policy definition.com.azure.core.http.rest.PagedIterable<PolicyDefinitionVersionInner> Retrieves policy definition versions for a given policy definition in a subscription This operation retrieves a list of all the policy definition versions for the given policy definition.listAll()Lists all policy definition versions within a subscription.Lists all policy definition versions within a subscription.listAllAtManagementGroup(String managementGroupName) Lists all policy definition versions at management group scope.listAllAtManagementGroupAsync(String managementGroupName) Lists all policy definition versions at management group scope.com.azure.core.http.rest.Response<PolicyDefinitionVersionListResultInner> listAllAtManagementGroupWithResponse(String managementGroupName, com.azure.core.util.Context context) Lists all policy definition versions at management group scope.Mono<com.azure.core.http.rest.Response<PolicyDefinitionVersionListResultInner>> listAllAtManagementGroupWithResponseAsync(String managementGroupName) Lists all policy definition versions at management group scope.Lists all built-in policy definition versions.Lists all built-in policy definition versions.com.azure.core.http.rest.Response<PolicyDefinitionVersionListResultInner> listAllBuiltinsWithResponse(com.azure.core.util.Context context) Lists all built-in policy definition versions.Mono<com.azure.core.http.rest.Response<PolicyDefinitionVersionListResultInner>> Lists all built-in policy definition versions.com.azure.core.http.rest.Response<PolicyDefinitionVersionListResultInner> listAllWithResponse(com.azure.core.util.Context context) Lists all policy definition versions within a subscription.Mono<com.azure.core.http.rest.Response<PolicyDefinitionVersionListResultInner>> Lists all policy definition versions within a subscription.com.azure.core.http.rest.PagedFlux<PolicyDefinitionVersionInner> Retrieves policy definition versions for a given policy definition in a subscription This operation retrieves a list of all the policy definition versions for the given policy definition.com.azure.core.http.rest.PagedFlux<PolicyDefinitionVersionInner> Retrieves policy definition versions for a given policy definition in a subscription This operation retrieves a list of all the policy definition versions for the given policy definition.com.azure.core.http.rest.PagedIterable<PolicyDefinitionVersionInner> listBuiltIn(String policyDefinitionName) Retrieve built-in policy definition versions This operation retrieves a list of all the built-in policy definition versions for the given policy definition.com.azure.core.http.rest.PagedIterable<PolicyDefinitionVersionInner> listBuiltIn(String policyDefinitionName, Integer top, com.azure.core.util.Context context) Retrieve built-in policy definition versions This operation retrieves a list of all the built-in policy definition versions for the given policy definition.com.azure.core.http.rest.PagedFlux<PolicyDefinitionVersionInner> listBuiltInAsync(String policyDefinitionName) Retrieve built-in policy definition versions This operation retrieves a list of all the built-in policy definition versions for the given policy definition.com.azure.core.http.rest.PagedFlux<PolicyDefinitionVersionInner> listBuiltInAsync(String policyDefinitionName, Integer top) Retrieve built-in policy definition versions This operation retrieves a list of all the built-in policy definition versions for the given policy definition.com.azure.core.http.rest.PagedIterable<PolicyDefinitionVersionInner> listByManagementGroup(String managementGroupName, String policyDefinitionName) Retrieve policy definition versions in a management group policy definition.com.azure.core.http.rest.PagedIterable<PolicyDefinitionVersionInner> listByManagementGroup(String managementGroupName, String policyDefinitionName, Integer top, com.azure.core.util.Context context) Retrieve policy definition versions in a management group policy definition.com.azure.core.http.rest.PagedFlux<PolicyDefinitionVersionInner> listByManagementGroupAsync(String managementGroupName, String policyDefinitionName) Retrieve policy definition versions in a management group policy definition.com.azure.core.http.rest.PagedFlux<PolicyDefinitionVersionInner> listByManagementGroupAsync(String managementGroupName, String policyDefinitionName, Integer top) Retrieve policy definition versions in a management group policy definition.
-
Method Details
-
listAllBuiltinsWithResponseAsync
Mono<com.azure.core.http.rest.Response<PolicyDefinitionVersionListResultInner>> listAllBuiltinsWithResponseAsync()Lists all built-in policy definition versions. This operation lists all the built-in policy definition versions for all built-in policy definitions.- Returns:
- list of policy definition versions along with
Responseon successful completion ofMono. - 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.
-
listAllBuiltinsAsync
Mono<PolicyDefinitionVersionListResultInner> listAllBuiltinsAsync()Lists all built-in policy definition versions. This operation lists all the built-in policy definition versions for all built-in policy definitions.- Returns:
- list of policy definition versions on successful completion of
Mono. - 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.
-
listAllBuiltinsWithResponse
com.azure.core.http.rest.Response<PolicyDefinitionVersionListResultInner> listAllBuiltinsWithResponse(com.azure.core.util.Context context) Lists all built-in policy definition versions. This operation lists all the built-in policy definition versions for all built-in policy definitions.- Parameters:
context- The context to associate with this operation.- Returns:
- list of policy definition versions 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.
-
listAllBuiltins
PolicyDefinitionVersionListResultInner listAllBuiltins()Lists all built-in policy definition versions. This operation lists all the built-in policy definition versions for all built-in policy definitions.- Returns:
- list of policy definition versions.
- 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.
-
listAllAtManagementGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<PolicyDefinitionVersionListResultInner>> listAllAtManagementGroupWithResponseAsync(String managementGroupName) Lists all policy definition versions at management group scope. This operation lists all the policy definition versions for all policy definitions at the management group scope.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.- Returns:
- list of policy definition versions 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.
-
listAllAtManagementGroupAsync
Mono<PolicyDefinitionVersionListResultInner> listAllAtManagementGroupAsync(String managementGroupName) Lists all policy definition versions at management group scope. This operation lists all the policy definition versions for all policy definitions at the management group scope.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.- Returns:
- list of policy definition versions 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.
-
listAllAtManagementGroupWithResponse
com.azure.core.http.rest.Response<PolicyDefinitionVersionListResultInner> listAllAtManagementGroupWithResponse(String managementGroupName, com.azure.core.util.Context context) Lists all policy definition versions at management group scope. This operation lists all the policy definition versions for all policy definitions at the management group scope.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- list of policy definition versions 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.
-
listAllAtManagementGroup
Lists all policy definition versions at management group scope. This operation lists all the policy definition versions for all policy definitions at the management group scope.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.- Returns:
- list of policy definition versions.
- 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.
-
listAllWithResponseAsync
Mono<com.azure.core.http.rest.Response<PolicyDefinitionVersionListResultInner>> listAllWithResponseAsync()Lists all policy definition versions within a subscription. This operation lists all the policy definition versions for all policy definitions within a subscription.- Returns:
- list of policy definition versions along with
Responseon successful completion ofMono. - 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.
-
listAllAsync
Mono<PolicyDefinitionVersionListResultInner> listAllAsync()Lists all policy definition versions within a subscription. This operation lists all the policy definition versions for all policy definitions within a subscription.- Returns:
- list of policy definition versions on successful completion of
Mono. - 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.
-
listAllWithResponse
com.azure.core.http.rest.Response<PolicyDefinitionVersionListResultInner> listAllWithResponse(com.azure.core.util.Context context) Lists all policy definition versions within a subscription. This operation lists all the policy definition versions for all policy definitions within a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- list of policy definition versions 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.
-
listAll
PolicyDefinitionVersionListResultInner listAll()Lists all policy definition versions within a subscription. This operation lists all the policy definition versions for all policy definitions within a subscription.- Returns:
- list of policy definition versions.
- 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.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<PolicyDefinitionVersionInner>> createOrUpdateWithResponseAsync(String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner 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:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.parameters- The policy definition properties.- Returns:
- the ID of the policy definition version 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<PolicyDefinitionVersionInner> createOrUpdateAsync(String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner 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:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.parameters- The policy definition properties.- Returns:
- the ID of the policy definition version 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<PolicyDefinitionVersionInner> createOrUpdateWithResponse(String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters, com.azure.core.util.Context context) 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:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.parameters- The policy definition properties.context- The context to associate with this operation.- Returns:
- the ID of the policy definition version 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
PolicyDefinitionVersionInner createOrUpdate(String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner 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:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.parameters- The policy definition properties.- Returns:
- the ID of the policy definition version.
- 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 policyDefinitionName, String policyDefinitionVersion) Deletes a policy definition version in a subscription. This operation deletes the policy definition version in the given subscription with the given name.- Parameters:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- 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 definition version in a subscription. This operation deletes the policy definition version in the given subscription with the given name.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- 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 policyDefinitionName, String policyDefinitionVersion, com.azure.core.util.Context context) Deletes a policy definition version in a subscription. This operation deletes the policy definition version in the given subscription with the given name.- Parameters:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.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 definition version in a subscription. This operation deletes the policy definition version in the given subscription with the given name.- Parameters:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- 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<PolicyDefinitionVersionInner>> getWithResponseAsync(String policyDefinitionName, String policyDefinitionVersion) Retrieves a policy definition version in a subscription. This operation retrieves the policy definition version in the given subscription with the given name.- Parameters:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- Returns:
- the ID of the policy definition version 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
Mono<PolicyDefinitionVersionInner> getAsync(String policyDefinitionName, String policyDefinitionVersion) Retrieves a policy definition version in a subscription. This operation retrieves the policy definition version in the given subscription with the given name.- Parameters:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- Returns:
- the ID of the policy definition version 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<PolicyDefinitionVersionInner> getWithResponse(String policyDefinitionName, String policyDefinitionVersion, com.azure.core.util.Context context) Retrieves a policy definition version in a subscription. This operation retrieves the policy definition version in the given subscription with the given name.- Parameters:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.context- The context to associate with this operation.- Returns:
- the ID of the policy definition version 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 definition version in a subscription. This operation retrieves the policy definition version in the given subscription with the given name.- Parameters:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- Returns:
- the ID of the policy definition version.
- 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<PolicyDefinitionVersionInner>> getBuiltInWithResponseAsync(String policyDefinitionName, String policyDefinitionVersion) Retrieves a built-in policy definition version. This operation retrieves the built-in policy definition version with the given name.- Parameters:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- Returns:
- the ID of the policy definition version 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
Mono<PolicyDefinitionVersionInner> getBuiltInAsync(String policyDefinitionName, String policyDefinitionVersion) Retrieves a built-in policy definition version. This operation retrieves the built-in policy definition version with the given name.- Parameters:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- Returns:
- the ID of the policy definition version 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<PolicyDefinitionVersionInner> getBuiltInWithResponse(String policyDefinitionName, String policyDefinitionVersion, com.azure.core.util.Context context) Retrieves a built-in policy definition version. This operation retrieves the built-in policy definition version with the given name.- Parameters:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.context- The context to associate with this operation.- Returns:
- the ID of the policy definition version 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
PolicyDefinitionVersionInner getBuiltIn(String policyDefinitionName, String policyDefinitionVersion) Retrieves a built-in policy definition version. This operation retrieves the built-in policy definition version with the given name.- Parameters:
policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- Returns:
- the ID of the policy definition version.
- 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<PolicyDefinitionVersionInner>> createOrUpdateAtManagementGroupWithResponseAsync(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters) Creates or updates a policy definition version in a management group. This operation creates or updates a policy definition version in the given management group with the given name.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.parameters- The policy definition properties.- Returns:
- the ID of the policy definition version 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<PolicyDefinitionVersionInner> createOrUpdateAtManagementGroupAsync(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters) Creates or updates a policy definition version in a management group. This operation creates or updates a policy definition version in the given management group with the given name.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.parameters- The policy definition properties.- Returns:
- the ID of the policy definition version 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<PolicyDefinitionVersionInner> createOrUpdateAtManagementGroupWithResponse(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters, com.azure.core.util.Context context) Creates or updates a policy definition version in a management group. This operation creates or updates a policy definition version in the given management group with the given name.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.parameters- The policy definition properties.context- The context to associate with this operation.- Returns:
- the ID of the policy definition version 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
PolicyDefinitionVersionInner createOrUpdateAtManagementGroup(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion, PolicyDefinitionVersionInner parameters) Creates or updates a policy definition version in a management group. This operation creates or updates a policy definition version in the given management group with the given name.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.parameters- The policy definition properties.- Returns:
- the ID of the policy definition version.
- 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 managementGroupName, String policyDefinitionName, String policyDefinitionVersion) Deletes a policy definition in a management group. This operation deletes the policy definition in the given management group with the given name.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- 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
Mono<Void> deleteAtManagementGroupAsync(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion) Deletes a policy definition in a management group. This operation deletes the policy definition in the given management group with the given name.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- 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 managementGroupName, String policyDefinitionName, String policyDefinitionVersion, com.azure.core.util.Context context) Deletes a policy definition in a management group. This operation deletes the policy definition in the given management group with the given name.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.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
void deleteAtManagementGroup(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion) Deletes a policy definition in a management group. This operation deletes the policy definition in the given management group with the given name.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- 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<PolicyDefinitionVersionInner>> getAtManagementGroupWithResponseAsync(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion) Retrieve a policy definition version in a management group. This operation retrieves the policy definition version in the given management group with the given name.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- Returns:
- the ID of the policy definition version 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<PolicyDefinitionVersionInner> getAtManagementGroupAsync(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion) Retrieve a policy definition version in a management group. This operation retrieves the policy definition version in the given management group with the given name.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- Returns:
- the ID of the policy definition version 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<PolicyDefinitionVersionInner> getAtManagementGroupWithResponse(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion, com.azure.core.util.Context context) Retrieve a policy definition version in a management group. This operation retrieves the policy definition version in the given management group with the given name.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.context- The context to associate with this operation.- Returns:
- the ID of the policy definition version 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
PolicyDefinitionVersionInner getAtManagementGroup(String managementGroupName, String policyDefinitionName, String policyDefinitionVersion) Retrieve a policy definition version in a management group. This operation retrieves the policy definition version in the given management group with the given name.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.policyDefinitionVersion- The policy definition version. The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number.- Returns:
- the ID of the policy definition version.
- 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<PolicyDefinitionVersionInner> listAsync(String policyDefinitionName, Integer top) Retrieves policy definition versions for a given policy definition in a subscription This operation retrieves a list of all the policy definition versions for the given policy definition.- Parameters:
policyDefinitionName- The name of the policy definition.top- Maximum number of records to return. When the $top filter is not provided, it will return 500 records.- Returns:
- list of policy definition versions 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<PolicyDefinitionVersionInner> listAsync(String policyDefinitionName) Retrieves policy definition versions for a given policy definition in a subscription This operation retrieves a list of all the policy definition versions for the given policy definition.- Parameters:
policyDefinitionName- The name of the policy definition.- Returns:
- list of policy definition versions 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.
-
list
com.azure.core.http.rest.PagedIterable<PolicyDefinitionVersionInner> list(String policyDefinitionName) Retrieves policy definition versions for a given policy definition in a subscription This operation retrieves a list of all the policy definition versions for the given policy definition.- Parameters:
policyDefinitionName- The name of the policy definition.- Returns:
- list of policy definition versions 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.
-
list
com.azure.core.http.rest.PagedIterable<PolicyDefinitionVersionInner> list(String policyDefinitionName, Integer top, com.azure.core.util.Context context) Retrieves policy definition versions for a given policy definition in a subscription This operation retrieves a list of all the policy definition versions for the given policy definition.- Parameters:
policyDefinitionName- The name of the policy definition.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 definition versions 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<PolicyDefinitionVersionInner> listBuiltInAsync(String policyDefinitionName, Integer top) Retrieve built-in policy definition versions This operation retrieves a list of all the built-in policy definition versions for the given policy definition.- Parameters:
policyDefinitionName- The name of the policy definition.top- Maximum number of records to return. When the $top filter is not provided, it will return 500 records.- Returns:
- list of policy definition versions 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<PolicyDefinitionVersionInner> listBuiltInAsync(String policyDefinitionName) Retrieve built-in policy definition versions This operation retrieves a list of all the built-in policy definition versions for the given policy definition.- Parameters:
policyDefinitionName- The name of the policy definition.- Returns:
- list of policy definition versions 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.
-
listBuiltIn
com.azure.core.http.rest.PagedIterable<PolicyDefinitionVersionInner> listBuiltIn(String policyDefinitionName) Retrieve built-in policy definition versions This operation retrieves a list of all the built-in policy definition versions for the given policy definition.- Parameters:
policyDefinitionName- The name of the policy definition.- Returns:
- list of policy definition versions 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.
-
listBuiltIn
com.azure.core.http.rest.PagedIterable<PolicyDefinitionVersionInner> listBuiltIn(String policyDefinitionName, Integer top, com.azure.core.util.Context context) Retrieve built-in policy definition versions This operation retrieves a list of all the built-in policy definition versions for the given policy definition.- Parameters:
policyDefinitionName- The name of the policy definition.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 definition versions 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.
-
listByManagementGroupAsync
com.azure.core.http.rest.PagedFlux<PolicyDefinitionVersionInner> listByManagementGroupAsync(String managementGroupName, String policyDefinitionName, Integer top) Retrieve policy definition versions in a management group policy definition. This operation retrieves a list of all the policy definition versions for the given policy definition in the given management group.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.top- Maximum number of records to return. When the $top filter is not provided, it will return 500 records.- Returns:
- list of policy definition versions 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<PolicyDefinitionVersionInner> listByManagementGroupAsync(String managementGroupName, String policyDefinitionName) Retrieve policy definition versions in a management group policy definition. This operation retrieves a list of all the policy definition versions for the given policy definition in the given management group.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.- Returns:
- list of policy definition versions 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<PolicyDefinitionVersionInner> listByManagementGroup(String managementGroupName, String policyDefinitionName) Retrieve policy definition versions in a management group policy definition. This operation retrieves a list of all the policy definition versions for the given policy definition in the given management group.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.- Returns:
- list of policy definition versions 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<PolicyDefinitionVersionInner> listByManagementGroup(String managementGroupName, String policyDefinitionName, Integer top, com.azure.core.util.Context context) Retrieve policy definition versions in a management group policy definition. This operation retrieves a list of all the policy definition versions for the given policy definition in the given management group.- Parameters:
managementGroupName- The name of the management group. The name is case insensitive.policyDefinitionName- The name of the policy definition.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 definition versions 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.
-