azure.mgmt.compute.v2020_05_01.operations module¶
- class azure.mgmt.compute.v2020_05_01.operations.DiskAccessesOperations(*args, **kwargs)[source]¶
Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
ComputeManagementClient
’sdisk_accesses
attribute.- begin_create_or_update(resource_group_name: str, disk_access_name: str, disk_access: _models.DiskAccess, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.DiskAccess] [source]¶
- begin_create_or_update(resource_group_name: str, disk_access_name: str, disk_access: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.DiskAccess]
Creates or updates a disk access resource.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_access_name (str) – The name of the disk access resource that is being created. The name can’t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
disk_access (DiskAccess or IO[bytes]) – disk access object supplied in the body of the Put disk access operation. Is either a DiskAccess type or a IO[bytes] type. Required.
- Returns:
An instance of LROPoller that returns either DiskAccess or the result of cls(response)
- Return type:
- Raises:
- begin_delete(resource_group_name: str, disk_access_name: str, **kwargs: Any) LROPoller[None] [source]¶
Deletes a disk access resource.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_access_name (str) – The name of the disk access resource that is being created. The name can’t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
- Returns:
An instance of LROPoller that returns either None or the result of cls(response)
- Return type:
LROPoller[None]
- Raises:
- begin_update(resource_group_name: str, disk_access_name: str, disk_access: _models.DiskAccessUpdate, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.DiskAccess] [source]¶
- begin_update(resource_group_name: str, disk_access_name: str, disk_access: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.DiskAccess]
Updates (patches) a disk access resource.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_access_name (str) – The name of the disk access resource that is being created. The name can’t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
disk_access (DiskAccessUpdate or IO[bytes]) – disk access object supplied in the body of the Patch disk access operation. Is either a DiskAccessUpdate type or a IO[bytes] type. Required.
- Returns:
An instance of LROPoller that returns either DiskAccess or the result of cls(response)
- Return type:
- Raises:
- get(resource_group_name: str, disk_access_name: str, **kwargs: Any) DiskAccess [source]¶
Gets information about a disk access resource.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_access_name (str) – The name of the disk access resource that is being created. The name can’t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
- Returns:
DiskAccess or the result of cls(response)
- Return type:
- Raises:
- get_private_link_resources(resource_group_name: str, disk_access_name: str, **kwargs: Any) PrivateLinkResourceListResult [source]¶
Gets the private link resources possible under disk access resource.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_access_name (str) – The name of the disk access resource that is being created. The name can’t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
- Returns:
PrivateLinkResourceListResult or the result of cls(response)
- Return type:
- Raises:
- list(**kwargs: Any) Iterable[DiskAccess] [source]¶
Lists all the disk access resources under a subscription.
- Returns:
An iterator like instance of either DiskAccess or the result of cls(response)
- Return type:
- Raises:
- list_by_resource_group(resource_group_name: str, **kwargs: Any) Iterable[DiskAccess] [source]¶
Lists all the disk access resources under a resource group.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
- Returns:
An iterator like instance of either DiskAccess or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.compute.v2020_05_01.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2020_05_01/models/__init__.py'>¶
- class azure.mgmt.compute.v2020_05_01.operations.DiskEncryptionSetsOperations(*args, **kwargs)[source]¶
Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
ComputeManagementClient
’sdisk_encryption_sets
attribute.- begin_create_or_update(resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: _models.DiskEncryptionSet, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.DiskEncryptionSet] [source]¶
- begin_create_or_update(resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.DiskEncryptionSet]
Creates or updates a disk encryption set.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_encryption_set_name (str) – The name of the disk encryption set that is being created. The name can’t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
disk_encryption_set (DiskEncryptionSet or IO[bytes]) – disk encryption set object supplied in the body of the Put disk encryption set operation. Is either a DiskEncryptionSet type or a IO[bytes] type. Required.
- Returns:
An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response)
- Return type:
- Raises:
- begin_delete(resource_group_name: str, disk_encryption_set_name: str, **kwargs: Any) LROPoller[None] [source]¶
Deletes a disk encryption set.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_encryption_set_name (str) – The name of the disk encryption set that is being created. The name can’t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
- Returns:
An instance of LROPoller that returns either None or the result of cls(response)
- Return type:
LROPoller[None]
- Raises:
- begin_update(resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: _models.DiskEncryptionSetUpdate, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.DiskEncryptionSet] [source]¶
- begin_update(resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.DiskEncryptionSet]
Updates (patches) a disk encryption set.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_encryption_set_name (str) – The name of the disk encryption set that is being created. The name can’t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
disk_encryption_set (DiskEncryptionSetUpdate or IO[bytes]) – disk encryption set object supplied in the body of the Patch disk encryption set operation. Is either a DiskEncryptionSetUpdate type or a IO[bytes] type. Required.
- Returns:
An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response)
- Return type:
- Raises:
- get(resource_group_name: str, disk_encryption_set_name: str, **kwargs: Any) DiskEncryptionSet [source]¶
Gets information about a disk encryption set.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_encryption_set_name (str) – The name of the disk encryption set that is being created. The name can’t be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
- Returns:
DiskEncryptionSet or the result of cls(response)
- Return type:
- Raises:
- list(**kwargs: Any) Iterable[DiskEncryptionSet] [source]¶
Lists all the disk encryption sets under a subscription.
- Returns:
An iterator like instance of either DiskEncryptionSet or the result of cls(response)
- Return type:
- Raises:
- list_by_resource_group(resource_group_name: str, **kwargs: Any) Iterable[DiskEncryptionSet] [source]¶
Lists all the disk encryption sets under a resource group.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
- Returns:
An iterator like instance of either DiskEncryptionSet or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.compute.v2020_05_01.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2020_05_01/models/__init__.py'>¶
- class azure.mgmt.compute.v2020_05_01.operations.DisksOperations(*args, **kwargs)[source]¶
Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
ComputeManagementClient
’sdisks
attribute.- begin_create_or_update(resource_group_name: str, disk_name: str, disk: _models.Disk, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.Disk] [source]¶
- begin_create_or_update(resource_group_name: str, disk_name: str, disk: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.Disk]
Creates or updates a disk.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_name (str) – The name of the managed disk that is being created. The name can’t be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
disk (Disk or IO[bytes]) – Disk object supplied in the body of the Put disk operation. Is either a Disk type or a IO[bytes] type. Required.
- Returns:
An instance of LROPoller that returns either Disk or the result of cls(response)
- Return type:
- Raises:
- begin_delete(resource_group_name: str, disk_name: str, **kwargs: Any) LROPoller[None] [source]¶
Deletes a disk.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_name (str) – The name of the managed disk that is being created. The name can’t be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
- Returns:
An instance of LROPoller that returns either None or the result of cls(response)
- Return type:
LROPoller[None]
- Raises:
- begin_grant_access(resource_group_name: str, disk_name: str, grant_access_data: _models.GrantAccessData, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.AccessUri] [source]¶
- begin_grant_access(resource_group_name: str, disk_name: str, grant_access_data: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.AccessUri]
Grants access to a disk.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_name (str) – The name of the managed disk that is being created. The name can’t be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
grant_access_data (GrantAccessData or IO[bytes]) – Access data object supplied in the body of the get disk access operation. Is either a GrantAccessData type or a IO[bytes] type. Required.
- Returns:
An instance of LROPoller that returns either AccessUri or the result of cls(response)
- Return type:
- Raises:
- begin_revoke_access(resource_group_name: str, disk_name: str, **kwargs: Any) LROPoller[None] [source]¶
Revokes access to a disk.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_name (str) – The name of the managed disk that is being created. The name can’t be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
- Returns:
An instance of LROPoller that returns either None or the result of cls(response)
- Return type:
LROPoller[None]
- Raises:
- begin_update(resource_group_name: str, disk_name: str, disk: _models.DiskUpdate, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.Disk] [source]¶
- begin_update(resource_group_name: str, disk_name: str, disk: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.Disk]
Updates (patches) a disk.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_name (str) – The name of the managed disk that is being created. The name can’t be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
disk (DiskUpdate or IO[bytes]) – Disk object supplied in the body of the Patch disk operation. Is either a DiskUpdate type or a IO[bytes] type. Required.
- Returns:
An instance of LROPoller that returns either Disk or the result of cls(response)
- Return type:
- Raises:
- get(resource_group_name: str, disk_name: str, **kwargs: Any) Disk [source]¶
Gets information about a disk.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
disk_name (str) – The name of the managed disk that is being created. The name can’t be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters. Required.
- Returns:
Disk or the result of cls(response)
- Return type:
- Raises:
- list(**kwargs: Any) Iterable[Disk] [source]¶
Lists all the disks under a subscription.
- Returns:
An iterator like instance of either Disk or the result of cls(response)
- Return type:
- Raises:
- list_by_resource_group(resource_group_name: str, **kwargs: Any) Iterable[Disk] [source]¶
Lists all the disks under a resource group.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
- Returns:
An iterator like instance of either Disk or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.compute.v2020_05_01.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2020_05_01/models/__init__.py'>¶
- class azure.mgmt.compute.v2020_05_01.operations.SnapshotsOperations(*args, **kwargs)[source]¶
Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
ComputeManagementClient
’ssnapshots
attribute.- begin_create_or_update(resource_group_name: str, snapshot_name: str, snapshot: _models.Snapshot, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.Snapshot] [source]¶
- begin_create_or_update(resource_group_name: str, snapshot_name: str, snapshot: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.Snapshot]
Creates or updates a snapshot.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
snapshot_name (str) – The name of the snapshot that is being created. The name can’t be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters. Required.
snapshot (Snapshot or IO[bytes]) – Snapshot object supplied in the body of the Put disk operation. Is either a Snapshot type or a IO[bytes] type. Required.
- Returns:
An instance of LROPoller that returns either Snapshot or the result of cls(response)
- Return type:
- Raises:
- begin_delete(resource_group_name: str, snapshot_name: str, **kwargs: Any) LROPoller[None] [source]¶
Deletes a snapshot.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
snapshot_name (str) – The name of the snapshot that is being created. The name can’t be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters. Required.
- Returns:
An instance of LROPoller that returns either None or the result of cls(response)
- Return type:
LROPoller[None]
- Raises:
- begin_grant_access(resource_group_name: str, snapshot_name: str, grant_access_data: _models.GrantAccessData, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.AccessUri] [source]¶
- begin_grant_access(resource_group_name: str, snapshot_name: str, grant_access_data: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.AccessUri]
Grants access to a snapshot.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
snapshot_name (str) – The name of the snapshot that is being created. The name can’t be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters. Required.
grant_access_data (GrantAccessData or IO[bytes]) – Access data object supplied in the body of the get snapshot access operation. Is either a GrantAccessData type or a IO[bytes] type. Required.
- Returns:
An instance of LROPoller that returns either AccessUri or the result of cls(response)
- Return type:
- Raises:
- begin_revoke_access(resource_group_name: str, snapshot_name: str, **kwargs: Any) LROPoller[None] [source]¶
Revokes access to a snapshot.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
snapshot_name (str) – The name of the snapshot that is being created. The name can’t be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters. Required.
- Returns:
An instance of LROPoller that returns either None or the result of cls(response)
- Return type:
LROPoller[None]
- Raises:
- begin_update(resource_group_name: str, snapshot_name: str, snapshot: _models.SnapshotUpdate, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.Snapshot] [source]¶
- begin_update(resource_group_name: str, snapshot_name: str, snapshot: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.Snapshot]
Updates (patches) a snapshot.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
snapshot_name (str) – The name of the snapshot that is being created. The name can’t be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters. Required.
snapshot (SnapshotUpdate or IO[bytes]) – Snapshot object supplied in the body of the Patch snapshot operation. Is either a SnapshotUpdate type or a IO[bytes] type. Required.
- Returns:
An instance of LROPoller that returns either Snapshot or the result of cls(response)
- Return type:
- Raises:
- get(resource_group_name: str, snapshot_name: str, **kwargs: Any) Snapshot [source]¶
Gets information about a snapshot.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
snapshot_name (str) – The name of the snapshot that is being created. The name can’t be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters. Required.
- Returns:
Snapshot or the result of cls(response)
- Return type:
- Raises:
- list(**kwargs: Any) Iterable[Snapshot] [source]¶
Lists snapshots under a subscription.
- Returns:
An iterator like instance of either Snapshot or the result of cls(response)
- Return type:
- Raises:
- list_by_resource_group(resource_group_name: str, **kwargs: Any) Iterable[Snapshot] [source]¶
Lists snapshots under a resource group.
- Parameters:
resource_group_name (str) – The name of the resource group. Required.
- Returns:
An iterator like instance of either Snapshot or the result of cls(response)
- Return type:
- Raises:
- models = <module 'azure.mgmt.compute.v2020_05_01.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2020_05_01/models/__init__.py'>¶