InstancesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:instances> attribute.
- Inheritance
-
builtins.objectInstancesOperations
Constructor
InstancesOperations(*args, **kwargs)
Methods
begin_create |
Creates or updates instance. |
begin_delete |
Deletes instance. |
get |
Returns instance details for the given instance and account name. |
head |
Checks whether instance exists. |
list_by_account |
Returns instances for the given account name. |
update |
Updates instance's tags. |
begin_create
Creates or updates instance.
async begin_create(resource_group_name: str, account_name: str, instance_name: str, instance: _models.Instance, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.Instance]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
account_name
Required
|
Account name. Required. |
instance_name
Required
|
Instance name. Required. |
instance
Required
|
Instance details. Is either a Instance type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either Instance or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes instance.
async begin_delete(resource_group_name: str, account_name: str, instance_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
account_name
Required
|
Account name. Required. |
instance_name
Required
|
Instance name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of AsyncLROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Returns instance details for the given instance and account name.
async get(resource_group_name: str, account_name: str, instance_name: str, **kwargs: Any) -> Instance
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
account_name
Required
|
Account name. Required. |
instance_name
Required
|
Instance name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
Instance or the result of cls(response) |
Exceptions
Type | Description |
---|---|
head
Checks whether instance exists.
async head(resource_group_name: str, account_name: str, instance_name: str, **kwargs: Any) -> bool
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
account_name
Required
|
Account name. Required. |
instance_name
Required
|
Instance name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
bool or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_account
Returns instances for the given account name.
list_by_account(resource_group_name: str, account_name: str, **kwargs: Any) -> AsyncIterable[Instance]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
account_name
Required
|
Account name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either Instance or the result of cls(response) |
Exceptions
Type | Description |
---|---|
update
Updates instance's tags.
async update(resource_group_name: str, account_name: str, instance_name: str, tag_update_payload: _models.TagUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Instance
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The resource group name. Required. |
account_name
Required
|
Account name. Required. |
instance_name
Required
|
Instance name. Required. |
tag_update_payload
Required
|
Updated tags. Is either a TagUpdate type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
Instance or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.deviceupdate.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\deviceupdate\\models\\__init__.py'>
Azure SDK for Python