VirtualMachineImagesOperations Class

VirtualMachineImagesOperations async 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
VirtualMachineImagesOperations

Constructor

VirtualMachineImagesOperations(client, config, serializer, deserializer) -> None

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

get

Gets a virtual machine image.

list

Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.

list_offers

Gets a list of virtual machine image offers for the specified location and publisher.

list_publishers

Gets a list of virtual machine image publishers for the specified Azure location.

list_skus

Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.

get

Gets a virtual machine image.

get(location: str, publisher_name: str, offer: str, skus: str, version: str, **kwargs: typing.Any) -> azure.mgmt.compute.v2019_07_01.models._models_py3.VirtualMachineImage

Parameters

location
str
Required

The name of a supported Azure region.

publisher_name
str
Required

A valid image publisher.

offer
str
Required

A valid image publisher offer.

skus
str
Required

A valid image SKU.

version
str
Required

A valid image SKU version.

cls
callable

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

Returns

VirtualMachineImage, or the result of cls(response)

Return type

list

Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.

list(location: str, publisher_name: str, offer: str, skus: str, expand: typing.Union[str, NoneType] = None, top: typing.Union[int, NoneType] = None, orderby: typing.Union[str, NoneType] = None, **kwargs: typing.Any) -> typing.List[_ForwardRef('_models.VirtualMachineImageResource')]

Parameters

location
str
Required

The name of a supported Azure region.

publisher_name
str
Required

A valid image publisher.

offer
str
Required

A valid image publisher offer.

skus
str
Required

A valid image SKU.

expand
str
default value: None

The expand expression to apply on the operation.

top
int
default value: None
orderby
str
default value: None
cls
callable

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

Returns

list of VirtualMachineImageResource, or the result of cls(response)

Return type

list_offers

Gets a list of virtual machine image offers for the specified location and publisher.

list_offers(location: str, publisher_name: str, **kwargs: typing.Any) -> typing.List[_ForwardRef('_models.VirtualMachineImageResource')]

Parameters

location
str
Required

The name of a supported Azure region.

publisher_name
str
Required

A valid image publisher.

cls
callable

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

Returns

list of VirtualMachineImageResource, or the result of cls(response)

Return type

list_publishers

Gets a list of virtual machine image publishers for the specified Azure location.

list_publishers(location: str, **kwargs: typing.Any) -> typing.List[_ForwardRef('_models.VirtualMachineImageResource')]

Parameters

location
str
Required

The name of a supported Azure region.

cls
callable

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

Returns

list of VirtualMachineImageResource, or the result of cls(response)

Return type

list_skus

Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.

list_skus(location: str, publisher_name: str, offer: str, **kwargs: typing.Any) -> typing.List[_ForwardRef('_models.VirtualMachineImageResource')]

Parameters

location
str
Required

The name of a supported Azure region.

publisher_name
str
Required

A valid image publisher.

offer
str
Required

A valid image publisher offer.

cls
callable

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

Returns

list of VirtualMachineImageResource, or the result of cls(response)

Return type

Attributes

models

models = <module 'azure.mgmt.compute.v2019_07_01.models' from 'c:\\hostedtoolcache\\windows\\python\\3.6.8\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2019_07_01\\models\\__init__.py'>