From e1b1e800e529336e646ae84350fa0d57e81b4931 Mon Sep 17 00:00:00 2001
From: adxsdknet <39844661+adxsdknet@users.noreply.github.com>
Date: Mon, 22 Apr 2019 10:34:16 -0700
Subject: [PATCH] .NET SDK Resource Provider:'Compute' (#5859)
REST Spec PR 'https://github.com/Azure/azure-rest-api-specs/pull/5692'
REST Spec PR Author 'hyonholee'
REST Spec PR Last commit
---
src/SDKs/Compute/AzSdk.RP.props | 2 +-
.../Generated/AvailabilitySetsOperations.cs | 14 +-
.../Generated/GalleriesOperations.cs | 10 +-
.../GalleryImageVersionsOperations.cs | 8 +-
.../Generated/GalleryImagesOperations.cs | 8 +-
.../IVirtualMachineScaleSetVMsOperations.cs | 14 +-
.../IVirtualMachineScaleSetsOperations.cs | 44 +++-
.../Generated/IVirtualMachinesOperations.cs | 14 +-
.../Generated/ImagesOperations.cs | 12 +-
.../Generated/LogAnalyticsOperations.cs | 4 +-
.../GalleryImageVersionPublishingProfile.cs | 14 +-
.../Generated/Models/StorageAccountType.cs | 22 ++
.../Generated/Models/TargetRegion.cs | 14 +-
...leSetConvertToSinglePlacementGroupInput.cs | 58 ++++
.../Models/VirtualMachineScaleSet.cs | 17 +-
.../Models/VirtualMachineScaleSetVM.cs | 34 ++-
...neScaleSetVMNetworkProfileConfiguration.cs | 56 ++++
...irtualMachineScaleSetVMProtectionPolicy.cs | 69 +++++
.../Generated/Operations.cs | 2 +-
.../ProximityPlacementGroupsOperations.cs | 12 +-
.../SdkInfo_ComputeManagementClient.cs | 38 +--
.../Generated/UsageOperations.cs | 2 +-
...VirtualMachineExtensionImagesOperations.cs | 6 +-
.../VirtualMachineExtensionsOperations.cs | 10 +-
.../VirtualMachineImagesOperations.cs | 10 +-
.../VirtualMachineRunCommandsOperations.cs | 4 +-
...tualMachineScaleSetExtensionsOperations.cs | 8 +-
...achineScaleSetRollingUpgradesOperations.cs | 8 +-
.../VirtualMachineScaleSetVMsOperations.cs | 49 ++--
...lMachineScaleSetVMsOperationsExtensions.cs | 36 ++-
.../VirtualMachineScaleSetsOperations.cs | 247 ++++++++++++++++--
...ualMachineScaleSetsOperationsExtensions.cs | 87 +++++-
.../VirtualMachineSizesOperations.cs | 2 +-
.../Generated/VirtualMachinesOperations.cs | 61 +++--
.../VirtualMachinesOperationsExtensions.cs | 36 ++-
35 files changed, 855 insertions(+), 177 deletions(-)
create mode 100644 src/SDKs/Compute/Management.Compute/Generated/Models/StorageAccountType.cs
create mode 100644 src/SDKs/Compute/Management.Compute/Generated/Models/VMScaleSetConvertToSinglePlacementGroupInput.cs
create mode 100644 src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSetVMNetworkProfileConfiguration.cs
create mode 100644 src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSetVMProtectionPolicy.cs
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..c61901d52d013 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.
///
@@ -557,6 +562,36 @@ public partial interface IVirtualMachineScaleSetsOperations
///
Task> ForceRecoveryServiceFabricPlatformUpdateDomainWalkWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, int platformUpdateDomain, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Converts SinglePlacementGroup property to false for a existing
+ /// virtual machine scale set.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the virtual machine scale set to create or update.
+ ///
+ ///
+ /// Id of the placement group in which you want future virtual machine
+ /// instances to be placed. To query placement group Id, please use
+ /// Virtual Machine Scale Set VMs - Get API. If not provided, the
+ /// platform will choose one with maximum number of virtual machine
+ /// instances.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task ConvertToSinglePlacementGroupWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string activePlacementGroupId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Create or update a VM scale set.
///
///
@@ -701,6 +736,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 +758,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/VMScaleSetConvertToSinglePlacementGroupInput.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/VMScaleSetConvertToSinglePlacementGroupInput.cs
new file mode 100644
index 0000000000000..b2955a8cb32da
--- /dev/null
+++ b/src/SDKs/Compute/Management.Compute/Generated/Models/VMScaleSetConvertToSinglePlacementGroupInput.cs
@@ -0,0 +1,58 @@
+//
+// 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;
+
+ public partial class VMScaleSetConvertToSinglePlacementGroupInput
+ {
+ ///
+ /// Initializes a new instance of the
+ /// VMScaleSetConvertToSinglePlacementGroupInput class.
+ ///
+ public VMScaleSetConvertToSinglePlacementGroupInput()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// VMScaleSetConvertToSinglePlacementGroupInput class.
+ ///
+ /// Id of the placement group in
+ /// which you want future virtual machine instances to be placed. To
+ /// query placement group Id, please use Virtual Machine Scale Set VMs
+ /// - Get API. If not provided, the platform will choose one with
+ /// maximum number of virtual machine instances.
+ public VMScaleSetConvertToSinglePlacementGroupInput(string activePlacementGroupId = default(string))
+ {
+ ActivePlacementGroupId = activePlacementGroupId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets id of the placement group in which you want future
+ /// virtual machine instances to be placed. To query placement group
+ /// Id, please use Virtual Machine Scale Set VMs - Get API. If not
+ /// provided, the platform will choose one with maximum number of
+ /// virtual machine instances.
+ ///
+ [JsonProperty(PropertyName = "activePlacementGroupId")]
+ public string ActivePlacementGroupId { get; set; }
+
+ }
+}
diff --git a/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSet.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSet.cs
index 7a1550e99da68..8933ac0dc5a3f 100644
--- a/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSet.cs
+++ b/src/SDKs/Compute/Management.Compute/Generated/Models/VirtualMachineScaleSet.cs
@@ -54,6 +54,11 @@ public VirtualMachineScaleSet()
/// appears in the response.
/// Specifies whether the Virtual Machine
/// Scale Set should be overprovisioned.
+ /// When
+ /// Overprovision is enabled, extensions are launched only on the
+ /// requested number of VMs which are finally kept. This property will
+ /// hence ensure that the extensions do not run on the extra
+ /// overprovisioned VMs.
/// Specifies the ID which uniquely identifies a
/// Virtual Machine Scale Set.
/// When true this limits the scale
@@ -71,7 +76,7 @@ public VirtualMachineScaleSet()
/// The identity of the virtual machine scale
/// set, if configured.
/// The virtual machine scale set zones.
- public VirtualMachineScaleSet(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), Plan plan = default(Plan), UpgradePolicy upgradePolicy = default(UpgradePolicy), VirtualMachineScaleSetVMProfile virtualMachineProfile = default(VirtualMachineScaleSetVMProfile), string provisioningState = default(string), bool? overprovision = default(bool?), string uniqueId = default(string), bool? singlePlacementGroup = default(bool?), bool? zoneBalance = default(bool?), int? platformFaultDomainCount = default(int?), SubResource proximityPlacementGroup = default(SubResource), VirtualMachineScaleSetIdentity identity = default(VirtualMachineScaleSetIdentity), IList zones = default(IList))
+ public VirtualMachineScaleSet(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), Plan plan = default(Plan), UpgradePolicy upgradePolicy = default(UpgradePolicy), VirtualMachineScaleSetVMProfile virtualMachineProfile = default(VirtualMachineScaleSetVMProfile), string provisioningState = default(string), bool? overprovision = default(bool?), bool? doNotRunExtensionsOnOverprovisionedVMs = default(bool?), string uniqueId = default(string), bool? singlePlacementGroup = default(bool?), bool? zoneBalance = default(bool?), int? platformFaultDomainCount = default(int?), SubResource proximityPlacementGroup = default(SubResource), VirtualMachineScaleSetIdentity identity = default(VirtualMachineScaleSetIdentity), IList zones = default(IList))
: base(location, id, name, type, tags)
{
Sku = sku;
@@ -80,6 +85,7 @@ public VirtualMachineScaleSet()
VirtualMachineProfile = virtualMachineProfile;
ProvisioningState = provisioningState;
Overprovision = overprovision;
+ DoNotRunExtensionsOnOverprovisionedVMs = doNotRunExtensionsOnOverprovisionedVMs;
UniqueId = uniqueId;
SinglePlacementGroup = singlePlacementGroup;
ZoneBalance = zoneBalance;
@@ -138,6 +144,15 @@ public VirtualMachineScaleSet()
[JsonProperty(PropertyName = "properties.overprovision")]
public bool? Overprovision { get; set; }
+ ///
+ /// Gets or sets when Overprovision is enabled, extensions are launched
+ /// only on the requested number of VMs which are finally kept. This
+ /// property will hence ensure that the extensions do not run on the
+ /// extra overprovisioned VMs.
+ ///
+ [JsonProperty(PropertyName = "properties.doNotRunExtensionsOnOverprovisionedVMs")]
+ public bool? DoNotRunExtensionsOnOverprovisionedVMs { get; set; }
+
///
/// Gets specifies the ID which uniquely identifies a Virtual Machine
/// Scale Set.
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.
/// <br><br>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/ProximityPlacementGroupsOperations.cs b/src/SDKs/Compute/Management.Compute/Generated/ProximityPlacementGroupsOperations.cs
index 1b45dc6dd70e7..452293b8d2b72 100644
--- a/src/SDKs/Compute/Management.Compute/Generated/ProximityPlacementGroupsOperations.cs
+++ b/src/SDKs/Compute/Management.Compute/Generated/ProximityPlacementGroupsOperations.cs
@@ -105,7 +105,7 @@ internal ProximityPlacementGroupsOperations(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;
@@ -327,7 +327,7 @@ internal ProximityPlacementGroupsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-10-01";
+ string apiVersion = "2019-03-01";
ProximityPlacementGroupUpdate parameters = new ProximityPlacementGroupUpdate();
if (tags != null)
{
@@ -530,7 +530,7 @@ internal ProximityPlacementGroupsOperations(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;
@@ -706,7 +706,7 @@ internal ProximityPlacementGroupsOperations(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;
@@ -886,7 +886,7 @@ internal ProximityPlacementGroupsOperations(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;
@@ -1069,7 +1069,7 @@ internal ProximityPlacementGroupsOperations(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/SdkInfo_ComputeManagementClient.cs b/src/SDKs/Compute/Management.Compute/Generated/SdkInfo_ComputeManagementClient.cs
index 67f2233ea328e..35a56379d8c0f 100644
--- a/src/SDKs/Compute/Management.Compute/Generated/SdkInfo_ComputeManagementClient.cs
+++ b/src/SDKs/Compute/Management.Compute/Generated/SdkInfo_ComputeManagementClient.cs
@@ -19,28 +19,28 @@ 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", "ProximityPlacementGroups", "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", "ProximityPlacementGroups", "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..9daa856644438 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;
@@ -1738,6 +1743,192 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client)
return _result;
}
+ ///
+ /// Converts SinglePlacementGroup property to false for a existing virtual
+ /// machine scale set.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the virtual machine scale set to create or update.
+ ///
+ ///
+ /// Id of the placement group in which you want future virtual machine
+ /// instances to be placed. To query placement group Id, please use Virtual
+ /// Machine Scale Set VMs - Get API. If not provided, the platform will choose
+ /// one with maximum number of virtual machine instances.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task ConvertToSinglePlacementGroupWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string activePlacementGroupId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (vmScaleSetName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "vmScaleSetName");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ VMScaleSetConvertToSinglePlacementGroupInput parameters = new VMScaleSetConvertToSinglePlacementGroupInput();
+ if (activePlacementGroupId != null)
+ {
+ parameters.ActivePlacementGroupId = activePlacementGroupId;
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("vmScaleSetName", vmScaleSetName);
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ConvertToSinglePlacementGroup", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{vmScaleSetName}", System.Uri.EscapeDataString(vmScaleSetName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Create or update a VM scale set.
///
@@ -1793,7 +1984,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 +2210,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 +2408,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 +2588,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 +2781,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 +2936,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 +2964,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 +2978,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 +2994,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 +3007,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 +3174,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 +3365,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 +3556,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 +3750,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 +3944,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 +4134,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 +4320,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..c4abaf6c2cace 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();
}
///
@@ -910,6 +920,57 @@ public static RecoveryWalkResponse ForceRecoveryServiceFabricPlatformUpdateDomai
}
}
+ ///
+ /// Converts SinglePlacementGroup property to false for a existing virtual
+ /// machine scale set.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the virtual machine scale set to create or update.
+ ///
+ ///
+ /// Id of the placement group in which you want future virtual machine
+ /// instances to be placed. To query placement group Id, please use Virtual
+ /// Machine Scale Set VMs - Get API. If not provided, the platform will choose
+ /// one with maximum number of virtual machine instances.
+ ///
+ public static void ConvertToSinglePlacementGroup(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, string activePlacementGroupId = default(string))
+ {
+ operations.ConvertToSinglePlacementGroupAsync(resourceGroupName, vmScaleSetName, activePlacementGroupId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Converts SinglePlacementGroup property to false for a existing virtual
+ /// machine scale set.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the virtual machine scale set to create or update.
+ ///
+ ///
+ /// Id of the placement group in which you want future virtual machine
+ /// instances to be placed. To query placement group Id, please use Virtual
+ /// Machine Scale Set VMs - Get API. If not provided, the platform will choose
+ /// one with maximum number of virtual machine instances.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ConvertToSinglePlacementGroupAsync(this IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, string activePlacementGroupId = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.ConvertToSinglePlacementGroupWithHttpMessagesAsync(resourceGroupName, vmScaleSetName, activePlacementGroupId, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
///
/// Create or update a VM scale set.
///
@@ -1147,14 +1208,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 +1237,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 +1250,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();
}
///