Class GalleryImage
Specifies information about the gallery Image Definition that you want to create or update.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Compute.dll
Syntax
[Microsoft.Rest.Serialization.JsonTransformation]
public class GalleryImage : Microsoft.Azure.Management.Compute.Models.Resource
Constructors
GalleryImage()
Initializes a new instance of the GalleryImage class.
Declaration
public GalleryImage ();
GalleryImage(String, OperatingSystemTypes, OperatingSystemStateTypes, GalleryImageIdentifier, String, String, String, IDictionary<String,String>, String, String, String, String, String, Nullable<DateTime>, RecommendedMachineConfiguration, Disallowed, ImagePurchasePlan, String)
Initializes a new instance of the GalleryImage class.
Declaration
public GalleryImage (string location, Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes osType, Microsoft.Azure.Management.Compute.Models.OperatingSystemStateTypes osState, Microsoft.Azure.Management.Compute.Models.GalleryImageIdentifier identifier, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null, string description = null, string eula = null, string privacyStatementUri = null, string releaseNoteUri = null, string hyperVGeneration = null, Nullable<DateTime> endOfLifeDate = null, Microsoft.Azure.Management.Compute.Models.RecommendedMachineConfiguration recommended = null, Microsoft.Azure.Management.Compute.Models.Disallowed disallowed = null, Microsoft.Azure.Management.Compute.Models.ImagePurchasePlan purchasePlan = null, string provisioningState = null);
Parameters
|
String
location
Resource location |
|
OperatingSystemTypes
osType
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. <br><br> Possible values are: <br><br> Windows <br><br> Linux. Possible values include: 'Windows', 'Linux' |
|
OperatingSystemStateTypes
osState
This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized' |
|
GalleryImageIdentifier
identifier
|
|
String
id
Resource Id |
|
String
name
Resource name |
|
String
type
Resource type |
|
IDictionary<String,String>
tags
Resource tags |
|
String
description
The description of this gallery Image Definition resource. This property is updatable. |
|
String
eula
The Eula agreement for the gallery Image Definition. |
|
String
privacyStatementUri
The privacy statement uri. |
|
String
releaseNoteUri
The release note uri. |
|
String
hyperVGeneration
The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2' |
|
Nullable<DateTime>
endOfLifeDate
The end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable. |
|
RecommendedMachineConfiguration
recommended
|
|
Disallowed
disallowed
|
|
ImagePurchasePlan
purchasePlan
|
|
String
provisioningState
The current state of the gallery Image Definition. |
Properties
Description
Gets or sets the description of this gallery Image Definition resource. This property is updatable.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.description")]
public string Description { get; set; }
Property Value
|
String
|
Disallowed
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.disallowed")]
public Microsoft.Azure.Management.Compute.Models.Disallowed Disallowed { get; set; }
Property Value
|
Disallowed
|
EndOfLifeDate
Gets or sets the end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.endOfLifeDate")]
public Nullable<DateTime> EndOfLifeDate { get; set; }
Property Value
|
Nullable<DateTime>
|
Eula
Gets or sets the Eula agreement for the gallery Image Definition.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.eula")]
public string Eula { get; set; }
Property Value
|
String
|
HyperVGeneration
Gets or sets the hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.hyperVGeneration")]
public string HyperVGeneration { get; set; }
Property Value
|
String
|
Identifier
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.identifier")]
public Microsoft.Azure.Management.Compute.Models.GalleryImageIdentifier Identifier { get; set; }
Property Value
|
GalleryImageIdentifier
|
OsState
Gets or sets this property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.osState")]
public Microsoft.Azure.Management.Compute.Models.OperatingSystemStateTypes OsState { get; set; }
Property Value
|
OperatingSystemStateTypes
|
OsType
Gets or sets 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. <br><br> Possible values are: <br><br> Windows <br><br> Linux. Possible values include: 'Windows', 'Linux'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.osType")]
public Microsoft.Azure.Management.Compute.Models.OperatingSystemTypes OsType { get; set; }
Property Value
|
OperatingSystemTypes
|
PrivacyStatementUri
Gets or sets the privacy statement uri.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.privacyStatementUri")]
public string PrivacyStatementUri { get; set; }
Property Value
|
String
|
ProvisioningState
Gets the current state of the gallery Image Definition.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.provisioningState")]
public string ProvisioningState { get; }
Property Value
|
String
|
Remarks
The provisioning state, which only appears in the response.
Possible values include: 'Creating', 'Updating', 'Failed',
'Succeeded', 'Deleting', 'Migrating'
PurchasePlan
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.purchasePlan")]
public Microsoft.Azure.Management.Compute.Models.ImagePurchasePlan PurchasePlan { get; set; }
Property Value
|
ImagePurchasePlan
|
Recommended
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.recommended")]
public Microsoft.Azure.Management.Compute.Models.RecommendedMachineConfiguration Recommended { get; set; }
Property Value
|
RecommendedMachineConfiguration
|
ReleaseNoteUri
Gets or sets the release note uri.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.releaseNoteUri")]
public string ReleaseNoteUri { get; set; }
Property Value
|
String
|
Methods
Validate()
Validate the object.
Declaration
public override void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |