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
’scommunity_galleries
attribute.- get(location: str, public_gallery_name: str, **kwargs: Any) CommunityGallery [source]¶
Get a community gallery by gallery public name.
- Parameters:
- Returns:
CommunityGallery or the result of cls(response)
- Return type:
- Raises:
- 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
’scommunity_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:
- Raises:
- 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:
- Returns:
An iterator like instance of either CommunityGalleryImageVersion or the result of cls(response)
- Return type:
- Raises:
- 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
’scommunity_gallery_images
attribute.- get(location: str, public_gallery_name: str, gallery_image_name: str, **kwargs: Any) CommunityGalleryImage [source]¶
Get a community gallery image.
- Parameters:
- Returns:
CommunityGalleryImage or the result of cls(response)
- Return type:
- Raises:
- list(location: str, public_gallery_name: str, **kwargs: Any) Iterable[CommunityGalleryImage] [source]¶
List community gallery images inside a gallery.
- Parameters:
- Returns:
An iterator like instance of either CommunityGalleryImage or the result of cls(response)
- Return type:
- Raises:
- 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
’sgalleries
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:
- Raises:
- begin_delete(resource_group_name: str, gallery_name: str, **kwargs: Any) LROPoller[None] [source]¶
Delete a Shared Image Gallery.
- Parameters:
- 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, 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:
- Raises:
- 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:
- 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:
- Raises:
- 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:
- Raises:
- 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:
- Raises:
- 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
’sgallery_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:
- Raises:
- 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:
- 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:
- Raises:
- 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:
- Raises:
- list_by_gallery_application(resource_group_name: str, gallery_name: str, gallery_application_name: str, **kwargs: Any) Iterable[GalleryApplicationVersion] [source]¶
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:
- Raises:
- 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
’sgallery_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:
- Raises:
- 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:
- 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:
- Raises:
- 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:
- Raises:
- list_by_gallery(resource_group_name: str, gallery_name: str, **kwargs: Any) Iterable[GalleryApplication] [source]¶
List gallery Application Definitions in a gallery.
- Parameters:
- Returns:
An iterator like instance of either GalleryApplication or the result of cls(response)
- Return type:
- Raises:
- 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
’sgallery_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:
- Raises:
- 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:
- 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:
- Raises:
- 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:
- Raises:
- list_by_gallery_image(resource_group_name: str, gallery_name: str, gallery_image_name: str, **kwargs: Any) Iterable[GalleryImageVersion] [source]¶
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:
- Raises:
- 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
’sgallery_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:
- Raises:
- begin_delete(resource_group_name: str, gallery_name: str, gallery_image_name: str, **kwargs: Any) LROPoller[None] [source]¶
Delete a gallery image.
- Parameters:
- 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, 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:
- Raises:
- get(resource_group_name: str, gallery_name: str, gallery_image_name: str, **kwargs: Any) GalleryImage [source]¶
Retrieves information about a gallery image definition.
- Parameters:
- Returns:
GalleryImage or the result of cls(response)
- Return type:
- Raises:
- list_by_gallery(resource_group_name: str, gallery_name: str, **kwargs: Any) Iterable[GalleryImage] [source]¶
List gallery image definitions in a gallery.
- Parameters:
- Returns:
An iterator like instance of either GalleryImage or the result of cls(response)
- Return type:
- Raises:
- 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
’sgallery_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:
- Raises:
- 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'>¶
Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
ComputeManagementClient
’sshared_galleries
attribute.Get a shared gallery by subscription id or tenant id.
- Parameters:
- Returns:
SharedGallery or the result of cls(response)
- Return type:
- Raises:
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:
- Raises:
Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
ComputeManagementClient
’sshared_gallery_image_versions
attribute.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:
- Raises:
List shared gallery image versions by subscription id or tenant id.
- Parameters:
- 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:
- Raises:
Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
ComputeManagementClient
’sshared_gallery_images
attribute.Get a shared gallery image by subscription id or tenant id.
- Parameters:
- Returns:
SharedGalleryImage or the result of cls(response)
- Return type:
- Raises:
List shared gallery images by subscription id or tenant id.
- Parameters:
- 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:
- Raises: