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.objectDefaultAccountsOperations
Constructor
DefaultAccountsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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
- str
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
- str
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
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'>
Feedback
Submit and view feedback for