azure.mgmt.compute.v2023_07_03.operations module

class azure.mgmt.compute.v2023_07_03.operations.CommunityGalleriesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ComputeManagementClient’s community_galleries attribute.

get(location: str, public_gallery_name: str, **kwargs: Any) CommunityGallery[source]

Get a community gallery by gallery public name.

Parameters:
  • location (str) – Resource location. Required.

  • public_gallery_name (str) – The public name of the community gallery. Required.

Returns:

CommunityGallery or the result of cls(response)

Return type:

CommunityGallery

Raises:

HttpResponseError

models = <module 'azure.mgmt.compute.v2023_07_03.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2023_07_03/models/__init__.py'>
class azure.mgmt.compute.v2023_07_03.operations.CommunityGalleryImageVersionsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ComputeManagementClient’s community_gallery_image_versions attribute.

get(location: str, public_gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, **kwargs: Any) CommunityGalleryImageVersion[source]

Get a community gallery image version.

Parameters:
  • location (str) – Resource location. Required.

  • public_gallery_name (str) – The public name of the community gallery. Required.

  • gallery_image_name (str) – The name of the community gallery image definition. Required.

  • gallery_image_version_name (str) – The name of the community gallery image version. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>. Required.

Returns:

CommunityGalleryImageVersion or the result of cls(response)

Return type:

CommunityGalleryImageVersion

Raises:

HttpResponseError

list(location: str, public_gallery_name: str, gallery_image_name: str, **kwargs: Any) Iterable[CommunityGalleryImageVersion][source]

List community gallery image versions inside an image.

Parameters:
  • location (str) – Resource location. Required.

  • public_gallery_name (str) – The public name of the community gallery. Required.

  • gallery_image_name (str) – The name of the community gallery image definition. Required.

Returns:

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

Return type:

ItemPaged[CommunityGalleryImageVersion]

Raises:

HttpResponseError

models = <module 'azure.mgmt.compute.v2023_07_03.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2023_07_03/models/__init__.py'>
class azure.mgmt.compute.v2023_07_03.operations.CommunityGalleryImagesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ComputeManagementClient’s community_gallery_images attribute.

get(location: str, public_gallery_name: str, gallery_image_name: str, **kwargs: Any) CommunityGalleryImage[source]

Get a community gallery image.

Parameters:
  • location (str) – Resource location. Required.

  • public_gallery_name (str) – The public name of the community gallery. Required.

  • gallery_image_name (str) – The name of the community gallery image definition. Required.

Returns:

CommunityGalleryImage or the result of cls(response)

Return type:

CommunityGalleryImage

Raises:

HttpResponseError

list(location: str, public_gallery_name: str, **kwargs: Any) Iterable[CommunityGalleryImage][source]

List community gallery images inside a gallery.

Parameters:
  • location (str) – Resource location. Required.

  • public_gallery_name (str) – The public name of the community gallery. Required.

Returns:

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

Return type:

ItemPaged[CommunityGalleryImage]

Raises:

HttpResponseError

models = <module 'azure.mgmt.compute.v2023_07_03.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2023_07_03/models/__init__.py'>
class azure.mgmt.compute.v2023_07_03.operations.GalleriesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ComputeManagementClient’s galleries attribute.

begin_create_or_update(resource_group_name: str, gallery_name: str, gallery: _models.Gallery, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.Gallery][source]
begin_create_or_update(resource_group_name: str, gallery_name: str, gallery: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.Gallery]

Create or update a Shared Image Gallery.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. Required.

  • gallery (Gallery or IO[bytes]) – Parameters supplied to the create or update Shared Image Gallery operation. Is either a Gallery type or a IO[bytes] type. Required.

Returns:

An instance of LROPoller that returns either Gallery or the result of cls(response)

Return type:

LROPoller[Gallery]

Raises:

HttpResponseError

begin_delete(resource_group_name: str, gallery_name: str, **kwargs: Any) LROPoller[None][source]

Delete a Shared Image Gallery.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery to be deleted. Required.

Returns:

An instance of LROPoller that returns either None or the result of cls(response)

Return type:

LROPoller[None]

Raises:

HttpResponseError

begin_update(resource_group_name: str, gallery_name: str, gallery: _models.GalleryUpdate, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.Gallery][source]
begin_update(resource_group_name: str, gallery_name: str, gallery: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.Gallery]

Update a Shared Image Gallery.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. Required.

  • gallery (GalleryUpdate or IO[bytes]) – Parameters supplied to the update Shared Image Gallery operation. Is either a GalleryUpdate type or a IO[bytes] type. Required.

Returns:

An instance of LROPoller that returns either Gallery or the result of cls(response)

