diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperations.cs
index a68b33a6ee12d..2e6f150efafc5 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/AvailabilitySetsOperations.cs
@@ -105,7 +105,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-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 = "2020-12-01";
+ string apiVersion = "2021-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 = "2020-12-01";
+ string apiVersion = "2021-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 = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -871,7 +871,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1059,7 +1059,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1252,7 +1252,7 @@ internal AvailabilitySetsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CloudServiceRoleInstancesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CloudServiceRoleInstancesOperations.cs
index 2d80b05adee46..2175aa8880972 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CloudServiceRoleInstancesOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CloudServiceRoleInstancesOperations.cs
@@ -85,8 +85,9 @@ internal CloudServiceRoleInstancesOperations(ComputeManagementClient client)
///
///
///
- /// The expand expression to apply to the operation. Possible values include:
- /// 'instanceView'
+ /// The expand expression to apply to the operation. 'UserData' is not
+ /// supported for cloud services. Possible values include: 'instanceView',
+ /// 'userData'
///
///
/// Headers that will be added to request.
@@ -496,8 +497,9 @@ internal CloudServiceRoleInstancesOperations(ComputeManagementClient client)
///
///
///
- /// The expand expression to apply to the operation. Possible values include:
- /// 'instanceView'
+ /// The expand expression to apply to the operation. 'UserData' is not
+ /// supported for cloud services. Possible values include: 'instanceView',
+ /// 'userData'
///
///
/// Headers that will be added to request.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CloudServiceRoleInstancesOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CloudServiceRoleInstancesOperationsExtensions.cs
index b629a041cd9b8..0f5b5096eabda 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CloudServiceRoleInstancesOperationsExtensions.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CloudServiceRoleInstancesOperationsExtensions.cs
@@ -75,8 +75,9 @@ public static void Delete(this ICloudServiceRoleInstancesOperations operations,
///
///
///
- /// The expand expression to apply to the operation. Possible values include:
- /// 'instanceView'
+ /// The expand expression to apply to the operation. 'UserData' is not
+ /// supported for cloud services. Possible values include: 'instanceView',
+ /// 'userData'
///
public static RoleInstance Get(this ICloudServiceRoleInstancesOperations operations, string roleInstanceName, string resourceGroupName, string cloudServiceName, InstanceViewTypes? expand = default(InstanceViewTypes?))
{
@@ -97,8 +98,9 @@ public static void Delete(this ICloudServiceRoleInstancesOperations operations,
///
///
///
- /// The expand expression to apply to the operation. Possible values include:
- /// 'instanceView'
+ /// The expand expression to apply to the operation. 'UserData' is not
+ /// supported for cloud services. Possible values include: 'instanceView',
+ /// 'userData'
///
///
/// The cancellation token.
@@ -168,8 +170,9 @@ public static RoleInstanceInstanceView GetInstanceView(this ICloudServiceRoleIns
///
///
///
- /// The expand expression to apply to the operation. Possible values include:
- /// 'instanceView'
+ /// The expand expression to apply to the operation. 'UserData' is not
+ /// supported for cloud services. Possible values include: 'instanceView',
+ /// 'userData'
///
public static IPage List(this ICloudServiceRoleInstancesOperations operations, string resourceGroupName, string cloudServiceName, InstanceViewTypes? expand = default(InstanceViewTypes?))
{
@@ -189,8 +192,9 @@ public static RoleInstanceInstanceView GetInstanceView(this ICloudServiceRoleIns
///
///
///
- /// The expand expression to apply to the operation. Possible values include:
- /// 'instanceView'
+ /// The expand expression to apply to the operation. 'UserData' is not
+ /// supported for cloud services. Possible values include: 'instanceView',
+ /// 'userData'
///
///
/// The cancellation token.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ComputeManagementClient.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ComputeManagementClient.cs
index 0fe2006444c9b..ba7fe15ecf4cf 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ComputeManagementClient.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ComputeManagementClient.cs
@@ -146,6 +146,16 @@ public partial class ComputeManagementClient : ServiceClient
public virtual IImagesOperations Images { get; private set; }
+ ///
+ /// Gets the IRestorePointCollectionsOperations.
+ ///
+ public virtual IRestorePointCollectionsOperations RestorePointCollections { get; private set; }
+
+ ///
+ /// Gets the IRestorePointsOperations.
+ ///
+ public virtual IRestorePointsOperations RestorePoints { get; private set; }
+
///
/// Gets the IVirtualMachineScaleSetExtensionsOperations.
///
@@ -537,6 +547,8 @@ private void Initialize()
VirtualMachineScaleSets = new VirtualMachineScaleSetsOperations(this);
VirtualMachineSizes = new VirtualMachineSizesOperations(this);
Images = new ImagesOperations(this);
+ RestorePointCollections = new RestorePointCollectionsOperations(this);
+ RestorePoints = new RestorePointsOperations(this);
VirtualMachineScaleSetExtensions = new VirtualMachineScaleSetExtensionsOperations(this);
VirtualMachineScaleSetRollingUpgrades = new VirtualMachineScaleSetRollingUpgradesOperations(this);
VirtualMachineScaleSetVMExtensions = new VirtualMachineScaleSetVMExtensionsOperations(this);
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperations.cs
index 076bab87a29d3..9bd41d6360069 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperations.cs
@@ -107,7 +107,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -333,7 +333,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -531,7 +531,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -673,9 +673,10 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
/// The name of the dedicated host group.
///
///
- /// The expand expression to apply on the operation. The response shows the
- /// list of instance view of the dedicated hosts under the dedicated host
- /// group. Possible values include: 'instanceView'
+ /// The expand expression to apply on the operation. 'InstanceView' will
+ /// retrieve the list of instance views of the dedicated hosts under the
+ /// dedicated host group. 'UserData' is not supported for dedicated host group.
+ /// Possible values include: 'instanceView', 'userData'
///
///
/// Headers that will be added to request.
@@ -712,7 +713,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -906,7 +907,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1086,7 +1087,7 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperationsExtensions.cs
index d5f081ef95a34..1680f78d18801 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperationsExtensions.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperationsExtensions.cs
@@ -167,9 +167,10 @@ public static void Delete(this IDedicatedHostGroupsOperations operations, string
/// The name of the dedicated host group.
///
///
- /// The expand expression to apply on the operation. The response shows the
- /// list of instance view of the dedicated hosts under the dedicated host
- /// group. Possible values include: 'instanceView'
+ /// The expand expression to apply on the operation. 'InstanceView' will
+ /// retrieve the list of instance views of the dedicated hosts under the
+ /// dedicated host group. 'UserData' is not supported for dedicated host group.
+ /// Possible values include: 'instanceView', 'userData'
///
public static DedicatedHostGroup Get(this IDedicatedHostGroupsOperations operations, string resourceGroupName, string hostGroupName, InstanceViewTypes? expand = default(InstanceViewTypes?))
{
@@ -189,9 +190,10 @@ public static void Delete(this IDedicatedHostGroupsOperations operations, string
/// The name of the dedicated host group.
///
///
- /// The expand expression to apply on the operation. The response shows the
- /// list of instance view of the dedicated hosts under the dedicated host
- /// group. Possible values include: 'instanceView'
+ /// The expand expression to apply on the operation. 'InstanceView' will
+ /// retrieve the list of instance views of the dedicated hosts under the
+ /// dedicated host group. 'UserData' is not supported for dedicated host group.
+ /// Possible values include: 'instanceView', 'userData'
///
///
/// The cancellation token.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperations.cs
index 6bb551e9fc243..d7753cbc0128e 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperations.cs
@@ -144,8 +144,10 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
/// The name of the dedicated host.
///
///
- /// The expand expression to apply on the operation. Possible values include:
- /// 'instanceView'
+ /// The expand expression to apply on the operation. 'InstanceView' will
+ /// retrieve the list of instance views of the dedicated host. 'UserData' is
+ /// not supported for dedicated host. Possible values include: 'instanceView',
+ /// 'userData'
///
///
/// Headers that will be added to request.
@@ -186,7 +188,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -389,7 +391,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -601,7 +603,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -836,7 +838,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1043,7 +1045,7 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperationsExtensions.cs
index 4401399249d61..f2220b4a57820 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperationsExtensions.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperationsExtensions.cs
@@ -184,8 +184,10 @@ public static void Delete(this IDedicatedHostsOperations operations, string reso
/// The name of the dedicated host.
///
///
- /// The expand expression to apply on the operation. Possible values include:
- /// 'instanceView'
+ /// The expand expression to apply on the operation. 'InstanceView' will
+ /// retrieve the list of instance views of the dedicated host. 'UserData' is
+ /// not supported for dedicated host. Possible values include: 'instanceView',
+ /// 'userData'
///
public static DedicatedHost Get(this IDedicatedHostsOperations operations, string resourceGroupName, string hostGroupName, string hostName, InstanceViewTypes? expand = default(InstanceViewTypes?))
{
@@ -208,8 +210,10 @@ public static void Delete(this IDedicatedHostsOperations operations, string reso
/// The name of the dedicated host.
///
///
- /// The expand expression to apply on the operation. Possible values include:
- /// 'instanceView'
+ /// The expand expression to apply on the operation. 'InstanceView' will
+ /// retrieve the list of instance views of the dedicated host. 'UserData' is
+ /// not supported for dedicated host. Possible values include: 'instanceView',
+ /// 'userData'
///
///
/// The cancellation token.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ICloudServiceRoleInstancesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ICloudServiceRoleInstancesOperations.cs
index 5d97a04e5b07a..50b7b98a96667 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ICloudServiceRoleInstancesOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ICloudServiceRoleInstancesOperations.cs
@@ -58,8 +58,9 @@ public partial interface ICloudServiceRoleInstancesOperations
///
///
///
- /// The expand expression to apply to the operation. Possible values
- /// include: 'instanceView'
+ /// The expand expression to apply to the operation. 'UserData' is not
+ /// supported for cloud services. Possible values include:
+ /// 'instanceView', 'userData'
///
///
/// The headers that will be added to request.
@@ -115,8 +116,9 @@ public partial interface ICloudServiceRoleInstancesOperations
///
///
///
- /// The expand expression to apply to the operation. Possible values
- /// include: 'instanceView'
+ /// The expand expression to apply to the operation. 'UserData' is not
+ /// supported for cloud services. Possible values include:
+ /// 'instanceView', 'userData'
///
///
/// The headers that will be added to request.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IComputeManagementClient.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IComputeManagementClient.cs
index a2e8ad1bc4560..9b1fa8894a91e 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IComputeManagementClient.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IComputeManagementClient.cs
@@ -141,6 +141,16 @@ public partial interface IComputeManagementClient : System.IDisposable
///
IImagesOperations Images { get; }
+ ///
+ /// Gets the IRestorePointCollectionsOperations.
+ ///
+ IRestorePointCollectionsOperations RestorePointCollections { get; }
+
+ ///
+ /// Gets the IRestorePointsOperations.
+ ///
+ IRestorePointsOperations RestorePoints { get; }
+
///
/// Gets the IVirtualMachineScaleSetExtensionsOperations.
///
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostGroupsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostGroupsOperations.cs
index 85ad8f1a3d6fd..107ebc73dc6b7 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostGroupsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostGroupsOperations.cs
@@ -113,9 +113,11 @@ public partial interface IDedicatedHostGroupsOperations
/// The name of the dedicated host group.
///
///
- /// The expand expression to apply on the operation. The response shows
- /// the list of instance view of the dedicated hosts under the
- /// dedicated host group. Possible values include: 'instanceView'
+ /// The expand expression to apply on the operation. 'InstanceView'
+ /// will retrieve the list of instance views of the dedicated hosts
+ /// under the dedicated host group. 'UserData' is not supported for
+ /// dedicated host group. Possible values include: 'instanceView',
+ /// 'userData'
///
///
/// The headers that will be added to request.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostsOperations.cs
index abee8ad931350..3f21a00e6770c 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostsOperations.cs
@@ -123,8 +123,10 @@ public partial interface IDedicatedHostsOperations
/// The name of the dedicated host.
///
///
- /// The expand expression to apply on the operation. Possible values
- /// include: 'instanceView'
+ /// The expand expression to apply on the operation. 'InstanceView'
+ /// will retrieve the list of instance views of the dedicated host.
+ /// 'UserData' is not supported for dedicated host. Possible values
+ /// include: 'instanceView', 'userData'
///
///
/// The headers that will be added to request.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IRestorePointCollectionsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IRestorePointCollectionsOperations.cs
new file mode 100644
index 0000000000000..7bb5326a2735d
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IRestorePointCollectionsOperations.cs
@@ -0,0 +1,255 @@
+//
+// 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
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// RestorePointCollectionsOperations operations.
+ ///
+ public partial interface IRestorePointCollectionsOperations
+ {
+ ///
+ /// The operation to create or update the restore point collection.
+ /// Please refer to https://aka.ms/RestorePoints for more details. When
+ /// updating a restore point collection, only tags may be modified.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// Parameters supplied to the Create or Update restore point
+ /// collection operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, RestorePointCollection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// The operation to update the restore point collection.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// Parameters supplied to the Update restore point collection
+ /// operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, RestorePointCollectionUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// The operation to delete the restore point collection. This
+ /// operation will also delete all the contained restore points.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ ///
+ /// 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 DeleteWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// The operation to get the restore point collection.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The expand expression to apply on the operation. If
+ /// expand=restorePoints, server will return all contained restore
+ /// points in the restorePointCollection. Possible values include:
+ /// 'restorePoints'
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets the list of restore point collections in a resource group.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets the list of restore point collections in the subscription. Use
+ /// nextLink property in the response to get the next page of restore
+ /// point collections. Do this till nextLink is not null to fetch all
+ /// the restore point collections.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// The operation to delete the restore point collection. This
+ /// operation will also delete all the contained restore points.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ ///
+ /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets the list of restore point collections in a resource group.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets the list of restore point collections in the subscription. Use
+ /// nextLink property in the response to get the next page of restore
+ /// point collections. Do this till nextLink is not null to fetch all
+ /// the restore point collections.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListAllNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IRestorePointsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IRestorePointsOperations.cs
new file mode 100644
index 0000000000000..78ed5541933e6
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IRestorePointsOperations.cs
@@ -0,0 +1,173 @@
+//
+// 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
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// RestorePointsOperations operations.
+ ///
+ public partial interface IRestorePointsOperations
+ {
+ ///
+ /// The operation to create the restore point. Updating properties of
+ /// an existing restore point is not allowed
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// List of disk resource ids that the customer wishes to exclude from
+ /// the restore point. If no disks are specified, all disks will be
+ /// included.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, IList excludeDisks = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// The operation to delete the restore point.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// 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 DeleteWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// The operation to get the restore point.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// The operation to create the restore point. Updating properties of
+ /// an existing restore point is not allowed
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// List of disk resource ids that the customer wishes to exclude from
+ /// the restore point. If no disks are specified, all disks will be
+ /// included.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, IList excludeDisks = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// The operation to delete the restore point.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetVMsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetVMsOperations.cs
index 7d01ea2808edb..1cdf2919c3e34 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetVMsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetVMsOperations.cs
@@ -185,8 +185,10 @@ public partial interface IVirtualMachineScaleSetVMsOperations
/// The instance ID of the virtual machine.
///
///
- /// The expand expression to apply on the operation. Possible values
- /// include: 'instanceView'
+ /// The expand expression to apply on the operation. 'InstanceView'
+ /// will retrieve the instance view of the virtual machine. 'UserData'
+ /// will retrieve the UserData of the virtual machine. Possible values
+ /// include: 'instanceView', 'userData'
///
///
/// The headers that will be added to request.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetsOperations.cs
index 6af7aab40f00f..3f374cc248d5e 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetsOperations.cs
@@ -138,6 +138,12 @@ public partial interface IVirtualMachineScaleSetsOperations
///
/// The name of the VM scale set.
///
+ ///
+ /// The expand expression to apply on the operation. 'UserData'
+ /// retrieves the UserData property of the VM scale set that was
+ /// provided by the user during the VM scale set Create/Update
+ /// operation. Possible values include: 'userData'
+ ///
///
/// The headers that will be added to request.
///
@@ -153,7 +159,7 @@ public partial interface IVirtualMachineScaleSetsOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deallocates specific virtual machines in a VM scale set. Shuts down
/// the virtual machines and releases the compute resources. You are
@@ -455,7 +461,7 @@ public partial interface IVirtualMachineScaleSetsOperations
/// set. Operation on instances which are not eligible for perform
/// maintenance will be failed. Please refer to best practices for more
/// details:
- /// https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
+ /// https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
///
///
/// The name of the resource group.
@@ -912,7 +918,7 @@ public partial interface IVirtualMachineScaleSetsOperations
/// set. Operation on instances which are not eligible for perform
/// maintenance will be failed. Please refer to best practices for more
/// details:
- /// https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
+ /// https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
///
///
/// The name of the resource group.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineSizesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineSizesOperations.cs
index 6e1071152ff3b..616cad2883334 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineSizesOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineSizesOperations.cs
@@ -25,7 +25,7 @@ public partial interface IVirtualMachineSizesOperations
{
///
/// This API is deprecated. Use [Resources
- /// Skus](https://docs.microsoft.com/en-us/rest/api/compute/resourceskus/list)
+ /// Skus](https://docs.microsoft.com/rest/api/compute/resourceskus/list)
///
///
/// The location upon which virtual-machine-sizes is queried.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs
index 818ce5adb86a0..cbf62a2987374 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs
@@ -170,8 +170,13 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// The expand expression to apply on the operation. Possible values
- /// include: 'instanceView'
+ /// The expand expression to apply on the operation. 'InstanceView'
+ /// retrieves a snapshot of the runtime properties of the virtual
+ /// machine that is managed by the platform and can change outside of
+ /// control plane operations. 'UserData' retrieves the UserData
+ /// property as part of the VM model view that was provided by the user
+ /// during the VM Create/Update operation. Possible values include:
+ /// 'instanceView', 'userData'
///
///
/// The headers that will be added to request.
@@ -268,10 +273,10 @@ public partial interface IVirtualMachinesOperations
/// recommended to sysprep the virtual machine before performing this
/// operation. <br>For Windows, please refer to [Create a managed
/// image of a generalized VM in
- /// Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource).<br>For
+ /// Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource).<br>For
/// Linux, please refer to [How to create an image of a virtual machine
/// or
- /// VHD](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image).
+ /// VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image).
///
///
/// The name of the resource group.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ImagesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ImagesOperations.cs
index 9ccac6de301c5..77514b8e59c08 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ImagesOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ImagesOperations.cs
@@ -169,7 +169,7 @@ internal ImagesOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-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 = "2020-12-01";
+ string apiVersion = "2021-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 = "2020-12-01";
+ string apiVersion = "2021-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 = "2020-12-01";
+ string apiVersion = "2021-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 = "2020-12-01";
+ string apiVersion = "2021-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 = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/LogAnalyticsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/LogAnalyticsOperations.cs
index 90df713f2e745..6d20d3eb04157 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/LogAnalyticsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/LogAnalyticsOperations.cs
@@ -152,7 +152,7 @@ internal LogAnalyticsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-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 = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/AvailabilitySet.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/AvailabilitySet.cs
index 996056f68bb6f..46e9b85d430b9 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/AvailabilitySet.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/AvailabilitySet.cs
@@ -21,12 +21,12 @@ namespace Microsoft.Azure.Management.Compute.Models
/// Specifies information about the availability set that the virtual
/// machine should be assigned to. Virtual machines specified in the same
/// availability set are allocated to different nodes to maximize
- /// availability. For more information about availability sets, see [Manage
- /// the availability of virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// availability. For more information about availability sets, see
+ /// [Availability sets
+ /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
/// <br><br> For more information on Azure planned maintenance,
- /// see [Planned maintenance for virtual machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ /// see [Maintenance and updates for Virtual Machines in
+ /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
/// <br><br> Currently, a VM can only be added to availability
/// set at creation time. An existing VM cannot be added to an availability
/// set.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ConsistencyModeTypes.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ConsistencyModeTypes.cs
new file mode 100644
index 0000000000000..d00df066e7790
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ConsistencyModeTypes.cs
@@ -0,0 +1,23 @@
+//
+// 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 ConsistencyModeTypes.
+ ///
+ public static class ConsistencyModeTypes
+ {
+ public const string CrashConsistent = "CrashConsistent";
+ public const string FileSystemConsistent = "FileSystemConsistent";
+ public const string ApplicationConsistent = "ApplicationConsistent";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DataDisk.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DataDisk.cs
index e87c5a378f4d0..6c55319afaa40 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DataDisk.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DataDisk.cs
@@ -89,7 +89,14 @@ public DataDisk()
/// VirtualMachineScaleSet. To force-detach a data disk update
/// toBeDetached to 'true' along with setting detachOption:
/// 'ForceDetach'. Possible values include: 'ForceDetach'
- public DataDisk(int lun, string createOption, string name = default(string), VirtualHardDisk vhd = default(VirtualHardDisk), VirtualHardDisk image = default(VirtualHardDisk), CachingTypes? caching = default(CachingTypes?), bool? writeAcceleratorEnabled = default(bool?), int? diskSizeGB = default(int?), ManagedDiskParameters managedDisk = default(ManagedDiskParameters), bool? toBeDetached = default(bool?), long? diskIOPSReadWrite = default(long?), long? diskMBpsReadWrite = default(long?), string detachOption = default(string))
+ /// Specifies whether data disk should be
+ /// deleted or detached upon VM deletion.<br><br> Possible
+ /// values: <br><br> **Delete** If this value is used, the
+ /// data disk is deleted when VM is deleted.<br><br>
+ /// **Detach** If this value is used, the data disk is retained after
+ /// VM is deleted.<br><br> The default value is set to
+ /// **detach**. Possible values include: 'Delete', 'Detach'
+ public DataDisk(int lun, string createOption, string name = default(string), VirtualHardDisk vhd = default(VirtualHardDisk), VirtualHardDisk image = default(VirtualHardDisk), CachingTypes? caching = default(CachingTypes?), bool? writeAcceleratorEnabled = default(bool?), int? diskSizeGB = default(int?), ManagedDiskParameters managedDisk = default(ManagedDiskParameters), bool? toBeDetached = default(bool?), long? diskIOPSReadWrite = default(long?), long? diskMBpsReadWrite = default(long?), string detachOption = default(string), string deleteOption = default(string))
{
Lun = lun;
Name = name;
@@ -104,6 +111,7 @@ public DataDisk()
DiskIOPSReadWrite = diskIOPSReadWrite;
DiskMBpsReadWrite = diskMBpsReadWrite;
DetachOption = detachOption;
+ DeleteOption = deleteOption;
CustomInit();
}
@@ -235,6 +243,19 @@ public DataDisk()
[JsonProperty(PropertyName = "detachOption")]
public string DetachOption { get; set; }
+ ///
+ /// Gets or sets specifies whether data disk should be deleted or
+ /// detached upon VM deletion.<br><br>
+ /// Possible values: <br><br> **Delete** If
+ /// this value is used, the data disk is deleted when VM is
+ /// deleted.<br><br> **Detach** If this
+ /// value is used, the data disk is retained after VM is
+ /// deleted.<br><br> The default value is
+ /// set to **detach**. Possible values include: 'Delete', 'Detach'
+ ///
+ [JsonProperty(PropertyName = "deleteOption")]
+ public string DeleteOption { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DeleteOptions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DeleteOptions.cs
new file mode 100644
index 0000000000000..defbb5d325376
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DeleteOptions.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 DeleteOptions.
+ ///
+ public static class DeleteOptions
+ {
+ public const string Delete = "Delete";
+ public const string Detach = "Detach";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiffDiskSettings.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiffDiskSettings.cs
index 8655f8dc7d782..4ad305ed24968 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiffDiskSettings.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiffDiskSettings.cs
@@ -40,11 +40,11 @@ public DiffDiskSettings()
/// is configured for the VM size otherwise **ResourceDisk** is
/// used.<br><br> Refer to VM size documentation for
/// Windows VM at
- /// https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes
- /// and Linux VM at
- /// https://docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes
- /// to check which VM sizes exposes a cache disk. Possible values
- /// include: 'CacheDisk', 'ResourceDisk'
+ /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and
+ /// Linux VM at
+ /// https://docs.microsoft.com/azure/virtual-machines/linux/sizes to
+ /// check which VM sizes exposes a cache disk. Possible values include:
+ /// 'CacheDisk', 'ResourceDisk'
public DiffDiskSettings(string option = default(string), string placement = default(string))
{
Option = option;
@@ -73,11 +73,11 @@ public DiffDiskSettings()
/// is configured for the VM size otherwise **ResourceDisk** is
/// used.<br><br> Refer to VM size
/// documentation for Windows VM at
- /// https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes
- /// and Linux VM at
- /// https://docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes
- /// to check which VM sizes exposes a cache disk. Possible values
- /// include: 'CacheDisk', 'ResourceDisk'
+ /// https://docs.microsoft.com/azure/virtual-machines/windows/sizes and
+ /// Linux VM at
+ /// https://docs.microsoft.com/azure/virtual-machines/linux/sizes to
+ /// check which VM sizes exposes a cache disk. Possible values include:
+ /// 'CacheDisk', 'ResourceDisk'
///
[JsonProperty(PropertyName = "placement")]
public string Placement { get; set; }
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskDeleteOptionTypes.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskDeleteOptionTypes.cs
new file mode 100644
index 0000000000000..084e59e2d6677
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskDeleteOptionTypes.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 DiskDeleteOptionTypes.
+ ///
+ public static class DiskDeleteOptionTypes
+ {
+ public const string Delete = "Delete";
+ public const string Detach = "Detach";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ExpandTypesForGetVMScaleSets.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ExpandTypesForGetVMScaleSets.cs
new file mode 100644
index 0000000000000..c408275aa4b72
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ExpandTypesForGetVMScaleSets.cs
@@ -0,0 +1,21 @@
+//
+// 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 ExpandTypesForGetVMScaleSets.
+ ///
+ public static class ExpandTypesForGetVMScaleSets
+ {
+ public const string UserData = "userData";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/HardwareProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/HardwareProfile.cs
index d82198706c791..001a324cfe619 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/HardwareProfile.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/HardwareProfile.cs
@@ -38,12 +38,12 @@ public HardwareProfile()
/// set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes)
/// <br><br> [List all available virtual machine sizes in a
/// region](
- /// https://docs.microsoft.com/en-us/rest/api/compute/resourceskus/list)
+ /// https://docs.microsoft.com/rest/api/compute/resourceskus/list)
/// <br><br> [List all available virtual machine sizes for
/// resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes).
/// For more information about virtual machine sizes, see [Sizes for
/// virtual
- /// machines](https://docs.microsoft.com/en-us/azure/virtual-machines/sizes).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/sizes).
/// <br><br> The available VM sizes depend on region and
/// availability set. Possible values include: 'Basic_A0', 'Basic_A1',
/// 'Basic_A2', 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1',
@@ -117,13 +117,13 @@ public HardwareProfile()
/// set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes)
/// <br><br> [List all available virtual
/// machine sizes in a region](
- /// https://docs.microsoft.com/en-us/rest/api/compute/resourceskus/list)
+ /// https://docs.microsoft.com/rest/api/compute/resourceskus/list)
/// <br><br> [List all available virtual
/// machine sizes for
/// resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes).
/// For more information about virtual machine sizes, see [Sizes for
/// virtual
- /// machines](https://docs.microsoft.com/en-us/azure/virtual-machines/sizes).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/sizes).
/// <br><br> The available VM sizes depend
/// on region and availability set. Possible values include:
/// 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4',
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/IPVersions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/IPVersions.cs
new file mode 100644
index 0000000000000..0cbb3a97bcd44
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/IPVersions.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 IPVersions.
+ ///
+ public static class IPVersions
+ {
+ public const string IPv4 = "IPv4";
+ public const string IPv6 = "IPv6";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImageStorageProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImageStorageProfile.cs
index c6f4ffc55dffb..262482c565233 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImageStorageProfile.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ImageStorageProfile.cs
@@ -35,12 +35,12 @@ public ImageStorageProfile()
/// system disk used by the virtual machine. <br><br> For
/// more information about disks, see [About disks and VHDs for Azure
/// virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
/// Specifies the parameters that are used to
/// add a data disk to a virtual machine. <br><br> For more
/// information about disks, see [About disks and VHDs for Azure
/// virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
/// Specifies whether an image is zone
/// resilient or not. Default is false. Zone resilient images can be
/// created only in regions that provide Zone Redundant Storage
@@ -63,7 +63,7 @@ public ImageStorageProfile()
/// used by the virtual machine. <br><br>
/// For more information about disks, see [About disks and VHDs for
/// Azure virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
///
[JsonProperty(PropertyName = "osDisk")]
public ImageOSDisk OsDisk { get; set; }
@@ -73,7 +73,7 @@ public ImageStorageProfile()
/// disk to a virtual machine. <br><br> For
/// more information about disks, see [About disks and VHDs for Azure
/// virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
///
[JsonProperty(PropertyName = "dataDisks")]
public IList DataDisks { get; set; }
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/InstanceViewTypes.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/InstanceViewTypes.cs
index a87cde5cc1950..0b476450d5736 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/InstanceViewTypes.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/InstanceViewTypes.cs
@@ -22,7 +22,9 @@ namespace Microsoft.Azure.Management.Compute.Models
public enum InstanceViewTypes
{
[EnumMember(Value = "instanceView")]
- InstanceView
+ InstanceView,
+ [EnumMember(Value = "userData")]
+ UserData
}
internal static class InstanceViewTypesEnumExtension
{
@@ -37,6 +39,8 @@ internal static string ToSerializedValue(this InstanceViewTypes value)
{
case InstanceViewTypes.InstanceView:
return "instanceView";
+ case InstanceViewTypes.UserData:
+ return "userData";
}
return null;
}
@@ -47,6 +51,8 @@ internal static string ToSerializedValue(this InstanceViewTypes value)
{
case "instanceView":
return InstanceViewTypes.InstanceView;
+ case "userData":
+ return InstanceViewTypes.UserData;
}
return null;
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxConfiguration.cs
index a951eba569c50..59334fab57362 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxConfiguration.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxConfiguration.cs
@@ -17,10 +17,7 @@ namespace Microsoft.Azure.Management.Compute.Models
/// Specifies the Linux operating system settings on the virtual machine.
/// <br><br>For a list of supported Linux distributions, see
/// [Linux on Azure-Endorsed
- /// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
- /// <br><br> For running non-endorsed distributions, see
- /// [Information for Non-Endorsed
- /// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ /// Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).
///
public partial class LinuxConfiguration
{
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxPatchAssessmentMode.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxPatchAssessmentMode.cs
new file mode 100644
index 0000000000000..51023b6e3dc45
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxPatchAssessmentMode.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 LinuxPatchAssessmentMode.
+ ///
+ public static class LinuxPatchAssessmentMode
+ {
+ public const string ImageDefault = "ImageDefault";
+ public const string AutomaticByPlatform = "AutomaticByPlatform";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxPatchSettings.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxPatchSettings.cs
index b330cbd7884a8..ccf3b25dc8d4b 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxPatchSettings.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxPatchSettings.cs
@@ -30,16 +30,27 @@ public LinuxPatchSettings()
/// Initializes a new instance of the LinuxPatchSettings class.
///
/// Specifies the mode of VM Guest Patching to
- /// IaaS virtual machine.<br /><br /> Possible values
- /// are:<br /><br /> **ImageDefault** - The virtual
- /// machine's default patching configuration is used. <br
- /// /><br /> **AutomaticByPlatform** - The virtual machine
- /// will be automatically updated by the platform. The property
+ /// IaaS virtual machine or virtual machines associated to virtual
+ /// machine scale set with OrchestrationMode as Flexible.<br
+ /// /><br /> Possible values are:<br /><br />
+ /// **ImageDefault** - The virtual machine's default patching
+ /// configuration is used. <br /><br />
+ /// **AutomaticByPlatform** - The virtual machine will be automatically
+ /// updated by the platform. The property provisionVMAgent must be
+ /// true. Possible values include: 'ImageDefault',
+ /// 'AutomaticByPlatform'
+ /// Specifies the mode of VM Guest Patch
+ /// Assessment for the IaaS virtual machine.<br /><br />
+ /// Possible values are:<br /><br /> **ImageDefault** - You
+ /// control the timing of patch assessments on a virtual machine.
+ /// <br /><br /> **AutomaticByPlatform** - The platform
+ /// will trigger periodic patch assessments. The property
/// provisionVMAgent must be true. Possible values include:
/// 'ImageDefault', 'AutomaticByPlatform'
- public LinuxPatchSettings(string patchMode = default(string))
+ public LinuxPatchSettings(string patchMode = default(string), string assessmentMode = default(string))
{
PatchMode = patchMode;
+ AssessmentMode = assessmentMode;
CustomInit();
}
@@ -50,17 +61,31 @@ public LinuxPatchSettings()
///
/// Gets or sets specifies the mode of VM Guest Patching to IaaS
- /// virtual machine.<br /><br /> Possible
- /// values are:<br /><br />
- /// **ImageDefault** - The virtual machine's default patching
- /// configuration is used. <br /><br />
- /// **AutomaticByPlatform** - The virtual machine will be automatically
- /// updated by the platform. The property provisionVMAgent must be
- /// true. Possible values include: 'ImageDefault',
- /// 'AutomaticByPlatform'
+ /// virtual machine or virtual machines associated to virtual machine
+ /// scale set with OrchestrationMode as Flexible.<br
+ /// /><br /> Possible values are:<br
+ /// /><br /> **ImageDefault** - The virtual
+ /// machine's default patching configuration is used. <br
+ /// /><br /> **AutomaticByPlatform** - The virtual
+ /// machine will be automatically updated by the platform. The property
+ /// provisionVMAgent must be true. Possible values include:
+ /// 'ImageDefault', 'AutomaticByPlatform'
///
[JsonProperty(PropertyName = "patchMode")]
public string PatchMode { get; set; }
+ ///
+ /// Gets or sets specifies the mode of VM Guest Patch Assessment for
+ /// the IaaS virtual machine.<br /><br />
+ /// Possible values are:<br /><br />
+ /// **ImageDefault** - You control the timing of patch assessments on a
+ /// virtual machine. <br /><br />
+ /// **AutomaticByPlatform** - The platform will trigger periodic patch
+ /// assessments. The property provisionVMAgent must be true. Possible
+ /// values include: 'ImageDefault', 'AutomaticByPlatform'
+ ///
+ [JsonProperty(PropertyName = "assessmentMode")]
+ public string AssessmentMode { get; set; }
+
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkApiVersion.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkApiVersion.cs
new file mode 100644
index 0000000000000..3513a038a3a44
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkApiVersion.cs
@@ -0,0 +1,21 @@
+//
+// 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 NetworkApiVersion.
+ ///
+ public static class NetworkApiVersion
+ {
+ public const string TwoZeroTwoZeroHyphenMinusOneOneHyphenMinusZeroOne = "2020-11-01";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkInterfaceReference.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkInterfaceReference.cs
index 43b12e2e1491a..063e64a641ce6 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkInterfaceReference.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkInterfaceReference.cs
@@ -35,10 +35,14 @@ public NetworkInterfaceReference()
/// Resource Id
/// Specifies the primary network interface in
/// case the virtual machine has more than 1 network interface.
- public NetworkInterfaceReference(string id = default(string), bool? primary = default(bool?))
+ /// Specify what happens to the network
+ /// interface when the VM is deleted. Possible values include:
+ /// 'Delete', 'Detach'
+ public NetworkInterfaceReference(string id = default(string), bool? primary = default(bool?), string deleteOption = default(string))
: base(id)
{
Primary = primary;
+ DeleteOption = deleteOption;
CustomInit();
}
@@ -54,5 +58,12 @@ public NetworkInterfaceReference()
[JsonProperty(PropertyName = "properties.primary")]
public bool? Primary { get; set; }
+ ///
+ /// Gets or sets specify what happens to the network interface when the
+ /// VM is deleted. Possible values include: 'Delete', 'Detach'
+ ///
+ [JsonProperty(PropertyName = "properties.deleteOption")]
+ public string DeleteOption { get; set; }
+
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkProfile.cs
index 39785018b8c0f..a5b6fd87e02fa 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkProfile.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkProfile.cs
@@ -16,7 +16,8 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Linq;
///
- /// Specifies the network interfaces of the virtual machine.
+ /// Specifies the network interfaces or the networking configuration of the
+ /// virtual machine.
///
public partial class NetworkProfile
{
@@ -34,9 +35,18 @@ public NetworkProfile()
/// Specifies the list of resource Ids
/// for the network interfaces associated with the virtual
/// machine.
- public NetworkProfile(IList networkInterfaces = default(IList))
+ /// specifies the Microsoft.Network API
+ /// version used when creating networking resources in the Network
+ /// Interface Configurations. Possible values include:
+ /// '2020-11-01'
+ /// Specifies the
+ /// networking configurations that will be used to create the virtual
+ /// machine networking resources.
+ public NetworkProfile(IList networkInterfaces = default(IList), string networkApiVersion = default(string), IList networkInterfaceConfigurations = default(IList))
{
NetworkInterfaces = networkInterfaces;
+ NetworkApiVersion = networkApiVersion;
+ NetworkInterfaceConfigurations = networkInterfaceConfigurations;
CustomInit();
}
@@ -52,5 +62,20 @@ public NetworkProfile()
[JsonProperty(PropertyName = "networkInterfaces")]
public IList NetworkInterfaces { get; set; }
+ ///
+ /// Gets or sets specifies the Microsoft.Network API version used when
+ /// creating networking resources in the Network Interface
+ /// Configurations. Possible values include: '2020-11-01'
+ ///
+ [JsonProperty(PropertyName = "networkApiVersion")]
+ public string NetworkApiVersion { get; set; }
+
+ ///
+ /// Gets or sets specifies the networking configurations that will be
+ /// used to create the virtual machine networking resources.
+ ///
+ [JsonProperty(PropertyName = "networkInterfaceConfigurations")]
+ public IList NetworkInterfaceConfigurations { get; set; }
+
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSDisk.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSDisk.cs
index feac57710d59f..9220ba6e3a8ed 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSDisk.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSDisk.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Management.Compute.Models
/// Specifies information about the operating system disk used by the
/// virtual machine. <br><br> For more information about disks,
/// see [About disks and VHDs for Azure virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
///
public partial class OSDisk
{
@@ -73,7 +73,16 @@ public OSDisk()
/// disk in a virtual machine image. <br><br> This value
/// cannot be larger than 1023 GB
/// The managed disk parameters.
- public OSDisk(string createOption, OperatingSystemTypes? osType = default(OperatingSystemTypes?), DiskEncryptionSettings encryptionSettings = default(DiskEncryptionSettings), string name = default(string), VirtualHardDisk vhd = default(VirtualHardDisk), VirtualHardDisk image = default(VirtualHardDisk), CachingTypes? caching = default(CachingTypes?), bool? writeAcceleratorEnabled = default(bool?), DiffDiskSettings diffDiskSettings = default(DiffDiskSettings), int? diskSizeGB = default(int?), ManagedDiskParameters managedDisk = default(ManagedDiskParameters))
+ /// Specifies whether OS Disk should be
+ /// deleted or detached upon VM deletion. <br><br> Possible
+ /// values: <br><br> **Delete** If this value is used, the
+ /// OS disk is deleted when VM is deleted.<br><br>
+ /// **Detach** If this value is used, the os disk is retained after VM
+ /// is deleted. <br><br> The default value is set to
+ /// **detach**. For an ephemeral OS Disk, the default value is set to
+ /// **Delete**. User cannot change the delete option for ephemeral OS
+ /// Disk. Possible values include: 'Delete', 'Detach'
+ public OSDisk(string createOption, OperatingSystemTypes? osType = default(OperatingSystemTypes?), DiskEncryptionSettings encryptionSettings = default(DiskEncryptionSettings), string name = default(string), VirtualHardDisk vhd = default(VirtualHardDisk), VirtualHardDisk image = default(VirtualHardDisk), CachingTypes? caching = default(CachingTypes?), bool? writeAcceleratorEnabled = default(bool?), DiffDiskSettings diffDiskSettings = default(DiffDiskSettings), int? diskSizeGB = default(int?), ManagedDiskParameters managedDisk = default(ManagedDiskParameters), string deleteOption = default(string))
{
OsType = osType;
EncryptionSettings = encryptionSettings;
@@ -86,6 +95,7 @@ public OSDisk()
CreateOption = createOption;
DiskSizeGB = diskSizeGB;
ManagedDisk = managedDisk;
+ DeleteOption = deleteOption;
CustomInit();
}
@@ -191,6 +201,21 @@ public OSDisk()
[JsonProperty(PropertyName = "managedDisk")]
public ManagedDiskParameters ManagedDisk { get; set; }
+ ///
+ /// Gets or sets specifies whether OS Disk should be deleted or
+ /// detached upon VM deletion. <br><br>
+ /// Possible values: <br><br> **Delete** If
+ /// this value is used, the OS disk is deleted when VM is
+ /// deleted.<br><br> **Detach** If this
+ /// value is used, the os disk is retained after VM is deleted.
+ /// <br><br> The default value is set to
+ /// **detach**. For an ephemeral OS Disk, the default value is set to
+ /// **Delete**. User cannot change the delete option for ephemeral OS
+ /// Disk. Possible values include: 'Delete', 'Detach'
+ ///
+ [JsonProperty(PropertyName = "deleteOption")]
+ public string DeleteOption { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSProfile.cs
index 24355877fd5b0..99a0ac8012ae4 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSProfile.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OSProfile.cs
@@ -39,7 +39,7 @@ public OSProfile()
/// (Linux):** 64 characters. <br><br> For naming
/// conventions and restrictions see [Azure infrastructure services
/// implementation
- /// guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions).
+ /// guidelines](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules).
/// Specifies the name of the administrator
/// account. <br><br> This property cannot be updated after
/// the VM is created. <br><br> **Windows-only
@@ -51,13 +51,8 @@ public OSProfile()
/// "support_388945a0", "sys", "test2", "test3", "user4", "user5".
/// <br><br> **Minimum-length (Linux):** 1 character
/// <br><br> **Max-length (Linux):** 64 characters
- /// <br><br> **Max-length (Windows):** 20 characters
- /// <br><br><li> For root access to the Linux VM, see
- /// [Using root privileges on Linux virtual machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li>
- /// For a list of built-in system users on Linux that should not be
- /// used in this field, see [Selecting User Names for Linux on
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ /// <br><br> **Max-length (Windows):** 20
+ /// characters.
/// Specifies the password of the
/// administrator account. <br><br> **Minimum-length
/// (Windows):** 8 characters <br><br> **Minimum-length
@@ -72,11 +67,11 @@ public OSProfile()
/// "Password!", "Password1", "Password22", "iloveyou!"
/// <br><br> For resetting the password, see [How to reset
/// the Remote Desktop service or its login password in a Windows
- /// VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ /// VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)
/// <br><br> For resetting root password, see [Manage
/// users, SSH, and check or repair disks on Azure Linux VMs using the
/// VMAccess
- /// Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)
+ /// Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)
/// Specifies a base-64 encoded string of
/// custom data. The base-64 encoded string is decoded to a binary
/// array that is saved as a file on the Virtual Machine. The maximum
@@ -86,19 +81,16 @@ public OSProfile()
/// after the VM is created. <br><br> customData is passed
/// to the VM to be saved as a file, for more information see [Custom
/// Data on Azure
- /// VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)
+ /// VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/)
/// <br><br> For using cloud-init for your Linux VM, see
/// [Using cloud-init to customize a Linux VM during
- /// creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ /// creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init)
/// Specifies Windows operating
/// system settings on the virtual machine.
/// Specifies the Linux operating
/// system settings on the virtual machine. <br><br>For a
/// list of supported Linux distributions, see [Linux on Azure-Endorsed
- /// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
- /// <br><br> For running non-endorsed distributions, see
- /// [Information for Non-Endorsed
- /// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ /// Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).
/// Specifies set of certificates that should be
/// installed onto the virtual machine.
/// Specifies whether extension
@@ -138,7 +130,7 @@ public OSProfile()
/// characters. <br><br> For naming
/// conventions and restrictions see [Azure infrastructure services
/// implementation
- /// guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions).
+ /// guidelines](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules).
///
[JsonProperty(PropertyName = "computerName")]
public string ComputerName { get; set; }
@@ -157,14 +149,7 @@ public OSProfile()
/// <br><br> **Minimum-length (Linux):** 1
/// character <br><br> **Max-length
/// (Linux):** 64 characters <br><br>
- /// **Max-length (Windows):** 20 characters
- /// <br><br><li> For root
- /// access to the Linux VM, see [Using root privileges on Linux virtual
- /// machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li>
- /// For a list of built-in system users on Linux that should not be
- /// used in this field, see [Selecting User Names for Linux on
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ /// **Max-length (Windows):** 20 characters.
///
[JsonProperty(PropertyName = "adminUsername")]
public string AdminUsername { get; set; }
@@ -187,11 +172,11 @@ public OSProfile()
/// <br><br> For resetting the password,
/// see [How to reset the Remote Desktop service or its login password
/// in a Windows
- /// VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ /// VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)
/// <br><br> For resetting root password,
/// see [Manage users, SSH, and check or repair disks on Azure Linux
/// VMs using the VMAccess
- /// Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)
+ /// Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)
///
[JsonProperty(PropertyName = "adminPassword")]
public string AdminPassword { get; set; }
@@ -207,10 +192,10 @@ public OSProfile()
/// <br><br> customData is passed to the VM
/// to be saved as a file, for more information see [Custom Data on
/// Azure
- /// VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)
+ /// VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/)
/// <br><br> For using cloud-init for your
/// Linux VM, see [Using cloud-init to customize a Linux VM during
- /// creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ /// creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init)
///
[JsonProperty(PropertyName = "customData")]
public string CustomData { get; set; }
@@ -226,10 +211,7 @@ public OSProfile()
/// Gets or sets specifies the Linux operating system settings on the
/// virtual machine. <br><br>For a list of
/// supported Linux distributions, see [Linux on Azure-Endorsed
- /// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
- /// <br><br> For running non-endorsed
- /// distributions, see [Information for Non-Endorsed
- /// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ /// Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).
///
[JsonProperty(PropertyName = "linuxConfiguration")]
public LinuxConfiguration LinuxConfiguration { get; set; }
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OperatingSystemType.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OperatingSystemType.cs
new file mode 100644
index 0000000000000..924d01f97423a
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OperatingSystemType.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 OperatingSystemType.
+ ///
+ public static class OperatingSystemType
+ {
+ public const string Windows = "Windows";
+ public const string Linux = "Linux";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PatchSettings.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PatchSettings.cs
index ce46bd86b2ba8..3f7c8e0e9b769 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PatchSettings.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PatchSettings.cs
@@ -30,11 +30,12 @@ public PatchSettings()
/// Initializes a new instance of the PatchSettings class.
///
/// Specifies the mode of VM Guest Patching to
- /// IaaS virtual machine.<br /><br /> Possible values
- /// are:<br /><br /> **Manual** - You control the
- /// application of patches to a virtual machine. You do this by
- /// applying patches manually inside the VM. In this mode, automatic
- /// updates are disabled; the property
+ /// IaaS virtual machine or virtual machines associated to virtual
+ /// machine scale set with OrchestrationMode as Flexible.<br
+ /// /><br /> Possible values are:<br /><br />
+ /// **Manual** - You control the application of patches to a virtual
+ /// machine. You do this by applying patches manually inside the VM. In
+ /// this mode, automatic updates are disabled; the property
/// WindowsConfiguration.enableAutomaticUpdates must be false<br
/// /><br /> **AutomaticByOS** - The virtual machine will
/// automatically be updated by the OS. The property
@@ -48,10 +49,19 @@ public PatchSettings()
/// Azure VMs without requiring a reboot. For enableHotpatching, the
/// 'provisionVMAgent' must be set to true and 'patchMode' must be set
/// to 'AutomaticByPlatform'.
- public PatchSettings(string patchMode = default(string), bool? enableHotpatching = default(bool?))
+ /// Specifies the mode of VM Guest patch
+ /// assessment for the IaaS virtual machine.<br /><br />
+ /// Possible values are:<br /><br /> **ImageDefault** - You
+ /// control the timing of patch assessments on a virtual machine.<br
+ /// /><br /> **AutomaticByPlatform** - The platform will
+ /// trigger periodic patch assessments. The property provisionVMAgent
+ /// must be true. Possible values include: 'ImageDefault',
+ /// 'AutomaticByPlatform'
+ public PatchSettings(string patchMode = default(string), bool? enableHotpatching = default(bool?), string assessmentMode = default(string))
{
PatchMode = patchMode;
EnableHotpatching = enableHotpatching;
+ AssessmentMode = assessmentMode;
CustomInit();
}
@@ -62,11 +72,13 @@ public PatchSettings()
///
/// Gets or sets specifies the mode of VM Guest Patching to IaaS
- /// virtual machine.<br /><br /> Possible
- /// values are:<br /><br /> **Manual** -
- /// You control the application of patches to a virtual machine. You
- /// do this by applying patches manually inside the VM. In this mode,
- /// automatic updates are disabled; the property
+ /// virtual machine or virtual machines associated to virtual machine
+ /// scale set with OrchestrationMode as Flexible.<br
+ /// /><br /> Possible values are:<br
+ /// /><br /> **Manual** - You control the
+ /// application of patches to a virtual machine. You do this by
+ /// applying patches manually inside the VM. In this mode, automatic
+ /// updates are disabled; the property
/// WindowsConfiguration.enableAutomaticUpdates must be false<br
/// /><br /> **AutomaticByOS** - The virtual
/// machine will automatically be updated by the OS. The property
@@ -89,5 +101,18 @@ public PatchSettings()
[JsonProperty(PropertyName = "enableHotpatching")]
public bool? EnableHotpatching { get; set; }
+ ///
+ /// Gets or sets specifies the mode of VM Guest patch assessment for
+ /// the IaaS virtual machine.<br /><br />
+ /// Possible values are:<br /><br />
+ /// **ImageDefault** - You control the timing of patch assessments on a
+ /// virtual machine.<br /><br />
+ /// **AutomaticByPlatform** - The platform will trigger periodic patch
+ /// assessments. The property provisionVMAgent must be true. Possible
+ /// values include: 'ImageDefault', 'AutomaticByPlatform'
+ ///
+ [JsonProperty(PropertyName = "assessmentMode")]
+ public string AssessmentMode { get; set; }
+
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ProxyResource.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ProxyResource.cs
new file mode 100644
index 0000000000000..d30ac30ee4ef8
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ProxyResource.cs
@@ -0,0 +1,70 @@
+//
+// 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 Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The resource model definition for an Azure Resource Manager proxy
+ /// resource. It will not have tags and a location
+ ///
+ public partial class ProxyResource : IResource
+ {
+ ///
+ /// Initializes a new instance of the ProxyResource class.
+ ///
+ public ProxyResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ProxyResource class.
+ ///
+ /// Resource Id
+ /// Resource name
+ /// Resource type
+ public ProxyResource(string id = default(string), string name = default(string), string type = default(string))
+ {
+ Id = id;
+ Name = name;
+ Type = type;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets resource Id
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; private set; }
+
+ ///
+ /// Gets resource name
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; private set; }
+
+ ///
+ /// Gets resource type
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; private set; }
+
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSku.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSku.cs
new file mode 100644
index 0000000000000..9af937b631f92
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSku.cs
@@ -0,0 +1,77 @@
+//
+// 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 Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes the public IP Sku
+ ///
+ public partial class PublicIPAddressSku
+ {
+ ///
+ /// Initializes a new instance of the PublicIPAddressSku class.
+ ///
+ public PublicIPAddressSku()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PublicIPAddressSku class.
+ ///
+ /// Specify public IP sku name.
+ /// Possible values include: 'Basic', 'Standard'
+ /// Specify public IP sku tier.
+ /// Possible values include: 'Regional', 'Global'
+ public PublicIPAddressSku(string publicIPAddressSkuName, string publicIPAddressSkuTier = default(string))
+ {
+ PublicIPAddressSkuName = publicIPAddressSkuName;
+ PublicIPAddressSkuTier = publicIPAddressSkuTier;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets specify public IP sku name. Possible values include:
+ /// 'Basic', 'Standard'
+ ///
+ [JsonProperty(PropertyName = "publicIPAddressSkuName")]
+ public string PublicIPAddressSkuName { get; set; }
+
+ ///
+ /// Gets or sets specify public IP sku tier. Possible values include:
+ /// 'Regional', 'Global'
+ ///
+ [JsonProperty(PropertyName = "publicIPAddressSkuTier")]
+ public string PublicIPAddressSkuTier { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (PublicIPAddressSkuName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "PublicIPAddressSkuName");
+ }
+ }
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSkuName.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSkuName.cs
new file mode 100644
index 0000000000000..aff7662690df3
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSkuName.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 PublicIPAddressSkuName.
+ ///
+ public static class PublicIPAddressSkuName
+ {
+ public const string Basic = "Basic";
+ public const string Standard = "Standard";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSkuTier.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSkuTier.cs
new file mode 100644
index 0000000000000..6e4f2b7c20cc3
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSkuTier.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 PublicIPAddressSkuTier.
+ ///
+ public static class PublicIPAddressSkuTier
+ {
+ public const string Regional = "Regional";
+ public const string Global = "Global";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAllocationMethod.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAllocationMethod.cs
new file mode 100644
index 0000000000000..da2ad835e97f2
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAllocationMethod.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 PublicIPAllocationMethod.
+ ///
+ public static class PublicIPAllocationMethod
+ {
+ public const string Dynamic = "Dynamic";
+ public const string Static = "Static";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePoint.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePoint.cs
new file mode 100644
index 0000000000000..ff835f5bbbf29
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePoint.cs
@@ -0,0 +1,117 @@
+//
+// 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;
+
+ ///
+ /// Restore Point details.
+ ///
+ public partial class RestorePoint : ProxyResource
+ {
+ ///
+ /// Initializes a new instance of the RestorePoint class.
+ ///
+ public RestorePoint()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RestorePoint class.
+ ///
+ /// Resource Id
+ /// Resource name
+ /// Resource type
+ /// Gets the details of the VM captured at
+ /// the time of the restore point creation.
+ /// Gets the provisioning state of the
+ /// restore point.
+ /// Gets the consistency mode for the
+ /// restore point. Please refer to https://aka.ms/RestorePoints for
+ /// more details. Possible values include: 'CrashConsistent',
+ /// 'FileSystemConsistent', 'ApplicationConsistent'
+ /// Gets the provisioning details set
+ /// by the server during Create restore point operation.
+ /// List of disk resource ids that the
+ /// customer wishes to exclude from the restore point. If no disks are
+ /// specified, all disks will be included.
+ public RestorePoint(string id = default(string), string name = default(string), string type = default(string), RestorePointSourceMetadata sourceMetadata = default(RestorePointSourceMetadata), string provisioningState = default(string), string consistencyMode = default(string), RestorePointProvisioningDetails provisioningDetails = default(RestorePointProvisioningDetails), IList excludeDisks = default(IList))
+ : base(id, name, type)
+ {
+ SourceMetadata = sourceMetadata;
+ ProvisioningState = provisioningState;
+ ConsistencyMode = consistencyMode;
+ ProvisioningDetails = provisioningDetails;
+ ExcludeDisks = excludeDisks;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the details of the VM captured at the time of the restore
+ /// point creation.
+ ///
+ [JsonProperty(PropertyName = "sourceMetadata")]
+ public RestorePointSourceMetadata SourceMetadata { get; private set; }
+
+ ///
+ /// Gets the provisioning state of the restore point.
+ ///
+ [JsonProperty(PropertyName = "provisioningState")]
+ public string ProvisioningState { get; private set; }
+
+ ///
+ /// Gets the consistency mode for the restore point. Please refer to
+ /// https://aka.ms/RestorePoints for more details. Possible values
+ /// include: 'CrashConsistent', 'FileSystemConsistent',
+ /// 'ApplicationConsistent'
+ ///
+ [JsonProperty(PropertyName = "consistencyMode")]
+ public string ConsistencyMode { get; private set; }
+
+ ///
+ /// Gets the provisioning details set by the server during Create
+ /// restore point operation.
+ ///
+ [JsonProperty(PropertyName = "provisioningDetails")]
+ public RestorePointProvisioningDetails ProvisioningDetails { get; private set; }
+
+ ///
+ /// Gets or sets list of disk resource ids that the customer wishes to
+ /// exclude from the restore point. If no disks are specified, all
+ /// disks will be included.
+ ///
+ [JsonProperty(PropertyName = "excludeDisks")]
+ public IList ExcludeDisks { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (SourceMetadata != null)
+ {
+ SourceMetadata.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollection.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollection.cs
new file mode 100644
index 0000000000000..5a744737cb4e1
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollection.cs
@@ -0,0 +1,108 @@
+//
+// 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 Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Create or update Restore Point collection parameters.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class RestorePointCollection : Resource
+ {
+ ///
+ /// Initializes a new instance of the RestorePointCollection class.
+ ///
+ public RestorePointCollection()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RestorePointCollection class.
+ ///
+ /// Resource location
+ /// Resource Id
+ /// Resource name
+ /// Resource type
+ /// Resource tags
+ /// The provisioning state of the
+ /// restore point collection.
+ /// The unique id of the restore
+ /// point collection.
+ /// A list containing all restore points
+ /// created under this restore point collection.
+ public RestorePointCollection(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), RestorePointCollectionSourceProperties source = default(RestorePointCollectionSourceProperties), string provisioningState = default(string), string restorePointCollectionId = default(string), IList restorePoints = default(IList))
+ : base(location, id, name, type, tags)
+ {
+ Source = source;
+ ProvisioningState = provisioningState;
+ RestorePointCollectionId = restorePointCollectionId;
+ RestorePoints = restorePoints;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties.source")]
+ public RestorePointCollectionSourceProperties Source { get; set; }
+
+ ///
+ /// Gets the provisioning state of the restore point collection.
+ ///
+ [JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState { get; private set; }
+
+ ///
+ /// Gets the unique id of the restore point collection.
+ ///
+ [JsonProperty(PropertyName = "properties.restorePointCollectionId")]
+ public string RestorePointCollectionId { get; private set; }
+
+ ///
+ /// Gets a list containing all restore points created under this
+ /// restore point collection.
+ ///
+ [JsonProperty(PropertyName = "properties.restorePoints")]
+ public IList RestorePoints { get; private set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public override void Validate()
+ {
+ base.Validate();
+ if (RestorePoints != null)
+ {
+ foreach (var element in RestorePoints)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollectionExpandOptions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollectionExpandOptions.cs
new file mode 100644
index 0000000000000..aa68d83154f13
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollectionExpandOptions.cs
@@ -0,0 +1,21 @@
+//
+// 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 RestorePointCollectionExpandOptions.
+ ///
+ public static class RestorePointCollectionExpandOptions
+ {
+ public const string RestorePoints = "restorePoints";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollectionSourceProperties.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollectionSourceProperties.cs
new file mode 100644
index 0000000000000..5d860ae3909ee
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollectionSourceProperties.cs
@@ -0,0 +1,66 @@
+//
+// 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 properties of the source resource that this restore point
+ /// collection is created from.
+ ///
+ public partial class RestorePointCollectionSourceProperties
+ {
+ ///
+ /// Initializes a new instance of the
+ /// RestorePointCollectionSourceProperties class.
+ ///
+ public RestorePointCollectionSourceProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// RestorePointCollectionSourceProperties class.
+ ///
+ /// Location of the source resource used to
+ /// create this restore point collection.
+ /// Resource Id of the source resource used to create
+ /// this restore point collection
+ public RestorePointCollectionSourceProperties(string location = default(string), string id = default(string))
+ {
+ Location = location;
+ Id = id;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets location of the source resource used to create this restore
+ /// point collection.
+ ///
+ [JsonProperty(PropertyName = "location")]
+ public string Location { get; private set; }
+
+ ///
+ /// Gets or sets resource Id of the source resource used to create this
+ /// restore point collection
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; set; }
+
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollectionUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollectionUpdate.cs
new file mode 100644
index 0000000000000..ee169d5de96c2
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollectionUpdate.cs
@@ -0,0 +1,86 @@
+//
+// 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 Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Update Restore Point collection parameters.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class RestorePointCollectionUpdate : UpdateResource
+ {
+ ///
+ /// Initializes a new instance of the RestorePointCollectionUpdate
+ /// class.
+ ///
+ public RestorePointCollectionUpdate()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RestorePointCollectionUpdate
+ /// class.
+ ///
+ /// Resource tags
+ /// The provisioning state of the
+ /// restore point collection.
+ /// The unique id of the restore
+ /// point collection.
+ /// A list containing all restore points
+ /// created under this restore point collection.
+ public RestorePointCollectionUpdate(IDictionary tags = default(IDictionary), RestorePointCollectionSourceProperties source = default(RestorePointCollectionSourceProperties), string provisioningState = default(string), string restorePointCollectionId = default(string), IList restorePoints = default(IList))
+ : base(tags)
+ {
+ Source = source;
+ ProvisioningState = provisioningState;
+ RestorePointCollectionId = restorePointCollectionId;
+ RestorePoints = restorePoints;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties.source")]
+ public RestorePointCollectionSourceProperties Source { get; set; }
+
+ ///
+ /// Gets the provisioning state of the restore point collection.
+ ///
+ [JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState { get; private set; }
+
+ ///
+ /// Gets the unique id of the restore point collection.
+ ///
+ [JsonProperty(PropertyName = "properties.restorePointCollectionId")]
+ public string RestorePointCollectionId { get; private set; }
+
+ ///
+ /// Gets a list containing all restore points created under this
+ /// restore point collection.
+ ///
+ [JsonProperty(PropertyName = "properties.restorePoints")]
+ public IList RestorePoints { get; private set; }
+
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointProvisioningDetails.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointProvisioningDetails.cs
new file mode 100644
index 0000000000000..4863ae7f00e5a
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointProvisioningDetails.cs
@@ -0,0 +1,82 @@
+//
+// 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;
+
+ ///
+ /// Restore Point Provisioning details.
+ ///
+ public partial class RestorePointProvisioningDetails
+ {
+ ///
+ /// Initializes a new instance of the RestorePointProvisioningDetails
+ /// class.
+ ///
+ public RestorePointProvisioningDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RestorePointProvisioningDetails
+ /// class.
+ ///
+ /// Gets the creation time of the restore
+ /// point.
+ /// Gets the total size of the data
+ /// in all the disks which are part of the restore point.
+ /// Gets the status of the Create restore
+ /// point operation.
+ /// Gets the status message of the Create
+ /// restore point operation.
+ public RestorePointProvisioningDetails(System.DateTime? creationTime = default(System.DateTime?), long? totalUsedSizeInBytes = default(long?), int? statusCode = default(int?), string statusMessage = default(string))
+ {
+ CreationTime = creationTime;
+ TotalUsedSizeInBytes = totalUsedSizeInBytes;
+ StatusCode = statusCode;
+ StatusMessage = statusMessage;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the creation time of the restore point.
+ ///
+ [JsonProperty(PropertyName = "creationTime")]
+ public System.DateTime? CreationTime { get; set; }
+
+ ///
+ /// Gets the total size of the data in all the disks which are part of
+ /// the restore point.
+ ///
+ [JsonProperty(PropertyName = "totalUsedSizeInBytes")]
+ public long? TotalUsedSizeInBytes { get; set; }
+
+ ///
+ /// Gets the status of the Create restore point operation.
+ ///
+ [JsonProperty(PropertyName = "statusCode")]
+ public int? StatusCode { get; set; }
+
+ ///
+ /// Gets the status message of the Create restore point operation.
+ ///
+ [JsonProperty(PropertyName = "statusMessage")]
+ public string StatusMessage { get; set; }
+
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceMetadata.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceMetadata.cs
new file mode 100644
index 0000000000000..13f1c7cc42e2d
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceMetadata.cs
@@ -0,0 +1,118 @@
+//
+// 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;
+
+ ///
+ /// Describes the properties of the Virtual Machine for which the restore
+ /// point was created. The properties provided are a subset and the
+ /// snapshot of the overall Virtual Machine properties captured at the time
+ /// of the restore point creation.
+ ///
+ public partial class RestorePointSourceMetadata
+ {
+ ///
+ /// Initializes a new instance of the RestorePointSourceMetadata class.
+ ///
+ public RestorePointSourceMetadata()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RestorePointSourceMetadata class.
+ ///
+ /// Gets the hardware profile.
+ /// Gets the storage profile.
+ /// Gets the OS profile.
+ /// Gets the diagnostics
+ /// profile.
+ /// Gets the license type, which is for bring
+ /// your own license scenario.
+ /// Gets the virtual machine unique id.
+ /// Gets the security profile.
+ public RestorePointSourceMetadata(HardwareProfile hardwareProfile = default(HardwareProfile), RestorePointSourceVMStorageProfile storageProfile = default(RestorePointSourceVMStorageProfile), OSProfile osProfile = default(OSProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), string licenseType = default(string), string vmId = default(string), SecurityProfile securityProfile = default(SecurityProfile))
+ {
+ HardwareProfile = hardwareProfile;
+ StorageProfile = storageProfile;
+ OsProfile = osProfile;
+ DiagnosticsProfile = diagnosticsProfile;
+ LicenseType = licenseType;
+ VmId = vmId;
+ SecurityProfile = securityProfile;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the hardware profile.
+ ///
+ [JsonProperty(PropertyName = "hardwareProfile")]
+ public HardwareProfile HardwareProfile { get; set; }
+
+ ///
+ /// Gets the storage profile.
+ ///
+ [JsonProperty(PropertyName = "storageProfile")]
+ public RestorePointSourceVMStorageProfile StorageProfile { get; set; }
+
+ ///
+ /// Gets the OS profile.
+ ///
+ [JsonProperty(PropertyName = "osProfile")]
+ public OSProfile OsProfile { get; set; }
+
+ ///
+ /// Gets the diagnostics profile.
+ ///
+ [JsonProperty(PropertyName = "diagnosticsProfile")]
+ public DiagnosticsProfile DiagnosticsProfile { get; set; }
+
+ ///
+ /// Gets the license type, which is for bring your own license
+ /// scenario.
+ ///
+ [JsonProperty(PropertyName = "licenseType")]
+ public string LicenseType { get; set; }
+
+ ///
+ /// Gets the virtual machine unique id.
+ ///
+ [JsonProperty(PropertyName = "vmId")]
+ public string VmId { get; set; }
+
+ ///
+ /// Gets the security profile.
+ ///
+ [JsonProperty(PropertyName = "securityProfile")]
+ public SecurityProfile SecurityProfile { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (StorageProfile != null)
+ {
+ StorageProfile.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceVMDataDisk.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceVMDataDisk.cs
new file mode 100644
index 0000000000000..9cc8af8bfb673
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceVMDataDisk.cs
@@ -0,0 +1,99 @@
+//
+// 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;
+
+ ///
+ /// Describes a data disk.
+ ///
+ public partial class RestorePointSourceVMDataDisk
+ {
+ ///
+ /// Initializes a new instance of the RestorePointSourceVMDataDisk
+ /// class.
+ ///
+ public RestorePointSourceVMDataDisk()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RestorePointSourceVMDataDisk
+ /// class.
+ ///
+ /// Gets the logical unit number.
+ /// Gets the disk name.
+ /// Gets the caching type. Possible values
+ /// include: 'None', 'ReadOnly', 'ReadWrite'
+ /// Gets the initial disk size in GB for blank
+ /// data disks, and the new desired size for existing OS and Data
+ /// disks.
+ /// Gets the managed disk details
+ /// Gets the disk restore point
+ /// Id.
+ public RestorePointSourceVMDataDisk(int? lun = default(int?), string name = default(string), CachingTypes? caching = default(CachingTypes?), int? diskSizeGB = default(int?), ManagedDiskParameters managedDisk = default(ManagedDiskParameters), ApiEntityReference diskRestorePoint = default(ApiEntityReference))
+ {
+ Lun = lun;
+ Name = name;
+ Caching = caching;
+ DiskSizeGB = diskSizeGB;
+ ManagedDisk = managedDisk;
+ DiskRestorePoint = diskRestorePoint;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the logical unit number.
+ ///
+ [JsonProperty(PropertyName = "lun")]
+ public int? Lun { get; set; }
+
+ ///
+ /// Gets the disk name.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets the caching type. Possible values include: 'None', 'ReadOnly',
+ /// 'ReadWrite'
+ ///
+ [JsonProperty(PropertyName = "caching")]
+ public CachingTypes? Caching { get; set; }
+
+ ///
+ /// Gets the initial disk size in GB for blank data disks, and the new
+ /// desired size for existing OS and Data disks.
+ ///
+ [JsonProperty(PropertyName = "diskSizeGB")]
+ public int? DiskSizeGB { get; set; }
+
+ ///
+ /// Gets the managed disk details
+ ///
+ [JsonProperty(PropertyName = "managedDisk")]
+ public ManagedDiskParameters ManagedDisk { get; set; }
+
+ ///
+ /// Gets the disk restore point Id.
+ ///
+ [JsonProperty(PropertyName = "diskRestorePoint")]
+ public ApiEntityReference DiskRestorePoint { get; set; }
+
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceVMOSDisk.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceVMOSDisk.cs
new file mode 100644
index 0000000000000..67b6280758b36
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceVMOSDisk.cs
@@ -0,0 +1,118 @@
+//
+// 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;
+
+ ///
+ /// Describes an Operating System disk.
+ ///
+ public partial class RestorePointSourceVMOSDisk
+ {
+ ///
+ /// Initializes a new instance of the RestorePointSourceVMOSDisk class.
+ ///
+ public RestorePointSourceVMOSDisk()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RestorePointSourceVMOSDisk class.
+ ///
+ /// Gets the Operating System type. Possible
+ /// values include: 'Windows', 'Linux'
+ /// Gets the disk encryption
+ /// settings.
+ /// Gets the disk name.
+ /// Gets the caching type. Possible values
+ /// include: 'None', 'ReadOnly', 'ReadWrite'
+ /// Gets the disk size in GB.
+ /// Gets the managed disk details
+ /// Gets the disk restore point
+ /// Id.
+ public RestorePointSourceVMOSDisk(string osType = default(string), DiskEncryptionSettings encryptionSettings = default(DiskEncryptionSettings), string name = default(string), CachingTypes? caching = default(CachingTypes?), int? diskSizeGB = default(int?), ManagedDiskParameters managedDisk = default(ManagedDiskParameters), ApiEntityReference diskRestorePoint = default(ApiEntityReference))
+ {
+ OsType = osType;
+ EncryptionSettings = encryptionSettings;
+ Name = name;
+ Caching = caching;
+ DiskSizeGB = diskSizeGB;
+ ManagedDisk = managedDisk;
+ DiskRestorePoint = diskRestorePoint;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the Operating System type. Possible values include: 'Windows',
+ /// 'Linux'
+ ///
+ [JsonProperty(PropertyName = "osType")]
+ public string OsType { get; set; }
+
+ ///
+ /// Gets the disk encryption settings.
+ ///
+ [JsonProperty(PropertyName = "encryptionSettings")]
+ public DiskEncryptionSettings EncryptionSettings { get; set; }
+
+ ///
+ /// Gets the disk name.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets the caching type. Possible values include: 'None', 'ReadOnly',
+ /// 'ReadWrite'
+ ///
+ [JsonProperty(PropertyName = "caching")]
+ public CachingTypes? Caching { get; set; }
+
+ ///
+ /// Gets the disk size in GB.
+ ///
+ [JsonProperty(PropertyName = "diskSizeGB")]
+ public int? DiskSizeGB { get; set; }
+
+ ///
+ /// Gets the managed disk details
+ ///
+ [JsonProperty(PropertyName = "managedDisk")]
+ public ManagedDiskParameters ManagedDisk { get; set; }
+
+ ///
+ /// Gets the disk restore point Id.
+ ///
+ [JsonProperty(PropertyName = "diskRestorePoint")]
+ public ApiEntityReference DiskRestorePoint { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (EncryptionSettings != null)
+ {
+ EncryptionSettings.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceVMStorageProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceVMStorageProfile.cs
new file mode 100644
index 0000000000000..75de44eb96706
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceVMStorageProfile.cs
@@ -0,0 +1,80 @@
+//
+// 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 the storage profile.
+ ///
+ public partial class RestorePointSourceVMStorageProfile
+ {
+ ///
+ /// Initializes a new instance of the
+ /// RestorePointSourceVMStorageProfile class.
+ ///
+ public RestorePointSourceVMStorageProfile()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// RestorePointSourceVMStorageProfile class.
+ ///
+ /// Gets the OS disk of the VM captured at the
+ /// time of the restore point creation.
+ /// Gets the data disks of the VM captured at
+ /// the time of the restore point creation.
+ public RestorePointSourceVMStorageProfile(RestorePointSourceVMOSDisk osDisk = default(RestorePointSourceVMOSDisk), IList dataDisks = default(IList))
+ {
+ OsDisk = osDisk;
+ DataDisks = dataDisks;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the OS disk of the VM captured at the time of the restore
+ /// point creation.
+ ///
+ [JsonProperty(PropertyName = "osDisk")]
+ public RestorePointSourceVMOSDisk OsDisk { get; set; }
+
+ ///
+ /// Gets the data disks of the VM captured at the time of the restore
+ /// point creation.
+ ///
+ [JsonProperty(PropertyName = "dataDisks")]
+ public IList DataDisks { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (OsDisk != null)
+ {
+ OsDisk.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SshPublicKey.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SshPublicKey.cs
index 129f2e1d9d71f..5315de4ced347 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SshPublicKey.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/SshPublicKey.cs
@@ -38,7 +38,7 @@ public SshPublicKey()
/// authenticate with the VM through ssh. The key needs to be at least
/// 2048-bit and in ssh-rsa format. <br><br> For creating
/// ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in
- /// Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ /// Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).
public SshPublicKey(string path = default(string), string keyData = default(string))
{
Path = path;
@@ -64,7 +64,7 @@ public SshPublicKey()
/// the VM through ssh. The key needs to be at least 2048-bit and in
/// ssh-rsa format. <br><br> For creating
/// ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in
- /// Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ /// Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).
///
[JsonProperty(PropertyName = "keyData")]
public string KeyData { get; set; }
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/StorageProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/StorageProfile.cs
index 2bdb4533b7634..d3ef21ac3b6d8 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/StorageProfile.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/StorageProfile.cs
@@ -41,12 +41,12 @@ public StorageProfile()
/// system disk used by the virtual machine. <br><br> For
/// more information about disks, see [About disks and VHDs for Azure
/// virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
/// Specifies the parameters that are used to
/// add a data disk to a virtual machine. <br><br> For more
/// information about disks, see [About disks and VHDs for Azure
/// virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
public StorageProfile(ImageReference imageReference = default(ImageReference), OSDisk osDisk = default(OSDisk), IList dataDisks = default(IList))
{
ImageReference = imageReference;
@@ -75,7 +75,7 @@ public StorageProfile()
/// used by the virtual machine. <br><br>
/// For more information about disks, see [About disks and VHDs for
/// Azure virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
///
[JsonProperty(PropertyName = "osDisk")]
public OSDisk OsDisk { get; set; }
@@ -85,7 +85,7 @@ public StorageProfile()
/// disk to a virtual machine. <br><br> For
/// more information about disks, see [About disks and VHDs for Azure
/// virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
///
[JsonProperty(PropertyName = "dataDisks")]
public IList DataDisks { get; set; }
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachine.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachine.cs
index b2a2fe9d7b9cb..14b705844c3b2 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachine.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachine.cs
@@ -66,12 +66,11 @@ public VirtualMachine()
/// availability set that the virtual machine should be assigned to.
/// Virtual machines specified in the same availability set are
/// allocated to different nodes to maximize availability. For more
- /// information about availability sets, see [Manage the availability
- /// of virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// information about availability sets, see [Availability sets
+ /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
/// <br><br> For more information on Azure planned
- /// maintenance, see [Planned maintenance for virtual machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ /// maintenance, see [Maintenance and updates for Virtual Machines in
+ /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
/// <br><br> Currently, a VM can only be added to
/// availability set at creation time. The availability set to which
/// the VM is being added should be under the same resource group as
@@ -151,6 +150,11 @@ public VirtualMachine()
/// created.<li>Fault domain assignment can be viewed in the
/// Virtual Machine Instance View.<br><br>Minimum
/// api‐version: 2020‐12‐01
+ /// Specifies Scheduled Event
+ /// related configurations.
+ /// UserData for the VM, which must be base-64
+ /// encoded. Customer should not pass any secrets in here.
+ /// <br><br>Minimum api-version: 2021-03-01
/// The virtual machine child extension
/// resources.
/// The identity of the virtual machine, if
@@ -158,7 +162,7 @@ public VirtualMachine()
/// The virtual machine zones.
/// The extended location of the Virtual
/// Machine.
- public VirtualMachine(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Plan plan = default(Plan), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), IList resources = default(IList), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList), ExtendedLocation extendedLocation = default(ExtendedLocation))
+ public VirtualMachine(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Plan plan = default(Plan), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), IList resources = default(IList), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList), ExtendedLocation extendedLocation = default(ExtendedLocation))
: base(location, id, name, type, tags)
{
Plan = plan;
@@ -183,6 +187,8 @@ public VirtualMachine()
VmId = vmId;
ExtensionsTimeBudget = extensionsTimeBudget;
PlatformFaultDomain = platformFaultDomain;
+ ScheduledEventsProfile = scheduledEventsProfile;
+ UserData = userData;
Resources = resources;
Identity = identity;
Zones = zones;
@@ -263,12 +269,12 @@ public VirtualMachine()
/// the virtual machine should be assigned to. Virtual machines
/// specified in the same availability set are allocated to different
/// nodes to maximize availability. For more information about
- /// availability sets, see [Manage the availability of virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// availability sets, see [Availability sets
+ /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
/// <br><br> For more information on Azure
- /// planned maintenance, see [Planned maintenance for virtual machines
- /// in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ /// planned maintenance, see [Maintenance and updates for Virtual
+ /// Machines in
+ /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
/// <br><br> Currently, a VM can only be
/// added to availability set at creation time. The availability set to
/// which the VM is being added should be under the same resource group
@@ -422,6 +428,20 @@ public VirtualMachine()
[JsonProperty(PropertyName = "properties.platformFaultDomain")]
public int? PlatformFaultDomain { get; set; }
+ ///
+ /// Gets or sets specifies Scheduled Event related configurations.
+ ///
+ [JsonProperty(PropertyName = "properties.scheduledEventsProfile")]
+ public ScheduledEventsProfile ScheduledEventsProfile { get; set; }
+
+ ///
+ /// Gets or sets userData for the VM, which must be base-64 encoded.
+ /// Customer should not pass any secrets in here.
+ /// <br><br>Minimum api-version: 2021-03-01
+ ///
+ [JsonProperty(PropertyName = "properties.userData")]
+ public string UserData { get; set; }
+
///
/// Gets the virtual machine child extension resources.
///
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineIpTag.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineIpTag.cs
new file mode 100644
index 0000000000000..35ef67f4e918a
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineIpTag.cs
@@ -0,0 +1,62 @@
+//
+// 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;
+
+ ///
+ /// Contains the IP tag associated with the public IP address.
+ ///
+ public partial class VirtualMachineIpTag
+ {
+ ///
+ /// Initializes a new instance of the VirtualMachineIpTag class.
+ ///
+ public VirtualMachineIpTag()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the VirtualMachineIpTag class.
+ ///
+ /// IP tag type. Example:
+ /// FirstPartyUsage.
+ /// IP tag associated with the public IP. Example:
+ /// SQL, Storage etc.
+ public VirtualMachineIpTag(string ipTagType = default(string), string tag = default(string))
+ {
+ IpTagType = ipTagType;
+ Tag = tag;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets IP tag type. Example: FirstPartyUsage.
+ ///
+ [JsonProperty(PropertyName = "ipTagType")]
+ public string IpTagType { get; set; }
+
+ ///
+ /// Gets or sets IP tag associated with the public IP. Example: SQL,
+ /// Storage etc.
+ ///
+ [JsonProperty(PropertyName = "tag")]
+ public string Tag { get; set; }
+
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs
new file mode 100644
index 0000000000000..a3a115946e25d
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs
@@ -0,0 +1,171 @@
+//
+// 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 Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Describes a virtual machine network interface configurations.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class VirtualMachineNetworkInterfaceConfiguration
+ {
+ ///
+ /// Initializes a new instance of the
+ /// VirtualMachineNetworkInterfaceConfiguration class.
+ ///
+ public VirtualMachineNetworkInterfaceConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// VirtualMachineNetworkInterfaceConfiguration class.
+ ///
+ /// The network interface configuration
+ /// name.
+ /// Specifies the IP configurations of
+ /// the network interface.
+ /// Specifies the primary network interface in
+ /// case the virtual machine has more than 1 network interface.
+ /// Specify what happens to the network
+ /// interface when the VM is deleted. Possible values include:
+ /// 'Delete', 'Detach'
+ /// Specifies whether the
+ /// network interface is accelerated networking-enabled.
+ /// Specifies whether the network interface is
+ /// FPGA networking-enabled.
+ /// Whether IP forwarding enabled on
+ /// this NIC.
+ /// The network security
+ /// group.
+ /// The dns settings to be applied on the
+ /// network interfaces.
+ public VirtualMachineNetworkInterfaceConfiguration(string name, IList ipConfigurations, bool? primary = default(bool?), string deleteOption = default(string), bool? enableAcceleratedNetworking = default(bool?), bool? enableFpga = default(bool?), bool? enableIPForwarding = default(bool?), SubResource networkSecurityGroup = default(SubResource), VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings = default(VirtualMachineNetworkInterfaceDnsSettingsConfiguration), SubResource dscpConfiguration = default(SubResource))
+ {
+ Name = name;
+ Primary = primary;
+ DeleteOption = deleteOption;
+ EnableAcceleratedNetworking = enableAcceleratedNetworking;
+ EnableFpga = enableFpga;
+ EnableIPForwarding = enableIPForwarding;
+ NetworkSecurityGroup = networkSecurityGroup;
+ DnsSettings = dnsSettings;
+ IpConfigurations = ipConfigurations;
+ DscpConfiguration = dscpConfiguration;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the network interface configuration name.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets specifies the primary network interface in case the
+ /// virtual machine has more than 1 network interface.
+ ///
+ [JsonProperty(PropertyName = "properties.primary")]
+ public bool? Primary { get; set; }
+
+ ///
+ /// Gets or sets specify what happens to the network interface when the
+ /// VM is deleted. Possible values include: 'Delete', 'Detach'
+ ///
+ [JsonProperty(PropertyName = "properties.deleteOption")]
+ public string DeleteOption { get; set; }
+
+ ///
+ /// Gets or sets specifies whether the network interface is accelerated
+ /// networking-enabled.
+ ///
+ [JsonProperty(PropertyName = "properties.enableAcceleratedNetworking")]
+ public bool? EnableAcceleratedNetworking { get; set; }
+
+ ///
+ /// Gets or sets specifies whether the network interface is FPGA
+ /// networking-enabled.
+ ///
+ [JsonProperty(PropertyName = "properties.enableFpga")]
+ public bool? EnableFpga { get; set; }
+
+ ///
+ /// Gets or sets whether IP forwarding enabled on this NIC.
+ ///
+ [JsonProperty(PropertyName = "properties.enableIPForwarding")]
+ public bool? EnableIPForwarding { get; set; }
+
+ ///
+ /// Gets or sets the network security group.
+ ///
+ [JsonProperty(PropertyName = "properties.networkSecurityGroup")]
+ public SubResource NetworkSecurityGroup { get; set; }
+
+ ///
+ /// Gets or sets the dns settings to be applied on the network
+ /// interfaces.
+ ///
+ [JsonProperty(PropertyName = "properties.dnsSettings")]
+ public VirtualMachineNetworkInterfaceDnsSettingsConfiguration DnsSettings { get; set; }
+
+ ///
+ /// Gets or sets specifies the IP configurations of the network
+ /// interface.
+ ///
+ [JsonProperty(PropertyName = "properties.ipConfigurations")]
+ public IList IpConfigurations { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties.dscpConfiguration")]
+ public SubResource DscpConfiguration { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Name == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Name");
+ }
+ if (IpConfigurations == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "IpConfigurations");
+ }
+ if (IpConfigurations != null)
+ {
+ foreach (var element in IpConfigurations)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceDnsSettingsConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceDnsSettingsConfiguration.cs
new file mode 100644
index 0000000000000..452f8771a0918
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceDnsSettingsConfiguration.cs
@@ -0,0 +1,55 @@
+//
+// 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 machines network configuration's DNS settings.
+ ///
+ public partial class VirtualMachineNetworkInterfaceDnsSettingsConfiguration
+ {
+ ///
+ /// Initializes a new instance of the
+ /// VirtualMachineNetworkInterfaceDnsSettingsConfiguration class.
+ ///
+ public VirtualMachineNetworkInterfaceDnsSettingsConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// VirtualMachineNetworkInterfaceDnsSettingsConfiguration class.
+ ///
+ /// List of DNS servers IP addresses
+ public VirtualMachineNetworkInterfaceDnsSettingsConfiguration(IList dnsServers = default(IList))
+ {
+ DnsServers = dnsServers;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets list of DNS servers IP addresses
+ ///
+ [JsonProperty(PropertyName = "dnsServers")]
+ public IList DnsServers { get; set; }
+
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceIPConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceIPConfiguration.cs
new file mode 100644
index 0000000000000..9ec3dac67959e
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceIPConfiguration.cs
@@ -0,0 +1,159 @@
+//
+// 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 Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Describes a virtual machine network profile's IP configuration.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class VirtualMachineNetworkInterfaceIPConfiguration
+ {
+ ///
+ /// Initializes a new instance of the
+ /// VirtualMachineNetworkInterfaceIPConfiguration class.
+ ///
+ public VirtualMachineNetworkInterfaceIPConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// VirtualMachineNetworkInterfaceIPConfiguration class.
+ ///
+ /// The IP configuration name.
+ /// Specifies the identifier of the
+ /// subnet.
+ /// Specifies the primary network interface in
+ /// case the virtual machine has more than 1 network interface.
+ /// The
+ /// publicIPAddressConfiguration.
+ /// Available from Api-Version
+ /// 2017-03-30 onwards, it represents whether the specific
+ /// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4.
+ /// Possible values are: 'IPv4' and 'IPv6'. Possible values include:
+ /// 'IPv4', 'IPv6'
+ /// Specifies an array of
+ /// references to application security group.
+ /// Specifies an
+ /// array of references to backend address pools of application
+ /// gateways. A virtual machine can reference backend address pools of
+ /// multiple application gateways. Multiple virtual machines cannot use
+ /// the same application gateway.
+ /// Specifies an array of
+ /// references to backend address pools of load balancers. A virtual
+ /// machine can reference backend address pools of one public and one
+ /// internal load balancer. [Multiple virtual machines cannot use the
+ /// same basic sku load balancer].
+ public VirtualMachineNetworkInterfaceIPConfiguration(string name, SubResource subnet = default(SubResource), bool? primary = default(bool?), VirtualMachinePublicIPAddressConfiguration publicIPAddressConfiguration = default(VirtualMachinePublicIPAddressConfiguration), string privateIPAddressVersion = default(string), IList applicationSecurityGroups = default(IList), IList applicationGatewayBackendAddressPools = default(IList), IList loadBalancerBackendAddressPools = default(IList))
+ {
+ Name = name;
+ Subnet = subnet;
+ Primary = primary;
+ PublicIPAddressConfiguration = publicIPAddressConfiguration;
+ PrivateIPAddressVersion = privateIPAddressVersion;
+ ApplicationSecurityGroups = applicationSecurityGroups;
+ ApplicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools;
+ LoadBalancerBackendAddressPools = loadBalancerBackendAddressPools;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the IP configuration name.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets specifies the identifier of the subnet.
+ ///
+ [JsonProperty(PropertyName = "properties.subnet")]
+ public SubResource Subnet { get; set; }
+
+ ///
+ /// Gets or sets specifies the primary network interface in case the
+ /// virtual machine has more than 1 network interface.
+ ///
+ [JsonProperty(PropertyName = "properties.primary")]
+ public bool? Primary { get; set; }
+
+ ///
+ /// Gets or sets the publicIPAddressConfiguration.
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPAddressConfiguration")]
+ public VirtualMachinePublicIPAddressConfiguration PublicIPAddressConfiguration { get; set; }
+
+ ///
+ /// Gets or sets available from Api-Version 2017-03-30 onwards, it
+ /// represents whether the specific ipconfiguration is IPv4 or IPv6.
+ /// Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
+ /// Possible values include: 'IPv4', 'IPv6'
+ ///
+ [JsonProperty(PropertyName = "properties.privateIPAddressVersion")]
+ public string PrivateIPAddressVersion { get; set; }
+
+ ///
+ /// Gets or sets specifies an array of references to application
+ /// security group.
+ ///
+ [JsonProperty(PropertyName = "properties.applicationSecurityGroups")]
+ public IList ApplicationSecurityGroups { get; set; }
+
+ ///
+ /// Gets or sets specifies an array of references to backend address
+ /// pools of application gateways. A virtual machine can reference
+ /// backend address pools of multiple application gateways. Multiple
+ /// virtual machines cannot use the same application gateway.
+ ///
+ [JsonProperty(PropertyName = "properties.applicationGatewayBackendAddressPools")]
+ public IList ApplicationGatewayBackendAddressPools { get; set; }
+
+ ///
+ /// Gets or sets specifies an array of references to backend address
+ /// pools of load balancers. A virtual machine can reference backend
+ /// address pools of one public and one internal load balancer.
+ /// [Multiple virtual machines cannot use the same basic sku load
+ /// balancer].
+ ///
+ [JsonProperty(PropertyName = "properties.loadBalancerBackendAddressPools")]
+ public IList LoadBalancerBackendAddressPools { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Name == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Name");
+ }
+ if (PublicIPAddressConfiguration != null)
+ {
+ PublicIPAddressConfiguration.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachinePublicIPAddressConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachinePublicIPAddressConfiguration.cs
new file mode 100644
index 0000000000000..d0bed83d6e3dc
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachinePublicIPAddressConfiguration.cs
@@ -0,0 +1,162 @@
+//
+// 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 Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Describes a virtual machines IP Configuration's PublicIPAddress
+ /// configuration
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class VirtualMachinePublicIPAddressConfiguration
+ {
+ ///
+ /// Initializes a new instance of the
+ /// VirtualMachinePublicIPAddressConfiguration class.
+ ///
+ public VirtualMachinePublicIPAddressConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// VirtualMachinePublicIPAddressConfiguration class.
+ ///
+ /// The publicIP address configuration name.
+ /// The idle timeout of the public
+ /// IP address.
+ /// Specify what happens to the public IP
+ /// address when the VM is deleted. Possible values include: 'Delete',
+ /// 'Detach'
+ /// The dns settings to be applied on the
+ /// publicIP addresses .
+ /// The list of IP tags associated with the public
+ /// IP address.
+ /// The PublicIPPrefix from which to
+ /// allocate publicIP addresses.
+ /// Available from Api-Version
+ /// 2019-07-01 onwards, it represents whether the specific
+ /// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible
+ /// values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4',
+ /// 'IPv6'
+ /// Specify the public IP
+ /// allocation type. Possible values include: 'Dynamic',
+ /// 'Static'
+ public VirtualMachinePublicIPAddressConfiguration(string name, int? idleTimeoutInMinutes = default(int?), string deleteOption = default(string), VirtualMachinePublicIPAddressDnsSettingsConfiguration dnsSettings = default(VirtualMachinePublicIPAddressDnsSettingsConfiguration), IList ipTags = default(IList), SubResource publicIPPrefix = default(SubResource), string publicIPAddressVersion = default(string), string publicIPAllocationMethod = default(string), PublicIPAddressSku sku = default(PublicIPAddressSku))
+ {
+ Name = name;
+ IdleTimeoutInMinutes = idleTimeoutInMinutes;
+ DeleteOption = deleteOption;
+ DnsSettings = dnsSettings;
+ IpTags = ipTags;
+ PublicIPPrefix = publicIPPrefix;
+ PublicIPAddressVersion = publicIPAddressVersion;
+ PublicIPAllocationMethod = publicIPAllocationMethod;
+ Sku = sku;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the publicIP address configuration name.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets the idle timeout of the public IP address.
+ ///
+ [JsonProperty(PropertyName = "properties.idleTimeoutInMinutes")]
+ public int? IdleTimeoutInMinutes { get; set; }
+
+ ///
+ /// Gets or sets specify what happens to the public IP address when the
+ /// VM is deleted. Possible values include: 'Delete', 'Detach'
+ ///
+ [JsonProperty(PropertyName = "properties.deleteOption")]
+ public string DeleteOption { get; set; }
+
+ ///
+ /// Gets or sets the dns settings to be applied on the publicIP
+ /// addresses .
+ ///
+ [JsonProperty(PropertyName = "properties.dnsSettings")]
+ public VirtualMachinePublicIPAddressDnsSettingsConfiguration DnsSettings { get; set; }
+
+ ///
+ /// Gets or sets the list of IP tags associated with the public IP
+ /// address.
+ ///
+ [JsonProperty(PropertyName = "properties.ipTags")]
+ public IList IpTags { get; set; }
+
+ ///
+ /// Gets or sets the PublicIPPrefix from which to allocate publicIP
+ /// addresses.
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPPrefix")]
+ public SubResource PublicIPPrefix { get; set; }
+
+ ///
+ /// Gets or sets available from Api-Version 2019-07-01 onwards, it
+ /// represents whether the specific ipconfiguration is IPv4 or IPv6.
+ /// Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
+ /// Possible values include: 'IPv4', 'IPv6'
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPAddressVersion")]
+ public string PublicIPAddressVersion { get; set; }
+
+ ///
+ /// Gets or sets specify the public IP allocation type. Possible values
+ /// include: 'Dynamic', 'Static'
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPAllocationMethod")]
+ public string PublicIPAllocationMethod { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "sku")]
+ public PublicIPAddressSku Sku { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Name == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Name");
+ }
+ if (DnsSettings != null)
+ {
+ DnsSettings.Validate();
+ }
+ if (Sku != null)
+ {
+ Sku.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachinePublicIPAddressDnsSettingsConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachinePublicIPAddressDnsSettingsConfiguration.cs
new file mode 100644
index 0000000000000..f88857828cd0f
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachinePublicIPAddressDnsSettingsConfiguration.cs
@@ -0,0 +1,73 @@
+//
+// 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 Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes a virtual machines network configuration's DNS settings.
+ ///
+ public partial class VirtualMachinePublicIPAddressDnsSettingsConfiguration
+ {
+ ///
+ /// Initializes a new instance of the
+ /// VirtualMachinePublicIPAddressDnsSettingsConfiguration class.
+ ///
+ public VirtualMachinePublicIPAddressDnsSettingsConfiguration()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// VirtualMachinePublicIPAddressDnsSettingsConfiguration class.
+ ///
+ /// The Domain name label prefix of the
+ /// PublicIPAddress resources that will be created. The generated name
+ /// label is the concatenation of the domain name label and vm network
+ /// profile unique ID.
+ public VirtualMachinePublicIPAddressDnsSettingsConfiguration(string domainNameLabel)
+ {
+ DomainNameLabel = domainNameLabel;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the Domain name label prefix of the PublicIPAddress
+ /// resources that will be created. The generated name label is the
+ /// concatenation of the domain name label and vm network profile
+ /// unique ID.
+ ///
+ [JsonProperty(PropertyName = "domainNameLabel")]
+ public string DomainNameLabel { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (DomainNameLabel == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "DomainNameLabel");
+ }
+ }
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs
index f1bb37f73f7e4..36bb5d41b7107 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkConfiguration.cs
@@ -53,7 +53,10 @@ public VirtualMachineScaleSetNetworkConfiguration()
/// network interfaces.
/// Whether IP forwarding enabled on
/// this NIC.
- public VirtualMachineScaleSetNetworkConfiguration(string name, IList ipConfigurations, string id = default(string), bool? primary = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? enableFpga = default(bool?), SubResource networkSecurityGroup = default(SubResource), VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetNetworkConfigurationDnsSettings), bool? enableIPForwarding = default(bool?))
+ /// Specify what happens to the network
+ /// interface when the VM is deleted. Possible values include:
+ /// 'Delete', 'Detach'
+ public VirtualMachineScaleSetNetworkConfiguration(string name, IList ipConfigurations, string id = default(string), bool? primary = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? enableFpga = default(bool?), SubResource networkSecurityGroup = default(SubResource), VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetNetworkConfigurationDnsSettings), bool? enableIPForwarding = default(bool?), string deleteOption = default(string))
: base(id)
{
Name = name;
@@ -64,6 +67,7 @@ public VirtualMachineScaleSetNetworkConfiguration()
DnsSettings = dnsSettings;
IpConfigurations = ipConfigurations;
EnableIPForwarding = enableIPForwarding;
+ DeleteOption = deleteOption;
CustomInit();
}
@@ -125,6 +129,13 @@ public VirtualMachineScaleSetNetworkConfiguration()
[JsonProperty(PropertyName = "properties.enableIPForwarding")]
public bool? EnableIPForwarding { get; set; }
+ ///
+ /// Gets or sets specify what happens to the network interface when the
+ /// VM is deleted. Possible values include: 'Delete', 'Detach'
+ ///
+ [JsonProperty(PropertyName = "properties.deleteOption")]
+ public string DeleteOption { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkProfile.cs
index f16e827624250..ac86f1d80802f 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkProfile.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetNetworkProfile.cs
@@ -39,10 +39,16 @@ public VirtualMachineScaleSetNetworkProfile()
/// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'.
/// The list of network
/// configurations.
- public VirtualMachineScaleSetNetworkProfile(ApiEntityReference healthProbe = default(ApiEntityReference), IList networkInterfaceConfigurations = default(IList))
+ /// specifies the Microsoft.Network API
+ /// version used when creating networking resources in the Network
+ /// Interface Configurations for Virtual Machine Scale Set with
+ /// orchestration mode 'Flexible'. Possible values include:
+ /// '2020-11-01'
+ public VirtualMachineScaleSetNetworkProfile(ApiEntityReference healthProbe = default(ApiEntityReference), IList networkInterfaceConfigurations = default(IList), string networkApiVersion = default(string))
{
HealthProbe = healthProbe;
NetworkInterfaceConfigurations = networkInterfaceConfigurations;
+ NetworkApiVersion = networkApiVersion;
CustomInit();
}
@@ -66,5 +72,14 @@ public VirtualMachineScaleSetNetworkProfile()
[JsonProperty(PropertyName = "networkInterfaceConfigurations")]
public IList NetworkInterfaceConfigurations { get; set; }
+ ///
+ /// Gets or sets specifies the Microsoft.Network API version used when
+ /// creating networking resources in the Network Interface
+ /// Configurations for Virtual Machine Scale Set with orchestration
+ /// mode 'Flexible'. Possible values include: '2020-11-01'
+ ///
+ [JsonProperty(PropertyName = "networkApiVersion")]
+ public string NetworkApiVersion { get; set; }
+
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetOSProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetOSProfile.cs
index 91d51409fb8ed..9e3df64e3fc6f 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetOSProfile.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetOSProfile.cs
@@ -46,13 +46,7 @@ public VirtualMachineScaleSetOSProfile()
/// "sys", "test2", "test3", "user4", "user5". <br><br>
/// **Minimum-length (Linux):** 1 character <br><br>
/// **Max-length (Linux):** 64 characters <br><br>
- /// **Max-length (Windows):** 20 characters
- /// <br><br><li> For root access to the Linux VM, see
- /// [Using root privileges on Linux virtual machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li>
- /// For a list of built-in system users on Linux that should not be
- /// used in this field, see [Selecting User Names for Linux on
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ /// **Max-length (Windows):** 20 characters
/// Specifies the password of the
/// administrator account. <br><br> **Minimum-length
/// (Windows):** 8 characters <br><br> **Minimum-length
@@ -67,27 +61,24 @@ public VirtualMachineScaleSetOSProfile()
/// "Password!", "Password1", "Password22", "iloveyou!"
/// <br><br> For resetting the password, see [How to reset
/// the Remote Desktop service or its login password in a Windows
- /// VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ /// VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)
/// <br><br> For resetting root password, see [Manage
/// users, SSH, and check or repair disks on Azure Linux VMs using the
/// VMAccess
- /// Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)
+ /// Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)
/// Specifies a base-64 encoded string of
/// custom data. The base-64 encoded string is decoded to a binary
/// array that is saved as a file on the Virtual Machine. The maximum
/// length of the binary array is 65535 bytes. <br><br> For
/// using cloud-init for your VM, see [Using cloud-init to customize a
/// Linux VM during
- /// creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ /// creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init)
/// Specifies Windows operating
/// system settings on the virtual machine.
/// Specifies the Linux operating
/// system settings on the virtual machine. <br><br>For a
/// list of supported Linux distributions, see [Linux on Azure-Endorsed
- /// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
- /// <br><br> For running non-endorsed distributions, see
- /// [Information for Non-Endorsed
- /// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ /// Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).
/// Specifies set of certificates that should be
/// installed onto the virtual machines in the scale set.
public VirtualMachineScaleSetOSProfile(string computerNamePrefix = default(string), string adminUsername = default(string), string adminPassword = default(string), string customData = default(string), WindowsConfiguration windowsConfiguration = default(WindowsConfiguration), LinuxConfiguration linuxConfiguration = default(LinuxConfiguration), IList secrets = default(IList))
@@ -128,13 +119,6 @@ public VirtualMachineScaleSetOSProfile()
/// character <br><br> **Max-length
/// (Linux):** 64 characters <br><br>
/// **Max-length (Windows):** 20 characters
- /// <br><br><li> For root
- /// access to the Linux VM, see [Using root privileges on Linux virtual
- /// machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)<br><li>
- /// For a list of built-in system users on Linux that should not be
- /// used in this field, see [Selecting User Names for Linux on
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
///
[JsonProperty(PropertyName = "adminUsername")]
public string AdminUsername { get; set; }
@@ -157,11 +141,11 @@ public VirtualMachineScaleSetOSProfile()
/// <br><br> For resetting the password,
/// see [How to reset the Remote Desktop service or its login password
/// in a Windows
- /// VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ /// VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp)
/// <br><br> For resetting root password,
/// see [Manage users, SSH, and check or repair disks on Azure Linux
/// VMs using the VMAccess
- /// Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)
+ /// Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)
///
[JsonProperty(PropertyName = "adminPassword")]
public string AdminPassword { get; set; }
@@ -173,7 +157,7 @@ public VirtualMachineScaleSetOSProfile()
/// array is 65535 bytes. <br><br> For
/// using cloud-init for your VM, see [Using cloud-init to customize a
/// Linux VM during
- /// creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ /// creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init)
///
[JsonProperty(PropertyName = "customData")]
public string CustomData { get; set; }
@@ -189,10 +173,7 @@ public VirtualMachineScaleSetOSProfile()
/// Gets or sets specifies the Linux operating system settings on the
/// virtual machine. <br><br>For a list of
/// supported Linux distributions, see [Linux on Azure-Endorsed
- /// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
- /// <br><br> For running non-endorsed
- /// distributions, see [Information for Non-Endorsed
- /// Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ /// Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).
///
[JsonProperty(PropertyName = "linuxConfiguration")]
public LinuxConfiguration LinuxConfiguration { get; set; }
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfiguration.cs
index c587d070e649d..d3cadab7187d0 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfiguration.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetPublicIPAddressConfiguration.cs
@@ -51,7 +51,10 @@ public VirtualMachineScaleSetPublicIPAddressConfiguration()
/// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible
/// values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4',
/// 'IPv6'
- public VirtualMachineScaleSetPublicIPAddressConfiguration(string name, int? idleTimeoutInMinutes = default(int?), VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings), IList ipTags = default(IList), SubResource publicIPPrefix = default(SubResource), string publicIPAddressVersion = default(string))
+ /// Specify what happens to the public IP
+ /// when the VM is deleted. Possible values include: 'Delete',
+ /// 'Detach'
+ public VirtualMachineScaleSetPublicIPAddressConfiguration(string name, int? idleTimeoutInMinutes = default(int?), VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings), IList ipTags = default(IList), SubResource publicIPPrefix = default(SubResource), string publicIPAddressVersion = default(string), string deleteOption = default(string), PublicIPAddressSku sku = default(PublicIPAddressSku))
{
Name = name;
IdleTimeoutInMinutes = idleTimeoutInMinutes;
@@ -59,6 +62,8 @@ public VirtualMachineScaleSetPublicIPAddressConfiguration()
IpTags = ipTags;
PublicIPPrefix = publicIPPrefix;
PublicIPAddressVersion = publicIPAddressVersion;
+ DeleteOption = deleteOption;
+ Sku = sku;
CustomInit();
}
@@ -109,6 +114,18 @@ public VirtualMachineScaleSetPublicIPAddressConfiguration()
[JsonProperty(PropertyName = "properties.publicIPAddressVersion")]
public string PublicIPAddressVersion { get; set; }
+ ///
+ /// Gets or sets specify what happens to the public IP when the VM is
+ /// deleted. Possible values include: 'Delete', 'Detach'
+ ///
+ [JsonProperty(PropertyName = "properties.deleteOption")]
+ public string DeleteOption { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "sku")]
+ public PublicIPAddressSku Sku { get; set; }
+
///
/// Validate the object.
///
@@ -125,6 +142,10 @@ public virtual void Validate()
{
DnsSettings.Validate();
}
+ if (Sku != null)
+ {
+ Sku.Validate();
+ }
}
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.cs
index 4907b35c39742..7c440327c4fca 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetStorageProfile.cs
@@ -43,12 +43,12 @@ public VirtualMachineScaleSetStorageProfile()
/// system disk used by the virtual machines in the scale set.
/// <br><br> For more information about disks, see [About
/// disks and VHDs for Azure virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
/// Specifies the parameters that are used to
/// add data disks to the virtual machines in the scale set.
/// <br><br> For more information about disks, see [About
/// disks and VHDs for Azure virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
public VirtualMachineScaleSetStorageProfile(ImageReference imageReference = default(ImageReference), VirtualMachineScaleSetOSDisk osDisk = default(VirtualMachineScaleSetOSDisk), IList dataDisks = default(IList))
{
ImageReference = imageReference;
@@ -77,7 +77,7 @@ public VirtualMachineScaleSetStorageProfile()
/// used by the virtual machines in the scale set.
/// <br><br> For more information about
/// disks, see [About disks and VHDs for Azure virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
///
[JsonProperty(PropertyName = "osDisk")]
public VirtualMachineScaleSetOSDisk OsDisk { get; set; }
@@ -87,7 +87,7 @@ public VirtualMachineScaleSetStorageProfile()
/// disks to the virtual machines in the scale set.
/// <br><br> For more information about
/// disks, see [About disks and VHDs for Azure virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
///
[JsonProperty(PropertyName = "dataDisks")]
public IList DataDisks { get; set; }
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs
index adfa879b98005..ae0784ef088ee 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkConfiguration.cs
@@ -53,7 +53,10 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration()
/// Configuration.
/// Whether IP forwarding enabled on
/// this NIC.
- public VirtualMachineScaleSetUpdateNetworkConfiguration(string id = default(string), string name = default(string), bool? primary = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? enableFpga = default(bool?), SubResource networkSecurityGroup = default(SubResource), VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetNetworkConfigurationDnsSettings), IList ipConfigurations = default(IList), bool? enableIPForwarding = default(bool?))
+ /// Specify what happens to the network
+ /// interface when the VM is deleted. Possible values include:
+ /// 'Delete', 'Detach'
+ public VirtualMachineScaleSetUpdateNetworkConfiguration(string id = default(string), string name = default(string), bool? primary = default(bool?), bool? enableAcceleratedNetworking = default(bool?), bool? enableFpga = default(bool?), SubResource networkSecurityGroup = default(SubResource), VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetNetworkConfigurationDnsSettings), IList ipConfigurations = default(IList), bool? enableIPForwarding = default(bool?), string deleteOption = default(string))
: base(id)
{
Name = name;
@@ -64,6 +67,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration()
DnsSettings = dnsSettings;
IpConfigurations = ipConfigurations;
EnableIPForwarding = enableIPForwarding;
+ DeleteOption = deleteOption;
CustomInit();
}
@@ -123,5 +127,12 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration()
[JsonProperty(PropertyName = "properties.enableIPForwarding")]
public bool? EnableIPForwarding { get; set; }
+ ///
+ /// Gets or sets specify what happens to the network interface when the
+ /// VM is deleted. Possible values include: 'Delete', 'Detach'
+ ///
+ [JsonProperty(PropertyName = "properties.deleteOption")]
+ public string DeleteOption { get; set; }
+
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkProfile.cs
index 55396baa7bcd2..2e451d422faa1 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkProfile.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateNetworkProfile.cs
@@ -39,10 +39,16 @@ public VirtualMachineScaleSetUpdateNetworkProfile()
/// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'.
/// The list of network
/// configurations.
- public VirtualMachineScaleSetUpdateNetworkProfile(ApiEntityReference healthProbe = default(ApiEntityReference), IList networkInterfaceConfigurations = default(IList))
+ /// specifies the Microsoft.Network API
+ /// version used when creating networking resources in the Network
+ /// Interface Configurations for Virtual Machine Scale Set with
+ /// orchestration mode 'Flexible'. Possible values include:
+ /// '2020-11-01'
+ public VirtualMachineScaleSetUpdateNetworkProfile(ApiEntityReference healthProbe = default(ApiEntityReference), IList networkInterfaceConfigurations = default(IList), string networkApiVersion = default(string))
{
HealthProbe = healthProbe;
NetworkInterfaceConfigurations = networkInterfaceConfigurations;
+ NetworkApiVersion = networkApiVersion;
CustomInit();
}
@@ -66,5 +72,14 @@ public VirtualMachineScaleSetUpdateNetworkProfile()
[JsonProperty(PropertyName = "networkInterfaceConfigurations")]
public IList NetworkInterfaceConfigurations { get; set; }
+ ///
+ /// Gets or sets specifies the Microsoft.Network API version used when
+ /// creating networking resources in the Network Interface
+ /// Configurations for Virtual Machine Scale Set with orchestration
+ /// mode 'Flexible'. Possible values include: '2020-11-01'
+ ///
+ [JsonProperty(PropertyName = "networkApiVersion")]
+ public string NetworkApiVersion { get; set; }
+
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs
index 8bb0b43d722ff..e7c0d661e4cf3 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration.cs
@@ -40,11 +40,15 @@ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration()
/// IP address.
/// The dns settings to be applied on the
/// publicIP addresses .
- public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(string name = default(string), int? idleTimeoutInMinutes = default(int?), VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings))
+ /// Specify what happens to the public IP
+ /// when the VM is deleted. Possible values include: 'Delete',
+ /// 'Detach'
+ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(string name = default(string), int? idleTimeoutInMinutes = default(int?), VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings), string deleteOption = default(string))
{
Name = name;
IdleTimeoutInMinutes = idleTimeoutInMinutes;
DnsSettings = dnsSettings;
+ DeleteOption = deleteOption;
CustomInit();
}
@@ -72,6 +76,13 @@ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration()
[JsonProperty(PropertyName = "properties.dnsSettings")]
public VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings DnsSettings { get; set; }
+ ///
+ /// Gets or sets specify what happens to the public IP when the VM is
+ /// deleted. Possible values include: 'Delete', 'Detach'
+ ///
+ [JsonProperty(PropertyName = "properties.deleteOption")]
+ public string DeleteOption { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateVMProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateVMProfile.cs
index 1873c3afa8b15..ae931fd5056a8 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateVMProfile.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetUpdateVMProfile.cs
@@ -50,7 +50,10 @@ public VirtualMachineScaleSetUpdateVMProfile()
/// 2019-03-01.
/// Specifies Scheduled Event
/// related configurations.
- public VirtualMachineScaleSetUpdateVMProfile(VirtualMachineScaleSetUpdateOSProfile osProfile = default(VirtualMachineScaleSetUpdateOSProfile), VirtualMachineScaleSetUpdateStorageProfile storageProfile = default(VirtualMachineScaleSetUpdateStorageProfile), VirtualMachineScaleSetUpdateNetworkProfile networkProfile = default(VirtualMachineScaleSetUpdateNetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), BillingProfile billingProfile = default(BillingProfile), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile))
+ /// UserData for the VM, which must be base-64
+ /// encoded. Customer should not pass any secrets in here.
+ /// <br><br>Minimum api-version: 2021-03-01
+ public VirtualMachineScaleSetUpdateVMProfile(VirtualMachineScaleSetUpdateOSProfile osProfile = default(VirtualMachineScaleSetUpdateOSProfile), VirtualMachineScaleSetUpdateStorageProfile storageProfile = default(VirtualMachineScaleSetUpdateStorageProfile), VirtualMachineScaleSetUpdateNetworkProfile networkProfile = default(VirtualMachineScaleSetUpdateNetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), BillingProfile billingProfile = default(BillingProfile), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string))
{
OsProfile = osProfile;
StorageProfile = storageProfile;
@@ -61,6 +64,7 @@ public VirtualMachineScaleSetUpdateVMProfile()
LicenseType = licenseType;
BillingProfile = billingProfile;
ScheduledEventsProfile = scheduledEventsProfile;
+ UserData = userData;
CustomInit();
}
@@ -126,5 +130,13 @@ public VirtualMachineScaleSetUpdateVMProfile()
[JsonProperty(PropertyName = "scheduledEventsProfile")]
public ScheduledEventsProfile ScheduledEventsProfile { get; set; }
+ ///
+ /// Gets or sets userData for the VM, which must be base-64 encoded.
+ /// Customer should not pass any secrets in here.
+ /// <br><br>Minimum api-version: 2021-03-01
+ ///
+ [JsonProperty(PropertyName = "userData")]
+ public string UserData { get; set; }
+
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVM.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVM.cs
index f7611f16f7f6a..4d185d0b67354 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVM.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVM.cs
@@ -70,12 +70,11 @@ public VirtualMachineScaleSetVM()
/// availability set that the virtual machine should be assigned to.
/// Virtual machines specified in the same availability set are
/// allocated to different nodes to maximize availability. For more
- /// information about availability sets, see [Manage the availability
- /// of virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// information about availability sets, see [Availability sets
+ /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
/// <br><br> For more information on Azure planned
- /// maintenance, see [Planned maintenance for virtual machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ /// maintenance, see [Maintenance and updates for Virtual Machines in
+ /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
/// <br><br> Currently, a VM can only be added to
/// availability set at creation time. An existing VM cannot be added
/// to an availability set.
@@ -99,6 +98,9 @@ public VirtualMachineScaleSetVM()
/// scale set or the customized model for the virtual machine.
/// Specifies the protection policy of
/// the virtual machine.
+ /// UserData for the VM, which must be base-64
+ /// encoded. Customer should not pass any secrets in here.
+ /// <br><br>Minimum api-version: 2021-03-01
/// 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
@@ -109,7 +111,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), SecurityProfile securityProfile = default(SecurityProfile), 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))
+ 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), SecurityProfile securityProfile = default(SecurityProfile), 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), string userData = default(string), Plan plan = default(Plan), IList resources = default(IList), IList zones = default(IList))
: base(location, id, name, type, tags)
{
InstanceId = instanceId;
@@ -130,6 +132,7 @@ public VirtualMachineScaleSetVM()
LicenseType = licenseType;
ModelDefinitionApplied = modelDefinitionApplied;
ProtectionPolicy = protectionPolicy;
+ UserData = userData;
Plan = plan;
Resources = resources;
Zones = zones;
@@ -236,12 +239,12 @@ public VirtualMachineScaleSetVM()
/// the virtual machine should be assigned to. Virtual machines
/// specified in the same availability set are allocated to different
/// nodes to maximize availability. For more information about
- /// availability sets, see [Manage the availability of virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// availability sets, see [Availability sets
+ /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
/// <br><br> For more information on Azure
- /// planned maintenance, see [Planned maintenance for virtual machines
- /// in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ /// planned maintenance, see [Maintenance and updates for Virtual
+ /// Machines in
+ /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
/// <br><br> Currently, a VM can only be
/// added to availability set at creation time. An existing VM cannot
/// be added to an availability set.
@@ -291,6 +294,14 @@ public VirtualMachineScaleSetVM()
[JsonProperty(PropertyName = "properties.protectionPolicy")]
public VirtualMachineScaleSetVMProtectionPolicy ProtectionPolicy { get; set; }
+ ///
+ /// Gets or sets userData for the VM, which must be base-64 encoded.
+ /// Customer should not pass any secrets in here.
+ /// <br><br>Minimum api-version: 2021-03-01
+ ///
+ [JsonProperty(PropertyName = "properties.userData")]
+ public string UserData { 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/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMProfile.cs
index ffa142b34ece2..d348dd9e9d22a 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMProfile.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetVMProfile.cs
@@ -75,7 +75,11 @@ public VirtualMachineScaleSetVMProfile()
/// 2019-03-01.
/// Specifies Scheduled Event
/// related configurations.
- public VirtualMachineScaleSetVMProfile(VirtualMachineScaleSetOSProfile osProfile = default(VirtualMachineScaleSetOSProfile), VirtualMachineScaleSetStorageProfile storageProfile = default(VirtualMachineScaleSetStorageProfile), VirtualMachineScaleSetNetworkProfile networkProfile = default(VirtualMachineScaleSetNetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile))
+ /// UserData for the virtual machines in the
+ /// scale set, which must be base-64 encoded. Customer should not pass
+ /// any secrets in here. <br><br>Minimum api-version:
+ /// 2021-03-01
+ public VirtualMachineScaleSetVMProfile(VirtualMachineScaleSetOSProfile osProfile = default(VirtualMachineScaleSetOSProfile), VirtualMachineScaleSetStorageProfile storageProfile = default(VirtualMachineScaleSetStorageProfile), VirtualMachineScaleSetNetworkProfile networkProfile = default(VirtualMachineScaleSetNetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), VirtualMachineScaleSetExtensionProfile extensionProfile = default(VirtualMachineScaleSetExtensionProfile), string licenseType = default(string), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string))
{
OsProfile = osProfile;
StorageProfile = storageProfile;
@@ -88,6 +92,7 @@ public VirtualMachineScaleSetVMProfile()
EvictionPolicy = evictionPolicy;
BillingProfile = billingProfile;
ScheduledEventsProfile = scheduledEventsProfile;
+ UserData = userData;
CustomInit();
}
@@ -197,6 +202,15 @@ public VirtualMachineScaleSetVMProfile()
[JsonProperty(PropertyName = "scheduledEventsProfile")]
public ScheduledEventsProfile ScheduledEventsProfile { get; set; }
+ ///
+ /// Gets or sets userData for the virtual machines in the scale set,
+ /// which must be base-64 encoded. Customer should not pass any secrets
+ /// in here. <br><br>Minimum api-version:
+ /// 2021-03-01
+ ///
+ [JsonProperty(PropertyName = "userData")]
+ public string UserData { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineSize.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineSize.cs
index 116eee848dddf..de774e455703d 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineSize.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineSize.cs
@@ -31,7 +31,12 @@ public VirtualMachineSize()
///
/// The name of the virtual machine size.
/// The number of cores supported by the
- /// virtual machine size.
+ /// virtual machine size. For Constrained vCPU capable VM sizes, this
+ /// number represents the total vCPUs of quota that the VM uses. For
+ /// accurate vCPU count, please refer to
+ /// https://docs.microsoft.com/azure/virtual-machines/constrained-vcpu
+ /// or
+ /// https://docs.microsoft.com/rest/api/compute/resourceskus/list
/// The OS disk size, in MB, allowed by
/// the virtual machine size.
/// The resource disk size, in MB,
@@ -64,7 +69,11 @@ public VirtualMachineSize()
///
/// Gets or sets the number of cores supported by the virtual machine
- /// size.
+ /// size. For Constrained vCPU capable VM sizes, this number represents
+ /// the total vCPUs of quota that the VM uses. For accurate vCPU count,
+ /// please refer to
+ /// https://docs.microsoft.com/azure/virtual-machines/constrained-vcpu
+ /// or https://docs.microsoft.com/rest/api/compute/resourceskus/list
///
[JsonProperty(PropertyName = "numberOfCores")]
public int? NumberOfCores { get; set; }
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineUpdate.cs
index b91aa7a099bf6..193c37f60c0a5 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineUpdate.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineUpdate.cs
@@ -62,12 +62,11 @@ public VirtualMachineUpdate()
/// availability set that the virtual machine should be assigned to.
/// Virtual machines specified in the same availability set are
/// allocated to different nodes to maximize availability. For more
- /// information about availability sets, see [Manage the availability
- /// of virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// information about availability sets, see [Availability sets
+ /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
/// <br><br> For more information on Azure planned
- /// maintenance, see [Planned maintenance for virtual machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ /// maintenance, see [Maintenance and updates for Virtual Machines in
+ /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
/// <br><br> Currently, a VM can only be added to
/// availability set at creation time. The availability set to which
/// the VM is being added should be under the same resource group as
@@ -147,10 +146,15 @@ public VirtualMachineUpdate()
/// created.<li>Fault domain assignment can be viewed in the
/// Virtual Machine Instance View.<br><br>Minimum
/// api‐version: 2020‐12‐01
+ /// Specifies Scheduled Event
+ /// related configurations.
+ /// UserData for the VM, which must be base-64
+ /// encoded. Customer should not pass any secrets in here.
+ /// <br><br>Minimum api-version: 2021-03-01
/// The identity of the virtual machine, if
/// configured.
/// The virtual machine zones.
- public VirtualMachineUpdate(IDictionary tags = default(IDictionary), Plan plan = default(Plan), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList))
+ public VirtualMachineUpdate(IDictionary tags = default(IDictionary), Plan plan = default(Plan), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), NetworkProfile networkProfile = default(NetworkProfile), SecurityProfile securityProfile = default(SecurityProfile), DiagnosticsProfile diagnosticsProfile = default(DiagnosticsProfile), SubResource availabilitySet = default(SubResource), SubResource virtualMachineScaleSet = default(SubResource), SubResource proximityPlacementGroup = default(SubResource), string priority = default(string), string evictionPolicy = default(string), BillingProfile billingProfile = default(BillingProfile), SubResource host = default(SubResource), SubResource hostGroup = default(SubResource), string provisioningState = default(string), VirtualMachineInstanceView instanceView = default(VirtualMachineInstanceView), string licenseType = default(string), string vmId = default(string), string extensionsTimeBudget = default(string), int? platformFaultDomain = default(int?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList))
: base(tags)
{
Plan = plan;
@@ -175,6 +179,8 @@ public VirtualMachineUpdate()
VmId = vmId;
ExtensionsTimeBudget = extensionsTimeBudget;
PlatformFaultDomain = platformFaultDomain;
+ ScheduledEventsProfile = scheduledEventsProfile;
+ UserData = userData;
Identity = identity;
Zones = zones;
CustomInit();
@@ -253,12 +259,12 @@ public VirtualMachineUpdate()
/// the virtual machine should be assigned to. Virtual machines
/// specified in the same availability set are allocated to different
/// nodes to maximize availability. For more information about
- /// availability sets, see [Manage the availability of virtual
- /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ /// availability sets, see [Availability sets
+ /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
/// <br><br> For more information on Azure
- /// planned maintenance, see [Planned maintenance for virtual machines
- /// in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ /// planned maintenance, see [Maintenance and updates for Virtual
+ /// Machines in
+ /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
/// <br><br> Currently, a VM can only be
/// added to availability set at creation time. The availability set to
/// which the VM is being added should be under the same resource group
@@ -412,6 +418,20 @@ public VirtualMachineUpdate()
[JsonProperty(PropertyName = "properties.platformFaultDomain")]
public int? PlatformFaultDomain { get; set; }
+ ///
+ /// Gets or sets specifies Scheduled Event related configurations.
+ ///
+ [JsonProperty(PropertyName = "properties.scheduledEventsProfile")]
+ public ScheduledEventsProfile ScheduledEventsProfile { get; set; }
+
+ ///
+ /// Gets or sets userData for the VM, which must be base-64 encoded.
+ /// Customer should not pass any secrets in here.
+ /// <br><br>Minimum api-version: 2021-03-01
+ ///
+ [JsonProperty(PropertyName = "properties.userData")]
+ public string UserData { get; set; }
+
///
/// Gets or sets the identity of the virtual machine, if configured.
///
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/WindowsConfiguration.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/WindowsConfiguration.cs
index 809b8955c76a9..e090d1a728041 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/WindowsConfiguration.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/WindowsConfiguration.cs
@@ -45,9 +45,9 @@ public WindowsConfiguration()
/// Specifies the time zone of the virtual
/// machine. e.g. "Pacific Standard Time". <br><br>
/// Possible values can be
- /// [TimeZoneInfo.Id](https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id)
+ /// [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id)
/// value from time zones returned by
- /// [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.getsystemtimezones).
+ /// [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones).
/// Specifies additional
/// base-64 encoded XML formatted information that can be included in
/// the Unattend.xml file, which is used by Windows Setup.
@@ -96,9 +96,9 @@ public WindowsConfiguration()
/// Gets or sets specifies the time zone of the virtual machine. e.g.
/// "Pacific Standard Time". <br><br>
/// Possible values can be
- /// [TimeZoneInfo.Id](https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id)
+ /// [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id)
/// value from time zones returned by
- /// [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.getsystemtimezones).
+ /// [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones).
///
[JsonProperty(PropertyName = "timeZone")]
public string TimeZone { get; set; }
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/WindowsPatchAssessmentMode.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/WindowsPatchAssessmentMode.cs
new file mode 100644
index 0000000000000..04cbb5056aa2d
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/WindowsPatchAssessmentMode.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 WindowsPatchAssessmentMode.
+ ///
+ public static class WindowsPatchAssessmentMode
+ {
+ public const string ImageDefault = "ImageDefault";
+ public const string AutomaticByPlatform = "AutomaticByPlatform";
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Operations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Operations.cs
index 3e58df5747bc1..90f6d4ca36a09 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Operations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Operations.cs
@@ -70,7 +70,7 @@ internal Operations(ComputeManagementClient client)
///
public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ProximityPlacementGroupsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ProximityPlacementGroupsOperations.cs
index 5026ed7ba8236..5578e18e1b6dc 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ProximityPlacementGroupsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ProximityPlacementGroupsOperations.cs
@@ -105,7 +105,7 @@ internal ProximityPlacementGroupsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-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 = "2020-12-01";
+ string apiVersion = "2021-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 = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -710,7 +710,7 @@ internal ProximityPlacementGroupsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -895,7 +895,7 @@ internal ProximityPlacementGroupsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1078,7 +1078,7 @@ internal ProximityPlacementGroupsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-12-01";
+ string apiVersion = "2021-03-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperations.cs
new file mode 100644
index 0000000000000..110d758d61853
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperations.cs
@@ -0,0 +1,1609 @@
+//
+// 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
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// RestorePointCollectionsOperations operations.
+ ///
+ internal partial class RestorePointCollectionsOperations : IServiceOperations, IRestorePointCollectionsOperations
+ {
+ ///
+ /// Initializes a new instance of the RestorePointCollectionsOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal RestorePointCollectionsOperations(ComputeManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the ComputeManagementClient
+ ///
+ public ComputeManagementClient Client { get; private set; }
+
+ ///
+ /// The operation to create or update the restore point collection. Please
+ /// refer to https://aka.ms/RestorePoints for more details. When updating a
+ /// restore point collection, only tags may be modified.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// Parameters supplied to the Create or Update restore point collection
+ /// operation.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, RestorePointCollection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (restorePointCollectionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "restorePointCollectionName");
+ }
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (parameters != null)
+ {
+ parameters.Validate();
+ }
+ string apiVersion = "2021-03-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("restorePointCollectionName", restorePointCollectionName);
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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/restorePointCollections/{restorePointCollectionName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{restorePointCollectionName}", System.Uri.EscapeDataString(restorePointCollectionName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ 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("PUT");
+ _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 && (int)_statusCode != 201)
+ {
+ 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();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 201)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// The operation to update the restore point collection.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// Parameters supplied to the Update restore point collection operation.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, RestorePointCollectionUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (restorePointCollectionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "restorePointCollectionName");
+ }
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ string apiVersion = "2021-03-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("restorePointCollectionName", restorePointCollectionName);
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Update", 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/restorePointCollections/{restorePointCollectionName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{restorePointCollectionName}", System.Uri.EscapeDataString(restorePointCollectionName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ 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("PATCH");
+ _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();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// The operation to delete the restore point collection. This operation will
+ /// also delete all the contained restore points.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// The operation to get the restore point collection.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The expand expression to apply on the operation. If expand=restorePoints,
+ /// server will return all contained restore points in the
+ /// restorePointCollection. Possible values include: 'restorePoints'
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// 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> GetWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (restorePointCollectionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "restorePointCollectionName");
+ }
+ string apiVersion = "2021-03-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("restorePointCollectionName", restorePointCollectionName);
+ tracingParameters.Add("expand", expand);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", 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/restorePointCollections/{restorePointCollectionName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{restorePointCollectionName}", System.Uri.EscapeDataString(restorePointCollectionName));
+ List _queryParameters = new List();
+ if (expand != null)
+ {
+ _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand)));
+ }
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ 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("GET");
+ _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;
+ // 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();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Gets the list of restore point collections in a resource group.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// 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>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ string apiVersion = "2021-03-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "List", 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/restorePointCollections").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ 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("GET");
+ _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;
+ // 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();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Gets the list of restore point collections in the subscription. Use
+ /// nextLink property in the response to get the next page of restore point
+ /// collections. Do this till nextLink is not null to fetch all the restore
+ /// point collections.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// 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>> ListAllWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string apiVersion = "2021-03-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListAll", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ 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("GET");
+ _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;
+ // 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();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// The operation to delete the restore point collection. This operation will
+ /// also delete all the contained restore points.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ ///
+ /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (restorePointCollectionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "restorePointCollectionName");
+ }
+ string apiVersion = "2021-03-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("restorePointCollectionName", restorePointCollectionName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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/restorePointCollections/{restorePointCollectionName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{restorePointCollectionName}", System.Uri.EscapeDataString(restorePointCollectionName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ 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("DELETE");
+ _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;
+ // 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 && (int)_statusCode != 202 && (int)_statusCode != 204)
+ {
+ 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;
+ }
+
+ ///
+ /// Gets the list of restore point collections in a resource group.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// 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>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (nextPageLink == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("nextPageLink", nextPageLink);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters);
+ }
+ // Construct URL
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
+ 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("GET");
+ _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;
+ // 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();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Gets the list of restore point collections in the subscription. Use
+ /// nextLink property in the response to get the next page of restore point
+ /// collections. Do this till nextLink is not null to fetch all the restore
+ /// point collections.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// 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>> ListAllNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (nextPageLink == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("nextPageLink", nextPageLink);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListAllNext", tracingParameters);
+ }
+ // Construct URL
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
+ 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("GET");
+ _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;
+ // 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();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperationsExtensions.cs
new file mode 100644
index 0000000000000..36fa0f5039e88
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperationsExtensions.cs
@@ -0,0 +1,393 @@
+//
+// 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
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for RestorePointCollectionsOperations.
+ ///
+ public static partial class RestorePointCollectionsOperationsExtensions
+ {
+ ///
+ /// The operation to create or update the restore point collection. Please
+ /// refer to https://aka.ms/RestorePoints for more details. When updating a
+ /// restore point collection, only tags may be modified.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// Parameters supplied to the Create or Update restore point collection
+ /// operation.
+ ///
+ public static RestorePointCollection CreateOrUpdate(this IRestorePointCollectionsOperations operations, string resourceGroupName, string restorePointCollectionName, RestorePointCollection parameters)
+ {
+ return operations.CreateOrUpdateAsync(resourceGroupName, restorePointCollectionName, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// The operation to create or update the restore point collection. Please
+ /// refer to https://aka.ms/RestorePoints for more details. When updating a
+ /// restore point collection, only tags may be modified.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// Parameters supplied to the Create or Update restore point collection
+ /// operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task CreateOrUpdateAsync(this IRestorePointCollectionsOperations operations, string resourceGroupName, string restorePointCollectionName, RestorePointCollection parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// The operation to update the restore point collection.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// Parameters supplied to the Update restore point collection operation.
+ ///
+ public static RestorePointCollection Update(this IRestorePointCollectionsOperations operations, string resourceGroupName, string restorePointCollectionName, RestorePointCollectionUpdate parameters)
+ {
+ return operations.UpdateAsync(resourceGroupName, restorePointCollectionName, parameters).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// The operation to update the restore point collection.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// Parameters supplied to the Update restore point collection operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task UpdateAsync(this IRestorePointCollectionsOperations operations, string resourceGroupName, string restorePointCollectionName, RestorePointCollectionUpdate parameters, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, parameters, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// The operation to delete the restore point collection. This operation will
+ /// also delete all the contained restore points.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ public static void Delete(this IRestorePointCollectionsOperations operations, string resourceGroupName, string restorePointCollectionName)
+ {
+ operations.DeleteAsync(resourceGroupName, restorePointCollectionName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// The operation to delete the restore point collection. This operation will
+ /// also delete all the contained restore points.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task DeleteAsync(this IRestorePointCollectionsOperations operations, string resourceGroupName, string restorePointCollectionName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// The operation to get the restore point collection.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The expand expression to apply on the operation. If expand=restorePoints,
+ /// server will return all contained restore points in the
+ /// restorePointCollection. Possible values include: 'restorePoints'
+ ///
+ public static RestorePointCollection Get(this IRestorePointCollectionsOperations operations, string resourceGroupName, string restorePointCollectionName, string expand = default(string))
+ {
+ return operations.GetAsync(resourceGroupName, restorePointCollectionName, expand).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// The operation to get the restore point collection.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The expand expression to apply on the operation. If expand=restorePoints,
+ /// server will return all contained restore points in the
+ /// restorePointCollection. Possible values include: 'restorePoints'
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IRestorePointCollectionsOperations operations, string resourceGroupName, string restorePointCollectionName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, expand, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Gets the list of restore point collections in a resource group.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ public static IPage List(this IRestorePointCollectionsOperations operations, string resourceGroupName)
+ {
+ return operations.ListAsync(resourceGroupName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets the list of restore point collections in a resource group.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAsync(this IRestorePointCollectionsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Gets the list of restore point collections in the subscription. Use
+ /// nextLink property in the response to get the next page of restore point
+ /// collections. Do this till nextLink is not null to fetch all the restore
+ /// point collections.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ public static IPage ListAll(this IRestorePointCollectionsOperations operations)
+ {
+ return operations.ListAllAsync().GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets the list of restore point collections in the subscription. Use
+ /// nextLink property in the response to get the next page of restore point
+ /// collections. Do this till nextLink is not null to fetch all the restore
+ /// point collections.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAllAsync(this IRestorePointCollectionsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListAllWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// The operation to delete the restore point collection. This operation will
+ /// also delete all the contained restore points.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ public static void BeginDelete(this IRestorePointCollectionsOperations operations, string resourceGroupName, string restorePointCollectionName)
+ {
+ operations.BeginDeleteAsync(resourceGroupName, restorePointCollectionName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// The operation to delete the restore point collection. This operation will
+ /// also delete all the contained restore points.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginDeleteAsync(this IRestorePointCollectionsOperations operations, string resourceGroupName, string restorePointCollectionName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Gets the list of restore point collections in a resource group.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListNext(this IRestorePointCollectionsOperations operations, string nextPageLink)
+ {
+ return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets the list of restore point collections in a resource group.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListNextAsync(this IRestorePointCollectionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Gets the list of restore point collections in the subscription. Use
+ /// nextLink property in the response to get the next page of restore point
+ /// collections. Do this till nextLink is not null to fetch all the restore
+ /// point collections.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListAllNext(this IRestorePointCollectionsOperations operations, string nextPageLink)
+ {
+ return operations.ListAllNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets the list of restore point collections in the subscription. Use
+ /// nextLink property in the response to get the next page of restore point
+ /// collections. Do this till nextLink is not null to fetch all the restore
+ /// point collections.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAllNextAsync(this IRestorePointCollectionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListAllNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperations.cs
new file mode 100644
index 0000000000000..388a7d3bcc762
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperations.cs
@@ -0,0 +1,714 @@
+//
+// 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
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// RestorePointsOperations operations.
+ ///
+ internal partial class RestorePointsOperations : IServiceOperations, IRestorePointsOperations
+ {
+ ///
+ /// Initializes a new instance of the RestorePointsOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal RestorePointsOperations(ComputeManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the ComputeManagementClient
+ ///
+ public ComputeManagementClient Client { get; private set; }
+
+ ///
+ /// The operation to create the restore point. Updating properties of an
+ /// existing restore point is not allowed
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// List of disk resource ids that the customer wishes to exclude from the
+ /// restore point. If no disks are specified, all disks will be included.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, IList excludeDisks = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, restorePointName, excludeDisks, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// The operation to delete the restore point.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, restorePointName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// The operation to get the restore point.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// 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> GetWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (restorePointCollectionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "restorePointCollectionName");
+ }
+ if (restorePointName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "restorePointName");
+ }
+ string apiVersion = "2021-03-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("restorePointCollectionName", restorePointCollectionName);
+ tracingParameters.Add("restorePointName", restorePointName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", 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/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{restorePointCollectionName}", System.Uri.EscapeDataString(restorePointCollectionName));
+ _url = _url.Replace("{restorePointName}", System.Uri.EscapeDataString(restorePointName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ 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("GET");
+ _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;
+ // 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();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// The operation to create the restore point. Updating properties of an
+ /// existing restore point is not allowed
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// List of disk resource ids that the customer wishes to exclude from the
+ /// restore point. If no disks are specified, all disks will be included.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, IList excludeDisks = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (restorePointCollectionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "restorePointCollectionName");
+ }
+ if (restorePointName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "restorePointName");
+ }
+ string apiVersion = "2021-03-01";
+ RestorePoint parameters = new RestorePoint();
+ if (excludeDisks != null)
+ {
+ parameters.ExcludeDisks = excludeDisks;
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("restorePointCollectionName", restorePointCollectionName);
+ tracingParameters.Add("restorePointName", restorePointName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{restorePointCollectionName}", System.Uri.EscapeDataString(restorePointCollectionName));
+ _url = _url.Replace("{restorePointName}", System.Uri.EscapeDataString(restorePointName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ 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("PUT");
+ _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 != 201)
+ {
+ 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();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 201)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// The operation to delete the restore point.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// 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 BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string restorePointCollectionName, string restorePointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (restorePointCollectionName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "restorePointCollectionName");
+ }
+ if (restorePointName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "restorePointName");
+ }
+ string apiVersion = "2021-03-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("restorePointCollectionName", restorePointCollectionName);
+ tracingParameters.Add("restorePointName", restorePointName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{restorePointCollectionName}", System.Uri.EscapeDataString(restorePointCollectionName));
+ _url = _url.Replace("{restorePointName}", System.Uri.EscapeDataString(restorePointName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ 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("DELETE");
+ _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;
+ // 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 && (int)_statusCode != 202 && (int)_statusCode != 204)
+ {
+ 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;
+ }
+
+ }
+}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperationsExtensions.cs
new file mode 100644
index 0000000000000..3356e89a22760
--- /dev/null
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperationsExtensions.cs
@@ -0,0 +1,271 @@
+//
+// 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
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for RestorePointsOperations.
+ ///
+ public static partial class RestorePointsOperationsExtensions
+ {
+ ///
+ /// The operation to create the restore point. Updating properties of an
+ /// existing restore point is not allowed
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// List of disk resource ids that the customer wishes to exclude from the
+ /// restore point. If no disks are specified, all disks will be included.
+ ///
+ public static RestorePoint Create(this IRestorePointsOperations operations, string resourceGroupName, string restorePointCollectionName, string restorePointName, IList excludeDisks = default(IList))
+ {
+ return operations.CreateAsync(resourceGroupName, restorePointCollectionName, restorePointName, excludeDisks).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// The operation to create the restore point. Updating properties of an
+ /// existing restore point is not allowed
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// List of disk resource ids that the customer wishes to exclude from the
+ /// restore point. If no disks are specified, all disks will be included.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task CreateAsync(this IRestorePointsOperations operations, string resourceGroupName, string restorePointCollectionName, string restorePointName, IList excludeDisks = default(IList), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, restorePointName, excludeDisks, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// The operation to delete the restore point.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ public static void Delete(this IRestorePointsOperations operations, string resourceGroupName, string restorePointCollectionName, string restorePointName)
+ {
+ operations.DeleteAsync(resourceGroupName, restorePointCollectionName, restorePointName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// The operation to delete the restore point.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the Restore Point Collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task DeleteAsync(this IRestorePointsOperations operations, string resourceGroupName, string restorePointCollectionName, string restorePointName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, restorePointName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// The operation to get the restore point.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ public static RestorePoint Get(this IRestorePointsOperations operations, string resourceGroupName, string restorePointCollectionName, string restorePointName)
+ {
+ return operations.GetAsync(resourceGroupName, restorePointCollectionName, restorePointName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// The operation to get the restore point.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IRestorePointsOperations operations, string resourceGroupName, string restorePointCollectionName, string restorePointName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, restorePointCollectionName, restorePointName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// The operation to create the restore point. Updating properties of an
+ /// existing restore point is not allowed
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the restore point collection.
+ ///
+ ///
+ /// The name of the restore point.
+ ///
+ ///
+ /// List of disk resource ids that the customer wishes to exclude from the
+ /// restore point. If no disks are specified, all disks will be included.
+ ///
+ public static RestorePoint BeginCreate(this IRestorePointsOperations operations, string resourceGroupName, string restorePointCollectionName, string restorePointName, IList excludeDisks = default(IList))
+ {
+ return operations.BeginCreateAsync(resourceGroupName, restorePointCollectionName, restorePointName, excludeDisks).GetAwaiter().GetResult();
+ }
+
+ ///