PolicySetDefinitionVersionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:policy_set_definition_versions> attribute.
Constructor
PolicySetDefinitionVersionsOperations(*args, **kwargs)
Methods
| create_or_update |
This operation creates or updates a policy set definition version in the given subscription with the given name and version. |
| create_or_update_at_management_group |
This operation creates or updates a policy set definition version in the given management group with the given name and version. |
| delete |
This operation deletes the policy set definition version in the given subscription with the given name and version. |
| delete_at_management_group |
This operation deletes the policy set definition version in the given management group with the given name and version. |
| get |
This operation retrieves the policy set definition version in the given subscription with the given name and version. |
| get_at_management_group |
This operation retrieves the policy set definition version in the given management group with the given name and version. |
| get_built_in |
This operation retrieves the built-in policy set definition version with the given name and version. |
| list |
This operation retrieves a list of all the policy set definition versions for the given policy set definition. |
| list_all |
Lists all policy set definition versions within a subscription. This operation lists all the policy set definition versions for all policy set definitions within a subscription. |
| list_all_at_management_group |
Lists all policy set definition versions at management group scope. This operation lists all the policy set definition versions for all policy set definitions at the management group scope. |
| list_all_builtins |
Lists all built-in policy set definition versions. This operation lists all the built-in policy set definition versions for all built-in policy set definitions. |
| list_built_in |
This operation retrieves a list of all the built-in policy set definition versions for the given built-in policy set definition. |
| list_by_management_group |
This operation retrieves a list of all the policy set definition versions for the given policy set definition in a given management group. |
create_or_update
This operation creates or updates a policy set definition version in the given subscription with the given name and version.
create_or_update(policy_set_definition_name: str, policy_definition_version: str, parameters: _models.PolicySetDefinitionVersion, *, content_type: str = 'application/json', **kwargs: Any) -> _models.PolicySetDefinitionVersion
Parameters
| Name | Description |
|---|---|
|
policy_set_definition_name
Required
|
The name of the policy set definition. Required. |
|
policy_definition_version
Required
|
The policy set 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. Required. |
|
parameters
Required
|
The policy set definition properties. Is one of the following types: PolicySetDefinitionVersion, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
PolicySetDefinitionVersion. The PolicySetDefinitionVersion is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
create_or_update_at_management_group
This operation creates or updates a policy set definition version in the given management group with the given name and version.
create_or_update_at_management_group(management_group_name: str, policy_set_definition_name: str, policy_definition_version: str, parameters: _models.PolicySetDefinitionVersion, *, content_type: str = 'application/json', **kwargs: Any) -> _models.PolicySetDefinitionVersion
Parameters
| Name | Description |
|---|---|
|
management_group_name
Required
|
The name of the management group. The name is case insensitive. Required. |
|
policy_set_definition_name
Required
|
The name of the policy set definition. Required. |
|
policy_definition_version
Required
|
The policy set 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. Required. |
|
parameters
Required
|
The policy set definition version properties. Is one of the following types: PolicySetDefinitionVersion, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
PolicySetDefinitionVersion. The PolicySetDefinitionVersion is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
delete
This operation deletes the policy set definition version in the given subscription with the given name and version.
delete(policy_set_definition_name: str, policy_definition_version: str, **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
policy_set_definition_name
Required
|
The name of the policy set definition. Required. |
|
policy_definition_version
Required
|
The policy set 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. Required. |
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|
delete_at_management_group
This operation deletes the policy set definition version in the given management group with the given name and version.
delete_at_management_group(management_group_name: str, policy_set_definition_name: str, policy_definition_version: str, **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
management_group_name
Required
|
The name of the management group. The name is case insensitive. Required. |
|
policy_set_definition_name
Required
|
The name of the policy set definition. Required. |
|
policy_definition_version
Required
|
The policy set 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. Required. |
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|
get
This operation retrieves the policy set definition version in the given subscription with the given name and version.
get(policy_set_definition_name: str, policy_definition_version: str, *, expand: str | None = None, **kwargs: Any) -> PolicySetDefinitionVersion
Parameters
| Name | Description |
|---|---|
|
policy_set_definition_name
Required
|
The name of the policy set definition. Required. |
|
policy_definition_version
Required
|
The policy set 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. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
expand
|
Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
PolicySetDefinitionVersion. The PolicySetDefinitionVersion is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
get_at_management_group
This operation retrieves the policy set definition version in the given management group with the given name and version.
get_at_management_group(management_group_name: str, policy_set_definition_name: str, policy_definition_version: str, *, expand: str | None = None, **kwargs: Any) -> PolicySetDefinitionVersion
Parameters
| Name | Description |
|---|---|
|
management_group_name
Required
|
The name of the management group. The name is case insensitive. Required. |
|
policy_set_definition_name
Required
|
The name of the policy set definition. Required. |
|
policy_definition_version
Required
|
The policy set 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. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
expand
|
Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
PolicySetDefinitionVersion. The PolicySetDefinitionVersion is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
get_built_in
This operation retrieves the built-in policy set definition version with the given name and version.
get_built_in(policy_set_definition_name: str, policy_definition_version: str, *, expand: str | None = None, **kwargs: Any) -> PolicySetDefinitionVersion
Parameters
| Name | Description |
|---|---|
|
policy_set_definition_name
Required
|
The name of the policy set definition. Required. |
|
policy_definition_version
Required
|
The policy set 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. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
expand
|
Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
PolicySetDefinitionVersion. The PolicySetDefinitionVersion is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list
This operation retrieves a list of all the policy set definition versions for the given policy set definition.
list(policy_set_definition_name: str, *, expand: str | None = None, top: int | None = None, **kwargs: Any) -> ItemPaged[PolicySetDefinitionVersion]
Parameters
| Name | Description |
|---|---|
|
policy_set_definition_name
Required
|
The name of the policy set definition. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
expand
|
Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'. Default value is None. Default value: None
|
|
top
|
Maximum number of records to return. When the $top filter is not provided, it will return 500 records. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of PolicySetDefinitionVersion |
Exceptions
| Type | Description |
|---|---|
list_all
Lists all policy set definition versions within a subscription.
This operation lists all the policy set definition versions for all policy set definitions within a subscription.
list_all(**kwargs: Any) -> PolicySetDefinitionVersionListResult
Returns
| Type | Description |
|---|---|
|
PolicySetDefinitionVersionListResult. The PolicySetDefinitionVersionListResult is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list_all_at_management_group
Lists all policy set definition versions at management group scope.
This operation lists all the policy set definition versions for all policy set definitions at the management group scope.
list_all_at_management_group(management_group_name: str, **kwargs: Any) -> PolicySetDefinitionVersionListResult
Parameters
| Name | Description |
|---|---|
|
management_group_name
Required
|
The name of the management group. The name is case insensitive. Required. |
Returns
| Type | Description |
|---|---|
|
PolicySetDefinitionVersionListResult. The PolicySetDefinitionVersionListResult is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list_all_builtins
Lists all built-in policy set definition versions.
This operation lists all the built-in policy set definition versions for all built-in policy set definitions.
list_all_builtins(**kwargs: Any) -> PolicySetDefinitionVersionListResult
Returns
| Type | Description |
|---|---|
|
PolicySetDefinitionVersionListResult. The PolicySetDefinitionVersionListResult is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list_built_in
This operation retrieves a list of all the built-in policy set definition versions for the given built-in policy set definition.
list_built_in(policy_set_definition_name: str, *, expand: str | None = None, top: int | None = None, **kwargs: Any) -> ItemPaged[PolicySetDefinitionVersion]
Parameters
| Name | Description |
|---|---|
|
policy_set_definition_name
Required
|
The name of the policy set definition. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
expand
|
Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'. Default value is None. Default value: None
|
|
top
|
Maximum number of records to return. When the $top filter is not provided, it will return 500 records. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of PolicySetDefinitionVersion |
Exceptions
| Type | Description |
|---|---|
list_by_management_group
This operation retrieves a list of all the policy set definition versions for the given policy set definition in a given management group.
list_by_management_group(management_group_name: str, policy_set_definition_name: str, *, expand: str | None = None, top: int | None = None, **kwargs: Any) -> ItemPaged[PolicySetDefinitionVersion]
Parameters
| Name | Description |
|---|---|
|
management_group_name
Required
|
The name of the management group. The name is case insensitive. Required. |
|
policy_set_definition_name
Required
|
The name of the policy set definition. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
expand
|
Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'. Default value is None. Default value: None
|
|
top
|
Maximum number of records to return. When the $top filter is not provided, it will return 500 records. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of PolicySetDefinitionVersion |
Exceptions
| Type | Description |
|---|---|