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 2175aa8880972..2d80b05adee46 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CloudServiceRoleInstancesOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CloudServiceRoleInstancesOperations.cs
@@ -85,9 +85,8 @@ internal CloudServiceRoleInstancesOperations(ComputeManagementClient client)
///
///
///
- /// The expand expression to apply to the operation. 'UserData' is not
- /// supported for cloud services. Possible values include: 'instanceView',
- /// 'userData'
+ /// The expand expression to apply to the operation. Possible values include:
+ /// 'instanceView'
///
///
/// Headers that will be added to request.
@@ -497,9 +496,8 @@ internal CloudServiceRoleInstancesOperations(ComputeManagementClient client)
///
///
///
- /// The expand expression to apply to the operation. 'UserData' is not
- /// supported for cloud services. Possible values include: 'instanceView',
- /// 'userData'
+ /// The expand expression to apply to the operation. Possible values include:
+ /// 'instanceView'
///
///
/// 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 0f5b5096eabda..b629a041cd9b8 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CloudServiceRoleInstancesOperationsExtensions.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/CloudServiceRoleInstancesOperationsExtensions.cs
@@ -75,9 +75,8 @@ public static void Delete(this ICloudServiceRoleInstancesOperations operations,
///
///
///
- /// The expand expression to apply to the operation. 'UserData' is not
- /// supported for cloud services. Possible values include: 'instanceView',
- /// 'userData'
+ /// The expand expression to apply to the operation. Possible values include:
+ /// 'instanceView'
///
public static RoleInstance Get(this ICloudServiceRoleInstancesOperations operations, string roleInstanceName, string resourceGroupName, string cloudServiceName, InstanceViewTypes? expand = default(InstanceViewTypes?))
{
@@ -98,9 +97,8 @@ public static void Delete(this ICloudServiceRoleInstancesOperations operations,
///
///
///
- /// The expand expression to apply to the operation. 'UserData' is not
- /// supported for cloud services. Possible values include: 'instanceView',
- /// 'userData'
+ /// The expand expression to apply to the operation. Possible values include:
+ /// 'instanceView'
///
///
/// The cancellation token.
@@ -170,9 +168,8 @@ public static RoleInstanceInstanceView GetInstanceView(this ICloudServiceRoleIns
///
///
///
- /// The expand expression to apply to the operation. 'UserData' is not
- /// supported for cloud services. Possible values include: 'instanceView',
- /// 'userData'
+ /// The expand expression to apply to the operation. Possible values include:
+ /// 'instanceView'
///
public static IPage List(this ICloudServiceRoleInstancesOperations operations, string resourceGroupName, string cloudServiceName, InstanceViewTypes? expand = default(InstanceViewTypes?))
{
@@ -192,9 +189,8 @@ public static RoleInstanceInstanceView GetInstanceView(this ICloudServiceRoleIns
///
///
///
- /// The expand expression to apply to the operation. 'UserData' is not
- /// supported for cloud services. Possible values include: 'instanceView',
- /// 'userData'
+ /// The expand expression to apply to the operation. Possible values include:
+ /// 'instanceView'
///
///
/// 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 ba7fe15ecf4cf..0fe2006444c9b 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ComputeManagementClient.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ComputeManagementClient.cs
@@ -146,16 +146,6 @@ 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.
///
@@ -547,8 +537,6 @@ 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 9bd41d6360069..d782b576da85c 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperations.cs
@@ -673,10 +673,9 @@ internal DedicatedHostGroupsOperations(ComputeManagementClient client)
/// The name of the dedicated host group.
///
///
- /// 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 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'
///
///
/// Headers that will be added to request.
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 1680f78d18801..d5f081ef95a34 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperationsExtensions.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostGroupsOperationsExtensions.cs
@@ -167,10 +167,9 @@ public static void Delete(this IDedicatedHostGroupsOperations operations, string
/// The name of the dedicated host group.
///
///
- /// 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 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'
///
public static DedicatedHostGroup Get(this IDedicatedHostGroupsOperations operations, string resourceGroupName, string hostGroupName, InstanceViewTypes? expand = default(InstanceViewTypes?))
{
@@ -190,10 +189,9 @@ public static void Delete(this IDedicatedHostGroupsOperations operations, string
/// The name of the dedicated host group.
///
///
- /// 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 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 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 d7753cbc0128e..93a8e7dcf3f69 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperations.cs
@@ -144,10 +144,8 @@ internal DedicatedHostsOperations(ComputeManagementClient client)
/// The name of the dedicated host.
///
///
- /// 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 expand expression to apply on the operation. Possible values include:
+ /// 'instanceView'
///
///
/// Headers that will be added to request.
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 f2220b4a57820..4401399249d61 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperationsExtensions.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/DedicatedHostsOperationsExtensions.cs
@@ -184,10 +184,8 @@ public static void Delete(this IDedicatedHostsOperations operations, string reso
/// The name of the dedicated host.
///
///
- /// 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 expand expression to apply on the operation. Possible values include:
+ /// 'instanceView'
///
public static DedicatedHost Get(this IDedicatedHostsOperations operations, string resourceGroupName, string hostGroupName, string hostName, InstanceViewTypes? expand = default(InstanceViewTypes?))
{
@@ -210,10 +208,8 @@ public static void Delete(this IDedicatedHostsOperations operations, string reso
/// The name of the dedicated host.
///
///
- /// 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 expand expression to apply on the operation. Possible values include:
+ /// 'instanceView'
///
///
/// 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 50b7b98a96667..5d97a04e5b07a 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ICloudServiceRoleInstancesOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ICloudServiceRoleInstancesOperations.cs
@@ -58,9 +58,8 @@ public partial interface ICloudServiceRoleInstancesOperations
///
///
///
- /// The expand expression to apply to the operation. 'UserData' is not
- /// supported for cloud services. Possible values include:
- /// 'instanceView', 'userData'
+ /// The expand expression to apply to the operation. Possible values
+ /// include: 'instanceView'
///
///
/// The headers that will be added to request.
@@ -116,9 +115,8 @@ public partial interface ICloudServiceRoleInstancesOperations
///
///
///
- /// The expand expression to apply to the operation. 'UserData' is not
- /// supported for cloud services. Possible values include:
- /// 'instanceView', 'userData'
+ /// The expand expression to apply to the operation. Possible values
+ /// include: 'instanceView'
///
///
/// 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 9b1fa8894a91e..a2e8ad1bc4560 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IComputeManagementClient.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IComputeManagementClient.cs
@@ -141,16 +141,6 @@ 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 107ebc73dc6b7..85ad8f1a3d6fd 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostGroupsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostGroupsOperations.cs
@@ -113,11 +113,9 @@ public partial interface IDedicatedHostGroupsOperations
/// The name of the dedicated host group.
///
///
- /// 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 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 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 3f21a00e6770c..abee8ad931350 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IDedicatedHostsOperations.cs
@@ -123,10 +123,8 @@ public partial interface IDedicatedHostsOperations
/// The name of the dedicated host.
///
///
- /// 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 expand expression to apply on the operation. Possible values
+ /// include: 'instanceView'
///
///
/// 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
deleted file mode 100644
index 7bb5326a2735d..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IRestorePointCollectionsOperations.cs
+++ /dev/null
@@ -1,255 +0,0 @@
-//
-// 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
deleted file mode 100644
index 78ed5541933e6..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IRestorePointsOperations.cs
+++ /dev/null
@@ -1,173 +0,0 @@
-//
-// 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 1cdf2919c3e34..7d01ea2808edb 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetVMsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetVMsOperations.cs
@@ -185,10 +185,8 @@ public partial interface IVirtualMachineScaleSetVMsOperations
/// The instance ID of the virtual machine.
///
///
- /// 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 expand expression to apply on the operation. Possible values
+ /// include: 'instanceView'
///
///
/// 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 3f374cc248d5e..6af7aab40f00f 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachineScaleSetsOperations.cs
@@ -138,12 +138,6 @@ 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.
///
@@ -159,7 +153,7 @@ public partial interface IVirtualMachineScaleSetsOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, 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
@@ -461,7 +455,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/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
+ /// https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
///
///
/// The name of the resource group.
@@ -918,7 +912,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/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
+ /// https://docs.microsoft.com/en-us/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 616cad2883334..6e1071152ff3b 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/rest/api/compute/resourceskus/list)
+ /// Skus](https://docs.microsoft.com/en-us/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 cbf62a2987374..818ce5adb86a0 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs
@@ -170,13 +170,8 @@ public partial interface IVirtualMachinesOperations
/// The name of the virtual machine.
///
///
- /// 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 expand expression to apply on the operation. Possible values
+ /// include: 'instanceView'
///
///
/// The headers that will be added to request.
@@ -273,10 +268,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/azure/virtual-machines/windows/capture-image-resource).<br>For
+ /// Azure](https://docs.microsoft.com/en-us/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/azure/virtual-machines/linux/capture-image).
+ /// VHD](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image).
///
///
/// The name of the resource group.
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 46e9b85d430b9..996056f68bb6f 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
- /// [Availability sets
- /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
+ /// 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).
/// <br><br> For more information on Azure planned maintenance,
- /// see [Maintenance and updates for Virtual Machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
+ /// 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)
/// <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
deleted file mode 100644
index d00df066e7790..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ConsistencyModeTypes.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//
-// 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 6c55319afaa40..e87c5a378f4d0 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,14 +89,7 @@ public DataDisk()
/// VirtualMachineScaleSet. To force-detach a data disk update
/// toBeDetached to 'true' along with setting detachOption:
/// 'ForceDetach'. Possible values include: 'ForceDetach'
- /// 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))
+ 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))
{
Lun = lun;
Name = name;
@@ -111,7 +104,6 @@ public DataDisk()
DiskIOPSReadWrite = diskIOPSReadWrite;
DiskMBpsReadWrite = diskMBpsReadWrite;
DetachOption = detachOption;
- DeleteOption = deleteOption;
CustomInit();
}
@@ -243,19 +235,6 @@ 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
deleted file mode 100644
index defbb5d325376..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DeleteOptions.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// 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 4ad305ed24968..8655f8dc7d782 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/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'
+ /// 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'
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/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'
+ /// 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'
///
[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
deleted file mode 100644
index 084e59e2d6677..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/DiskDeleteOptionTypes.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// 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
deleted file mode 100644
index c408275aa4b72..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ExpandTypesForGetVMScaleSets.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-//
-// 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 001a324cfe619..d82198706c791 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/rest/api/compute/resourceskus/list)
+ /// https://docs.microsoft.com/en-us/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/azure/virtual-machines/sizes).
+ /// machines](https://docs.microsoft.com/en-us/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/rest/api/compute/resourceskus/list)
+ /// https://docs.microsoft.com/en-us/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/azure/virtual-machines/sizes).
+ /// machines](https://docs.microsoft.com/en-us/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
deleted file mode 100644
index 0cbb3a97bcd44..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/IPVersions.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// 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 262482c565233..c6f4ffc55dffb 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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
/// 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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
/// 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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
///
[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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
///
[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 0b476450d5736..a87cde5cc1950 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,9 +22,7 @@ namespace Microsoft.Azure.Management.Compute.Models
public enum InstanceViewTypes
{
[EnumMember(Value = "instanceView")]
- InstanceView,
- [EnumMember(Value = "userData")]
- UserData
+ InstanceView
}
internal static class InstanceViewTypesEnumExtension
{
@@ -39,8 +37,6 @@ internal static string ToSerializedValue(this InstanceViewTypes value)
{
case InstanceViewTypes.InstanceView:
return "instanceView";
- case InstanceViewTypes.UserData:
- return "userData";
}
return null;
}
@@ -51,8 +47,6 @@ 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 59334fab57362..a951eba569c50 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,7 +17,10 @@ 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/linux/endorsed-distros).
+ /// 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).
///
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
deleted file mode 100644
index 51023b6e3dc45..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxPatchAssessmentMode.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// 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 ccf3b25dc8d4b..b330cbd7884a8 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,27 +30,16 @@ public LinuxPatchSettings()
/// Initializes a new instance of the LinuxPatchSettings class.
///
/// Specifies the mode of VM Guest Patching to
- /// 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
+ /// 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'
- public LinuxPatchSettings(string patchMode = default(string), string assessmentMode = default(string))
+ public LinuxPatchSettings(string patchMode = default(string))
{
PatchMode = patchMode;
- AssessmentMode = assessmentMode;
CustomInit();
}
@@ -61,31 +50,17 @@ public LinuxPatchSettings()
///
/// Gets or sets specifies the mode of VM Guest Patching to 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'
+ /// 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'
///
[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
deleted file mode 100644
index 3513a038a3a44..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/NetworkApiVersion.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-//
-// 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 063e64a641ce6..43b12e2e1491a 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,14 +35,10 @@ public NetworkInterfaceReference()
/// Resource Id
/// 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'
- public NetworkInterfaceReference(string id = default(string), bool? primary = default(bool?), string deleteOption = default(string))
+ public NetworkInterfaceReference(string id = default(string), bool? primary = default(bool?))
: base(id)
{
Primary = primary;
- DeleteOption = deleteOption;
CustomInit();
}
@@ -58,12 +54,5 @@ 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 a5b6fd87e02fa..39785018b8c0f 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,8 +16,7 @@ namespace Microsoft.Azure.Management.Compute.Models
using System.Linq;
///
- /// Specifies the network interfaces or the networking configuration of the
- /// virtual machine.
+ /// Specifies the network interfaces of the virtual machine.
///
public partial class NetworkProfile
{
@@ -35,18 +34,9 @@ public NetworkProfile()
/// Specifies the list of resource Ids
/// for the network interfaces associated with the virtual
/// machine.
- /// 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))
+ public NetworkProfile(IList networkInterfaces = default(IList))
{
NetworkInterfaces = networkInterfaces;
- NetworkApiVersion = networkApiVersion;
- NetworkInterfaceConfigurations = networkInterfaceConfigurations;
CustomInit();
}
@@ -62,20 +52,5 @@ 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 9220ba6e3a8ed..feac57710d59f 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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
///
public partial class OSDisk
{
@@ -73,16 +73,7 @@ public OSDisk()
/// disk in a virtual machine image. <br><br> This value
/// cannot be larger than 1023 GB
/// The managed disk parameters.
- /// 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))
+ 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))
{
OsType = osType;
EncryptionSettings = encryptionSettings;
@@ -95,7 +86,6 @@ public OSDisk()
CreateOption = createOption;
DiskSizeGB = diskSizeGB;
ManagedDisk = managedDisk;
- DeleteOption = deleteOption;
CustomInit();
}
@@ -201,21 +191,6 @@ 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 99a0ac8012ae4..24355877fd5b0 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/azure-resource-manager/management/resource-name-rules).
+ /// 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).
/// Specifies the name of the administrator
/// account. <br><br> This property cannot be updated after
/// the VM is created. <br><br> **Windows-only
@@ -51,8 +51,13 @@ 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> **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)
/// Specifies the password of the
/// administrator account. <br><br> **Minimum-length
/// (Windows):** 8 characters <br><br> **Minimum-length
@@ -67,11 +72,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/troubleshoot/azure/virtual-machines/reset-rdp)
+ /// VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
/// <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/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)
+ /// Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)
/// 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
@@ -81,16 +86,19 @@ 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/blog/custom-data-and-cloud-init-on-windows-azure/)
+ /// VMs](https://azure.microsoft.com/en-us/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/linux/using-cloud-init)
+ /// creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
/// 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/linux/endorsed-distros).
+ /// 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).
/// Specifies set of certificates that should be
/// installed onto the virtual machine.
/// Specifies whether extension
@@ -130,7 +138,7 @@ public OSProfile()
/// characters. <br><br> For naming
/// conventions and restrictions see [Azure infrastructure services
/// implementation
- /// guidelines](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules).
+ /// 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).
///
[JsonProperty(PropertyName = "computerName")]
public string ComputerName { get; set; }
@@ -149,7 +157,14 @@ public OSProfile()
/// <br><br> **Minimum-length (Linux):** 1
/// character <br><br> **Max-length
/// (Linux):** 64 characters <br><br>
- /// **Max-length (Windows):** 20 characters.
+ /// **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; }
@@ -172,11 +187,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/troubleshoot/azure/virtual-machines/reset-rdp)
+ /// VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
/// <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/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)
+ /// Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)
///
[JsonProperty(PropertyName = "adminPassword")]
public string AdminPassword { get; set; }
@@ -192,10 +207,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/blog/custom-data-and-cloud-init-on-windows-azure/)
+ /// VMs](https://azure.microsoft.com/en-us/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/linux/using-cloud-init)
+ /// creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
///
[JsonProperty(PropertyName = "customData")]
public string CustomData { get; set; }
@@ -211,7 +226,10 @@ 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/linux/endorsed-distros).
+ /// 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).
///
[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
deleted file mode 100644
index 924d01f97423a..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OperatingSystemType.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// 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 3f7c8e0e9b769..ce46bd86b2ba8 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,12 +30,11 @@ public PatchSettings()
/// Initializes a new instance of the PatchSettings class.
///
/// Specifies the mode of VM Guest Patching to
- /// 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
+ /// 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
/// WindowsConfiguration.enableAutomaticUpdates must be false<br
/// /><br /> **AutomaticByOS** - The virtual machine will
/// automatically be updated by the OS. The property
@@ -49,19 +48,10 @@ public PatchSettings()
/// Azure VMs without requiring a reboot. For enableHotpatching, the
/// 'provisionVMAgent' must be set to true and 'patchMode' must be set
/// to '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 PatchSettings(string patchMode = default(string), bool? enableHotpatching = default(bool?), string assessmentMode = default(string))
+ public PatchSettings(string patchMode = default(string), bool? enableHotpatching = default(bool?))
{
PatchMode = patchMode;
EnableHotpatching = enableHotpatching;
- AssessmentMode = assessmentMode;
CustomInit();
}
@@ -72,13 +62,11 @@ public PatchSettings()
///
/// Gets or sets specifies the mode of VM Guest Patching to 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
+ /// 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
/// WindowsConfiguration.enableAutomaticUpdates must be false<br
/// /><br /> **AutomaticByOS** - The virtual
/// machine will automatically be updated by the OS. The property
@@ -101,18 +89,5 @@ 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
deleted file mode 100644
index d30ac30ee4ef8..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ProxyResource.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-//
-// 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
deleted file mode 100644
index 9af937b631f92..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSku.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-//
-// 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
deleted file mode 100644
index aff7662690df3..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSkuName.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// 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
deleted file mode 100644
index 6e4f2b7c20cc3..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAddressSkuTier.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// 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
deleted file mode 100644
index da2ad835e97f2..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/PublicIPAllocationMethod.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// 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
deleted file mode 100644
index ff835f5bbbf29..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePoint.cs
+++ /dev/null
@@ -1,117 +0,0 @@
-//
-// 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
deleted file mode 100644
index 5a744737cb4e1..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollection.cs
+++ /dev/null
@@ -1,108 +0,0 @@
-//
-// 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
deleted file mode 100644
index aa68d83154f13..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollectionExpandOptions.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-//
-// 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
deleted file mode 100644
index 5d860ae3909ee..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollectionSourceProperties.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//
-// 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
deleted file mode 100644
index ee169d5de96c2..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointCollectionUpdate.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-//
-// 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
deleted file mode 100644
index 4863ae7f00e5a..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointProvisioningDetails.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-//
-// 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
deleted file mode 100644
index 13f1c7cc42e2d..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceMetadata.cs
+++ /dev/null
@@ -1,118 +0,0 @@
-//
-// 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
deleted file mode 100644
index 9cc8af8bfb673..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceVMDataDisk.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-//
-// 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
deleted file mode 100644
index 67b6280758b36..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceVMOSDisk.cs
+++ /dev/null
@@ -1,118 +0,0 @@
-//
-// 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
deleted file mode 100644
index 75de44eb96706..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/RestorePointSourceVMStorageProfile.cs
+++ /dev/null
@@ -1,80 +0,0 @@
-//
-// 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 5315de4ced347..129f2e1d9d71f 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/azure/virtual-machines/linux/create-ssh-keys-detailed).
+ /// Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
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/azure/virtual-machines/linux/create-ssh-keys-detailed).
+ /// Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
///
[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 d3ef21ac3b6d8..2bdb4533b7634 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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
/// 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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
///
[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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
///
[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 14b705844c3b2..b2a2fe9d7b9cb 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,11 +66,12 @@ 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 [Availability sets
- /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
+ /// 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).
/// <br><br> For more information on Azure planned
- /// maintenance, see [Maintenance and updates for Virtual Machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
+ /// 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)
/// <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
@@ -150,11 +151,6 @@ 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
@@ -162,7 +158,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?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), 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?), IList resources = default(IList), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList), ExtendedLocation extendedLocation = default(ExtendedLocation))
: base(location, id, name, type, tags)
{
Plan = plan;
@@ -187,8 +183,6 @@ public VirtualMachine()
VmId = vmId;
ExtensionsTimeBudget = extensionsTimeBudget;
PlatformFaultDomain = platformFaultDomain;
- ScheduledEventsProfile = scheduledEventsProfile;
- UserData = userData;
Resources = resources;
Identity = identity;
Zones = zones;
@@ -269,12 +263,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 [Availability sets
- /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
+ /// 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).
/// <br><br> For more information on Azure
- /// planned maintenance, see [Maintenance and updates for Virtual
- /// Machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
+ /// 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)
/// <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
@@ -428,20 +422,6 @@ 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
deleted file mode 100644
index 35ef67f4e918a..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineIpTag.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-//
-// 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
deleted file mode 100644
index a3a115946e25d..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceConfiguration.cs
+++ /dev/null
@@ -1,171 +0,0 @@
-//
-// 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
deleted file mode 100644
index 452f8771a0918..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceDnsSettingsConfiguration.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//
-// 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
deleted file mode 100644
index 9ec3dac67959e..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineNetworkInterfaceIPConfiguration.cs
+++ /dev/null
@@ -1,159 +0,0 @@
-//
-// 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
deleted file mode 100644
index d0bed83d6e3dc..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachinePublicIPAddressConfiguration.cs
+++ /dev/null
@@ -1,162 +0,0 @@
-//
-// 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
deleted file mode 100644
index f88857828cd0f..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/VirtualMachinePublicIPAddressDnsSettingsConfiguration.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-//
-// 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 36bb5d41b7107..f1bb37f73f7e4 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,10 +53,7 @@ public VirtualMachineScaleSetNetworkConfiguration()
/// network interfaces.
/// Whether IP forwarding enabled on
/// this NIC.
- /// 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))
+ 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?))
: base(id)
{
Name = name;
@@ -67,7 +64,6 @@ public VirtualMachineScaleSetNetworkConfiguration()
DnsSettings = dnsSettings;
IpConfigurations = ipConfigurations;
EnableIPForwarding = enableIPForwarding;
- DeleteOption = deleteOption;
CustomInit();
}
@@ -129,13 +125,6 @@ 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 ac86f1d80802f..f16e827624250 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,16 +39,10 @@ public VirtualMachineScaleSetNetworkProfile()
/// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'.
/// The list of network
/// configurations.
- /// 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))
+ public VirtualMachineScaleSetNetworkProfile(ApiEntityReference healthProbe = default(ApiEntityReference), IList networkInterfaceConfigurations = default(IList))
{
HealthProbe = healthProbe;
NetworkInterfaceConfigurations = networkInterfaceConfigurations;
- NetworkApiVersion = networkApiVersion;
CustomInit();
}
@@ -72,14 +66,5 @@ 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 9e3df64e3fc6f..91d51409fb8ed 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,7 +46,13 @@ 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
+ /// **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)
/// Specifies the password of the
/// administrator account. <br><br> **Minimum-length
/// (Windows):** 8 characters <br><br> **Minimum-length
@@ -61,24 +67,27 @@ 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/troubleshoot/azure/virtual-machines/reset-rdp)
+ /// VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
/// <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/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)
+ /// Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)
/// 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/linux/using-cloud-init)
+ /// creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
/// 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/linux/endorsed-distros).
+ /// 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).
/// 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))
@@ -119,6 +128,13 @@ 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; }
@@ -141,11 +157,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/troubleshoot/azure/virtual-machines/reset-rdp)
+ /// VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
/// <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/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)
+ /// Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)
///
[JsonProperty(PropertyName = "adminPassword")]
public string AdminPassword { get; set; }
@@ -157,7 +173,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/linux/using-cloud-init)
+ /// creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
///
[JsonProperty(PropertyName = "customData")]
public string CustomData { get; set; }
@@ -173,7 +189,10 @@ 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/linux/endorsed-distros).
+ /// 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).
///
[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 d3cadab7187d0..c587d070e649d 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,10 +51,7 @@ public VirtualMachineScaleSetPublicIPAddressConfiguration()
/// ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible
/// values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4',
/// 'IPv6'
- /// 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))
+ public VirtualMachineScaleSetPublicIPAddressConfiguration(string name, int? idleTimeoutInMinutes = default(int?), VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings), IList ipTags = default(IList), SubResource publicIPPrefix = default(SubResource), string publicIPAddressVersion = default(string))
{
Name = name;
IdleTimeoutInMinutes = idleTimeoutInMinutes;
@@ -62,8 +59,6 @@ public VirtualMachineScaleSetPublicIPAddressConfiguration()
IpTags = ipTags;
PublicIPPrefix = publicIPPrefix;
PublicIPAddressVersion = publicIPAddressVersion;
- DeleteOption = deleteOption;
- Sku = sku;
CustomInit();
}
@@ -114,18 +109,6 @@ 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.
///
@@ -142,10 +125,6 @@ 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 7c440327c4fca..4907b35c39742 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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
/// 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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
///
[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/managed-disks-overview).
+ /// machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
///
[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 ae0784ef088ee..adfa879b98005 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,10 +53,7 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration()
/// Configuration.
/// Whether IP forwarding enabled on
/// this NIC.
- /// 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))
+ 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?))
: base(id)
{
Name = name;
@@ -67,7 +64,6 @@ public VirtualMachineScaleSetUpdateNetworkConfiguration()
DnsSettings = dnsSettings;
IpConfigurations = ipConfigurations;
EnableIPForwarding = enableIPForwarding;
- DeleteOption = deleteOption;
CustomInit();
}
@@ -127,12 +123,5 @@ 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 2e451d422faa1..55396baa7bcd2 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,16 +39,10 @@ public VirtualMachineScaleSetUpdateNetworkProfile()
/// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'.
/// The list of network
/// configurations.
- /// 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))
+ public VirtualMachineScaleSetUpdateNetworkProfile(ApiEntityReference healthProbe = default(ApiEntityReference), IList networkInterfaceConfigurations = default(IList))
{
HealthProbe = healthProbe;
NetworkInterfaceConfigurations = networkInterfaceConfigurations;
- NetworkApiVersion = networkApiVersion;
CustomInit();
}
@@ -72,14 +66,5 @@ 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 e7c0d661e4cf3..8bb0b43d722ff 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,15 +40,11 @@ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration()
/// IP address.
/// The dns settings to be applied on the
/// publicIP addresses .
- /// 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))
+ public VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(string name = default(string), int? idleTimeoutInMinutes = default(int?), VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings dnsSettings = default(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings))
{
Name = name;
IdleTimeoutInMinutes = idleTimeoutInMinutes;
DnsSettings = dnsSettings;
- DeleteOption = deleteOption;
CustomInit();
}
@@ -76,13 +72,6 @@ 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 ae931fd5056a8..1873c3afa8b15 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,10 +50,7 @@ public VirtualMachineScaleSetUpdateVMProfile()
/// 2019-03-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
- 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))
+ 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))
{
OsProfile = osProfile;
StorageProfile = storageProfile;
@@ -64,7 +61,6 @@ public VirtualMachineScaleSetUpdateVMProfile()
LicenseType = licenseType;
BillingProfile = billingProfile;
ScheduledEventsProfile = scheduledEventsProfile;
- UserData = userData;
CustomInit();
}
@@ -130,13 +126,5 @@ 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 4d185d0b67354..f7611f16f7f6a 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,11 +70,12 @@ 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 [Availability sets
- /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
+ /// 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).
/// <br><br> For more information on Azure planned
- /// maintenance, see [Maintenance and updates for Virtual Machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
+ /// 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)
/// <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.
@@ -98,9 +99,6 @@ 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
@@ -111,7 +109,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), string userData = default(string), Plan plan = default(Plan), IList resources = default(IList), IList zones = default(IList))
+ public VirtualMachineScaleSetVM(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string instanceId = default(string), Sku sku = default(Sku), bool? latestModelApplied = default(bool?), string vmId = default(string), VirtualMachineScaleSetVMInstanceView instanceView = default(VirtualMachineScaleSetVMInstanceView), HardwareProfile hardwareProfile = default(HardwareProfile), StorageProfile storageProfile = default(StorageProfile), AdditionalCapabilities additionalCapabilities = default(AdditionalCapabilities), OSProfile osProfile = default(OSProfile), 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))
: base(location, id, name, type, tags)
{
InstanceId = instanceId;
@@ -132,7 +130,6 @@ public VirtualMachineScaleSetVM()
LicenseType = licenseType;
ModelDefinitionApplied = modelDefinitionApplied;
ProtectionPolicy = protectionPolicy;
- UserData = userData;
Plan = plan;
Resources = resources;
Zones = zones;
@@ -239,12 +236,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 [Availability sets
- /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
+ /// 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).
/// <br><br> For more information on Azure
- /// planned maintenance, see [Maintenance and updates for Virtual
- /// Machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
+ /// 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)
/// <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.
@@ -294,14 +291,6 @@ 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 d348dd9e9d22a..ffa142b34ece2 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,11 +75,7 @@ public VirtualMachineScaleSetVMProfile()
/// 2019-03-01.
/// Specifies Scheduled Event
/// related configurations.
- /// 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))
+ 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))
{
OsProfile = osProfile;
StorageProfile = storageProfile;
@@ -92,7 +88,6 @@ public VirtualMachineScaleSetVMProfile()
EvictionPolicy = evictionPolicy;
BillingProfile = billingProfile;
ScheduledEventsProfile = scheduledEventsProfile;
- UserData = userData;
CustomInit();
}
@@ -202,15 +197,6 @@ 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 de774e455703d..116eee848dddf 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,12 +31,7 @@ public VirtualMachineSize()
///
/// The name of the virtual machine size.
/// The number of cores supported by the
- /// 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
+ /// virtual machine size.
/// The OS disk size, in MB, allowed by
/// the virtual machine size.
/// The resource disk size, in MB,
@@ -69,11 +64,7 @@ public VirtualMachineSize()
///
/// Gets or sets the number of cores supported by the 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
+ /// size.
///
[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 193c37f60c0a5..b91aa7a099bf6 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,11 +62,12 @@ 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 [Availability sets
- /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
+ /// 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).
/// <br><br> For more information on Azure planned
- /// maintenance, see [Maintenance and updates for Virtual Machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
+ /// 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)
/// <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
@@ -146,15 +147,10 @@ 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?), ScheduledEventsProfile scheduledEventsProfile = default(ScheduledEventsProfile), string userData = default(string), 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?), VirtualMachineIdentity identity = default(VirtualMachineIdentity), IList zones = default(IList))
: base(tags)
{
Plan = plan;
@@ -179,8 +175,6 @@ public VirtualMachineUpdate()
VmId = vmId;
ExtensionsTimeBudget = extensionsTimeBudget;
PlatformFaultDomain = platformFaultDomain;
- ScheduledEventsProfile = scheduledEventsProfile;
- UserData = userData;
Identity = identity;
Zones = zones;
CustomInit();
@@ -259,12 +253,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 [Availability sets
- /// overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview).
+ /// 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).
/// <br><br> For more information on Azure
- /// planned maintenance, see [Maintenance and updates for Virtual
- /// Machines in
- /// Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates)
+ /// 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)
/// <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
@@ -418,20 +412,6 @@ 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 e090d1a728041..809b8955c76a9 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/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id)
+ /// [TimeZoneInfo.Id](https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id)
/// value from time zones returned by
- /// [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones).
+ /// [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/en-us/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/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id)
+ /// [TimeZoneInfo.Id](https://docs.microsoft.com/en-us/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id)
/// value from time zones returned by
- /// [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones).
+ /// [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/en-us/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
deleted file mode 100644
index 04cbb5056aa2d..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/WindowsPatchAssessmentMode.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// 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/RestorePointCollectionsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperations.cs
deleted file mode 100644
index 110d758d61853..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperations.cs
+++ /dev/null
@@ -1,1609 +0,0 @@
-//
-// 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
deleted file mode 100644
index 36fa0f5039e88..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointCollectionsOperationsExtensions.cs
+++ /dev/null
@@ -1,393 +0,0 @@
-//
-// 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
deleted file mode 100644
index 388a7d3bcc762..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperations.cs
+++ /dev/null
@@ -1,714 +0,0 @@
-//
-// 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
deleted file mode 100644
index 3356e89a22760..0000000000000
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/RestorePointsOperationsExtensions.cs
+++ /dev/null
@@ -1,271 +0,0 @@
-//
-// 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();
- }
-
- ///
- /// 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 BeginCreateAsync(this IRestorePointsOperations operations, string resourceGroupName, string restorePointCollectionName, string restorePointName, IList excludeDisks = default(IList