Language

ArmComputeModelFactory.SharedGalleryImageVersionData Method

Definition

public static Azure.ResourceManager.Compute.SharedGalleryImageVersionData SharedGalleryImageVersionData(string name, Azure.Core.AzureLocation? location, string uniqueId, DateTimeOffset? publishedOn, DateTimeOffset? endOfLifeOn, bool? isExcludedFromLatest, Azure.ResourceManager.Compute.Models.SharedGalleryImageVersionStorageProfile storageProfile, System.Collections.Generic.IDictionary<string,string> artifactTags, DateTimeOffset? consumptionEndsOn, Azure.ResourceManager.Compute.Models.GalleryImageVersionState? imageState = default);
static member SharedGalleryImageVersionData : string * Nullable<Azure.Core.AzureLocation> * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<bool> * Azure.ResourceManager.Compute.Models.SharedGalleryImageVersionStorageProfile * System.Collections.Generic.IDictionary<string, string> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Compute.Models.GalleryImageVersionState> -> Azure.ResourceManager.Compute.SharedGalleryImageVersionData
Public Shared Function SharedGalleryImageVersionData (name As String, location As Nullable(Of AzureLocation), uniqueId As String, publishedOn As Nullable(Of DateTimeOffset), endOfLifeOn As Nullable(Of DateTimeOffset), isExcludedFromLatest As Nullable(Of Boolean), storageProfile As SharedGalleryImageVersionStorageProfile, artifactTags As IDictionary(Of String, String), consumptionEndsOn As Nullable(Of DateTimeOffset), Optional imageState As Nullable(Of GalleryImageVersionState) = Nothing) As SharedGalleryImageVersionData

Parameters

name
String

Resource name.

location
Nullable<AzureLocation>

Resource location.

uniqueId
String

The unique id of this shared gallery.

publishedOn
Nullable<DateTimeOffset>

The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable.

endOfLifeOn
Nullable<DateTimeOffset>

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

isExcludedFromLatest
Nullable<Boolean>

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

storageProfile
SharedGalleryImageVersionStorageProfile

Describes the storage profile of the image version.

artifactTags
IDictionary<String,String>

The artifact tags of a shared gallery resource.

consumptionEndsOn
Nullable<DateTimeOffset>

The timestamp after which a soft-deleted gallery image version is no longer consumable for VM/VMSS creation or VMSS scale out. It is calculated from the soft-deleted time plus the retention period, and is not present for active gallery image versions. In dateTime offset format.

imageState
Nullable<GalleryImageVersionState>

The state of the gallery image version, derived from its soft-delete status.

Returns

A new SharedGalleryImageVersionData instance for mocking.

Applies to