SubscriptionPolicyOperations Class

SubscriptionPolicyOperations 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
SubscriptionPolicyOperations

Constructor

SubscriptionPolicyOperations(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

add_update_policy_for_tenant

Create or Update Subscription tenant policy for user's tenant.

get_policy_for_tenant

Get the subscription tenant policy for the user's tenant.

list_policy_for_tenant

Get the subscription tenant policy for the user's tenant.

add_update_policy_for_tenant

Create or Update Subscription tenant policy for user's tenant.

add_update_policy_for_tenant(body: azure.mgmt.subscription.models._models_py3.PutTenantPolicyRequestProperties, **kwargs: Any) -> azure.mgmt.subscription.models._models_py3.GetTenantPolicyResponse

Parameters

cls
callable

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

Returns

GetTenantPolicyResponse, or the result of cls(response)

Return type

Exceptions

get_policy_for_tenant

Get the subscription tenant policy for the user's tenant.

get_policy_for_tenant(**kwargs: Any) -> azure.mgmt.subscription.models._models_py3.GetTenantPolicyResponse

Parameters

cls
callable

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

Returns

GetTenantPolicyResponse, or the result of cls(response)

Return type

Exceptions

list_policy_for_tenant

Get the subscription tenant policy for the user's tenant.

list_policy_for_tenant(**kwargs: Any) -> Iterable[azure.mgmt.subscription.models._models_py3.GetTenantPolicyListResponse]

Parameters

cls
callable

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

Returns

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

Return type

Exceptions

Attributes

models

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