GalleryImagesOperations Class

GalleryImagesOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
GalleryImagesOperations

Constructor

GalleryImagesOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

create_or_update

Create or replace an existing Gallery Image.

delete

Delete gallery image.

get

Get gallery image.

list

List gallery images in a given lab account.

update

Modify properties of gallery images.

create_or_update

Create or replace an existing Gallery Image.

create_or_update(resource_group_name: str, lab_account_name: str, gallery_image_name: str, gallery_image: _models.GalleryImage, **kwargs: Any) -> _models.GalleryImage

Parameters

resource_group_name
str
Required

The name of the resource group.

lab_account_name
str
Required

The name of the lab Account.

gallery_image_name
str
Required

The name of the gallery Image.

gallery_image
GalleryImage
Required

Represents an image from the Azure Marketplace.

cls
callable

A custom type or function that will be passed the direct response

Returns

GalleryImage, or the result of cls(response)

Return type

Exceptions

delete

Delete gallery image.

delete(resource_group_name: str, lab_account_name: str, gallery_image_name: str, **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

The name of the resource group.

lab_account_name
str
Required

The name of the lab Account.

gallery_image_name
str
Required

The name of the gallery Image.

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Get gallery image.

get(resource_group_name: str, lab_account_name: str, gallery_image_name: str, expand: Optional[str] = None, **kwargs: Any) -> _models.GalleryImage

Parameters

resource_group_name
str
Required

The name of the resource group.

lab_account_name
str
Required

The name of the lab Account.

gallery_image_name
str
Required

The name of the gallery Image.

expand
str
default value: None

Specify the $expand query. Example: 'properties($select=author)'.

cls
callable

A custom type or function that will be passed the direct response

Returns

GalleryImage, or the result of cls(response)

Return type

Exceptions

list

List gallery images in a given lab account.

list(resource_group_name: str, lab_account_name: str, expand: Optional[str] = None, filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, **kwargs: Any) -> Iterable[_models.ResponseWithContinuationGalleryImage]

Parameters

resource_group_name
str
Required

The name of the resource group.

lab_account_name
str
Required

The name of the lab Account.

expand
str
default value: None

Specify the $expand query. Example: 'properties($select=author)'.

filter
str
default value: None

The filter to apply to the operation.

top
int
default value: None

The maximum number of resources to return from the operation.

orderby
str
default value: None

The ordering expression for the results, using OData notation.

cls
callable

A custom type or function that will be passed the direct response

Returns

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

Return type

Exceptions

update

Modify properties of gallery images.

update(resource_group_name: str, lab_account_name: str, gallery_image_name: str, gallery_image: _models.GalleryImageFragment, **kwargs: Any) -> _models.GalleryImage

Parameters

resource_group_name
str
Required

The name of the resource group.

lab_account_name
str
Required

The name of the lab Account.

gallery_image_name
str
Required

The name of the gallery Image.

gallery_image
GalleryImageFragment
Required

Represents an image from the Azure Marketplace.

cls
callable

A custom type or function that will be passed the direct response

Returns

GalleryImage, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.labservices.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\labservices\\models\\__init__.py'>