Return type:

LROPoller[Gallery]

Raises:

HttpResponseError

get(resource_group_name: str, gallery_name: str, *, select: str | SelectPermissions | None = None, expand: str | GalleryExpandParams | None = None, **kwargs: Any) Gallery[source]

Retrieves information about a Shared Image Gallery.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery. Required.

Keyword Arguments:
  • select (str or SelectPermissions) – The select expression to apply on the operation. “Permissions” Default value is None.

  • expand (str or GalleryExpandParams) – The expand query option to apply on the operation. “SharingProfile/Groups” Default value is None.

Returns:

Gallery or the result of cls(response)

Return type:

Gallery

Raises:

HttpResponseError

list(**kwargs: Any) Iterable[Gallery][source]

List galleries under a subscription.

Returns:

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

Return type:

ItemPaged[Gallery]

Raises:

HttpResponseError

list_by_resource_group(resource_group_name: str, **kwargs: Any) Iterable[Gallery][source]

List galleries under a resource group.

Parameters:

resource_group_name (str) – The name of the resource group. Required.

Returns:

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

Return type:

ItemPaged[Gallery]

Raises:

HttpResponseError

models = <module 'azure.mgmt.compute.v2023_07_03.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2023_07_03/models/__init__.py'>
class azure.mgmt.compute.v2023_07_03.operations.GalleryApplicationVersionsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ComputeManagementClient’s gallery_application_versions attribute.

begin_create_or_update(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: _models.GalleryApplicationVersion, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryApplicationVersion][source]
begin_create_or_update(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryApplicationVersion]

Create or update a gallery Application Version.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Application Gallery in which the Application Definition resides. Required.

  • gallery_application_name (str) – The name of the gallery Application Definition in which the Application Version is to be created. Required.

  • gallery_application_version_name (str) – The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>. Required.

  • gallery_application_version (GalleryApplicationVersion or IO[bytes]) – Parameters supplied to the create or update gallery Application Version operation. Is either a GalleryApplicationVersion type or a IO[bytes] type. Required.

Returns:

An instance of LROPoller that returns either GalleryApplicationVersion or the result of cls(response)

Return type:

LROPoller[GalleryApplicationVersion]

Raises:

HttpResponseError

begin_delete(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, **kwargs: Any) LROPoller[None][source]

Delete a gallery Application Version.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Application Gallery in which the Application Definition resides. Required.

  • gallery_application_name (str) – The name of the gallery Application Definition in which the Application Version resides. Required.

  • gallery_application_version_name (str) – The name of the gallery Application Version to be deleted. Required.

Returns:

An instance of LROPoller that returns either None or the result of cls(response)

Return type:

LROPoller[None]

Raises:

HttpResponseError

begin_update(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: _models.GalleryApplicationVersionUpdate, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryApplicationVersion][source]
begin_update(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryApplicationVersion]

Update a gallery Application Version.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Application Gallery in which the Application Definition resides. Required.

  • gallery_application_name (str) – The name of the gallery Application Definition in which the Application Version is to be updated. Required.

  • gallery_application_version_name (str) – The name of the gallery Application Version to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>. Required.

  • gallery_application_version (GalleryApplicationVersionUpdate or IO[bytes]) – Parameters supplied to the update gallery Application Version operation. Is either a GalleryApplicationVersionUpdate type or a IO[bytes] type. Required.

Returns:

An instance of LROPoller that returns either GalleryApplicationVersion or the result of cls(response)

Return type:

LROPoller[GalleryApplicationVersion]

Raises:

HttpResponseError

get(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, *, expand: str | ReplicationStatusTypes | None = None, **kwargs: Any) GalleryApplicationVersion[source]

Retrieves information about a gallery Application Version.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Application Gallery in which the Application Definition resides. Required.

  • gallery_application_name (str) – The name of the gallery Application Definition in which the Application Version resides. Required.

  • gallery_application_version_name (str) – The name of the gallery Application Version to be retrieved. Required.

Keyword Arguments:

expand (str or ReplicationStatusTypes) – The expand expression to apply on the operation. Known values are: “ReplicationStatus” and “UefiSettings”. Default value is None.

Returns:

GalleryApplicationVersion or the result of cls(response)

Return type:

GalleryApplicationVersion

Raises:

HttpResponseError

List gallery Application Versions in a gallery Application Definition.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Application Gallery in which the Application Definition resides. Required.

  • gallery_application_name (str) – The name of the Shared Application Gallery Application Definition from which the Application Versions are to be listed. Required.

Returns:

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

Return type:

ItemPaged[GalleryApplicationVersion]

Raises:

HttpResponseError

