DefaultAccountsOperations Class

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

Constructor

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

get

Gets the default account information set for the scope.

Get the default account for the scope.

remove

Removes the default account from the scope.

Removes the default account from the scope.

set

Sets the default account for the scope.

Sets the default account for the scope.

get

Gets the default account information set for the scope.

Get the default account for the scope.

get(scope_tenant_id: str, scope_type: Union[str, _models.ScopeType], scope: Optional[str] = None, **kwargs: Any) -> _models.DefaultAccountPayload

Parameters

scope_tenant_id
str
Required

The tenant ID.

scope_type
str or ScopeType
Required

The scope for the default account.

scope
str
default value: None

The Id of the scope object, for example if the scope is "Subscription" then it is the ID of that subscription.

cls
callable

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

Returns

DefaultAccountPayload, or the result of cls(response)

Return type

Exceptions

remove

Removes the default account from the scope.

Removes the default account from the scope.

remove(scope_tenant_id: str, scope_type: Union[str, _models.ScopeType], scope: Optional[str] = None, **kwargs: Any) -> None

Parameters

scope_tenant_id
str
Required

The tenant ID.

scope_type
str or ScopeType
Required

The scope for the default account.

scope
str
default value: None

The Id of the scope object, for example if the scope is "Subscription" then it is the ID of that subscription.

cls
callable

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

Returns

None, or the result of cls(response)

Return type

Exceptions

set

Sets the default account for the scope.

Sets the default account for the scope.

set(default_account_payload: _models.DefaultAccountPayload, **kwargs: Any) -> _models.DefaultAccountPayload

Parameters

default_account_payload
DefaultAccountPayload
Required

The payload containing the default account information and the scope.

cls
callable

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

Returns

DefaultAccountPayload, or the result of cls(response)

Return type

Exceptions

Attributes

models

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