diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IResourceSkusOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IResourceSkusOperations.cs
index 20755cb97f16..9c6c2d0d6985 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IResourceSkusOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IResourceSkusOperations.cs
@@ -28,7 +28,8 @@ public partial interface IResourceSkusOperations
/// Subscription.
///
///
- /// The filter to apply on the operation.
+ /// The filter to apply on the operation. Only **location** filter is
+ /// supported currently.
///
///
/// The headers that will be added to request.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryArtifactVersionSource.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryArtifactVersionSource.cs
index 80b408b3cdaf..7617dbe21556 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryArtifactVersionSource.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryArtifactVersionSource.cs
@@ -10,7 +10,6 @@
namespace Microsoft.Azure.Management.Compute.Models
{
- using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -34,7 +33,7 @@ public GalleryArtifactVersionSource()
///
/// The id of the gallery artifact version source. Can
/// specify a disk uri, snapshot uri, or user image.
- public GalleryArtifactVersionSource(string id)
+ public GalleryArtifactVersionSource(string id = default(string))
{
Id = id;
CustomInit();
@@ -52,18 +51,5 @@ public GalleryArtifactVersionSource(string id)
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (Id == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "Id");
- }
- }
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryDataDiskImage.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryDataDiskImage.cs
index c6d9372125f8..dded924670dd 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryDataDiskImage.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryDataDiskImage.cs
@@ -65,9 +65,9 @@ public GalleryDataDiskImage()
///
/// Thrown if validation fails
///
- public override void Validate()
+ public virtual void Validate()
{
- base.Validate();
+ //Nothing to validate
}
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryDiskImage.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryDiskImage.cs
index 5043c4324bdd..24fa155c0709 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryDiskImage.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryDiskImage.cs
@@ -66,18 +66,5 @@ public GalleryDiskImage()
[JsonProperty(PropertyName = "source")]
public GalleryArtifactVersionSource Source { get; set; }
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (Source != null)
- {
- Source.Validate();
- }
- }
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersion.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersion.cs
index 70e567c7836d..a7ad1dea5fab 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersion.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersion.cs
@@ -96,10 +96,6 @@ public override void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "StorageProfile");
}
- if (StorageProfile != null)
- {
- StorageProfile.Validate();
- }
}
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.cs
index 5a488ccb4f46..d25499181cbc 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionStorageProfile.cs
@@ -63,32 +63,5 @@ public GalleryImageVersionStorageProfile()
[JsonProperty(PropertyName = "dataDiskImages")]
public IList DataDiskImages { get; set; }
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (Source != null)
- {
- Source.Validate();
- }
- if (OsDiskImage != null)
- {
- OsDiskImage.Validate();
- }
- if (DataDiskImages != null)
- {
- foreach (var element in DataDiskImages)
- {
- if (element != null)
- {
- element.Validate();
- }
- }
- }
- }
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionUpdate.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionUpdate.cs
index a1f66b562f74..95a7c06e84e8 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionUpdate.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryImageVersionUpdate.cs
@@ -94,10 +94,6 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "StorageProfile");
}
- if (StorageProfile != null)
- {
- StorageProfile.Validate();
- }
}
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryOSDiskImage.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryOSDiskImage.cs
index 5514f0241e05..88501804a832 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryOSDiskImage.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/GalleryOSDiskImage.cs
@@ -44,15 +44,5 @@ public GalleryOSDiskImage()
///
partial void CustomInit();
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public override void Validate()
- {
- base.Validate();
- }
}
}
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ResourceSkusOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ResourceSkusOperations.cs
index 9a2e6dc44f96..bf945fdc2bef 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ResourceSkusOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ResourceSkusOperations.cs
@@ -54,7 +54,8 @@ internal ResourceSkusOperations(ComputeManagementClient client)
/// Gets the list of Microsoft.Compute SKUs available for your Subscription.
///
///
- /// The filter to apply on the operation.
+ /// The filter to apply on the operation. Only **location** filter is supported
+ /// currently.
///
///
/// Headers that will be added to request.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ResourceSkusOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ResourceSkusOperationsExtensions.cs
index e86f1344765e..7709c03c953a 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ResourceSkusOperationsExtensions.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/ResourceSkusOperationsExtensions.cs
@@ -28,7 +28,8 @@ public static partial class ResourceSkusOperationsExtensions
/// The operations group for this extension method.
///
///
- /// The filter to apply on the operation.
+ /// The filter to apply on the operation. Only **location** filter is supported
+ /// currently.
///
public static IPage List(this IResourceSkusOperations operations, string filter = default(string))
{
@@ -42,7 +43,8 @@ public static partial class ResourceSkusOperationsExtensions
/// The operations group for this extension method.
///
///
- /// The filter to apply on the operation.
+ /// The filter to apply on the operation. Only **location** filter is supported
+ /// currently.
///
///
/// The cancellation token.
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs
index c3d64b7bb376..789eb3d1cd8b 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs
@@ -52,16 +52,5 @@ public static IEnumerable> ApiInfo_ComputeManageme
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "v2";
- public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\Swagger\\azure-sdk-for-net\\sdk";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "94e82241deb262a5bd60added152f5c9175fdd82";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-
diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetsOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetsOperations.cs
index 782843fdf500..92204a34e190 100644
--- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetsOperations.cs
+++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachineScaleSetsOperations.cs
@@ -1792,6 +1792,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ string apiVersion = "2019-12-01";
VMScaleSetConvertToSinglePlacementGroupInput parameters = new VMScaleSetConvertToSinglePlacementGroupInput();
if (activePlacementGroupId != null)
{
@@ -1806,6 +1807,7 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("vmScaleSetName", vmScaleSetName);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ConvertToSinglePlacementGroup", tracingParameters);
@@ -1817,6 +1819,10 @@ internal VirtualMachineScaleSetsOperations(ComputeManagementClient client)
_url = _url.Replace("{vmScaleSetName}", System.Uri.EscapeDataString(vmScaleSetName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);