models = <module 'azure.mgmt.compute.v2023_07_03.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2023_07_03/models/__init__.py'>
class azure.mgmt.compute.v2023_07_03.operations.GalleryApplicationsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ComputeManagementClient’s gallery_applications attribute.

begin_create_or_update(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application: _models.GalleryApplication, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryApplication][source]
begin_create_or_update(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryApplication]

Create or update a gallery Application Definition.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Application Gallery in which the Application Definition is to be created. Required.

  • gallery_application_name (str) – The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. Required.

  • gallery_application (GalleryApplication or IO[bytes]) – Parameters supplied to the create or update gallery Application operation. Is either a GalleryApplication type or a IO[bytes] type. Required.

Returns:

An instance of LROPoller that returns either GalleryApplication or the result of cls(response)

Return type:

LROPoller[GalleryApplication]

Raises:

HttpResponseError

begin_delete(resource_group_name: str, gallery_name: str, gallery_application_name: str, **kwargs: Any) LROPoller[None][source]

Delete a gallery Application.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Application Gallery in which the Application Definition is to be deleted. Required.

  • gallery_application_name (str) – The name of the gallery Application Definition to be deleted. Required.

Returns:

An instance of LROPoller that returns either None or the result of cls(response)

Return type:

LROPoller[None]

Raises:

HttpResponseError

begin_update(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application: _models.GalleryApplicationUpdate, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryApplication][source]
begin_update(resource_group_name: str, gallery_name: str, gallery_application_name: str, gallery_application: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryApplication]

Update a gallery Application Definition.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Application Gallery in which the Application Definition is to be updated. Required.

  • gallery_application_name (str) – The name of the gallery Application Definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. Required.

  • gallery_application (GalleryApplicationUpdate or IO[bytes]) – Parameters supplied to the update gallery Application operation. Is either a GalleryApplicationUpdate type or a IO[bytes] type. Required.

Returns:

An instance of LROPoller that returns either GalleryApplication or the result of cls(response)

Return type:

LROPoller[GalleryApplication]

Raises:

HttpResponseError

get(resource_group_name: str, gallery_name: str, gallery_application_name: str, **kwargs: Any) GalleryApplication[source]

Retrieves information about a gallery Application Definition.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Application Gallery from which the Application Definitions are to be retrieved. Required.

  • gallery_application_name (str) – The name of the gallery Application Definition to be retrieved. Required.

Returns:

GalleryApplication or the result of cls(response)

Return type:

GalleryApplication

Raises:

HttpResponseError

List gallery Application Definitions in a gallery.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Application Gallery from which Application Definitions are to be listed. Required.

Returns:

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

Return type:

ItemPaged[GalleryApplication]

Raises:

HttpResponseError

models = <module 'azure.mgmt.compute.v2023_07_03.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2023_07_03/models/__init__.py'>
class azure.mgmt.compute.v2023_07_03.operations.GalleryImageVersionsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ComputeManagementClient’s gallery_image_versions attribute.

begin_create_or_update(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: _models.GalleryImageVersion, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryImageVersion][source]
begin_create_or_update(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryImageVersion]

Create or update a gallery image version.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery in which the Image Definition resides. Required.

  • gallery_image_name (str) – The name of the gallery image definition in which the Image Version is to be created. Required.

  • gallery_image_version_name (str) – The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>. Required.

  • gallery_image_version (GalleryImageVersion or IO[bytes]) – Parameters supplied to the create or update gallery image version operation. Is either a GalleryImageVersion type or a IO[bytes] type. Required.

Returns:

An instance of LROPoller that returns either GalleryImageVersion or the result of cls(response)

Return type:

LROPoller[GalleryImageVersion]

Raises:

HttpResponseError

begin_delete(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, **kwargs: Any) LROPoller[None][source]

Delete a gallery image version.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery in which the Image Definition resides. Required.

  • gallery_image_name (str) – The name of the gallery image definition in which the Image Version resides. Required.

  • gallery_image_version_name (str) – The name of the gallery image version to be deleted. Required.

Returns:

An instance of LROPoller that returns either None or the result of cls(response)

Return type:

LROPoller[None]

Raises:

HttpResponseError

begin_update(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: _models.GalleryImageVersionUpdate, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryImageVersion][source]
begin_update(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryImageVersion]

Update a gallery image version.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery in which the Image Definition resides. Required.

  • gallery_image_name (str) – The name of the gallery image definition in which the Image Version is to be updated. Required.

  • gallery_image_version_name (str) – The name of the gallery image version to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>. Required.

  • gallery_image_version (GalleryImageVersionUpdate or IO[bytes]) – Parameters supplied to the update gallery image version operation. Is either a GalleryImageVersionUpdate type or a IO[bytes] type. Required.

