InformationProtectionPoliciesOperations Class

InformationProtectionPoliciesOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
InformationProtectionPoliciesOperations

Constructor

InformationProtectionPoliciesOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

create_or_update

Details of the information protection policy.

get

Details of the information protection policy.

list

Information protection policies of a specific management group.

create_or_update

Details of the information protection policy.

async create_or_update(scope: str, information_protection_policy_name: Union[str, azure.mgmt.security.models._security_center_enums.Enum17], information_protection_policy: azure.mgmt.security.models._models_py3.InformationProtectionPolicy, **kwargs) -> azure.mgmt.security.models._models_py3.InformationProtectionPolicy

Parameters

scope
str
Required

Scope of the query, can be subscription (/subscriptions/0b06d9ea- afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).

information_protection_policy_name
str or Enum17
Required

Name of the information protection policy.

information_protection_policy
InformationProtectionPolicy
Required

Information protection policy.

cls
callable

A custom type or function that will be passed the direct response

Returns

InformationProtectionPolicy, or the result of cls(response)

Return type

Exceptions

get

Details of the information protection policy.

async get(scope: str, information_protection_policy_name: Union[str, azure.mgmt.security.models._security_center_enums.Enum17], **kwargs) -> azure.mgmt.security.models._models_py3.InformationProtectionPolicy

Parameters

scope
str
Required

Scope of the query, can be subscription (/subscriptions/0b06d9ea- afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).

information_protection_policy_name
str or Enum17
Required

Name of the information protection policy.

cls
callable

A custom type or function that will be passed the direct response

Returns

InformationProtectionPolicy, or the result of cls(response)

Return type

Exceptions

list

Information protection policies of a specific management group.

list(scope: str, **kwargs) -> AsyncIterable[azure.mgmt.security.models._models_py3.InformationProtectionPolicyList]

Parameters

scope
str
Required

Scope of the query, can be subscription (/subscriptions/0b06d9ea- afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either InformationProtectionPolicyList or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.security.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\security\\models\\__init__.py'>