GalleryImage Class

Specifies information about the gallery Image Definition that you want to create or update.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.compute.v2019_07_01.models._models_py3.Resource
GalleryImage

Constructor

GalleryImage(*, location: str, tags: Optional[Dict[str, str]] = None, description: Optional[str] = None, eula: Optional[str] = None, privacy_statement_uri: Optional[str] = None, release_note_uri: Optional[str] = None, os_type: Optional[Union[str, azure.mgmt.compute.v2019_07_01.models._compute_management_client_enums.OperatingSystemTypes]] = None, os_state: Optional[Union[str, azure.mgmt.compute.v2019_07_01.models._compute_management_client_enums.OperatingSystemStateTypes]] = None, hyper_v_generation: Optional[Union[str, azure.mgmt.compute.v2019_07_01.models._compute_management_client_enums.HyperVGeneration]] = None, end_of_life_date: Optional[datetime.datetime] = None, identifier: Optional[azure.mgmt.compute.v2019_07_01.models._models_py3.GalleryImageIdentifier] = None, recommended: Optional[azure.mgmt.compute.v2019_07_01.models._models_py3.RecommendedMachineConfiguration] = None, disallowed: Optional[azure.mgmt.compute.v2019_07_01.models._models_py3.Disallowed] = None, purchase_plan: Optional[azure.mgmt.compute.v2019_07_01.models._models_py3.ImagePurchasePlan] = None, **kwargs)

Parameters

location
str
Required

Required. Resource location.

tags
dict[str, str]
Required

A set of tags. Resource tags.

description
str
Required

The description of this gallery Image Definition resource. This property is updatable.

eula
str
Required

The Eula agreement for the gallery Image Definition.

privacy_statement_uri
str
Required

The privacy statement uri.

release_note_uri
str
Required

The release note uri.

os_type
str or OperatingSystemTypes
Required

This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br>``<br> Possible values are: <br>``<br> Windows <br>``<br> Linux. Possible values include: "Windows", "Linux".

os_state
str or OperatingSystemStateTypes
Required

This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: "Generalized", "Specialized".

hyper_v_generation
str or HyperVGeneration
Required

The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: "V1", "V2".

end_of_life_date
datetime
Required

The end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable.

identifier
GalleryImageIdentifier
Required

This is the gallery Image Definition identifier.

recommended
RecommendedMachineConfiguration
Required

The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.

disallowed
Disallowed
Required

Describes the disallowed disk types.

purchase_plan
ImagePurchasePlan
Required

Describes the gallery Image Definition purchase plan. This is used by marketplace images.

Variables

id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

provisioning_state
str or GalleryImagePropertiesProvisioningState

The provisioning state, which only appears in the response. Possible values include: "Creating", "Updating", "Failed", "Succeeded", "Deleting", "Migrating".