Returns:

An instance of LROPoller that returns either GalleryImageVersion or the result of cls(response)

Return type:

LROPoller[GalleryImageVersion]

Raises:

HttpResponseError

get(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, *, expand: str | ReplicationStatusTypes | None = None, **kwargs: Any) GalleryImageVersion[source]

Retrieves information about a gallery image version.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery in which the Image Definition resides. Required.

  • gallery_image_name (str) – The name of the gallery image definition in which the Image Version resides. Required.

  • gallery_image_version_name (str) – The name of the gallery image version to be retrieved. Required.

Keyword Arguments:

expand (str or ReplicationStatusTypes) – The expand expression to apply on the operation. Known values are: “ReplicationStatus” and “UefiSettings”. Default value is None.

Returns:

GalleryImageVersion or the result of cls(response)

Return type:

GalleryImageVersion

Raises:

HttpResponseError

List gallery image versions in a gallery image definition.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery in which the Image Definition resides. Required.

  • gallery_image_name (str) – The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed. Required.

Returns:

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

Return type:

ItemPaged[GalleryImageVersion]

Raises:

HttpResponseError

models = <module 'azure.mgmt.compute.v2023_07_03.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2023_07_03/models/__init__.py'>
class azure.mgmt.compute.v2023_07_03.operations.GalleryImagesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ComputeManagementClient’s gallery_images attribute.

begin_create_or_update(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image: _models.GalleryImage, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryImage][source]
begin_create_or_update(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryImage]

Create or update a gallery image definition.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery in which the Image Definition is to be created. Required.

  • gallery_image_name (str) – The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. Required.

  • gallery_image (GalleryImage or IO[bytes]) – Parameters supplied to the create or update gallery image operation. Is either a GalleryImage type or a IO[bytes] type. Required.

Returns:

An instance of LROPoller that returns either GalleryImage or the result of cls(response)

Return type:

LROPoller[GalleryImage]

Raises:

HttpResponseError

begin_delete(resource_group_name: str, gallery_name: str, gallery_image_name: str, **kwargs: Any) LROPoller[None][source]

Delete a gallery image.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery in which the Image Definition is to be deleted. Required.

  • gallery_image_name (str) – The name of the gallery image definition to be deleted. Required.

Returns:

An instance of LROPoller that returns either None or the result of cls(response)

Return type:

LROPoller[None]

Raises:

HttpResponseError

begin_update(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image: _models.GalleryImageUpdate, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryImage][source]
begin_update(resource_group_name: str, gallery_name: str, gallery_image_name: str, gallery_image: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.GalleryImage]

Update a gallery image definition.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery in which the Image Definition is to be updated. Required.

  • gallery_image_name (str) – The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. Required.

  • gallery_image (GalleryImageUpdate or IO[bytes]) – Parameters supplied to the update gallery image operation. Is either a GalleryImageUpdate type or a IO[bytes] type. Required.

Returns:

An instance of LROPoller that returns either GalleryImage or the result of cls(response)

Return type:

LROPoller[GalleryImage]

Raises:

HttpResponseError

get(resource_group_name: str, gallery_name: str, gallery_image_name: str, **kwargs: Any) GalleryImage[source]

Retrieves information about a gallery image definition.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery from which the Image Definitions are to be retrieved. Required.

  • gallery_image_name (str) – The name of the gallery image definition to be retrieved. Required.

Returns:

GalleryImage or the result of cls(response)

Return type:

GalleryImage

Raises:

HttpResponseError

List gallery image definitions in a gallery.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery from which Image Definitions are to be listed. Required.

Returns:

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

Return type:

ItemPaged[GalleryImage]

Raises:

HttpResponseError

models = <module 'azure.mgmt.compute.v2023_07_03.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2023_07_03/models/__init__.py'>
class azure.mgmt.compute.v2023_07_03.operations.GallerySharingProfileOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ComputeManagementClient’s gallery_sharing_profile attribute.

begin_update(resource_group_name: str, gallery_name: str, sharing_update: _models.SharingUpdate, *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.SharingUpdate][source]
begin_update(resource_group_name: str, gallery_name: str, sharing_update: IO[bytes], *, content_type: str = 'application/json', **kwargs: Any) LROPoller[_models.SharingUpdate]

Update sharing profile of a gallery.

Parameters:
  • resource_group_name (str) – The name of the resource group. Required.

  • gallery_name (str) – The name of the Shared Image Gallery. Required.

  • sharing_update (SharingUpdate or IO[bytes]) – Parameters supplied to the update gallery sharing profile. Is either a SharingUpdate type or a IO[bytes] type. Required.

