diff --git a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/IProviderhubClient.cs b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/IProviderHubClient.cs similarity index 100% rename from sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/IProviderhubClient.cs rename to sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/IProviderHubClient.cs diff --git a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/ISkusOperations.cs b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/ISkusOperations.cs index fb3fe8a62d86..8d09ca98cdf8 100644 --- a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/ISkusOperations.cs +++ b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/ISkusOperations.cs @@ -64,7 +64,7 @@ public partial interface ISkusOperations /// /// The SKU. /// - /// + /// /// /// /// The headers that will be added to request. @@ -81,7 +81,7 @@ public partial interface ISkusOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string providerNamespace, string resourceType, string sku, IList skuSettings, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string providerNamespace, string resourceType, string sku, SkuResourceProperties properties = default(SkuResourceProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a resource type sku. /// @@ -154,7 +154,7 @@ public partial interface ISkusOperations /// /// The SKU. /// - /// + /// /// /// /// The headers that will be added to request. @@ -171,7 +171,7 @@ public partial interface ISkusOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateNestedResourceTypeFirstWithHttpMessagesAsync(string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku, IList skuSettings, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateNestedResourceTypeFirstWithHttpMessagesAsync(string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku, SkuResourceProperties properties = default(SkuResourceProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a resource type sku. /// @@ -253,7 +253,7 @@ public partial interface ISkusOperations /// /// The SKU. /// - /// + /// /// /// /// The headers that will be added to request. @@ -270,7 +270,7 @@ public partial interface ISkusOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateNestedResourceTypeSecondWithHttpMessagesAsync(string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku, IList skuSettings, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateNestedResourceTypeSecondWithHttpMessagesAsync(string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku, SkuResourceProperties properties = default(SkuResourceProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a resource type sku. /// @@ -361,7 +361,7 @@ public partial interface ISkusOperations /// /// The SKU. /// - /// + /// /// /// /// The headers that will be added to request. @@ -378,7 +378,7 @@ public partial interface ISkusOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateNestedResourceTypeThirdWithHttpMessagesAsync(string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, IList skuSettings, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateNestedResourceTypeThirdWithHttpMessagesAsync(string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, SkuResourceProperties properties = default(SkuResourceProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a resource type sku. /// diff --git a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/NotificationRegistrationProperties.cs b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/NotificationRegistrationProperties.cs index 8b57594a619c..5a8336c58dc1 100644 --- a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/NotificationRegistrationProperties.cs +++ b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/NotificationRegistrationProperties.cs @@ -34,12 +34,17 @@ public NotificationRegistrationProperties() /// 'NotSpecified', 'EventHub', 'WebHook' /// Possible values include: 'NotSpecified', /// 'RegisteredSubscriptions' - public NotificationRegistrationProperties(string notificationMode = default(string), string messageScope = default(string), IList includedEvents = default(IList), IList notificationEndpoints = default(IList)) + /// Possible values include: + /// 'NotSpecified', 'Accepted', 'Running', 'Creating', 'Created', + /// 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', + /// 'MovingResources', 'TransientFailure', 'RolloutInProgress' + public NotificationRegistrationProperties(string notificationMode = default(string), string messageScope = default(string), IList includedEvents = default(IList), IList notificationEndpoints = default(IList), string provisioningState = default(string)) { NotificationMode = notificationMode; MessageScope = messageScope; IncludedEvents = includedEvents; NotificationEndpoints = notificationEndpoints; + ProvisioningState = provisioningState; CustomInit(); } @@ -72,5 +77,14 @@ public NotificationRegistrationProperties() [JsonProperty(PropertyName = "notificationEndpoints")] public IList NotificationEndpoints { get; set; } + /// + /// Gets or sets possible values include: 'NotSpecified', 'Accepted', + /// 'Running', 'Creating', 'Created', 'Deleting', 'Deleted', + /// 'Canceled', 'Failed', 'Succeeded', 'MovingResources', + /// 'TransientFailure', 'RolloutInProgress' + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; set; } + } } diff --git a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/NotificationRegistrationPropertiesModel.cs b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/NotificationRegistrationPropertiesModel.cs index 6c360c70a115..3d3e4e26c403 100644 --- a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/NotificationRegistrationPropertiesModel.cs +++ b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/NotificationRegistrationPropertiesModel.cs @@ -33,8 +33,12 @@ public NotificationRegistrationPropertiesModel() /// 'NotSpecified', 'EventHub', 'WebHook' /// Possible values include: 'NotSpecified', /// 'RegisteredSubscriptions' - public NotificationRegistrationPropertiesModel(string notificationMode = default(string), string messageScope = default(string), IList includedEvents = default(IList), IList notificationEndpoints = default(IList)) - : base(notificationMode, messageScope, includedEvents, notificationEndpoints) + /// Possible values include: + /// 'NotSpecified', 'Accepted', 'Running', 'Creating', 'Created', + /// 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', + /// 'MovingResources', 'TransientFailure', 'RolloutInProgress' + public NotificationRegistrationPropertiesModel(string notificationMode = default(string), string messageScope = default(string), IList includedEvents = default(IList), IList notificationEndpoints = default(IList), string provisioningState = default(string)) + : base(notificationMode, messageScope, includedEvents, notificationEndpoints, provisioningState) { CustomInit(); } diff --git a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/ResourceTypeSku.cs b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/ResourceTypeSku.cs index aeabf8b261c5..9cdc3e54a845 100644 --- a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/ResourceTypeSku.cs +++ b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/ResourceTypeSku.cs @@ -28,9 +28,14 @@ public ResourceTypeSku() /// /// Initializes a new instance of the ResourceTypeSku class. /// - public ResourceTypeSku(IList skuSettings) + /// Possible values include: + /// 'NotSpecified', 'Accepted', 'Running', 'Creating', 'Created', + /// 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', + /// 'MovingResources', 'TransientFailure', 'RolloutInProgress' + public ResourceTypeSku(IList skuSettings, string provisioningState = default(string)) { SkuSettings = skuSettings; + ProvisioningState = provisioningState; CustomInit(); } @@ -44,5 +49,14 @@ public ResourceTypeSku(IList skuSettings) [JsonProperty(PropertyName = "skuSettings")] public IList SkuSettings { get; set; } + /// + /// Gets or sets possible values include: 'NotSpecified', 'Accepted', + /// 'Running', 'Creating', 'Created', 'Deleting', 'Deleted', + /// 'Canceled', 'Failed', 'Succeeded', 'MovingResources', + /// 'TransientFailure', 'RolloutInProgress' + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; set; } + } } diff --git a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/SkuResourceProperties.cs b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/SkuResourceProperties.cs index 41a6b004f5b8..13265bbeedd6 100644 --- a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/SkuResourceProperties.cs +++ b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/Models/SkuResourceProperties.cs @@ -27,8 +27,12 @@ public SkuResourceProperties() /// /// Initializes a new instance of the SkuResourceProperties class. /// - public SkuResourceProperties(IList skuSettings) - : base(skuSettings) + /// Possible values include: + /// 'NotSpecified', 'Accepted', 'Running', 'Creating', 'Created', + /// 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', + /// 'MovingResources', 'TransientFailure', 'RolloutInProgress' + public SkuResourceProperties(IList skuSettings, string provisioningState = default(string)) + : base(skuSettings, provisioningState) { CustomInit(); } diff --git a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/providerhubClient.cs b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/ProviderHubClient.cs similarity index 100% rename from sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/providerhubClient.cs rename to sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/ProviderHubClient.cs diff --git a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/providerhubClientExtensions.cs b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/ProviderHubClientExtensions.cs similarity index 100% rename from sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/providerhubClientExtensions.cs rename to sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/ProviderHubClientExtensions.cs diff --git a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SdkInfo_Providerhub.cs b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SdkInfo_ProviderHub.cs similarity index 61% rename from sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SdkInfo_Providerhub.cs rename to sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SdkInfo_ProviderHub.cs index 295fff24b5af..139105c12529 100644 --- a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SdkInfo_Providerhub.cs +++ b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SdkInfo_ProviderHub.cs @@ -31,16 +31,5 @@ public static IEnumerable> ApiInfo_ProviderHub }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@1.9.1"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/providerhub/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\Users\\wendychang\\repos\\misc-repos\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "3db787e7dbdeaac57ed7b483e0136b241fc27364"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SkusOperations.cs b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SkusOperations.cs index 1a03f5f556df..c7c3b138d6d8 100644 --- a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SkusOperations.cs +++ b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SkusOperations.cs @@ -262,7 +262,7 @@ internal SkusOperations(ProviderHubClient client) /// /// The SKU. /// - /// + /// /// /// /// Headers that will be added to request. @@ -285,7 +285,7 @@ internal SkusOperations(ProviderHubClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string providerNamespace, string resourceType, string sku, IList skuSettings, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string providerNamespace, string resourceType, string sku, SkuResourceProperties properties = default(SkuResourceProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -307,14 +307,10 @@ internal SkusOperations(ProviderHubClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (skuSettings == null) + SkuResource properties1 = new SkuResource(); + if (properties != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "skuSettings"); - } - ResourceTypeSku properties = new ResourceTypeSku(); - if (skuSettings != null) - { - properties.SkuSettings = skuSettings; + properties1.Properties = properties; } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -326,7 +322,7 @@ internal SkusOperations(ProviderHubClient client) tracingParameters.Add("providerNamespace", providerNamespace); tracingParameters.Add("resourceType", resourceType); tracingParameters.Add("sku", sku); - tracingParameters.Add("properties", properties); + tracingParameters.Add("properties1", properties1); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); } @@ -380,9 +376,9 @@ internal SkusOperations(ProviderHubClient client) // Serialize Request string _requestContent = null; - if(properties != null) + if(properties1 != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(properties, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(properties1, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -871,7 +867,7 @@ internal SkusOperations(ProviderHubClient client) /// /// The SKU. /// - /// + /// /// /// /// Headers that will be added to request. @@ -894,7 +890,7 @@ internal SkusOperations(ProviderHubClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateNestedResourceTypeFirstWithHttpMessagesAsync(string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku, IList skuSettings, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateNestedResourceTypeFirstWithHttpMessagesAsync(string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku, SkuResourceProperties properties = default(SkuResourceProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -920,14 +916,10 @@ internal SkusOperations(ProviderHubClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (skuSettings == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "skuSettings"); - } - ResourceTypeSku properties = new ResourceTypeSku(); - if (skuSettings != null) + SkuResource properties1 = new SkuResource(); + if (properties != null) { - properties.SkuSettings = skuSettings; + properties1.Properties = properties; } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -940,7 +932,7 @@ internal SkusOperations(ProviderHubClient client) tracingParameters.Add("resourceType", resourceType); tracingParameters.Add("nestedResourceTypeFirst", nestedResourceTypeFirst); tracingParameters.Add("sku", sku); - tracingParameters.Add("properties", properties); + tracingParameters.Add("properties1", properties1); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateNestedResourceTypeFirst", tracingParameters); } @@ -995,9 +987,9 @@ internal SkusOperations(ProviderHubClient client) // Serialize Request string _requestContent = null; - if(properties != null) + if(properties1 != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(properties, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(properties1, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -1507,7 +1499,7 @@ internal SkusOperations(ProviderHubClient client) /// /// The SKU. /// - /// + /// /// /// /// Headers that will be added to request. @@ -1530,7 +1522,7 @@ internal SkusOperations(ProviderHubClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateNestedResourceTypeSecondWithHttpMessagesAsync(string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku, IList skuSettings, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateNestedResourceTypeSecondWithHttpMessagesAsync(string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku, SkuResourceProperties properties = default(SkuResourceProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1560,14 +1552,10 @@ internal SkusOperations(ProviderHubClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (skuSettings == null) + SkuResource properties1 = new SkuResource(); + if (properties != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "skuSettings"); - } - ResourceTypeSku properties = new ResourceTypeSku(); - if (skuSettings != null) - { - properties.SkuSettings = skuSettings; + properties1.Properties = properties; } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -1581,7 +1569,7 @@ internal SkusOperations(ProviderHubClient client) tracingParameters.Add("nestedResourceTypeFirst", nestedResourceTypeFirst); tracingParameters.Add("nestedResourceTypeSecond", nestedResourceTypeSecond); tracingParameters.Add("sku", sku); - tracingParameters.Add("properties", properties); + tracingParameters.Add("properties1", properties1); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateNestedResourceTypeSecond", tracingParameters); } @@ -1637,9 +1625,9 @@ internal SkusOperations(ProviderHubClient client) // Serialize Request string _requestContent = null; - if(properties != null) + if(properties1 != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(properties, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(properties1, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } @@ -2170,7 +2158,7 @@ internal SkusOperations(ProviderHubClient client) /// /// The SKU. /// - /// + /// /// /// /// Headers that will be added to request. @@ -2193,7 +2181,7 @@ internal SkusOperations(ProviderHubClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateNestedResourceTypeThirdWithHttpMessagesAsync(string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, IList skuSettings, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateNestedResourceTypeThirdWithHttpMessagesAsync(string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, SkuResourceProperties properties = default(SkuResourceProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2227,14 +2215,10 @@ internal SkusOperations(ProviderHubClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (skuSettings == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "skuSettings"); - } - ResourceTypeSku properties = new ResourceTypeSku(); - if (skuSettings != null) + SkuResource properties1 = new SkuResource(); + if (properties != null) { - properties.SkuSettings = skuSettings; + properties1.Properties = properties; } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -2249,7 +2233,7 @@ internal SkusOperations(ProviderHubClient client) tracingParameters.Add("nestedResourceTypeSecond", nestedResourceTypeSecond); tracingParameters.Add("nestedResourceTypeThird", nestedResourceTypeThird); tracingParameters.Add("sku", sku); - tracingParameters.Add("properties", properties); + tracingParameters.Add("properties1", properties1); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateNestedResourceTypeThird", tracingParameters); } @@ -2306,9 +2290,9 @@ internal SkusOperations(ProviderHubClient client) // Serialize Request string _requestContent = null; - if(properties != null) + if(properties1 != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(properties, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(properties1, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } diff --git a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SkusOperationsExtensions.cs b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SkusOperationsExtensions.cs index 0536e3f60db8..3f4776b04a06 100644 --- a/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SkusOperationsExtensions.cs +++ b/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/src/Generated/SkusOperationsExtensions.cs @@ -13,8 +13,6 @@ namespace Microsoft.Azure.Management.ProviderHub using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Collections; - using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; @@ -84,11 +82,11 @@ public static SkuResource Get(this ISkusOperations operations, string providerNa /// /// The SKU. /// - /// + /// /// - public static SkuResource CreateOrUpdate(this ISkusOperations operations, string providerNamespace, string resourceType, string sku, IList skuSettings) + public static SkuResource CreateOrUpdate(this ISkusOperations operations, string providerNamespace, string resourceType, string sku, SkuResourceProperties properties = default(SkuResourceProperties)) { - return operations.CreateOrUpdateAsync(providerNamespace, resourceType, sku, skuSettings).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(providerNamespace, resourceType, sku, properties).GetAwaiter().GetResult(); } /// @@ -106,14 +104,14 @@ public static SkuResource CreateOrUpdate(this ISkusOperations operations, string /// /// The SKU. /// - /// + /// /// /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this ISkusOperations operations, string providerNamespace, string resourceType, string sku, IList skuSettings, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this ISkusOperations operations, string providerNamespace, string resourceType, string sku, SkuResourceProperties properties = default(SkuResourceProperties), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(providerNamespace, resourceType, sku, skuSettings, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(providerNamespace, resourceType, sku, properties, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -232,11 +230,11 @@ public static SkuResource GetNestedResourceTypeFirst(this ISkusOperations operat /// /// The SKU. /// - /// + /// /// - public static SkuResource CreateOrUpdateNestedResourceTypeFirst(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku, IList skuSettings) + public static SkuResource CreateOrUpdateNestedResourceTypeFirst(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku, SkuResourceProperties properties = default(SkuResourceProperties)) { - return operations.CreateOrUpdateNestedResourceTypeFirstAsync(providerNamespace, resourceType, nestedResourceTypeFirst, sku, skuSettings).GetAwaiter().GetResult(); + return operations.CreateOrUpdateNestedResourceTypeFirstAsync(providerNamespace, resourceType, nestedResourceTypeFirst, sku, properties).GetAwaiter().GetResult(); } /// @@ -257,14 +255,14 @@ public static SkuResource CreateOrUpdateNestedResourceTypeFirst(this ISkusOperat /// /// The SKU. /// - /// + /// /// /// /// The cancellation token. /// - public static async Task CreateOrUpdateNestedResourceTypeFirstAsync(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku, IList skuSettings, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateNestedResourceTypeFirstAsync(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string sku, SkuResourceProperties properties = default(SkuResourceProperties), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateNestedResourceTypeFirstWithHttpMessagesAsync(providerNamespace, resourceType, nestedResourceTypeFirst, sku, skuSettings, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateNestedResourceTypeFirstWithHttpMessagesAsync(providerNamespace, resourceType, nestedResourceTypeFirst, sku, properties, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -398,11 +396,11 @@ public static SkuResource GetNestedResourceTypeSecond(this ISkusOperations opera /// /// The SKU. /// - /// + /// /// - public static SkuResource CreateOrUpdateNestedResourceTypeSecond(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku, IList skuSettings) + public static SkuResource CreateOrUpdateNestedResourceTypeSecond(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku, SkuResourceProperties properties = default(SkuResourceProperties)) { - return operations.CreateOrUpdateNestedResourceTypeSecondAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, sku, skuSettings).GetAwaiter().GetResult(); + return operations.CreateOrUpdateNestedResourceTypeSecondAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, sku, properties).GetAwaiter().GetResult(); } /// @@ -426,14 +424,14 @@ public static SkuResource CreateOrUpdateNestedResourceTypeSecond(this ISkusOpera /// /// The SKU. /// - /// + /// /// /// /// The cancellation token. /// - public static async Task CreateOrUpdateNestedResourceTypeSecondAsync(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku, IList skuSettings, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateNestedResourceTypeSecondAsync(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string sku, SkuResourceProperties properties = default(SkuResourceProperties), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateNestedResourceTypeSecondWithHttpMessagesAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, sku, skuSettings, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateNestedResourceTypeSecondWithHttpMessagesAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, sku, properties, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -582,11 +580,11 @@ public static SkuResource GetNestedResourceTypeThird(this ISkusOperations operat /// /// The SKU. /// - /// + /// /// - public static SkuResource CreateOrUpdateNestedResourceTypeThird(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, IList skuSettings) + public static SkuResource CreateOrUpdateNestedResourceTypeThird(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, SkuResourceProperties properties = default(SkuResourceProperties)) { - return operations.CreateOrUpdateNestedResourceTypeThirdAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, nestedResourceTypeThird, sku, skuSettings).GetAwaiter().GetResult(); + return operations.CreateOrUpdateNestedResourceTypeThirdAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, nestedResourceTypeThird, sku, properties).GetAwaiter().GetResult(); } /// @@ -613,14 +611,14 @@ public static SkuResource CreateOrUpdateNestedResourceTypeThird(this ISkusOperat /// /// The SKU. /// - /// + /// /// /// /// The cancellation token. /// - public static async Task CreateOrUpdateNestedResourceTypeThirdAsync(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, IList skuSettings, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateNestedResourceTypeThirdAsync(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, SkuResourceProperties properties = default(SkuResourceProperties), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateNestedResourceTypeThirdWithHttpMessagesAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, nestedResourceTypeThird, sku, skuSettings, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateNestedResourceTypeThirdWithHttpMessagesAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, nestedResourceTypeThird, sku, properties, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; }