From 2af6c24d93b42ce66c26b3ff4d6ab6fbec218639 Mon Sep 17 00:00:00 2001
From: navysingla <47647464+navysingla@users.noreply.github.com>
Date: Wed, 9 Sep 2020 15:17:00 -0700
Subject: [PATCH] Reoving required parameters
---
.../subscription_resource-manager.txt | 4 ++--
.../src/Generated/Models/PutAliasRequest.cs | 4 ----
.../Models/PutAliasRequestProperties.cs | 24 +------------------
.../Generated/SdkInfo_SubscriptionClient.cs | 2 +-
4 files changed, 4 insertions(+), 30 deletions(-)
diff --git a/eng/mgmt/mgmtmetadata/subscription_resource-manager.txt b/eng/mgmt/mgmtmetadata/subscription_resource-manager.txt
index 3b0a49567cb6c..104a6ae86180b 100644
--- a/eng/mgmt/mgmtmetadata/subscription_resource-manager.txt
+++ b/eng/mgmt/mgmtmetadata/subscription_resource-manager.txt
@@ -4,11 +4,11 @@ Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/subscription/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\github2\sdk
-2020-08-21 17:43:07 UTC
+2020-09-09 22:14:45 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
-Commit: 1d90950c9db002ca44a56873c5a2ea3c96f533f8
+Commit: af2f59b4c3a1308d79652fdbc2a84d7785c79230
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
diff --git a/sdk/subscription/Microsoft.Azure.Management.Subscription/src/Generated/Models/PutAliasRequest.cs b/sdk/subscription/Microsoft.Azure.Management.Subscription/src/Generated/Models/PutAliasRequest.cs
index 99fff5b00c3ce..c5616ceaa7430 100644
--- a/sdk/subscription/Microsoft.Azure.Management.Subscription/src/Generated/Models/PutAliasRequest.cs
+++ b/sdk/subscription/Microsoft.Azure.Management.Subscription/src/Generated/Models/PutAliasRequest.cs
@@ -60,10 +60,6 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "Properties");
}
- if (Properties != null)
- {
- Properties.Validate();
- }
}
}
}
diff --git a/sdk/subscription/Microsoft.Azure.Management.Subscription/src/Generated/Models/PutAliasRequestProperties.cs b/sdk/subscription/Microsoft.Azure.Management.Subscription/src/Generated/Models/PutAliasRequestProperties.cs
index 9e68dca5f3124..06ea52633cfdf 100644
--- a/sdk/subscription/Microsoft.Azure.Management.Subscription/src/Generated/Models/PutAliasRequestProperties.cs
+++ b/sdk/subscription/Microsoft.Azure.Management.Subscription/src/Generated/Models/PutAliasRequestProperties.cs
@@ -10,7 +10,6 @@
namespace Microsoft.Azure.Management.Subscription.Models
{
- using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -39,7 +38,7 @@ public PutAliasRequestProperties()
/// fieldLed, partnerLed or LegacyEA
/// This parameter can be used to create
/// alias for existing subscription Id
- public PutAliasRequestProperties(string displayName, string workload, string billingScope, string subscriptionId = default(string))
+ public PutAliasRequestProperties(string displayName = default(string), string workload = default(string), string billingScope = default(string), string subscriptionId = default(string))
{
DisplayName = displayName;
Workload = workload;
@@ -81,26 +80,5 @@ public PutAliasRequestProperties()
[JsonProperty(PropertyName = "subscriptionId")]
public string SubscriptionId { get; set; }
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (DisplayName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "DisplayName");
- }
- if (Workload == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "Workload");
- }
- if (BillingScope == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "BillingScope");
- }
- }
}
}
diff --git a/sdk/subscription/Microsoft.Azure.Management.Subscription/src/Generated/SdkInfo_SubscriptionClient.cs b/sdk/subscription/Microsoft.Azure.Management.Subscription/src/Generated/SdkInfo_SubscriptionClient.cs
index 4a3cae8899950..a0c0479bd28fa 100644
--- a/sdk/subscription/Microsoft.Azure.Management.Subscription/src/Generated/SdkInfo_SubscriptionClient.cs
+++ b/sdk/subscription/Microsoft.Azure.Management.Subscription/src/Generated/SdkInfo_SubscriptionClient.cs
@@ -33,7 +33,7 @@ public static IEnumerable> ApiInfo_SubscriptionCli
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/subscription/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\github2\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "1d90950c9db002ca44a56873c5a2ea3c96f533f8";
+ public static readonly String GithubCommidId = "af2f59b4c3a1308d79652fdbc2a84d7785c79230";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section