Share via


GalleryScriptVersionPublishingProfile Class

public final class GalleryScriptVersionPublishingProfile
extends GalleryArtifactPublishingProfileBase

The publishing profile of a gallery image version.

Constructor Summary

Constructor Description
GalleryScriptVersionPublishingProfile()

Creates an instance of GalleryScriptVersionPublishingProfile class.

Method Summary

Modifier and Type Method and Description
static GalleryScriptVersionPublishingProfile fromJson(JsonReader jsonReader)

Reads an instance of GalleryScriptVersionPublishingProfile from the JsonReader.

OffsetDateTime publishedDate()

Get the publishedDate property: The timestamp for when the gallery image version is published.

ScriptSource source()

Get the source property: The source script from which the Script Version is going to be created.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GalleryScriptVersionPublishingProfile withEndOfLifeDate(OffsetDateTime endOfLifeDate)

Set the endOfLifeDate property: The end of life date of the gallery image version.

GalleryScriptVersionPublishingProfile withExcludeFromLatest(Boolean excludeFromLatest)

Set the excludeFromLatest property: If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.

GalleryScriptVersionPublishingProfile withReplicaCount(Integer replicaCount)

Set the replicaCount property: The number of replicas of the Image Version to be created per region.

GalleryScriptVersionPublishingProfile withReplicationMode(ReplicationMode replicationMode)

Set the replicationMode property: Optional parameter which specifies the mode to be used for replication.

GalleryScriptVersionPublishingProfile withSource(ScriptSource source)

Set the source property: The source script from which the Script Version is going to be created.

GalleryScriptVersionPublishingProfile withStorageAccountStrategy(StorageAccountStrategy storageAccountStrategy)

Set the storageAccountStrategy property: Specifies the strategy to be used when selecting the storage account type.

GalleryScriptVersionPublishingProfile withStorageAccountType(StorageAccountType storageAccountType)

Set the storageAccountType property: Specifies the storage account type to be used to store the image.

GalleryScriptVersionPublishingProfile withTargetExtendedLocations(List<GalleryTargetExtendedLocation> targetExtendedLocations)

Set the targetExtendedLocations property: The target extended locations where the Image Version is going to be replicated to.

GalleryScriptVersionPublishingProfile withTargetRegions(List<TargetRegion> targetRegions)

Set the targetRegions property: The target regions where the Image Version is going to be replicated to.

Methods inherited from GalleryArtifactPublishingProfileBase

Methods inherited from java.lang.Object

Constructor Details

GalleryScriptVersionPublishingProfile

public GalleryScriptVersionPublishingProfile()

Creates an instance of GalleryScriptVersionPublishingProfile class.

Method Details

fromJson

public static GalleryScriptVersionPublishingProfile fromJson(JsonReader jsonReader)

Reads an instance of GalleryScriptVersionPublishingProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

publishedDate

public OffsetDateTime publishedDate()

Get the publishedDate property: The timestamp for when the gallery image version is published.

Overrides:

GalleryScriptVersionPublishingProfile.publishedDate()

Returns:

the publishedDate value.

source

public ScriptSource source()

Get the source property: The source script from which the Script Version is going to be created.

Returns:

the source value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GalleryScriptVersionPublishingProfile.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

GalleryScriptVersionPublishingProfile.validate()

withEndOfLifeDate

public GalleryScriptVersionPublishingProfile withEndOfLifeDate(OffsetDateTime endOfLifeDate)

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

Overrides:

GalleryScriptVersionPublishingProfile.withEndOfLifeDate(OffsetDateTime endOfLifeDate)

Parameters:

endOfLifeDate

withExcludeFromLatest

public GalleryScriptVersionPublishingProfile withExcludeFromLatest(Boolean excludeFromLatest)

Set the excludeFromLatest property: If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.

Overrides:

GalleryScriptVersionPublishingProfile.withExcludeFromLatest(Boolean excludeFromLatest)

Parameters:

excludeFromLatest

withReplicaCount

public GalleryScriptVersionPublishingProfile withReplicaCount(Integer replicaCount)

Set the replicaCount property: The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.

Overrides:

GalleryScriptVersionPublishingProfile.withReplicaCount(Integer replicaCount)

Parameters:

replicaCount

withReplicationMode

public GalleryScriptVersionPublishingProfile withReplicationMode(ReplicationMode replicationMode)

Set the replicationMode property: Optional parameter which specifies the mode to be used for replication. This property is not updatable.

Overrides:

GalleryScriptVersionPublishingProfile.withReplicationMode(ReplicationMode replicationMode)

Parameters:

replicationMode

withSource

public GalleryScriptVersionPublishingProfile withSource(ScriptSource source)

Set the source property: The source script from which the Script Version is going to be created.

Parameters:

source - the source value to set.

Returns:

the GalleryScriptVersionPublishingProfile object itself.

withStorageAccountStrategy

public GalleryScriptVersionPublishingProfile withStorageAccountStrategy(StorageAccountStrategy storageAccountStrategy)

Set the storageAccountStrategy property: Specifies the strategy to be used when selecting the storage account type. Cannot be specified along with storageAccountType, but can be overridden per region by specifying targetRegions[].storageAccountType. This property is not updatable.

Overrides:

GalleryScriptVersionPublishingProfile.withStorageAccountStrategy(StorageAccountStrategy storageAccountStrategy)

Parameters:

storageAccountStrategy

withStorageAccountType

public GalleryScriptVersionPublishingProfile withStorageAccountType(StorageAccountType storageAccountType)

Set the storageAccountType property: Specifies the storage account type to be used to store the image. Cannot be specified along with storageAccountStrategy. This property is not updatable.

Overrides:

GalleryScriptVersionPublishingProfile.withStorageAccountType(StorageAccountType storageAccountType)

Parameters:

storageAccountType

withTargetExtendedLocations

public GalleryScriptVersionPublishingProfile withTargetExtendedLocations(List<GalleryTargetExtendedLocation> targetExtendedLocations)

Set the targetExtendedLocations property: The target extended locations where the Image Version is going to be replicated to. This property is updatable.

Overrides:

GalleryScriptVersionPublishingProfile.withTargetExtendedLocations(List<GalleryTargetExtendedLocation> targetExtendedLocations)

Parameters:

targetExtendedLocations

withTargetRegions

public GalleryScriptVersionPublishingProfile withTargetRegions(List<TargetRegion> targetRegions)

Set the targetRegions property: The target regions where the Image Version is going to be replicated to. This property is updatable.

Overrides:

GalleryScriptVersionPublishingProfile.withTargetRegions(List<TargetRegion> targetRegions)

Parameters:

targetRegions

Applies to