From e22f680a272fab1347ab52ca636ea3f2721b2dcc Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 28 Apr 2021 22:40:46 +0000 Subject: [PATCH] CodeGen from PR 14090 in Azure/azure-rest-api-specs Merge 97abfdacd1f7d4d1622cd0e0721a6f042e6620b8 into 88d9023117ea3bfae404a44b755ca7f0bf81b806 --- .../src/Generated/MarketplaceAgreementsOperations.cs | 8 ++++++++ .../src/Generated/Models/OfferDetail.cs | 4 ++-- .../src/Generated/Models/OrganizationResource.cs | 8 ++++---- .../Models/OrganizationResourceProperties.cs | 8 ++++---- .../Generated/SdkInfo_ConfluentManagementClient.cs | 11 ----------- 5 files changed, 18 insertions(+), 21 deletions(-) diff --git a/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/MarketplaceAgreementsOperations.cs b/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/MarketplaceAgreementsOperations.cs index 85a13ea00ce65..c7818a4ed8485 100644 --- a/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/MarketplaceAgreementsOperations.cs +++ b/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/MarketplaceAgreementsOperations.cs @@ -95,6 +95,10 @@ internal MarketplaceAgreementsOperations(ConfluentManagementClient client) var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -264,6 +268,10 @@ internal MarketplaceAgreementsOperations(ConfluentManagementClient client) var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements/default").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OfferDetail.cs b/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OfferDetail.cs index 92f7f74e5d85e..89b8de891ee81 100644 --- a/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OfferDetail.cs +++ b/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OfferDetail.cs @@ -86,12 +86,12 @@ public OfferDetail() public string TermUnit { get; set; } /// - /// Gets or sets saaS Offer Status. Possible values include: 'Started', + /// Gets saaS Offer Status. Possible values include: 'Started', /// 'PendingFulfillmentStart', 'InProgress', 'Subscribed', 'Suspended', /// 'Reinstated', 'Succeeded', 'Failed', 'Unsubscribed', 'Updating' /// [JsonProperty(PropertyName = "status")] - public string Status { get; set; } + public string Status { get; private set; } /// /// Validate the object. diff --git a/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OrganizationResource.cs b/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OrganizationResource.cs index 88b34bce0955f..23e375a0f9497 100644 --- a/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OrganizationResource.cs +++ b/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OrganizationResource.cs @@ -98,12 +98,12 @@ public OrganizationResource() public System.DateTime? CreatedTime { get; private set; } /// - /// Gets or sets provision states for confluent RP. Possible values - /// include: 'Accepted', 'Creating', 'Updating', 'Deleting', - /// 'Succeeded', 'Failed', 'Canceled', 'Deleted', 'NotSpecified' + /// Gets provision states for confluent RP. Possible values include: + /// 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded', + /// 'Failed', 'Canceled', 'Deleted', 'NotSpecified' /// [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; set; } + public string ProvisioningState { get; private set; } /// /// Gets id of the Confluent organization. diff --git a/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OrganizationResourceProperties.cs b/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OrganizationResourceProperties.cs index d3075d98127fa..29808cb5b3f5c 100644 --- a/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OrganizationResourceProperties.cs +++ b/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/Models/OrganizationResourceProperties.cs @@ -66,12 +66,12 @@ public OrganizationResourceProperties() public System.DateTime? CreatedTime { get; private set; } /// - /// Gets or sets provision states for confluent RP. Possible values - /// include: 'Accepted', 'Creating', 'Updating', 'Deleting', - /// 'Succeeded', 'Failed', 'Canceled', 'Deleted', 'NotSpecified' + /// Gets provision states for confluent RP. Possible values include: + /// 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded', + /// 'Failed', 'Canceled', 'Deleted', 'NotSpecified' /// [JsonProperty(PropertyName = "provisioningState")] - public string ProvisioningState { get; set; } + public string ProvisioningState { get; private set; } /// /// Gets id of the Confluent organization. diff --git a/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/SdkInfo_ConfluentManagementClient.cs b/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/SdkInfo_ConfluentManagementClient.cs index ad5da04ed629c..46ec939bbfab3 100644 --- a/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/SdkInfo_ConfluentManagementClient.cs +++ b/sdk/confluent/Microsoft.Azure.Management.Confluent/src/Generated/SdkInfo_ConfluentManagementClient.cs @@ -25,16 +25,5 @@ public static IEnumerable> ApiInfo_ConfluentManage }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/confluent/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\Users\\sralluri\\source\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "14313ea8bb4807f71b970334262b4e199797a4a1"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -