diff --git a/src/SDKs/Compute/AzSdk.RP.props b/src/SDKs/Compute/AzSdk.RP.props index b8c9c5756eb32..a22c36aebd490 100644 --- a/src/SDKs/Compute/AzSdk.RP.props +++ b/src/SDKs/Compute/AzSdk.RP.props @@ -1,7 +1,7 @@  - Compute_2019-03-01;Compute_2018-09-30;Compute_2018-06-01;Compute_2017-09-01;ContainerService_2017-01-31; + Compute_2019-03-01;Compute_2018-09-30;Compute_2017-09-01;ContainerService_2017-01-31; $(PackageTags);$(CommonTags);$(AzureApiTag); \ No newline at end of file diff --git a/src/SDKs/Compute/Management.Compute/Generated/GalleriesOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/GalleriesOperations.cs index 18f8c1a255b68..9d3bca62d1fb7 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/GalleriesOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/GalleriesOperations.cs @@ -121,7 +121,7 @@ internal GalleriesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -330,7 +330,7 @@ internal GalleriesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -508,7 +508,7 @@ internal GalleriesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -711,7 +711,7 @@ internal GalleriesOperations(ComputeManagementClient client) { gallery.Validate(); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -945,7 +945,7 @@ internal GalleriesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/GalleryImageVersionsOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/GalleryImageVersionsOperations.cs index af7d9af8f65e1..ba1a471334644 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/GalleryImageVersionsOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/GalleryImageVersionsOperations.cs @@ -149,7 +149,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageVersionName"); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -389,7 +389,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageName"); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -615,7 +615,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client) { galleryImageVersion.Validate(); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -868,7 +868,7 @@ internal GalleryImageVersionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageVersionName"); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/GalleryImagesOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/GalleryImagesOperations.cs index 35234212a3ecf..3a1b279861563 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/GalleryImagesOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/GalleryImagesOperations.cs @@ -133,7 +133,7 @@ internal GalleryImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageName"); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -356,7 +356,7 @@ internal GalleryImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryName"); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -571,7 +571,7 @@ internal GalleryImagesOperations(ComputeManagementClient client) { galleryImage.Validate(); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -815,7 +815,7 @@ internal GalleryImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "galleryImageName"); } - string apiVersion = "2018-06-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/Models/GalleryImageVersionPublishingProfile.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/GalleryImageVersionPublishingProfile.cs index 1acb6d0af07a2..4fd577dc36da0 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/Models/GalleryImageVersionPublishingProfile.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/Models/GalleryImageVersionPublishingProfile.cs @@ -48,13 +48,17 @@ public GalleryImageVersionPublishingProfile() /// The end of life date of the gallery /// Image Version. This property can be used for decommissioning /// purposes. This property is updatable. - public GalleryImageVersionPublishingProfile(GalleryArtifactSource source, IList targetRegions = default(IList), int? replicaCount = default(int?), bool? excludeFromLatest = default(bool?), System.DateTime? publishedDate = default(System.DateTime?), System.DateTime? endOfLifeDate = default(System.DateTime?)) + /// Specifies the storage account type + /// to be used to store the image. This property is not updatable. + /// Possible values include: 'Standard_LRS', 'Standard_ZRS' + public GalleryImageVersionPublishingProfile(GalleryArtifactSource source, IList targetRegions = default(IList), int? replicaCount = default(int?), bool? excludeFromLatest = default(bool?), System.DateTime? publishedDate = default(System.DateTime?), System.DateTime? endOfLifeDate = default(System.DateTime?), string storageAccountType = default(string)) : base(source, targetRegions) { ReplicaCount = replicaCount; ExcludeFromLatest = excludeFromLatest; PublishedDate = publishedDate; EndOfLifeDate = endOfLifeDate; + StorageAccountType = storageAccountType; CustomInit(); } @@ -94,6 +98,14 @@ public GalleryImageVersionPublishingProfile() [JsonProperty(PropertyName = "endOfLifeDate")] public System.DateTime? EndOfLifeDate { get; set; } + /// + /// Gets or sets specifies the storage account type to be used to store + /// the image. This property is not updatable. Possible values include: + /// 'Standard_LRS', 'Standard_ZRS' + /// + [JsonProperty(PropertyName = "storageAccountType")] + public string StorageAccountType { get; set; } + /// /// Validate the object. /// diff --git a/src/SDKs/Compute/Management.Compute/Generated/Models/StorageAccountType.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/StorageAccountType.cs new file mode 100644 index 0000000000000..7bb338ee5e2a0 --- /dev/null +++ b/src/SDKs/Compute/Management.Compute/Generated/Models/StorageAccountType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + + /// + /// Defines values for StorageAccountType. + /// + public static class StorageAccountType + { + public const string StandardLRS = "Standard_LRS"; + public const string StandardZRS = "Standard_ZRS"; + } +} diff --git a/src/SDKs/Compute/Management.Compute/Generated/Models/TargetRegion.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/TargetRegion.cs index 4179cf259b098..8e331c042ccda 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/Models/TargetRegion.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/Models/TargetRegion.cs @@ -34,10 +34,14 @@ public TargetRegion() /// The number of replicas of the /// Image Version to be created per region. This property is /// updatable. - public TargetRegion(string name, int? regionalReplicaCount = default(int?)) + /// Specifies the storage account type + /// to be used to store the image. This property is not updatable. + /// Possible values include: 'Standard_LRS', 'Standard_ZRS' + public TargetRegion(string name, int? regionalReplicaCount = default(int?), string storageAccountType = default(string)) { Name = name; RegionalReplicaCount = regionalReplicaCount; + StorageAccountType = storageAccountType; CustomInit(); } @@ -59,6 +63,14 @@ public TargetRegion() [JsonProperty(PropertyName = "regionalReplicaCount")] public int? RegionalReplicaCount { get; set; } + /// + /// Gets or sets specifies the storage account type to be used to store + /// the image. This property is not updatable. Possible values include: + /// 'Standard_LRS', 'Standard_ZRS' + /// + [JsonProperty(PropertyName = "storageAccountType")] + public string StorageAccountType { get; set; } + /// /// Validate the object. /// diff --git a/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSetVM.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSetVM.cs index 4ca9bb307f6a8..26dbda4597c2c 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSetVM.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSetVM.cs @@ -59,6 +59,8 @@ public VirtualMachineScaleSetVM() /// the virtual machine. /// Specifies the network interfaces of /// the virtual machine. + /// Specifies the network + /// profile configuration of the virtual machine. /// Specifies the boot diagnostic /// settings state. <br><br>Minimum api-version: /// 2015-06-15. @@ -88,6 +90,11 @@ public VirtualMachineScaleSetVM() /// [Azure Hybrid Use Benefit for Windows /// Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json) /// <br><br> Minimum api-version: 2015-06-15 + /// Specifies whether the model + /// applied to the virtual machine is the model of the virtual machine + /// scale set or the customized model for the virtual machine. + /// Specifies the protection policy of + /// the virtual machine. /// Specifies information about the marketplace /// image used to create the virtual machine. This element is only used /// for marketplace images. Before you can use a marketplace image from @@ -98,7 +105,7 @@ public VirtualMachineScaleSetVM() /// The virtual machine child extension /// resources. /// The virtual machine zones. - public VirtualMachineScaleSetVM(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string instanceId = default(string), Sku sku = default(Sku), bool? latestModelApplied = default(bool?), string vmId = default(string), VirtualMachineScaleSetVMInstanceView instanceView = default(VirtualMachineScaleSetVMInstanceView), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), string provisioningState = default(string), string licenseType = default(string), Plan plan = default(Plan), IList resources = default(IList), IList zones = default(IList)) + public VirtualMachineScaleSetVM(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string instanceId = default(string), Sku sku = default(Sku), bool? latestModelApplied = default(bool?), string vmId = default(string), VirtualMachineScaleSetVMInstanceView instanceView = default(VirtualMachineScaleSetVMInstanceView), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), VirtualMachineScaleSetVMNetworkProfileConfiguration networkProfileConfiguration = default(VirtualMachineScaleSetVMNetworkProfileConfiguration), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), string provisioningState = default(string), string licenseType = default(string), string modelDefinitionApplied = default(string), VirtualMachineScaleSetVMProtectionPolicy protectionPolicy = default(VirtualMachineScaleSetVMProtectionPolicy), Plan plan = default(Plan), IList resources = default(IList), IList zones = default(IList)) : base(location, id, name, type, tags) { InstanceId = instanceId; @@ -111,10 +118,13 @@ public VirtualMachineScaleSetVM() AdditionalCapabilities = additionalCapabilities; OsProfile = osProfile; NetworkProfile = networkProfile; + NetworkProfileConfiguration = networkProfileConfiguration; DiagnosticsProfile = diagnosticsProfile; AvailabilitySet = availabilitySet; ProvisioningState = provisioningState; LicenseType = licenseType; + ModelDefinitionApplied = modelDefinitionApplied; + ProtectionPolicy = protectionPolicy; Plan = plan; Resources = resources; Zones = zones; @@ -194,6 +204,13 @@ public VirtualMachineScaleSetVM() [JsonProperty(PropertyName = "properties.networkProfile")] public NetworkProfile NetworkProfile { get; set; } + /// + /// Gets or sets specifies the network profile configuration of the + /// virtual machine. + /// + [JsonProperty(PropertyName = "properties.networkProfileConfiguration")] + public VirtualMachineScaleSetVMNetworkProfileConfiguration NetworkProfileConfiguration { get; set; } + /// /// Gets or sets specifies the boot diagnostic settings state. /// &lt;br&gt;&lt;br&gt;Minimum api-version: @@ -244,6 +261,21 @@ public VirtualMachineScaleSetVM() [JsonProperty(PropertyName = "properties.licenseType")] public string LicenseType { get; set; } + /// + /// Gets specifies whether the model applied to the virtual machine is + /// the model of the virtual machine scale set or the customized model + /// for the virtual machine. + /// + [JsonProperty(PropertyName = "properties.modelDefinitionApplied")] + public string ModelDefinitionApplied { get; private set; } + + /// + /// Gets or sets specifies the protection policy of the virtual + /// machine. + /// + [JsonProperty(PropertyName = "properties.protectionPolicy")] + public VirtualMachineScaleSetVMProtectionPolicy ProtectionPolicy { get; set; } + /// /// Gets or sets specifies information about the marketplace image used /// to create the virtual machine. This element is only used for diff --git a/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSetVMNetworkProfileConfiguration.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSetVMNetworkProfileConfiguration.cs new file mode 100644 index 0000000000000..f8e141cdd2b98 --- /dev/null +++ b/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSetVMNetworkProfileConfiguration.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Describes a virtual machine scale set VM network profile. + /// + public partial class VirtualMachineScaleSetVMNetworkProfileConfiguration + { + /// + /// Initializes a new instance of the + /// VirtualMachineScaleSetVMNetworkProfileConfiguration class. + /// + public VirtualMachineScaleSetVMNetworkProfileConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// VirtualMachineScaleSetVMNetworkProfileConfiguration class. + /// + /// The list of network + /// configurations. + public VirtualMachineScaleSetVMNetworkProfileConfiguration(IList networkInterfaceConfigurations = default(IList)) + { + NetworkInterfaceConfigurations = networkInterfaceConfigurations; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the list of network configurations. + /// + [JsonProperty(PropertyName = "networkInterfaceConfigurations")] + public IList NetworkInterfaceConfigurations { get; set; } + + } +} diff --git a/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSetVMProtectionPolicy.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSetVMProtectionPolicy.cs new file mode 100644 index 0000000000000..73637dcff1c88 --- /dev/null +++ b/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSetVMProtectionPolicy.cs @@ -0,0 +1,69 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Compute.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The protection policy of a virtual machine scale set VM. + /// + public partial class VirtualMachineScaleSetVMProtectionPolicy + { + /// + /// Initializes a new instance of the + /// VirtualMachineScaleSetVMProtectionPolicy class. + /// + public VirtualMachineScaleSetVMProtectionPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// VirtualMachineScaleSetVMProtectionPolicy class. + /// + /// Indicates that the virtual machine + /// scale set VM shouldn't be considered for deletion during a scale-in + /// operation. + /// Indicates that model + /// updates or actions (including scale-in) initiated on the virtual + /// machine scale set should not be applied to the virtual machine + /// scale set VM. + public VirtualMachineScaleSetVMProtectionPolicy(bool? protectFromScaleIn = default(bool?), bool? protectFromScaleSetActions = default(bool?)) + { + ProtectFromScaleIn = protectFromScaleIn; + ProtectFromScaleSetActions = protectFromScaleSetActions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets indicates that the virtual machine scale set VM + /// shouldn't be considered for deletion during a scale-in operation. + /// + [JsonProperty(PropertyName = "protectFromScaleIn")] + public bool? ProtectFromScaleIn { get; set; } + + /// + /// Gets or sets indicates that model updates or actions (including + /// scale-in) initiated on the virtual machine scale set should not be + /// applied to the virtual machine scale set VM. + /// + [JsonProperty(PropertyName = "protectFromScaleSetActions")] + public bool? ProtectFromScaleSetActions { get; set; } + + } +} diff --git a/src/SDKs/Compute/Management.Compute/Generated/SdkInfo_ComputeManagementClient.cs b/src/SDKs/Compute/Management.Compute/Generated/SdkInfo_ComputeManagementClient.cs index 7754dc129712b..3a5c9fd065eb7 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/SdkInfo_ComputeManagementClient.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/SdkInfo_ComputeManagementClient.cs @@ -21,9 +21,9 @@ public static IEnumerable> ApiInfo_ComputeManageme { new Tuple("Compute", "AvailabilitySets", "2019-03-01"), new Tuple("Compute", "Disks", "2018-09-30"), - new Tuple("Compute", "Galleries", "2018-06-01"), - new Tuple("Compute", "GalleryImageVersions", "2018-06-01"), - new Tuple("Compute", "GalleryImages", "2018-06-01"), + new Tuple("Compute", "Galleries", "2019-03-01"), + new Tuple("Compute", "GalleryImageVersions", "2019-03-01"), + new Tuple("Compute", "GalleryImages", "2019-03-01"), new Tuple("Compute", "Images", "2019-03-01"), new Tuple("Compute", "LogAnalytics", "2019-03-01"), new Tuple("Compute", "Operations", "2019-03-01"),