你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
GalleryImageVersionPublishingProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GalleryArtifactPublishingProfileBase - com.
azure. resourcemanager. compute. models. GalleryImageVersionPublishingProfile
- com.
- com.
public final class GalleryImageVersionPublishingProfile
extends GalleryArtifactPublishingProfileBase
The publishing profile of a gallery image Version.
Constructor Summary
Constructor | Description |
---|---|
GalleryImageVersionPublishingProfile() |
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 |
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 |
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
GalleryImageVersionPublishingProfile
public GalleryImageVersionPublishingProfile()
Creates an instance of GalleryImageVersionPublishingProfile class.
Method Details
fromJson
public static GalleryImageVersionPublishingProfile fromJson(JsonReader jsonReader)
Reads an instance of GalleryImageVersionPublishingProfile 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:
GalleryImageVersionPublishingProfile.publishedDate()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
GalleryImageVersionPublishingProfile.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
GalleryImageVersionPublishingProfile.validate()withEndOfLifeDate
public GalleryImageVersionPublishingProfile 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:
GalleryImageVersionPublishingProfile.withEndOfLifeDate(OffsetDateTime endOfLifeDate)Parameters:
withExcludeFromLatest
public GalleryImageVersionPublishingProfile 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:
GalleryImageVersionPublishingProfile.withExcludeFromLatest(Boolean excludeFromLatest)Parameters:
withReplicaCount
public GalleryImageVersionPublishingProfile 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:
GalleryImageVersionPublishingProfile.withReplicaCount(Integer replicaCount)Parameters:
withReplicationMode
public GalleryImageVersionPublishingProfile withReplicationMode(ReplicationMode replicationMode)
Set the replicationMode property: Optional parameter which specifies the mode to be used for replication. This property is not updatable.
Overrides:
GalleryImageVersionPublishingProfile.withReplicationMode(ReplicationMode replicationMode)Parameters:
withStorageAccountType
public GalleryImageVersionPublishingProfile withStorageAccountType(StorageAccountType storageAccountType)
Set the storageAccountType property: Specifies the storage account type to be used to store the image. This property is not updatable.
Overrides:
GalleryImageVersionPublishingProfile.withStorageAccountType(StorageAccountType storageAccountType)Parameters:
withTargetExtendedLocations
public GalleryImageVersionPublishingProfile withTargetExtendedLocations(List
Set the targetExtendedLocations property: The target extended locations where the Image Version is going to be replicated to. This property is updatable.
Overrides:
GalleryImageVersionPublishingProfile.withTargetExtendedLocations(List<GalleryTargetExtendedLocation> targetExtendedLocations)Parameters:
withTargetRegions
public GalleryImageVersionPublishingProfile withTargetRegions(List
Set the targetRegions property: The target regions where the Image Version is going to be replicated to. This property is updatable.
Overrides:
GalleryImageVersionPublishingProfile.withTargetRegions(List<TargetRegion> targetRegions)Parameters: