Example #1
0
 /// <summary>
 /// Initializes a new instance of the RunCommandDocument class.
 /// </summary>
 /// <param name="schema">The VM run command schema.</param>
 /// <param name="id">The VM run command id.</param>
 /// <param name="osType">The Operating System type. Possible values
 /// include: 'Windows', 'Linux'</param>
 /// <param name="label">The VM run command label.</param>
 /// <param name="description">The VM run command description.</param>
 /// <param name="script">The script to be executed.</param>
 /// <param name="parameters">The parameters used by the script.</param>
 public RunCommandDocument(string schema, string id, OperatingSystemTypes osType, string label, string description, IList <string> script, IList <RunCommandParameterDefinition> parameters = default(IList <RunCommandParameterDefinition>))
     : base(schema, id, osType, label, description)
 {
     Script     = script;
     Parameters = parameters;
     CustomInit();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the ImageOSDisk class.
 /// </summary>
 /// <param name="osType">This property allows you to specify the type
 /// of the OS that is included in the disk if creating a VM from a
 /// custom image. &lt;br&gt;&lt;br&gt; Possible values are:
 /// &lt;br&gt;&lt;br&gt; **Windows** &lt;br&gt;&lt;br&gt; **Linux**.
 /// Possible values include: 'Windows', 'Linux'</param>
 /// <param name="osState">The OS State. Possible values include:
 /// 'Generalized', 'Specialized'</param>
 /// <param name="snapshot">The snapshot.</param>
 /// <param name="managedDisk">The managedDisk.</param>
 /// <param name="blobUri">The Virtual Hard Disk.</param>
 /// <param name="caching">Specifies the caching requirements.
 /// &lt;br&gt;&lt;br&gt; Possible values are: &lt;br&gt;&lt;br&gt;
 /// **None** &lt;br&gt;&lt;br&gt; **ReadOnly** &lt;br&gt;&lt;br&gt;
 /// **ReadWrite** &lt;br&gt;&lt;br&gt; Default: **None for Standard
 /// storage. ReadOnly for Premium storage**. Possible values include:
 /// 'None', 'ReadOnly', 'ReadWrite'</param>
 /// <param name="diskSizeGB">Specifies the size of empty data disks in
 /// gigabytes. This element can be used to overwrite the name of the
 /// disk in a virtual machine image. &lt;br&gt;&lt;br&gt; This value
 /// cannot be larger than 1023 GB</param>
 /// <param name="storageAccountType">Specifies the storage account type
 /// for the managed disk. NOTE: UltraSSD_LRS can only be used with data
 /// disks, it cannot be used with OS Disk. Possible values include:
 /// 'Standard_LRS', 'Premium_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS',
 /// 'Premium_ZRS', 'StandardSSD_ZRS', 'PremiumV2_LRS'</param>
 /// <param name="diskEncryptionSet">Specifies the customer managed disk
 /// encryption set resource id for the managed image disk.</param>
 public ImageOSDisk(OperatingSystemTypes osType, OperatingSystemStateTypes osState, SubResource snapshot = default(SubResource), SubResource managedDisk = default(SubResource), string blobUri = default(string), CachingTypes?caching = default(CachingTypes?), int?diskSizeGB = default(int?), string storageAccountType = default(string), DiskEncryptionSetParameters diskEncryptionSet = default(DiskEncryptionSetParameters))
     : base(snapshot, managedDisk, blobUri, caching, diskSizeGB, storageAccountType, diskEncryptionSet)
 {
     OsType  = osType;
     OsState = osState;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the RunCommandDocumentBase class.
 /// </summary>
 /// <param name="schema">The VM run command schema.</param>
 /// <param name="id">The VM run command id.</param>
 /// <param name="osType">The Operating System type. Possible values
 /// include: 'Windows', 'Linux'</param>
 /// <param name="label">The VM run command label.</param>
 /// <param name="description">The VM run command description.</param>
 public RunCommandDocumentBase(string schema, string id, OperatingSystemTypes osType, string label, string description)
 {
     Schema      = schema;
     Id          = id;
     OsType      = osType;
     Label       = label;
     Description = description;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the GalleryApplicationUpdate class.
 /// </summary>
 /// <param name="supportedOSType">This property allows you to specify
 /// the supported type of the OS that application is built for.
 /// &lt;br&gt;&lt;br&gt; Possible values are: &lt;br&gt;&lt;br&gt;
 /// **Windows** &lt;br&gt;&lt;br&gt; **Linux**. Possible values
 /// include: 'Windows', 'Linux'</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="id">Resource Id</param>
 /// <param name="name">Resource name</param>
 /// <param name="type">Resource type</param>
 /// <param name="description">The description of this gallery
 /// Application Definition resource. This property is
 /// updatable.</param>
 /// <param name="eula">The Eula agreement for the gallery Application
 /// Definition.</param>
 /// <param name="privacyStatementUri">The privacy statement
 /// uri.</param>
 /// <param name="releaseNoteUri">The release note uri.</param>
 /// <param name="endOfLifeDate">The end of life date of the gallery
 /// Application Definition. This property can be used for
 /// decommissioning purposes. This property is updatable.</param>
 public GalleryApplicationUpdate(OperatingSystemTypes supportedOSType, IDictionary <string, string> tags = default(IDictionary <string, string>), string id = default(string), string name = default(string), string type = default(string), string description = default(string), string eula = default(string), string privacyStatementUri = default(string), string releaseNoteUri = default(string), System.DateTime?endOfLifeDate = default(System.DateTime?))
     : base(tags, id, name, type)
 {
     Description         = description;
     Eula                = eula;
     PrivacyStatementUri = privacyStatementUri;
     ReleaseNoteUri      = releaseNoteUri;
     EndOfLifeDate       = endOfLifeDate;
     SupportedOSType     = supportedOSType;
     CustomInit();
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the ImageOSDisk class.
 /// </summary>
 /// <param name="osType">This property allows you to specify the type
 /// of the OS that is included in the disk if creating a VM from a
 /// custom image. &lt;br&gt;&lt;br&gt; Possible values are:
 /// &lt;br&gt;&lt;br&gt; **Windows** &lt;br&gt;&lt;br&gt; **Linux**.
 /// Possible values include: 'Windows', 'Linux'</param>
 /// <param name="osState">The OS State. Possible values include:
 /// 'Generalized', 'Specialized'</param>
 /// <param name="snapshot">The snapshot.</param>
 /// <param name="managedDisk">The managedDisk.</param>
 /// <param name="blobUri">The Virtual Hard Disk.</param>
 /// <param name="caching">Specifies the caching requirements.
 /// &lt;br&gt;&lt;br&gt; Possible values are: &lt;br&gt;&lt;br&gt;
 /// **None** &lt;br&gt;&lt;br&gt; **ReadOnly** &lt;br&gt;&lt;br&gt;
 /// **ReadWrite** &lt;br&gt;&lt;br&gt; Default: **None for Standard
 /// storage. ReadOnly for Premium storage**. Possible values include:
 /// 'None', 'ReadOnly', 'ReadWrite'</param>
 /// <param name="diskSizeGB">Specifies the size of empty data disks in
 /// gigabytes. This element can be used to overwrite the name of the
 /// disk in a virtual machine image. &lt;br&gt;&lt;br&gt; This value
 /// cannot be larger than 1023 GB</param>
 /// <param name="storageAccountType">Specifies the storage account type
 /// for the managed disk. UltraSSD_LRS cannot be used with OS Disk.
 /// Possible values include: 'Standard_LRS', 'Premium_LRS',
 /// 'StandardSSD_LRS', 'UltraSSD_LRS'</param>
 public ImageOSDisk(OperatingSystemTypes osType, OperatingSystemStateTypes osState, SubResource snapshot = default(SubResource), SubResource managedDisk = default(SubResource), string blobUri = default(string), CachingTypes?caching = default(CachingTypes?), int?diskSizeGB = default(int?), string storageAccountType = default(string))
 {
     OsType             = osType;
     OsState            = osState;
     Snapshot           = snapshot;
     ManagedDisk        = managedDisk;
     BlobUri            = blobUri;
     Caching            = caching;
     DiskSizeGB         = diskSizeGB;
     StorageAccountType = storageAccountType;
     CustomInit();
 }
Example #6
0
        internal static string ToSerializedValue(this OperatingSystemTypes value)
        {
            switch (value)
            {
            case OperatingSystemTypes.Windows:
                return("Windows");

            case OperatingSystemTypes.Linux:
                return("Linux");
            }
            return(null);
        }
 /// <summary>
 /// Initializes a new instance of the SharedGalleryImage class.
 /// </summary>
 /// <param name="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. &lt;br&gt;&lt;br&gt; Possible values are:
 /// &lt;br&gt;&lt;br&gt; **Windows** &lt;br&gt;&lt;br&gt; **Linux**.
 /// Possible values include: 'Windows', 'Linux'</param>
 /// <param name="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'</param>
 /// <param name="name">Resource name</param>
 /// <param name="location">Resource location</param>
 /// <param name="uniqueId">The unique id of this shared
 /// gallery.</param>
 /// <param name="endOfLifeDate">The end of life date of the gallery
 /// image definition. This property can be used for decommissioning
 /// purposes. This property is updatable.</param>
 /// <param name="hyperVGeneration">The hypervisor generation of the
 /// Virtual Machine. Applicable to OS disks only. Possible values
 /// include: 'V1', 'V2'</param>
 /// <param name="features">A list of gallery image features.</param>
 public SharedGalleryImage(OperatingSystemTypes osType, OperatingSystemStateTypes osState, GalleryImageIdentifier identifier, string name = default(string), string location = default(string), string uniqueId = default(string), System.DateTime?endOfLifeDate = default(System.DateTime?), RecommendedMachineConfiguration recommended = default(RecommendedMachineConfiguration), Disallowed disallowed = default(Disallowed), string hyperVGeneration = default(string), IList <GalleryImageFeature> features = default(IList <GalleryImageFeature>), ImagePurchasePlan purchasePlan = default(ImagePurchasePlan))
     : base(name, location, uniqueId)
 {
     OsType           = osType;
     OsState          = osState;
     EndOfLifeDate    = endOfLifeDate;
     Identifier       = identifier;
     Recommended      = recommended;
     Disallowed       = disallowed;
     HyperVGeneration = hyperVGeneration;
     Features         = features;
     PurchasePlan     = purchasePlan;
     CustomInit();
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the GalleryImage class.
 /// </summary>
 /// <param name="location">Resource location</param>
 /// <param name="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. &lt;br&gt;&lt;br&gt; Possible values are:
 /// &lt;br&gt;&lt;br&gt; **Windows** &lt;br&gt;&lt;br&gt; **Linux**.
 /// Possible values include: 'Windows', 'Linux'</param>
 /// <param name="osState">The allowed values for OS State are
 /// 'Generalized'. Possible values include: 'Generalized',
 /// 'Specialized'</param>
 /// <param name="id">Resource Id</param>
 /// <param name="name">Resource name</param>
 /// <param name="type">Resource type</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="description">The description of this gallery Image
 /// Definition resource. This property is updatable.</param>
 /// <param name="eula">The Eula agreement for the gallery Image
 /// Definition.</param>
 /// <param name="privacyStatementUri">The privacy statement
 /// uri.</param>
 /// <param name="releaseNoteUri">The release note uri.</param>
 /// <param name="endOfLifeDate">The end of life date of the gallery
 /// Image Definition. This property can be used for decommissioning
 /// purposes. This property is updatable.</param>
 /// <param name="provisioningState">The current state of the gallery
 /// Image Definition.</param>
 public GalleryImage(string location, OperatingSystemTypes osType, OperatingSystemStateTypes osState, GalleryImageIdentifier identifier, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string description = default(string), string eula = default(string), string privacyStatementUri = default(string), string releaseNoteUri = default(string), System.DateTime?endOfLifeDate = default(System.DateTime?), RecommendedMachineConfiguration recommended = default(RecommendedMachineConfiguration), Disallowed disallowed = default(Disallowed), ImagePurchasePlan purchasePlan = default(ImagePurchasePlan), string provisioningState = default(string))
     : base(location, id, name, type, tags)
 {
     Description         = description;
     Eula                = eula;
     PrivacyStatementUri = privacyStatementUri;
     ReleaseNoteUri      = releaseNoteUri;
     OsType              = osType;
     OsState             = osState;
     EndOfLifeDate       = endOfLifeDate;
     Identifier          = identifier;
     Recommended         = recommended;
     Disallowed          = disallowed;
     PurchasePlan        = purchasePlan;
     ProvisioningState   = provisioningState;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the OSDiskImage class.
 /// </summary>
 /// <param name="operatingSystem">The operating system of the
 /// osDiskImage. Possible values include: 'Windows', 'Linux'</param>
 public OSDiskImage(OperatingSystemTypes operatingSystem)
 {
     OperatingSystem = operatingSystem;
     CustomInit();
 }