Sdílet prostřednictvím


ArmComputeModelFactory.SharedGalleryImageData Method

Definition

Initializes a new instance of SharedGalleryImageData.

public static Azure.ResourceManager.Compute.SharedGalleryImageData SharedGalleryImageData (string name = default, Azure.Core.AzureLocation? location = default, string uniqueId = default, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType? osType = default, Azure.ResourceManager.Compute.Models.OperatingSystemStateType? osState = default, DateTimeOffset? endOfLifeOn = default, Azure.ResourceManager.Compute.Models.GalleryImageIdentifier identifier = default, Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration recommended = default, System.Collections.Generic.IEnumerable<string> disallowedDiskTypes = default, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.GalleryImageFeature> features = default, Azure.ResourceManager.Compute.Models.ImagePurchasePlan purchasePlan = default, Azure.ResourceManager.Compute.Models.ArchitectureType? architecture = default, Uri privacyStatementUri = default, string eula = default, System.Collections.Generic.IReadOnlyDictionary<string,string> artifactTags = default);
static member SharedGalleryImageData : string * Nullable<Azure.Core.AzureLocation> * string * Nullable<Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType> * Nullable<Azure.ResourceManager.Compute.Models.OperatingSystemStateType> * Nullable<DateTimeOffset> * Azure.ResourceManager.Compute.Models.GalleryImageIdentifier * Azure.ResourceManager.Compute.Models.RecommendedMachineConfiguration * seq<string> * Nullable<Azure.ResourceManager.Compute.Models.HyperVGeneration> * seq<Azure.ResourceManager.Compute.Models.GalleryImageFeature> * Azure.ResourceManager.Compute.Models.ImagePurchasePlan * Nullable<Azure.ResourceManager.Compute.Models.ArchitectureType> * Uri * string * System.Collections.Generic.IReadOnlyDictionary<string, string> -> Azure.ResourceManager.Compute.SharedGalleryImageData
Public Shared Function SharedGalleryImageData (Optional name As String = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional uniqueId As String = Nothing, Optional osType As Nullable(Of SupportedOperatingSystemType) = Nothing, Optional osState As Nullable(Of OperatingSystemStateType) = Nothing, Optional endOfLifeOn As Nullable(Of DateTimeOffset) = Nothing, Optional identifier As GalleryImageIdentifier = Nothing, Optional recommended As RecommendedMachineConfiguration = Nothing, Optional disallowedDiskTypes As IEnumerable(Of String) = Nothing, Optional hyperVGeneration As Nullable(Of HyperVGeneration) = Nothing, Optional features As IEnumerable(Of GalleryImageFeature) = Nothing, Optional purchasePlan As ImagePurchasePlan = Nothing, Optional architecture As Nullable(Of ArchitectureType) = Nothing, Optional privacyStatementUri As Uri = Nothing, Optional eula As String = Nothing, Optional artifactTags As IReadOnlyDictionary(Of String, String) = Nothing) As SharedGalleryImageData

Parameters

name
String

Resource name.

location
Nullable<AzureLocation>

Resource location.

uniqueId
String

The unique id of this shared gallery.

osType
Nullable<SupportedOperatingSystemType>

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..

osState
Nullable<OperatingSystemStateType>

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

endOfLifeOn
Nullable<DateTimeOffset>

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

identifier
GalleryImageIdentifier

This is the gallery image definition identifier.

recommended
RecommendedMachineConfiguration

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

disallowedDiskTypes
IEnumerable<String>

Describes the disallowed disk types.

hyperVGeneration
Nullable<HyperVGeneration>

The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

features
IEnumerable<GalleryImageFeature>

A list of gallery image features.

purchasePlan
ImagePurchasePlan

Describes the gallery image definition purchase plan. This is used by marketplace images.

architecture
Nullable<ArchitectureType>

The architecture of the image. Applicable to OS disks only.

privacyStatementUri
Uri

Privacy statement uri for the current community gallery image.

eula
String

End-user license agreement for the current community gallery image.

artifactTags
IReadOnlyDictionary<String,String>

The artifact tags of a shared gallery resource.

Returns

A new SharedGalleryImageData instance for mocking.

Applies to