SharedGalleryImageInner Class

public final class SharedGalleryImageInner
extends PirSharedGalleryResource

Specifies information about the gallery image definition that you want to create or update.

Method Summary

Modifier and Type Method and Description
Architecture architecture()

Get the architecture property: The architecture of the image.

Map<String,String> artifactTags()

Get the artifactTags property: The artifact tags of a shared gallery resource.

Disallowed disallowed()

Get the disallowed property: Describes the disallowed disk types.

OffsetDateTime endOfLifeDate()

Get the endOfLifeDate property: The end of life date of the gallery image definition.

String eula()

Get the eula property: End-user license agreement for the current community gallery image.

List<GalleryImageFeature> features()

Get the features property: A list of gallery image features.

static SharedGalleryImageInner fromJson(JsonReader jsonReader)

Reads an instance of SharedGalleryImageInner from the JsonReader.

HyperVGeneration hyperVGeneration()

Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.

GalleryImageIdentifier identifier()

Get the identifier property: This is the gallery image definition identifier.

String location()

Get the location property: Resource location.

String name()

Get the name property: Resource name.

OperatingSystemStateTypes osState()

Get the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.

OperatingSystemTypes osType()

Get the osType property: 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.

String privacyStatementUri()

Get the privacyStatementUri property: Privacy statement uri for the current community gallery image.

ImagePurchasePlan purchasePlan()

Get the purchasePlan property: Describes the gallery image definition purchase plan.

RecommendedMachineConfiguration recommended()

Get the recommended property: The properties describe the recommended machine configuration for this Image Definition.

JsonWriter toJson(JsonWriter jsonWriter)
String uniqueId()

Get the uniqueId property: The unique id of this shared gallery.

void validate()

Validates the instance.

Methods inherited from PirSharedGalleryResource

Methods inherited from java.lang.Object

Method Details

architecture

public Architecture architecture()

Get the architecture property: The architecture of the image. Applicable to OS disks only.

Returns:

the architecture value.

artifactTags

public Map<String,String> artifactTags()

Get the artifactTags property: The artifact tags of a shared gallery resource.

Returns:

the artifactTags value.

disallowed

public Disallowed disallowed()

Get the disallowed property: Describes the disallowed disk types.

Returns:

the disallowed value.

endOfLifeDate

public OffsetDateTime endOfLifeDate()

Get the endOfLifeDate property: The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.

Returns:

the endOfLifeDate value.

eula

public String eula()

Get the eula property: End-user license agreement for the current community gallery image.

Returns:

the eula value.

features

public List<GalleryImageFeature> features()

Get the features property: A list of gallery image features.

Returns:

the features value.

fromJson

public static SharedGalleryImageInner fromJson(JsonReader jsonReader)

Reads an instance of SharedGalleryImageInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SharedGalleryImageInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SharedGalleryImageInner.

hyperVGeneration

public HyperVGeneration hyperVGeneration()

Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

Returns:

the hyperVGeneration value.

identifier

public GalleryImageIdentifier identifier()

Get the identifier property: This is the gallery image definition identifier.

Returns:

the identifier value.

location

public String location()

Get the location property: Resource location.

Overrides:

SharedGalleryImageInner.location()

Returns:

the location value.

name

public String name()

Get the name property: Resource name.

Overrides:

SharedGalleryImageInner.name()

Returns:

the name value.

osState

public OperatingSystemStateTypes osState()

Get the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.

Returns:

the osState value.

osType

public OperatingSystemTypes osType()

Get the osType property: 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. Possible values are: **Windows,** **Linux.**.

Returns:

the osType value.

privacyStatementUri

public String privacyStatementUri()

Get the privacyStatementUri property: Privacy statement uri for the current community gallery image.

Returns:

the privacyStatementUri value.

purchasePlan

public ImagePurchasePlan purchasePlan()

Get the purchasePlan property: Describes the gallery image definition purchase plan. This is used by marketplace images.

Returns:

the purchasePlan value.

recommended

public RecommendedMachineConfiguration recommended()

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

Returns:

the recommended value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SharedGalleryImageInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uniqueId

public String uniqueId()

Get the uniqueId property: The unique id of this shared gallery.

Overrides:

SharedGalleryImageInner.uniqueId()

Returns:

the uniqueId value.

validate

public void validate()

Validates the instance.

Overrides:

SharedGalleryImageInner.validate()

Applies to