Returns:

An instance of LROPoller that returns either SharingUpdate or the result of cls(response)

Return type:

LROPoller[SharingUpdate]

Raises:

HttpResponseError

models = <module 'azure.mgmt.compute.v2023_07_03.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2023_07_03/models/__init__.py'>
class azure.mgmt.compute.v2023_07_03.operations.SharedGalleriesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ComputeManagementClient’s shared_galleries attribute.

get(location: str, gallery_unique_name: str, **kwargs: Any) SharedGallery[source]

Get a shared gallery by subscription id or tenant id.

Parameters:
  • location (str) – Resource location. Required.

  • gallery_unique_name (str) – The unique name of the Shared Gallery. Required.

Returns:

SharedGallery or the result of cls(response)

Return type:

SharedGallery

Raises:

HttpResponseError

list(location: str, *, shared_to: str | SharedToValues | None = None, **kwargs: Any) Iterable[SharedGallery][source]

List shared galleries by subscription id or tenant id.

Parameters:

location (str) – Resource location. Required.

Keyword Arguments:

shared_to (str or SharedToValues) – The query parameter to decide what shared galleries to fetch when doing listing operations. “tenant” Default value is None.

Returns:

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

Return type:

ItemPaged[SharedGallery]

Raises:

HttpResponseError

models = <module 'azure.mgmt.compute.v2023_07_03.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2023_07_03/models/__init__.py'>
class azure.mgmt.compute.v2023_07_03.operations.SharedGalleryImageVersionsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ComputeManagementClient’s shared_gallery_image_versions attribute.

get(location: str, gallery_unique_name: str, gallery_image_name: str, gallery_image_version_name: str, **kwargs: Any) SharedGalleryImageVersion[source]

Get a shared gallery image version by subscription id or tenant id.

Parameters:
  • location (str) – Resource location. Required.

  • gallery_unique_name (str) – The unique name of the Shared Gallery. Required.

  • gallery_image_name (str) – The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. Required.

  • gallery_image_version_name (str) – The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>. Required.

Returns:

SharedGalleryImageVersion or the result of cls(response)

Return type:

SharedGalleryImageVersion

Raises:

HttpResponseError

list(location: str, gallery_unique_name: str, gallery_image_name: str, *, shared_to: str | SharedToValues | None = None, **kwargs: Any) Iterable[SharedGalleryImageVersion][source]

List shared gallery image versions by subscription id or tenant id.

Parameters:
  • location (str) – Resource location. Required.

  • gallery_unique_name (str) – The unique name of the Shared Gallery. Required.

  • gallery_image_name (str) – The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. Required.

Keyword Arguments:

shared_to (str or SharedToValues) – The query parameter to decide what shared galleries to fetch when doing listing operations. “tenant” Default value is None.

Returns:

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

Return type:

ItemPaged[SharedGalleryImageVersion]

Raises:

HttpResponseError

models = <module 'azure.mgmt.compute.v2023_07_03.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2023_07_03/models/__init__.py'>
class azure.mgmt.compute.v2023_07_03.operations.SharedGalleryImagesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ComputeManagementClient’s shared_gallery_images attribute.

get(location: str, gallery_unique_name: str, gallery_image_name: str, **kwargs: Any) SharedGalleryImage[source]

Get a shared gallery image by subscription id or tenant id.

Parameters:
  • location (str) – Resource location. Required.

  • gallery_unique_name (str) – The unique name of the Shared Gallery. Required.

  • gallery_image_name (str) – The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. Required.

Returns:

SharedGalleryImage or the result of cls(response)

Return type:

SharedGalleryImage

Raises:

HttpResponseError

list(location: str, gallery_unique_name: str, *, shared_to: str | SharedToValues | None = None, **kwargs: Any) Iterable[SharedGalleryImage][source]

List shared gallery images by subscription id or tenant id.

Parameters:
  • location (str) – Resource location. Required.

  • gallery_unique_name (str) – The unique name of the Shared Gallery. Required.

Keyword Arguments:

shared_to (str or SharedToValues) – The query parameter to decide what shared galleries to fetch when doing listing operations. “tenant” Default value is None.

Returns:

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

Return type:

ItemPaged[SharedGalleryImage]

Raises:

HttpResponseError

models = <module 'azure.mgmt.compute.v2023_07_03.models' from '/mnt/vss/_work/1/s/sdk/compute/azure-mgmt-compute/.tox/sphinx/lib/python3.11/site-packages/azure/mgmt/compute/v2023_07_03/models/__init__.py'>