GalleryScriptVersionPublishingProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GalleryArtifactPublishingProfileBase - com.
azure. resourcemanager. compute. models. GalleryScriptVersionPublishingProfile
- com.
- com.
public final class GalleryScriptVersionPublishingProfile
extends GalleryArtifactPublishingProfileBase
The publishing profile of a gallery image version.
Constructor Summary
| Constructor | Description |
|---|---|
| GalleryScriptVersionPublishingProfile() |
Creates an instance of Gallery |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Gallery |
fromJson(JsonReader jsonReader)
Reads an instance of Gallery |
|
Offset |
publishedDate()
Get the published |
|
Script |
source()
Get the source property: The source script from which the Script Version is going to be created. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Gallery |
withEndOfLifeDate(OffsetDateTime endOfLifeDate)
Set the end |
|
Gallery |
withExcludeFromLatest(Boolean excludeFromLatest)
Set the exclude |
|
Gallery |
withReplicaCount(Integer replicaCount)
Set the replica |
|
Gallery |
withReplicationMode(ReplicationMode replicationMode)
Set the replication |
|
Gallery |
withSource(ScriptSource source)
Set the source property: The source script from which the Script Version is going to be created. |
|
Gallery |
withStorageAccountStrategy(StorageAccountStrategy storageAccountStrategy)
Set the storage |
|
Gallery |
withStorageAccountType(StorageAccountType storageAccountType)
Set the storage |
|
Gallery |
withTargetExtendedLocations(List<GalleryTargetExtendedLocation> targetExtendedLocations)
Set the target |
|
Gallery |
withTargetRegions(List<TargetRegion> targetRegions)
Set the target |
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:
Returns:
Throws:
publishedDate
public OffsetDateTime publishedDate()
Get the publishedDate property: The timestamp for when the gallery image version is published.
Overrides:
GalleryScriptVersionPublishingProfile.publishedDate()Returns:
source
public ScriptSource source()
Get the source property: The source script from which the Script Version is going to be created.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
GalleryScriptVersionPublishingProfile.toJson(JsonWriter jsonWriter)Parameters:
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:
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:
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:
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:
withSource
public GalleryScriptVersionPublishingProfile withSource(ScriptSource source)
Set the source property: The source script from which the Script Version is going to be created.
Parameters:
Returns:
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:
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:
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:
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: