CommunityGalleryImage 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.

Inheritance
azure.mgmt.compute.v2021_07_01.models._models_py3.PirCommunityGalleryResource
CommunityGalleryImage

Constructor

CommunityGalleryImage(*, unique_id: Optional[str] = None, os_type: Optional[Union[str, azure.mgmt.compute.v2021_07_01.models._compute_management_client_enums.OperatingSystemTypes]] = None, os_state: Optional[Union[str, azure.mgmt.compute.v2021_07_01.models._compute_management_client_enums.OperatingSystemStateTypes]] = None, end_of_life_date: Optional[datetime.datetime] = None, identifier: Optional[azure.mgmt.compute.v2021_07_01.models._models_py3.GalleryImageIdentifier] = None, recommended: Optional[azure.mgmt.compute.v2021_07_01.models._models_py3.RecommendedMachineConfiguration] = None, disallowed: Optional[azure.mgmt.compute.v2021_07_01.models._models_py3.Disallowed] = None, hyper_v_generation: Optional[Union[str, azure.mgmt.compute.v2021_07_01.models._compute_management_client_enums.HyperVGeneration]] = None, features: Optional[List[azure.mgmt.compute.v2021_07_01.models._models_py3.GalleryImageFeature]] = None, purchase_plan: Optional[azure.mgmt.compute.v2021_07_01.models._models_py3.ImagePurchasePlan] = None, **kwargs)

Parameters

unique_id
str
Required

The unique id of this community gallery.

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".

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.

hyper_v_generation
str or HyperVGeneration
Required

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

features
list[GalleryImageFeature]
Required

A list of gallery image features.

purchase_plan
ImagePurchasePlan
Required

Describes the gallery image definition purchase plan. This is used by marketplace images.

Variables

name
str

Resource name.

location
str

Resource location.

type
str

Resource type.