diff --git a/src/SDKs/Compute/AzSdk.RP.props b/src/SDKs/Compute/AzSdk.RP.props index b8b85ec760474..a22c36aebd490 100644 --- a/src/SDKs/Compute/AzSdk.RP.props +++ b/src/SDKs/Compute/AzSdk.RP.props @@ -1,7 +1,7 @@  - Compute_2018-10-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/AvailabilitySetsOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/AvailabilitySetsOperations.cs index 7d920e3ca3a7c..e37c477a11b8d 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/AvailabilitySetsOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/AvailabilitySetsOperations.cs @@ -105,7 +105,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -313,7 +313,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -511,7 +511,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -687,7 +687,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -867,7 +867,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1050,7 +1050,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1243,7 +1243,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; 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/IVirtualMachineScaleSetVMsOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/IVirtualMachineScaleSetVMsOperations.cs index e3301fdc27ad8..7207e9ace55cb 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/IVirtualMachineScaleSetVMsOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/IVirtualMachineScaleSetVMsOperations.cs @@ -268,6 +268,11 @@ public partial interface IVirtualMachineScaleSetVMsOperations /// /// The instance ID of the virtual machine. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for + /// this flag indicates non-graceful shutdown whereas false indicates + /// otherwise. Default value for this flag is false if not specified + /// /// /// The headers that will be added to request. /// @@ -280,7 +285,7 @@ public partial interface IVirtualMachineScaleSetVMsOperations /// /// Thrown when a required parameter is null /// - Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, bool? skipShutdown = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Restarts a virtual machine in a VM scale set. /// @@ -569,6 +574,11 @@ public partial interface IVirtualMachineScaleSetVMsOperations /// /// The instance ID of the virtual machine. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for + /// this flag indicates non-graceful shutdown whereas false indicates + /// otherwise. Default value for this flag is false if not specified + /// /// /// The headers that will be added to request. /// @@ -581,7 +591,7 @@ public partial interface IVirtualMachineScaleSetVMsOperations /// /// Thrown when a required parameter is null /// - Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, bool? skipShutdown = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Restarts a virtual machine in a VM scale set. /// diff --git a/src/SDKs/Compute/Management.Compute/Generated/IVirtualMachineScaleSetsOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/IVirtualMachineScaleSetsOperations.cs index 31b717a0f7466..10a10435f50f3 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/IVirtualMachineScaleSetsOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/IVirtualMachineScaleSetsOperations.cs @@ -313,6 +313,11 @@ public partial interface IVirtualMachineScaleSetsOperations /// /// The name of the VM scale set. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for + /// this flag indicates non-graceful shutdown whereas false indicates + /// otherwise. Default value for this flag is false if not specified + /// /// /// The virtual machine scale set instance ids. Omitting the virtual /// machine scale set instance ids will result in the operation being @@ -330,7 +335,7 @@ public partial interface IVirtualMachineScaleSetsOperations /// /// Thrown when a required parameter is null /// - Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, IList instanceIds = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, bool? skipShutdown = false, IList instanceIds = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Restarts one or more virtual machines in a VM scale set. /// @@ -701,6 +706,11 @@ public partial interface IVirtualMachineScaleSetsOperations /// /// The name of the VM scale set. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for + /// this flag indicates non-graceful shutdown whereas false indicates + /// otherwise. Default value for this flag is false if not specified + /// /// /// The virtual machine scale set instance ids. Omitting the virtual /// machine scale set instance ids will result in the operation being @@ -718,7 +728,7 @@ public partial interface IVirtualMachineScaleSetsOperations /// /// Thrown when a required parameter is null /// - Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, IList instanceIds = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, bool? skipShutdown = false, IList instanceIds = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Restarts one or more virtual machines in a VM scale set. /// diff --git a/src/SDKs/Compute/Management.Compute/Generated/IVirtualMachinesOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/IVirtualMachinesOperations.cs index 8ea1b72368d66..49d605b45ad11 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/IVirtualMachinesOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/IVirtualMachinesOperations.cs @@ -362,6 +362,11 @@ public partial interface IVirtualMachinesOperations /// /// The name of the virtual machine. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for + /// this flag indicates non-graceful shutdown whereas false indicates + /// otherwise. Default value for this flag is false if not specified + /// /// /// The headers that will be added to request. /// @@ -374,7 +379,7 @@ public partial interface IVirtualMachinesOperations /// /// Thrown when a required parameter is null /// - Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, bool? skipShutdown = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// The operation to restart a virtual machine. /// @@ -683,6 +688,11 @@ public partial interface IVirtualMachinesOperations /// /// The name of the virtual machine. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for + /// this flag indicates non-graceful shutdown whereas false indicates + /// otherwise. Default value for this flag is false if not specified + /// /// /// The headers that will be added to request. /// @@ -695,7 +705,7 @@ public partial interface IVirtualMachinesOperations /// /// Thrown when a required parameter is null /// - Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, bool? skipShutdown = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// The operation to restart a virtual machine. /// diff --git a/src/SDKs/Compute/Management.Compute/Generated/ImagesOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/ImagesOperations.cs index 5e4ce6a06868a..30e8f9cd9afec 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/ImagesOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/ImagesOperations.cs @@ -169,7 +169,7 @@ internal ImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -361,7 +361,7 @@ internal ImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -541,7 +541,7 @@ internal ImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -742,7 +742,7 @@ internal ImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -968,7 +968,7 @@ internal ImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1184,7 +1184,7 @@ internal ImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/LogAnalyticsOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/LogAnalyticsOperations.cs index 9bf47eb41599f..0246ea672b270 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/LogAnalyticsOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/LogAnalyticsOperations.cs @@ -152,7 +152,7 @@ internal LogAnalyticsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -363,7 +363,7 @@ internal LogAnalyticsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-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/Operations.cs b/src/SDKs/Compute/Management.Compute/Generated/Operations.cs index 1e22ea9fcce71..8c2104e84ef84 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/Operations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/Operations.cs @@ -70,7 +70,7 @@ internal Operations(ComputeManagementClient client) /// public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/SdkInfo_ComputeManagementClient.cs b/src/SDKs/Compute/Management.Compute/Generated/SdkInfo_ComputeManagementClient.cs index e50396ce87661..3a5c9fd065eb7 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/SdkInfo_ComputeManagementClient.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/SdkInfo_ComputeManagementClient.cs @@ -19,27 +19,27 @@ public static IEnumerable> ApiInfo_ComputeManageme { return new Tuple[] { - new Tuple("Compute", "AvailabilitySets", "2018-10-01"), + 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", "Images", "2018-10-01"), - new Tuple("Compute", "LogAnalytics", "2018-10-01"), - new Tuple("Compute", "Operations", "2018-10-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"), new Tuple("Compute", "ResourceSkus", "2017-09-01"), new Tuple("Compute", "Snapshots", "2018-09-30"), - new Tuple("Compute", "Usage", "2018-10-01"), - new Tuple("Compute", "VirtualMachineExtensionImages", "2018-10-01"), - new Tuple("Compute", "VirtualMachineExtensions", "2018-10-01"), - new Tuple("Compute", "VirtualMachineImages", "2018-10-01"), - new Tuple("Compute", "VirtualMachineRunCommands", "2018-10-01"), - new Tuple("Compute", "VirtualMachineScaleSetExtensions", "2018-10-01"), - new Tuple("Compute", "VirtualMachineScaleSetRollingUpgrades", "2018-10-01"), - new Tuple("Compute", "VirtualMachineScaleSetVMs", "2018-10-01"), - new Tuple("Compute", "VirtualMachineScaleSets", "2018-10-01"), - new Tuple("Compute", "VirtualMachineSizes", "2018-10-01"), - new Tuple("Compute", "VirtualMachines", "2018-10-01"), + new Tuple("Compute", "Usage", "2019-03-01"), + new Tuple("Compute", "VirtualMachineExtensionImages", "2019-03-01"), + new Tuple("Compute", "VirtualMachineExtensions", "2019-03-01"), + new Tuple("Compute", "VirtualMachineImages", "2019-03-01"), + new Tuple("Compute", "VirtualMachineRunCommands", "2019-03-01"), + new Tuple("Compute", "VirtualMachineScaleSetExtensions", "2019-03-01"), + new Tuple("Compute", "VirtualMachineScaleSetRollingUpgrades", "2019-03-01"), + new Tuple("Compute", "VirtualMachineScaleSetVMs", "2019-03-01"), + new Tuple("Compute", "VirtualMachineScaleSets", "2019-03-01"), + new Tuple("Compute", "VirtualMachineSizes", "2019-03-01"), + new Tuple("Compute", "VirtualMachines", "2019-03-01"), new Tuple("ContainerService", "ContainerServices", "2017-01-31"), }.AsEnumerable(); } diff --git a/src/SDKs/Compute/Management.Compute/Generated/UsageOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/UsageOperations.cs index 29d849fb4e74d..3d7e35cec396d 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/UsageOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/UsageOperations.cs @@ -96,7 +96,7 @@ internal UsageOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineExtensionImagesOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineExtensionImagesOperations.cs index 23f69a8d3ab44..fc0ed6255f6b2 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineExtensionImagesOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineExtensionImagesOperations.cs @@ -106,7 +106,7 @@ internal VirtualMachineExtensionImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -303,7 +303,7 @@ internal VirtualMachineExtensionImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -505,7 +505,7 @@ internal VirtualMachineExtensionImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineExtensionsOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineExtensionsOperations.cs index 8573d2ff12694..10f1939ddc35f 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineExtensionsOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineExtensionsOperations.cs @@ -186,7 +186,7 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -390,7 +390,7 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -608,7 +608,7 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -843,7 +843,7 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1050,7 +1050,7 @@ internal VirtualMachineExtensionsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineImagesOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineImagesOperations.cs index cccb49d3ecd74..d6eee87d187e3 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineImagesOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineImagesOperations.cs @@ -116,7 +116,7 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -334,7 +334,7 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -542,7 +542,7 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -730,7 +730,7 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -930,7 +930,7 @@ internal VirtualMachineImagesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineRunCommandsOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineRunCommandsOperations.cs index 6c4aa38680631..1682e6d4c7816 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineRunCommandsOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineRunCommandsOperations.cs @@ -94,7 +94,7 @@ internal VirtualMachineRunCommandsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -293,7 +293,7 @@ internal VirtualMachineRunCommandsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetExtensionsOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetExtensionsOperations.cs index da9458fc58072..ff3808f9f32a8 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetExtensionsOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetExtensionsOperations.cs @@ -158,7 +158,7 @@ internal VirtualMachineScaleSetExtensionsOperations(ComputeManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -359,7 +359,7 @@ internal VirtualMachineScaleSetExtensionsOperations(ComputeManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -568,7 +568,7 @@ internal VirtualMachineScaleSetExtensionsOperations(ComputeManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -793,7 +793,7 @@ internal VirtualMachineScaleSetExtensionsOperations(ComputeManagementClient clie { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetRollingUpgradesOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetRollingUpgradesOperations.cs index aad836d819dda..76e51e7170b37 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetRollingUpgradesOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetRollingUpgradesOperations.cs @@ -164,7 +164,7 @@ internal VirtualMachineScaleSetRollingUpgradesOperations(ComputeManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -355,7 +355,7 @@ internal VirtualMachineScaleSetRollingUpgradesOperations(ComputeManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -530,7 +530,7 @@ internal VirtualMachineScaleSetRollingUpgradesOperations(ComputeManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -705,7 +705,7 @@ internal VirtualMachineScaleSetRollingUpgradesOperations(ComputeManagementClient { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetVMsOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetVMsOperations.cs index 127ae5957caf8..1a9c679159d74 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetVMsOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetVMsOperations.cs @@ -239,7 +239,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -442,7 +442,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -644,7 +644,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -822,16 +822,21 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) /// /// The instance ID of the virtual machine. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// The headers that will be added to request. /// /// /// The cancellation token. /// - public async Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, bool? skipShutdown = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginPowerOffWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceId, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginPowerOffWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceId, skipShutdown, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -1015,7 +1020,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput = default(VirtualMachineScaleSetVMReimageParameters); if (tempDisk != null) { @@ -1211,7 +1216,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1396,7 +1401,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1593,7 +1598,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1818,7 +1823,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1966,6 +1971,11 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) /// /// The instance ID of the virtual machine. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// Headers that will be added to request. /// @@ -1984,7 +1994,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, bool? skipShutdown = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2002,7 +2012,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2013,6 +2023,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("vmScaleSetName", vmScaleSetName); tracingParameters.Add("instanceId", instanceId); + tracingParameters.Add("skipShutdown", skipShutdown); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginPowerOff", tracingParameters); @@ -2025,6 +2036,10 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); + if (skipShutdown != null) + { + _queryParameters.Add(string.Format("skipShutdown={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skipShutdown, Client.SerializationSettings).Trim('"')))); + } if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); @@ -2184,7 +2199,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2366,7 +2381,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2548,7 +2563,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2730,7 +2745,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2926,7 +2941,7 @@ internal VirtualMachineScaleSetVMsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetVMsOperationsExtensions.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetVMsOperationsExtensions.cs index 269109b0b3fa1..6604fac87046a 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetVMsOperationsExtensions.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetVMsOperationsExtensions.cs @@ -425,9 +425,14 @@ public static VirtualMachineScaleSetVMInstanceView GetInstanceView(this IVirtual /// /// The instance ID of the virtual machine. /// - public static void PowerOff(this IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId) + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// + public static void PowerOff(this IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, bool? skipShutdown = false) { - operations.PowerOffAsync(resourceGroupName, vmScaleSetName, instanceId).GetAwaiter().GetResult(); + operations.PowerOffAsync(resourceGroupName, vmScaleSetName, instanceId, skipShutdown).GetAwaiter().GetResult(); } /// @@ -447,12 +452,17 @@ public static void PowerOff(this IVirtualMachineScaleSetVMsOperations operations /// /// The instance ID of the virtual machine. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// The cancellation token. /// - public static async Task PowerOffAsync(this IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PowerOffAsync(this IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, bool? skipShutdown = false, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.PowerOffWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.PowerOffWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceId, skipShutdown, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -938,9 +948,14 @@ public static void BeginDelete(this IVirtualMachineScaleSetVMsOperations operati /// /// The instance ID of the virtual machine. /// - public static void BeginPowerOff(this IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId) + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// + public static void BeginPowerOff(this IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, bool? skipShutdown = false) { - operations.BeginPowerOffAsync(resourceGroupName, vmScaleSetName, instanceId).GetAwaiter().GetResult(); + operations.BeginPowerOffAsync(resourceGroupName, vmScaleSetName, instanceId, skipShutdown).GetAwaiter().GetResult(); } /// @@ -960,12 +975,17 @@ public static void BeginPowerOff(this IVirtualMachineScaleSetVMsOperations opera /// /// The instance ID of the virtual machine. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// The cancellation token. /// - public static async Task BeginPowerOffAsync(this IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginPowerOffAsync(this IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, bool? skipShutdown = false, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginPowerOffWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginPowerOffWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceId, skipShutdown, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetsOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetsOperations.cs index 294aea34c4314..be2ff2c3f975b 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetsOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetsOperations.cs @@ -166,7 +166,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -414,7 +414,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -601,7 +601,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -782,7 +782,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -973,7 +973,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1167,7 +1167,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1328,6 +1328,11 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) /// /// The name of the VM scale set. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// The virtual machine scale set instance ids. Omitting the virtual machine /// scale set instance ids will result in the operation being performed on all @@ -1339,10 +1344,10 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) /// /// The cancellation token. /// - public async Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, IList instanceIds = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, bool? skipShutdown = false, IList instanceIds = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginPowerOffWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceIds, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginPowerOffWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, skipShutdown, instanceIds, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -1586,7 +1591,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1793,7 +1798,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2019,7 +2024,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2217,7 +2222,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2397,7 +2402,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -2590,7 +2595,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "instanceIds"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceRequiredIDs(); if (instanceIds != null) { @@ -2745,6 +2750,11 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) /// /// The name of the VM scale set. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// The virtual machine scale set instance ids. Omitting the virtual machine /// scale set instance ids will result in the operation being performed on all @@ -2768,7 +2778,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, IList instanceIds = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, bool? skipShutdown = false, IList instanceIds = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2782,7 +2792,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -2798,6 +2808,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("vmScaleSetName", vmScaleSetName); + tracingParameters.Add("skipShutdown", skipShutdown); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("vmInstanceIDs", vmInstanceIDs); tracingParameters.Add("cancellationToken", cancellationToken); @@ -2810,6 +2821,10 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) _url = _url.Replace("{vmScaleSetName}", System.Uri.EscapeDataString(vmScaleSetName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); + if (skipShutdown != null) + { + _queryParameters.Add(string.Format("skipShutdown={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skipShutdown, Client.SerializationSettings).Trim('"')))); + } if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); @@ -2973,7 +2988,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -3164,7 +3179,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -3355,7 +3370,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -3549,7 +3564,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { @@ -3743,7 +3758,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "instanceIds"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; VirtualMachineScaleSetVMInstanceRequiredIDs vmInstanceIDs = new VirtualMachineScaleSetVMInstanceRequiredIDs(); if (instanceIds != null) { @@ -3933,7 +3948,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -4119,7 +4134,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs = default(VirtualMachineScaleSetVMInstanceIDs); if (instanceIds != null) { diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetsOperationsExtensions.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetsOperationsExtensions.cs index d4857edd71a82..9553a96ae5506 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetsOperationsExtensions.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineScaleSetsOperationsExtensions.cs @@ -490,14 +490,19 @@ public static IPage GetOSUpgradeHistory(th /// /// The name of the VM scale set. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// The virtual machine scale set instance ids. Omitting the virtual machine /// scale set instance ids will result in the operation being performed on all /// virtual machines in the virtual machine scale set. /// - public static void PowerOff(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, IList instanceIds = default(IList)) + public static void PowerOff(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, bool? skipShutdown = false, IList instanceIds = default(IList)) { - operations.PowerOffAsync(resourceGroupName, vmScaleSetName, instanceIds).GetAwaiter().GetResult(); + operations.PowerOffAsync(resourceGroupName, vmScaleSetName, skipShutdown, instanceIds).GetAwaiter().GetResult(); } /// @@ -514,6 +519,11 @@ public static IPage GetOSUpgradeHistory(th /// /// The name of the VM scale set. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// The virtual machine scale set instance ids. Omitting the virtual machine /// scale set instance ids will result in the operation being performed on all @@ -522,9 +532,9 @@ public static IPage GetOSUpgradeHistory(th /// /// The cancellation token. /// - public static async Task PowerOffAsync(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, IList instanceIds = default(IList), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PowerOffAsync(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, bool? skipShutdown = false, IList instanceIds = default(IList), CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.PowerOffWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceIds, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.PowerOffWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, skipShutdown, instanceIds, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -1147,14 +1157,19 @@ public static void BeginDeleteInstances(this IVirtualMachineScaleSetsOperations /// /// The name of the VM scale set. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// The virtual machine scale set instance ids. Omitting the virtual machine /// scale set instance ids will result in the operation being performed on all /// virtual machines in the virtual machine scale set. /// - public static void BeginPowerOff(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, IList instanceIds = default(IList)) + public static void BeginPowerOff(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, bool? skipShutdown = false, IList instanceIds = default(IList)) { - operations.BeginPowerOffAsync(resourceGroupName, vmScaleSetName, instanceIds).GetAwaiter().GetResult(); + operations.BeginPowerOffAsync(resourceGroupName, vmScaleSetName, skipShutdown, instanceIds).GetAwaiter().GetResult(); } /// @@ -1171,6 +1186,11 @@ public static void BeginDeleteInstances(this IVirtualMachineScaleSetsOperations /// /// The name of the VM scale set. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// The virtual machine scale set instance ids. Omitting the virtual machine /// scale set instance ids will result in the operation being performed on all @@ -1179,9 +1199,9 @@ public static void BeginDeleteInstances(this IVirtualMachineScaleSetsOperations /// /// The cancellation token. /// - public static async Task BeginPowerOffAsync(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, IList instanceIds = default(IList), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginPowerOffAsync(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, bool? skipShutdown = false, IList instanceIds = default(IList), CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginPowerOffWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, instanceIds, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginPowerOffWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, skipShutdown, instanceIds, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineSizesOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineSizesOperations.cs index 957f9a4a4293e..5b007710dc793 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineSizesOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachineSizesOperations.cs @@ -95,7 +95,7 @@ internal VirtualMachineSizesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachinesOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachinesOperations.cs index 9019e423ac240..27d34e95669e1 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachinesOperations.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachinesOperations.cs @@ -95,7 +95,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -390,7 +390,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -589,7 +589,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -826,7 +826,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -996,7 +996,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1175,7 +1175,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1366,7 +1366,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1527,16 +1527,21 @@ internal VirtualMachinesOperations(ComputeManagementClient client) /// /// The name of the virtual machine. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// The headers that will be added to request. /// /// /// The cancellation token. /// - public async Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task PowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, bool? skipShutdown = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginPowerOffWithHttpMessagesAsync(resourceGroupName, vmName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginPowerOffWithHttpMessagesAsync(resourceGroupName, vmName, skipShutdown, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -1735,7 +1740,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1947,7 +1952,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2173,7 +2178,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2389,7 +2394,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2563,7 +2568,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2737,7 +2742,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2880,6 +2885,11 @@ internal VirtualMachinesOperations(ComputeManagementClient client) /// /// The name of the virtual machine. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// Headers that will be added to request. /// @@ -2898,7 +2908,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginPowerOffWithHttpMessagesAsync(string resourceGroupName, string vmName, bool? skipShutdown = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2912,7 +2922,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2922,6 +2932,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("vmName", vmName); + tracingParameters.Add("skipShutdown", skipShutdown); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginPowerOff", tracingParameters); @@ -2933,6 +2944,10 @@ internal VirtualMachinesOperations(ComputeManagementClient client) _url = _url.Replace("{vmName}", System.Uri.EscapeDataString(vmName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); + if (skipShutdown != null) + { + _queryParameters.Add(string.Format("skipShutdown={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skipShutdown, Client.SerializationSettings).Trim('"')))); + } if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); @@ -3085,7 +3100,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3258,7 +3273,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3431,7 +3446,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3608,7 +3623,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; VirtualMachineReimageParameters parameters = default(VirtualMachineReimageParameters); if (tempDisk != null) { @@ -3794,7 +3809,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3981,7 +3996,7 @@ internal VirtualMachinesOperations(ComputeManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2018-10-01"; + string apiVersion = "2019-03-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachinesOperationsExtensions.cs b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachinesOperationsExtensions.cs index d278b56842fb0..6653228434166 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/VirtualMachinesOperationsExtensions.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/VirtualMachinesOperationsExtensions.cs @@ -563,9 +563,14 @@ public static IEnumerable ListAvailableSizes(this IVirtualMa /// /// The name of the virtual machine. /// - public static void PowerOff(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName) + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// + public static void PowerOff(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName, bool? skipShutdown = false) { - operations.PowerOffAsync(resourceGroupName, vmName).GetAwaiter().GetResult(); + operations.PowerOffAsync(resourceGroupName, vmName, skipShutdown).GetAwaiter().GetResult(); } /// @@ -582,12 +587,17 @@ public static void PowerOff(this IVirtualMachinesOperations operations, string r /// /// The name of the virtual machine. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// The cancellation token. /// - public static async Task PowerOffAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PowerOffAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName, bool? skipShutdown = false, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.PowerOffWithHttpMessagesAsync(resourceGroupName, vmName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.PowerOffWithHttpMessagesAsync(resourceGroupName, vmName, skipShutdown, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -1098,9 +1108,14 @@ public static void BeginDeallocate(this IVirtualMachinesOperations operations, s /// /// The name of the virtual machine. /// - public static void BeginPowerOff(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName) + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// + public static void BeginPowerOff(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName, bool? skipShutdown = false) { - operations.BeginPowerOffAsync(resourceGroupName, vmName).GetAwaiter().GetResult(); + operations.BeginPowerOffAsync(resourceGroupName, vmName, skipShutdown).GetAwaiter().GetResult(); } /// @@ -1117,12 +1132,17 @@ public static void BeginPowerOff(this IVirtualMachinesOperations operations, str /// /// The name of the virtual machine. /// + /// + /// The parameter to request non-graceful VM shutdown. True value for this flag + /// indicates non-graceful shutdown whereas false indicates otherwise. Default + /// value for this flag is false if not specified + /// /// /// The cancellation token. /// - public static async Task BeginPowerOffAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginPowerOffAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName, bool? skipShutdown = false, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginPowerOffWithHttpMessagesAsync(resourceGroupName, vmName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginPowerOffWithHttpMessagesAsync(resourceGroupName, vmName, skipShutdown, null, cancellationToken).ConfigureAwait(false)).Dispose(); } ///