diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/AccountsOperations.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/AccountsOperations.cs index 65b8232de9d2f..f114dcc56a3e5 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/AccountsOperations.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/AccountsOperations.cs @@ -57,7 +57,7 @@ internal AccountsOperations(AutomanageClient client) /// Name of the Automanage account. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to create or update Automanage account. @@ -93,25 +93,47 @@ internal AccountsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } if (parameters == null) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } + if (parameters != null) + { + parameters.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -287,7 +309,7 @@ internal AccountsOperations(AutomanageClient client) /// The Automanage account name. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Headers that will be added to request. @@ -320,21 +342,39 @@ internal AccountsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -482,7 +522,7 @@ internal AccountsOperations(AutomanageClient client) /// Delete a Automanage account /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Name of the Automanage account @@ -513,9 +553,13 @@ internal AccountsOperations(AutomanageClient client) } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (accountName == null) @@ -526,10 +570,24 @@ internal AccountsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -662,7 +720,7 @@ internal AccountsOperations(AutomanageClient client) /// Name of the Automanage account. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to update Automanage account. @@ -688,7 +746,7 @@ internal AccountsOperations(AutomanageClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string accountName, string resourceGroupName, Account parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string accountName, string resourceGroupName, AccountUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (accountName == null) { @@ -698,21 +756,39 @@ internal AccountsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } if (parameters == null) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); @@ -871,7 +947,7 @@ internal AccountsOperations(AutomanageClient client) /// Retrieve a list of Automanage accounts within a given resource group /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Headers that will be added to request. @@ -900,21 +976,39 @@ internal AccountsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1086,10 +1180,24 @@ internal AccountsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/AccountsOperationsExtensions.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/AccountsOperationsExtensions.cs index 49b38f8198e93..252c38213ce38 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/AccountsOperationsExtensions.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/AccountsOperationsExtensions.cs @@ -33,7 +33,7 @@ public static partial class AccountsOperationsExtensions /// Name of the Automanage account. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to create or update Automanage account. @@ -53,7 +53,7 @@ public static Account CreateOrUpdate(this IAccountsOperations operations, string /// Name of the Automanage account. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to create or update Automanage account. @@ -79,7 +79,7 @@ public static Account CreateOrUpdate(this IAccountsOperations operations, string /// The Automanage account name. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// public static Account Get(this IAccountsOperations operations, string accountName, string resourceGroupName) { @@ -96,7 +96,7 @@ public static Account Get(this IAccountsOperations operations, string accountNam /// The Automanage account name. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The cancellation token. @@ -116,7 +116,7 @@ public static Account Get(this IAccountsOperations operations, string accountNam /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Name of the Automanage account @@ -133,7 +133,7 @@ public static void Delete(this IAccountsOperations operations, string resourceGr /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Name of the Automanage account @@ -156,12 +156,12 @@ public static void Delete(this IAccountsOperations operations, string resourceGr /// Name of the Automanage account. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to update Automanage account. /// - public static Account Update(this IAccountsOperations operations, string accountName, string resourceGroupName, Account parameters) + public static Account Update(this IAccountsOperations operations, string accountName, string resourceGroupName, AccountUpdate parameters) { return operations.UpdateAsync(accountName, resourceGroupName, parameters).GetAwaiter().GetResult(); } @@ -176,7 +176,7 @@ public static Account Update(this IAccountsOperations operations, string account /// Name of the Automanage account. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to update Automanage account. @@ -184,7 +184,7 @@ public static Account Update(this IAccountsOperations operations, string account /// /// The cancellation token. /// - public static async Task UpdateAsync(this IAccountsOperations operations, string accountName, string resourceGroupName, Account parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IAccountsOperations operations, string accountName, string resourceGroupName, AccountUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(accountName, resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) { @@ -199,7 +199,7 @@ public static Account Update(this IAccountsOperations operations, string account /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// public static IEnumerable ListByResourceGroup(this IAccountsOperations operations, string resourceGroupName) { @@ -213,7 +213,7 @@ public static IEnumerable ListByResourceGroup(this IAccountsOperations /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The cancellation token. diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/AutomanageClient.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/AutomanageClient.cs index f817a238c76a2..21bd459bb8832 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/AutomanageClient.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/AutomanageClient.cs @@ -47,13 +47,12 @@ public partial class AutomanageClient : ServiceClient, IAutoma public ServiceClientCredentials Credentials { get; private set; } /// - /// Client Api Version. + /// The API version to use for this operation. /// public string ApiVersion { get; private set; } /// - /// Subscription ID which uniquely identify Microsoft Azure subscription. The - /// subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// public string SubscriptionId { get; set; } diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfileAssignmentsOperations.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfileAssignmentsOperations.cs index 841ad0a27cf12..c496861a5f1f2 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfileAssignmentsOperations.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfileAssignmentsOperations.cs @@ -61,7 +61,7 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) /// assignment. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the virtual machine. @@ -83,7 +83,7 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) /// Get information about a configuration profile assignment /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The configuration profile assignment name. @@ -120,9 +120,13 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (configurationProfileAssignmentName == null) @@ -133,6 +137,13 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (vmName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vmName"); @@ -141,6 +152,13 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -290,7 +308,7 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) /// Delete a configuration profile assignment /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Name of the configuration profile assignment @@ -324,9 +342,13 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (configurationProfileAssignmentName == null) @@ -337,6 +359,13 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (vmName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "vmName"); @@ -345,6 +374,13 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -476,7 +512,7 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) /// Get list of configuration profile assignments /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Headers that will be added to request. @@ -507,19 +543,37 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -691,10 +745,24 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -845,7 +913,7 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) /// assignment. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the virtual machine. @@ -885,15 +953,26 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (vmName == null) @@ -904,6 +983,13 @@ internal ConfigurationProfileAssignmentsOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfileAssignmentsOperationsExtensions.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfileAssignmentsOperationsExtensions.cs index bd37c422f1f1a..f1e8d45397251 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfileAssignmentsOperationsExtensions.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfileAssignmentsOperationsExtensions.cs @@ -37,7 +37,7 @@ public static partial class ConfigurationProfileAssignmentsOperationsExtensions /// assignment. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the virtual machine. @@ -61,7 +61,7 @@ public static ConfigurationProfileAssignment CreateOrUpdate(this IConfigurationP /// assignment. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the virtual machine. @@ -84,7 +84,7 @@ public static ConfigurationProfileAssignment CreateOrUpdate(this IConfigurationP /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The configuration profile assignment name. @@ -104,7 +104,7 @@ public static ConfigurationProfileAssignment Get(this IConfigurationProfileAssig /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The configuration profile assignment name. @@ -130,7 +130,7 @@ public static ConfigurationProfileAssignment Get(this IConfigurationProfileAssig /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Name of the configuration profile assignment @@ -150,7 +150,7 @@ public static void Delete(this IConfigurationProfileAssignmentsOperations operat /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Name of the configuration profile assignment @@ -173,7 +173,7 @@ public static void Delete(this IConfigurationProfileAssignmentsOperations operat /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// public static IEnumerable List(this IConfigurationProfileAssignmentsOperations operations, string resourceGroupName) { @@ -187,7 +187,7 @@ public static IEnumerable List(this IConfigurati /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The cancellation token. @@ -242,7 +242,7 @@ public static IEnumerable ListBySubscription(thi /// assignment. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the virtual machine. @@ -266,7 +266,7 @@ public static ConfigurationProfileAssignment BeginCreateOrUpdate(this IConfigura /// assignment. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the virtual machine. diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfilePreferencesOperations.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfilePreferencesOperations.cs index 98a6e17bb3630..63aebd7698a9f 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfilePreferencesOperations.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfilePreferencesOperations.cs @@ -57,7 +57,7 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) /// Name of the configuration profile preference. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to create or update configuration profile preference. @@ -93,25 +93,47 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } if (parameters == null) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } + if (parameters != null) + { + parameters.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -287,7 +309,7 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) /// The configuration profile preference name. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Headers that will be added to request. @@ -320,21 +342,39 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -482,7 +522,7 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) /// Delete a configuration profile preference /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Name of the configuration profile preference @@ -513,9 +553,13 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (configurationProfilePreferenceName == null) @@ -526,10 +570,24 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -662,7 +720,7 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) /// Name of the configuration profile preference. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to create or update configuration profile preference. @@ -688,7 +746,7 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string configurationProfilePreferenceName, string resourceGroupName, ConfigurationProfilePreference parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string configurationProfilePreferenceName, string resourceGroupName, ConfigurationProfilePreferenceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (configurationProfilePreferenceName == null) { @@ -698,21 +756,39 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } if (parameters == null) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); @@ -872,7 +948,7 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) /// resource group /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Headers that will be added to request. @@ -901,21 +977,39 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (resourceGroupName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (resourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (resourceGroupName.Length > 90) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1087,10 +1181,24 @@ internal ConfigurationProfilePreferencesOperations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfilePreferencesOperationsExtensions.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfilePreferencesOperationsExtensions.cs index f4289cba50a59..b549fca2c8685 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfilePreferencesOperationsExtensions.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/ConfigurationProfilePreferencesOperationsExtensions.cs @@ -33,7 +33,7 @@ public static partial class ConfigurationProfilePreferencesOperationsExtensions /// Name of the configuration profile preference. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to create or update configuration profile preference. @@ -53,7 +53,7 @@ public static ConfigurationProfilePreference CreateOrUpdate(this IConfigurationP /// Name of the configuration profile preference. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to create or update configuration profile preference. @@ -79,7 +79,7 @@ public static ConfigurationProfilePreference CreateOrUpdate(this IConfigurationP /// The configuration profile preference name. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// public static ConfigurationProfilePreference Get(this IConfigurationProfilePreferencesOperations operations, string configurationProfilePreferenceName, string resourceGroupName) { @@ -96,7 +96,7 @@ public static ConfigurationProfilePreference Get(this IConfigurationProfilePrefe /// The configuration profile preference name. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The cancellation token. @@ -116,7 +116,7 @@ public static ConfigurationProfilePreference Get(this IConfigurationProfilePrefe /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Name of the configuration profile preference @@ -133,7 +133,7 @@ public static void Delete(this IConfigurationProfilePreferencesOperations operat /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Name of the configuration profile preference @@ -156,12 +156,12 @@ public static void Delete(this IConfigurationProfilePreferencesOperations operat /// Name of the configuration profile preference. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to create or update configuration profile preference. /// - public static ConfigurationProfilePreference Update(this IConfigurationProfilePreferencesOperations operations, string configurationProfilePreferenceName, string resourceGroupName, ConfigurationProfilePreference parameters) + public static ConfigurationProfilePreference Update(this IConfigurationProfilePreferencesOperations operations, string configurationProfilePreferenceName, string resourceGroupName, ConfigurationProfilePreferenceUpdate parameters) { return operations.UpdateAsync(configurationProfilePreferenceName, resourceGroupName, parameters).GetAwaiter().GetResult(); } @@ -176,7 +176,7 @@ public static ConfigurationProfilePreference Update(this IConfigurationProfilePr /// Name of the configuration profile preference. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to create or update configuration profile preference. @@ -184,7 +184,7 @@ public static ConfigurationProfilePreference Update(this IConfigurationProfilePr /// /// The cancellation token. /// - public static async Task UpdateAsync(this IConfigurationProfilePreferencesOperations operations, string configurationProfilePreferenceName, string resourceGroupName, ConfigurationProfilePreference parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IConfigurationProfilePreferencesOperations operations, string configurationProfilePreferenceName, string resourceGroupName, ConfigurationProfilePreferenceUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(configurationProfilePreferenceName, resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) { @@ -200,7 +200,7 @@ public static ConfigurationProfilePreference Update(this IConfigurationProfilePr /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// public static IEnumerable ListByResourceGroup(this IConfigurationProfilePreferencesOperations operations, string resourceGroupName) { @@ -215,7 +215,7 @@ public static IEnumerable ListByResourceGroup(th /// The operations group for this extension method. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The cancellation token. diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IAccountsOperations.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IAccountsOperations.cs index a3fbaf02dc023..e88972b19ef37 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IAccountsOperations.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IAccountsOperations.cs @@ -30,7 +30,7 @@ public partial interface IAccountsOperations /// Name of the Automanage account. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to create or update Automanage account. @@ -58,7 +58,7 @@ public partial interface IAccountsOperations /// The Automanage account name. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The headers that will be added to request. @@ -80,7 +80,7 @@ public partial interface IAccountsOperations /// Delete a Automanage account /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Name of the Automanage account @@ -105,7 +105,7 @@ public partial interface IAccountsOperations /// Name of the Automanage account. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to update Automanage account. @@ -125,13 +125,13 @@ public partial interface IAccountsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string accountName, string resourceGroupName, Account parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string accountName, string resourceGroupName, AccountUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of Automanage accounts within a given resource /// group /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The headers that will be added to request. diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IAutomanageClient.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IAutomanageClient.cs index 6c188aab1e5ac..272b959d572d4 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IAutomanageClient.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IAutomanageClient.cs @@ -41,14 +41,12 @@ public partial interface IAutomanageClient : System.IDisposable ServiceClientCredentials Credentials { get; } /// - /// Client Api Version. + /// The API version to use for this operation. /// string ApiVersion { get; } /// - /// Subscription ID which uniquely identify Microsoft Azure - /// subscription. The subscription ID forms part of the URI for every - /// service call. + /// The ID of the target subscription. /// string SubscriptionId { get; set; } diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IConfigurationProfileAssignmentsOperations.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IConfigurationProfileAssignmentsOperations.cs index ce75480dd0a46..a492a5ed3ce23 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IConfigurationProfileAssignmentsOperations.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IConfigurationProfileAssignmentsOperations.cs @@ -36,7 +36,7 @@ public partial interface IConfigurationProfileAssignmentsOperations /// assignment. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the virtual machine. @@ -61,7 +61,7 @@ public partial interface IConfigurationProfileAssignmentsOperations /// Get information about a configuration profile assignment /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The configuration profile assignment name. @@ -89,7 +89,7 @@ public partial interface IConfigurationProfileAssignmentsOperations /// Delete a configuration profile assignment /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Name of the configuration profile assignment @@ -114,7 +114,7 @@ public partial interface IConfigurationProfileAssignmentsOperations /// Get list of configuration profile assignments /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The headers that will be added to request. @@ -165,7 +165,7 @@ public partial interface IConfigurationProfileAssignmentsOperations /// assignment. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The name of the virtual machine. diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IConfigurationProfilePreferencesOperations.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IConfigurationProfilePreferencesOperations.cs index 583cf07ae647b..05b1fbab84933 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IConfigurationProfilePreferencesOperations.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/IConfigurationProfilePreferencesOperations.cs @@ -30,7 +30,7 @@ public partial interface IConfigurationProfilePreferencesOperations /// Name of the configuration profile preference. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to create or update configuration profile @@ -59,7 +59,7 @@ public partial interface IConfigurationProfilePreferencesOperations /// The configuration profile preference name. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The headers that will be added to request. @@ -81,7 +81,7 @@ public partial interface IConfigurationProfilePreferencesOperations /// Delete a configuration profile preference /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Name of the configuration profile preference @@ -106,7 +106,7 @@ public partial interface IConfigurationProfilePreferencesOperations /// Name of the configuration profile preference. /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// Parameters supplied to create or update configuration profile @@ -127,13 +127,13 @@ public partial interface IConfigurationProfilePreferencesOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string configurationProfilePreferenceName, string resourceGroupName, ConfigurationProfilePreference parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string configurationProfilePreferenceName, string resourceGroupName, ConfigurationProfilePreferenceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of configuration profile preferences within a given /// resource group /// /// - /// The resource group name. + /// The name of the resource group. The name is case insensitive. /// /// /// The headers that will be added to request. diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/Account.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/Account.cs index faf5333d903b5..026797b8a2000 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/Account.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/Account.cs @@ -31,16 +31,19 @@ public Account() /// /// Initializes a new instance of the Account class. /// - /// ARM resource id of the Automanage - /// assignment. - /// Name of the Automanage assignment. - /// Region where the VM is located. - /// The type of the resource. + /// The geo-location where the resource + /// lives + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Resource tags. /// The identity of the Automanage /// account. - public Account(string id = default(string), string name = default(string), string location = default(string), string type = default(string), IDictionary tags = default(IDictionary), AccountIdentity identity = default(AccountIdentity)) - : base(id, name, location, type, tags) + public Account(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), AccountIdentity identity = default(AccountIdentity)) + : base(location, id, name, type, tags) { Identity = identity; CustomInit(); @@ -57,5 +60,15 @@ public Account() [JsonProperty(PropertyName = "identity")] public AccountIdentity Identity { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } } } diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/AccountUpdate.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/AccountUpdate.cs new file mode 100644 index 0000000000000..ba0222d64f0b5 --- /dev/null +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/AccountUpdate.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Automanage.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Definition of the Automanage account. + /// + public partial class AccountUpdate : UpdateResource + { + /// + /// Initializes a new instance of the AccountUpdate class. + /// + public AccountUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AccountUpdate class. + /// + /// The tags of the resource. + /// The identity of the Automanage + /// account. + public AccountUpdate(IDictionary tags = default(IDictionary), AccountIdentity identity = default(AccountIdentity)) + : base(tags) + { + Identity = identity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the identity of the Automanage account. + /// + [JsonProperty(PropertyName = "identity")] + public AccountIdentity Identity { get; set; } + + } +} diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/AzureEntityResource.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/AzureEntityResource.cs new file mode 100644 index 0000000000000..f764ac441d414 --- /dev/null +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/AzureEntityResource.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Automanage.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Entity Resource + /// + /// + /// The resource model definition for an Azure Resource Manager resource + /// with an etag. + /// + public partial class AzureEntityResource : Resource + { + /// + /// Initializes a new instance of the AzureEntityResource class. + /// + public AzureEntityResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureEntityResource class. + /// + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource Etag. + public AzureEntityResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string)) + : base(id, name, type) + { + Etag = etag; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource Etag. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + } +} diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfile.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfile.cs index e44616853159e..06d941b83c5a5 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfile.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfile.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Automanage.Models /// public static class ConfigurationProfile { - public const string AzureBestPracticesTestDev = "Azure Best Practices - TestDev"; - public const string AzureBestPracticesProd = "Azure Best Practices - Prod"; + public const string AzurevirtualmachinebestpracticesDevTest = "Azure virtual machine best practices – Dev/Test"; + public const string AzurevirtualmachinebestpracticesProduction = "Azure virtual machine best practices – Production"; } } diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfileAssignment.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfileAssignment.cs index 29e4e04a13b24..eab9f0df75a85 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfileAssignment.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfileAssignment.cs @@ -32,15 +32,16 @@ public ConfigurationProfileAssignment() /// Initializes a new instance of the ConfigurationProfileAssignment /// class. /// - /// ARM resource id of the Automanage - /// assignment. - /// Name of the Automanage assignment. - /// Region where the VM is located. - /// The type of the resource. + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Properties of the configuration profile /// assignment. - public ConfigurationProfileAssignment(string id = default(string), string name = default(string), string location = default(string), string type = default(string), ConfigurationProfileAssignmentProperties properties = default(ConfigurationProfileAssignmentProperties)) - : base(id, name, location, type) + public ConfigurationProfileAssignment(string id = default(string), string name = default(string), string type = default(string), ConfigurationProfileAssignmentProperties properties = default(ConfigurationProfileAssignmentProperties)) + : base(id, name, type) { Properties = properties; CustomInit(); diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfileAssignmentProperties.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfileAssignmentProperties.cs index a1991d0ec9095..27f488fc9b565 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfileAssignmentProperties.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfileAssignmentProperties.cs @@ -32,25 +32,26 @@ public ConfigurationProfileAssignmentProperties() /// ConfigurationProfileAssignmentProperties class. /// /// A value indicating configuration - /// profile. Possible values include: 'Azure Best Practices - TestDev', - /// 'Azure Best Practices - Prod' + /// profile. Possible values include: 'Azure virtual machine best + /// practices – Dev/Test', 'Azure virtual machine best practices – + /// Production' /// The target VM resource URI /// The Automanage account ARM Resource /// URI /// The configuration /// profile custom preferences ARM resource URI - /// The state of onboarding, which - /// only appears in the response. Possible values include: 'Succeeded', + /// The state of onboarding, which only + /// appears in the response. Possible values include: 'Succeeded', /// 'Failed', 'Created' /// The configuration setting for the /// configuration profile. - public ConfigurationProfileAssignmentProperties(string configurationProfile = default(string), string targetId = default(string), string accountId = default(string), string configurationProfilePreferenceId = default(string), string provisioningStatus = default(string), ConfigurationProfileAssignmentCompliance compliance = default(ConfigurationProfileAssignmentCompliance)) + public ConfigurationProfileAssignmentProperties(string configurationProfile = default(string), string targetId = default(string), string accountId = default(string), string configurationProfilePreferenceId = default(string), string provisioningState = default(string), ConfigurationProfileAssignmentCompliance compliance = default(ConfigurationProfileAssignmentCompliance)) { ConfigurationProfile = configurationProfile; TargetId = targetId; AccountId = accountId; ConfigurationProfilePreferenceId = configurationProfilePreferenceId; - ProvisioningStatus = provisioningStatus; + ProvisioningState = provisioningState; Compliance = compliance; CustomInit(); } @@ -62,8 +63,8 @@ public ConfigurationProfileAssignmentProperties() /// /// Gets or sets a value indicating configuration profile. Possible - /// values include: 'Azure Best Practices - TestDev', 'Azure Best - /// Practices - Prod' + /// values include: 'Azure virtual machine best practices – Dev/Test', + /// 'Azure virtual machine best practices – Production' /// [JsonProperty(PropertyName = "configurationProfile")] public string ConfigurationProfile { get; set; } @@ -91,8 +92,8 @@ public ConfigurationProfileAssignmentProperties() /// Gets the state of onboarding, which only appears in the response. /// Possible values include: 'Succeeded', 'Failed', 'Created' /// - [JsonProperty(PropertyName = "provisioningStatus")] - public string ProvisioningStatus { get; private set; } + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; private set; } /// /// Gets or sets the configuration setting for the configuration diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfilePreference.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfilePreference.cs index dc99520292c91..062ae8b2ac4b0 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfilePreference.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfilePreference.cs @@ -33,16 +33,19 @@ public ConfigurationProfilePreference() /// Initializes a new instance of the ConfigurationProfilePreference /// class. /// - /// ARM resource id of the Automanage - /// assignment. - /// Name of the Automanage assignment. - /// Region where the VM is located. - /// The type of the resource. + /// The geo-location where the resource + /// lives + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Resource tags. /// Properties of the configuration profile /// preference. - public ConfigurationProfilePreference(string id = default(string), string name = default(string), string location = default(string), string type = default(string), IDictionary tags = default(IDictionary), ConfigurationProfilePreferenceProperties properties = default(ConfigurationProfilePreferenceProperties)) - : base(id, name, location, type, tags) + public ConfigurationProfilePreference(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ConfigurationProfilePreferenceProperties properties = default(ConfigurationProfilePreferenceProperties)) + : base(location, id, name, type, tags) { Properties = properties; CustomInit(); @@ -59,5 +62,15 @@ public ConfigurationProfilePreference() [JsonProperty(PropertyName = "properties")] public ConfigurationProfilePreferenceProperties Properties { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } } } diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfilePreferenceUpdate.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfilePreferenceUpdate.cs new file mode 100644 index 0000000000000..ac152b69cf858 --- /dev/null +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ConfigurationProfilePreferenceUpdate.cs @@ -0,0 +1,58 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Automanage.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Definition of the configuration profile preference. + /// + public partial class ConfigurationProfilePreferenceUpdate : UpdateResource + { + /// + /// Initializes a new instance of the + /// ConfigurationProfilePreferenceUpdate class. + /// + public ConfigurationProfilePreferenceUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ConfigurationProfilePreferenceUpdate class. + /// + /// The tags of the resource. + /// Properties of the configuration profile + /// preference. + public ConfigurationProfilePreferenceUpdate(IDictionary tags = default(IDictionary), ConfigurationProfilePreferenceProperties properties = default(ConfigurationProfilePreferenceProperties)) + : base(tags) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets properties of the configuration profile preference. + /// + [JsonProperty(PropertyName = "properties")] + public ConfigurationProfilePreferenceProperties Properties { get; set; } + + } +} diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorAdditionalInfo.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorAdditionalInfo.cs new file mode 100644 index 0000000000000..4f601ae526005 --- /dev/null +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorAdditionalInfo.cs @@ -0,0 +1,59 @@ +// +// 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.Automanage.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource management error additional info. + /// + public partial class ErrorAdditionalInfo + { + /// + /// Initializes a new instance of the ErrorAdditionalInfo class. + /// + public ErrorAdditionalInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorAdditionalInfo class. + /// + /// The additional info type. + /// The additional info. + public ErrorAdditionalInfo(string type = default(string), object info = default(object)) + { + Type = type; + Info = info; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the additional info type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets the additional info. + /// + [JsonProperty(PropertyName = "info")] + public object Info { get; private set; } + + } +} diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorDetail.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorDetail.cs new file mode 100644 index 0000000000000..bf0e71949c633 --- /dev/null +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorDetail.cs @@ -0,0 +1,85 @@ +// +// 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.Automanage.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The error detail. + /// + public partial class ErrorDetail + { + /// + /// Initializes a new instance of the ErrorDetail class. + /// + public ErrorDetail() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorDetail class. + /// + /// The error code. + /// The error message. + /// The error target. + /// The error details. + /// The error additional info. + public ErrorDetail(string code = default(string), string message = default(string), string target = default(string), IList details = default(IList), IList additionalInfo = default(IList)) + { + Code = code; + Message = message; + Target = target; + Details = details; + AdditionalInfo = additionalInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the error code. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; private set; } + + /// + /// Gets the error message. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + + /// + /// Gets the error target. + /// + [JsonProperty(PropertyName = "target")] + public string Target { get; private set; } + + /// + /// Gets the error details. + /// + [JsonProperty(PropertyName = "details")] + public IList Details { get; private set; } + + /// + /// Gets the error additional info. + /// + [JsonProperty(PropertyName = "additionalInfo")] + public IList AdditionalInfo { get; private set; } + + } +} diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorResponse.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorResponse.cs index ca24e2ca8ae26..081fc1e3b8f21 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorResponse.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorResponse.cs @@ -14,8 +14,13 @@ namespace Microsoft.Azure.Management.Automanage.Models using System.Linq; /// - /// ARM error response body. + /// Error response /// + /// + /// Common error response for all Azure Resource Manager APIs to return + /// error details for failed operations. (This also follows the OData error + /// response format.). + /// public partial class ErrorResponse { /// @@ -29,8 +34,8 @@ public ErrorResponse() /// /// Initializes a new instance of the ErrorResponse class. /// - /// Details about the error. - public ErrorResponse(ErrorResponseBody error = default(ErrorResponseBody)) + /// The error object. + public ErrorResponse(ErrorDetail error = default(ErrorDetail)) { Error = error; CustomInit(); @@ -42,10 +47,10 @@ public ErrorResponse() partial void CustomInit(); /// - /// Gets or sets details about the error. + /// Gets or sets the error object. /// [JsonProperty(PropertyName = "error")] - public ErrorResponseBody Error { get; set; } + public ErrorDetail Error { get; set; } } } diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorResponseBody.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorResponseBody.cs deleted file mode 100644 index 3eee8cac51557..0000000000000 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ErrorResponseBody.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.Automanage.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// An error response from the Automanage service. - /// - public partial class ErrorResponseBody - { - /// - /// Initializes a new instance of the ErrorResponseBody class. - /// - public ErrorResponseBody() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ErrorResponseBody class. - /// - /// An identifier for the error. Codes are invariant - /// and are intended to be consumed programmatically. - /// A message describing the error, intended to - /// be suitable for display in a user interface. - /// The target of the particular error. For - /// example, the name of the property in error. - public ErrorResponseBody(string code = default(string), string message = default(string), string target = default(string)) - { - Code = code; - Message = message; - Target = target; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets an identifier for the error. Codes are invariant and - /// are intended to be consumed programmatically. - /// - [JsonProperty(PropertyName = "code")] - public string Code { get; set; } - - /// - /// Gets or sets a message describing the error, intended to be - /// suitable for display in a user interface. - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Gets or sets the target of the particular error. For example, the - /// name of the property in error. - /// - [JsonProperty(PropertyName = "target")] - public string Target { get; set; } - - } -} diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ProvisioningStatus.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ProvisioningState.cs similarity index 87% rename from sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ProvisioningStatus.cs rename to sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ProvisioningState.cs index 39e799c0d1c6a..f5275a84f1d21 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ProvisioningStatus.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ProvisioningState.cs @@ -12,9 +12,9 @@ namespace Microsoft.Azure.Management.Automanage.Models { /// - /// Defines values for ProvisioningStatus. + /// Defines values for ProvisioningState. /// - public static class ProvisioningStatus + public static class ProvisioningState { public const string Succeeded = "Succeeded"; public const string Failed = "Failed"; diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ProxyResource.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ProxyResource.cs index 93b7529e80ca7..b89f18a981387 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ProxyResource.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/ProxyResource.cs @@ -13,8 +13,12 @@ namespace Microsoft.Azure.Management.Automanage.Models using System.Linq; /// - /// ARM proxy resource. + /// Proxy Resource /// + /// + /// The resource model definition for a Azure Resource Manager proxy + /// resource. It will not have tags and a location + /// public partial class ProxyResource : Resource { /// @@ -28,13 +32,14 @@ public ProxyResource() /// /// Initializes a new instance of the ProxyResource class. /// - /// ARM resource id of the Automanage - /// assignment. - /// Name of the Automanage assignment. - /// Region where the VM is located. - /// The type of the resource. - public ProxyResource(string id = default(string), string name = default(string), string location = default(string), string type = default(string)) - : base(id, name, location, type) + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + public ProxyResource(string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) { CustomInit(); } diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/Resource.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/Resource.cs index 35f3ef7e94dbc..58fa3937a1a08 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/Resource.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/Resource.cs @@ -16,8 +16,12 @@ namespace Microsoft.Azure.Management.Automanage.Models using System.Linq; /// - /// The core properties of ARM resources + /// Resource /// + /// + /// Common fields that are returned in the response for all Azure Resource + /// Manager resources + /// public partial class Resource : IResource { /// @@ -31,16 +35,16 @@ public Resource() /// /// Initializes a new instance of the Resource class. /// - /// ARM resource id of the Automanage - /// assignment. - /// Name of the Automanage assignment. - /// Region where the VM is located. - /// The type of the resource. - public Resource(string id = default(string), string name = default(string), string location = default(string), string type = default(string)) + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + public Resource(string id = default(string), string name = default(string), string type = default(string)) { Id = id; Name = name; - Location = location; Type = type; CustomInit(); } @@ -51,25 +55,22 @@ public Resource() partial void CustomInit(); /// - /// Gets ARM resource id of the Automanage assignment. + /// Gets fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } /// - /// Gets name of the Automanage assignment. + /// Gets the name of the resource /// [JsonProperty(PropertyName = "name")] public string Name { get; private set; } /// - /// Gets region where the VM is located. - /// - [JsonProperty(PropertyName = "location")] - public string Location { get; private set; } - - /// - /// Gets the type of the resource. + /// Gets the type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// [JsonProperty(PropertyName = "type")] public string Type { get; private set; } diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/TrackedResource.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/TrackedResource.cs index 2a109511571d2..bc2bca24d38c5 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/TrackedResource.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/TrackedResource.cs @@ -10,14 +10,19 @@ namespace Microsoft.Azure.Management.Automanage.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Linq; /// - /// The resource model definition for a ARM tracked top level resource + /// Tracked Resource /// + /// + /// The resource model definition for an Azure Resource Manager tracked top + /// level resource which has 'tags' and a 'location' + /// public partial class TrackedResource : Resource { /// @@ -31,16 +36,20 @@ public TrackedResource() /// /// Initializes a new instance of the TrackedResource class. /// - /// ARM resource id of the Automanage - /// assignment. - /// Name of the Automanage assignment. - /// Region where the VM is located. - /// The type of the resource. + /// The geo-location where the resource + /// lives + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Resource tags. - public TrackedResource(string id = default(string), string name = default(string), string location = default(string), string type = default(string), IDictionary tags = default(IDictionary)) - : base(id, name, location, type) + public TrackedResource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) + : base(id, name, type) { Tags = tags; + Location = location; CustomInit(); } @@ -55,5 +64,24 @@ public TrackedResource() [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } + /// + /// Gets or sets the geo-location where the resource lives + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + } } } diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/UpdateResource.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/UpdateResource.cs new file mode 100644 index 0000000000000..adf42729c36c3 --- /dev/null +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Models/UpdateResource.cs @@ -0,0 +1,53 @@ +// +// 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.Automanage.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Represents an update resource + /// + public partial class UpdateResource + { + /// + /// Initializes a new instance of the UpdateResource class. + /// + public UpdateResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UpdateResource class. + /// + /// The tags of the resource. + public UpdateResource(IDictionary tags = default(IDictionary)) + { + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tags of the resource. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Operations.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Operations.cs index 3e2db2f56cc30..faec19de81c4e 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Operations.cs +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/Operations.cs @@ -80,6 +80,13 @@ internal Operations(AutomanageClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/SdkInfo_AutomanageClient.cs b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/SdkInfo_AutomanageClient.cs new file mode 100644 index 0000000000000..a1b5a1d978151 --- /dev/null +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/Generated/SdkInfo_AutomanageClient.cs @@ -0,0 +1,31 @@ + +// +// 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.Automanage +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_AutomanageClient + { + get + { + return new Tuple[] + { + new Tuple("Automanage", "Accounts", "2020-06-30-preview"), + new Tuple("Automanage", "ConfigurationProfileAssignments", "2020-06-30-preview"), + new Tuple("Automanage", "ConfigurationProfilePreferences", "2020-06-30-preview"), + new Tuple("Automanage", "Operations", "2020-06-30-preview"), + new Tuple("Compute", "ConfigurationProfileAssignments", "2020-06-30-preview"), + }.AsEnumerable(); + } + } + } +}