diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/DurationOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/DurationOperations.cs index 1bb297f05c5be..0a81d725f40a0 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/DurationOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/DurationOperations.cs @@ -262,12 +262,9 @@ internal DurationOperations(AutoRestDurationTestService client) // Serialize Request string _requestContent = null; - if(durationBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(durationBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(durationBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Set Credentials if (this.Client.Credentials != null) { diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Basic.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Basic.cs index e30aad46136d3..a3f115e527736 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Basic.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Basic.cs @@ -44,7 +44,8 @@ public Basic() { } public string Name { get; set; } /// - /// Possible values include: 'cyan', 'Magenta', 'YELLOW', 'blacK' + /// Gets or sets possible values include: 'cyan', 'Magenta', 'YELLOW', + /// 'blacK' /// [JsonProperty(PropertyName = "color")] public string Color { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArray.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArray.cs index 66c81ff69df2e..7d380e403bc71 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArray.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArray.cs @@ -32,7 +32,7 @@ public CatalogArray() { } } /// - /// Array of products + /// Gets or sets array of products /// [JsonProperty(PropertyName = "productArray")] public IList ProductArray { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArrayOfDictionary.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArrayOfDictionary.cs index 893eaa5620e00..5f64fd7d8be66 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArrayOfDictionary.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArrayOfDictionary.cs @@ -32,7 +32,7 @@ public CatalogArrayOfDictionary() { } } /// - /// Array of dictionary of products + /// Gets or sets array of dictionary of products /// [JsonProperty(PropertyName = "productArrayOfDictionary")] public IList> ProductArrayOfDictionary { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionary.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionary.cs index fc5886801b627..f3b008a02d974 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionary.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionary.cs @@ -32,7 +32,7 @@ public CatalogDictionary() { } } /// - /// Dictionary of products + /// Gets or sets dictionary of products /// [JsonProperty(PropertyName = "productDictionary")] public IDictionary ProductDictionary { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionaryOfArray.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionaryOfArray.cs index 08422bdccb508..1ce6d5bda5059 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionaryOfArray.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionaryOfArray.cs @@ -32,7 +32,7 @@ public CatalogDictionaryOfArray() { } } /// - /// Dictionary of Array of product + /// Gets or sets dictionary of Array of product /// [JsonProperty(PropertyName = "productDictionaryOfArray")] public IDictionary> ProductDictionaryOfArray { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Product.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Product.cs index f09206d4572f6..6490bfe15f7b7 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Product.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Product.cs @@ -39,33 +39,34 @@ public Product() { } } /// - /// Unique identifier representing a specific product for a given - /// latitude & longitude. For example, uberX in San Francisco - /// will have a different product_id than uberX in Los Angeles. + /// Gets or sets unique identifier representing a specific product for + /// a given latitude & longitude. For example, uberX in San + /// Francisco will have a different product_id than uberX in Los + /// Angeles. /// [JsonProperty(PropertyName = "product_id")] public string ProductId { get; set; } /// - /// Description of product. + /// Gets or sets description of product. /// [JsonProperty(PropertyName = "description")] public string Description { get; set; } /// - /// Display name of product. + /// Gets or sets display name of product. /// [JsonProperty(PropertyName = "display_name")] public string DisplayName { get; set; } /// - /// Capacity of product. For example, 4 people. + /// Gets or sets capacity of product. For example, 4 people. /// [JsonProperty(PropertyName = "capacity")] public string Capacity { get; set; } /// - /// Image URL representing the product. + /// Gets or sets image URL representing the product. /// [JsonProperty(PropertyName = "image")] public string Image { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/FirstParameterGroup.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/FirstParameterGroup.cs index 0b05e6b45209b..4e2fe34867c21 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/FirstParameterGroup.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/FirstParameterGroup.cs @@ -17,7 +17,9 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models using Microsoft.Rest.Azure; /// - /// Additional parameters for the postMultiParamGroups operation. + /// Additional parameters for a set of operations, such as: + /// parameterGrouping_postMultiParamGroups, + /// parameterGrouping_postSharedParameterGroupObject. /// public partial class FirstParameterGroup { @@ -41,7 +43,7 @@ public FirstParameterGroup() { } public string HeaderOne { get; set; } /// - /// Query parameter with default + /// Gets or sets query parameter with default /// [JsonProperty(PropertyName = "")] public int? QueryOne { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.cs index b62aab87f7c4e..6d81fef18781c 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.cs @@ -17,7 +17,8 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models using Microsoft.Rest.Azure; /// - /// Additional parameters for the postMultiParamGroups operation. + /// Additional parameters for the parameterGrouping_postMultiParamGroups + /// operation. /// public partial class ParameterGroupingPostMultiParamGroupsSecondParamGroup { @@ -43,7 +44,7 @@ public ParameterGroupingPostMultiParamGroupsSecondParamGroup() { } public string HeaderTwo { get; set; } /// - /// Query parameter with default + /// Gets or sets query parameter with default /// [JsonProperty(PropertyName = "")] public int? QueryTwo { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostOptionalParameters.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostOptionalParameters.cs index ad34300acc32a..3a3dcc12562a8 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostOptionalParameters.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostOptionalParameters.cs @@ -17,7 +17,7 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models using Microsoft.Rest.Azure; /// - /// Additional parameters for the postOptional operation. + /// Additional parameters for the parameterGrouping_postOptional operation. /// public partial class ParameterGroupingPostOptionalParameters { @@ -43,7 +43,7 @@ public ParameterGroupingPostOptionalParameters() { } public string CustomHeader { get; set; } /// - /// Query parameter with default + /// Gets or sets query parameter with default /// [JsonProperty(PropertyName = "")] public int? Query { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostRequiredParameters.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostRequiredParameters.cs index 65b9f511989af..4251abe07005e 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostRequiredParameters.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostRequiredParameters.cs @@ -17,7 +17,7 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models using Microsoft.Rest.Azure; /// - /// Additional parameters for the postRequired operation. + /// Additional parameters for the parameterGrouping_postRequired operation. /// public partial class ParameterGroupingPostRequiredParameters { @@ -50,13 +50,13 @@ public ParameterGroupingPostRequiredParameters() { } public string CustomHeader { get; set; } /// - /// Query parameter with default + /// Gets or sets query parameter with default /// [JsonProperty(PropertyName = "")] public int? Query { get; set; } /// - /// Path parameter + /// Gets or sets path parameter /// [JsonProperty(PropertyName = "")] public string Path { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/ParameterGroupingOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/ParameterGroupingOperations.cs index 7fe382cfcdee6..9a2bf74564bac 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/ParameterGroupingOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/ParameterGroupingOperations.cs @@ -161,12 +161,9 @@ internal ParameterGroupingOperations(AutoRestParameterGroupingTestService client // Serialize Request string _requestContent = null; - if(body != null) - { - _requestContent = SafeJsonConvert.SerializeObject(body, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(body, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Set Credentials if (this.Client.Credentials != null) { diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Resource.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Resource.cs index 8e0914cc4e682..61d81a2722b2c 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Resource.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Resource.cs @@ -36,13 +36,13 @@ public Resource() { } } /// - /// Resource Id + /// Gets resource Id /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } /// - /// Resource Type + /// Gets resource Type /// [JsonProperty(PropertyName = "type")] public string Type { get; private set; } @@ -53,13 +53,13 @@ public Resource() { } public IDictionary Tags { get; set; } /// - /// Resource Location + /// Gets or sets resource Location /// [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// - /// Resource Name + /// Gets resource Name /// [JsonProperty(PropertyName = "name")] public string Name { get; private set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdHeaders.cs index d00b60f8390f2..4328e58dfa0ed 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdHeaders.cs @@ -37,7 +37,7 @@ public HeaderCustomNamedRequestIdHeaders() { } } /// - /// Gets the foo-request-id. + /// Gets or sets gets the foo-request-id. /// [JsonProperty(PropertyName = "foo-request-id")] public string FooRequestId { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDelete202Retry200Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDelete202Retry200Headers.cs index 5a86816dc6a3b..48c5638bc1344 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDelete202Retry200Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDelete202Retry200Headers.cs @@ -38,15 +38,15 @@ public LRORetrysDelete202Retry200Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/delete/202/retry/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteAsyncRelativeRetrySucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteAsyncRelativeRetrySucceededHeaders.cs index e368937f0d639..095ed23b916b1 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteAsyncRelativeRetrySucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteAsyncRelativeRetrySucceededHeaders.cs @@ -39,22 +39,22 @@ public LRORetrysDeleteAsyncRelativeRetrySucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/deleteasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/deleteasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteProvisioning202Accepted200SucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteProvisioning202Accepted200SucceededHeaders.cs index 6bf24c3d9a7cc..3c239e13c5061 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteProvisioning202Accepted200SucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteProvisioning202Accepted200SucceededHeaders.cs @@ -39,15 +39,15 @@ public LRORetrysDeleteProvisioning202Accepted200SucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/delete/provisioning/202/accepted/200/succeeded /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPost202Retry200Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPost202Retry200Headers.cs index d8e377089a104..be801531b1e35 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPost202Retry200Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPost202Retry200Headers.cs @@ -38,15 +38,15 @@ public LRORetrysPost202Retry200Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/post/202/retry/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPostAsyncRelativeRetrySucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPostAsyncRelativeRetrySucceededHeaders.cs index 0cf65de610684..694c6f60c6043 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPostAsyncRelativeRetrySucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPostAsyncRelativeRetrySucceededHeaders.cs @@ -39,22 +39,22 @@ public LRORetrysPostAsyncRelativeRetrySucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPutAsyncRelativeRetrySucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPutAsyncRelativeRetrySucceededHeaders.cs index eeb61fc755b1c..02693514b3115 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPutAsyncRelativeRetrySucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPutAsyncRelativeRetrySucceededHeaders.cs @@ -39,22 +39,22 @@ public LRORetrysPutAsyncRelativeRetrySucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202NonRetry400Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202NonRetry400Headers.cs index 5178d27baa190..116d6a7e5db40 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202NonRetry400Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202NonRetry400Headers.cs @@ -38,15 +38,15 @@ public LROSADsDelete202NonRetry400Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/delete/202/retry/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202RetryInvalidHeaderHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202RetryInvalidHeaderHeaders.cs index 74944259a2ca3..727b01276234f 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202RetryInvalidHeaderHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202RetryInvalidHeaderHeaders.cs @@ -38,14 +38,15 @@ public LROSADsDelete202RetryInvalidHeaderHeaders() { } } /// - /// Location to poll for result status: will be set to /foo + /// Gets or sets location to poll for result status: will be set to + /// /foo /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to /bar + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to /bar /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetry400Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetry400Headers.cs index fc54f97d80671..4c1ac5d129b81 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetry400Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetry400Headers.cs @@ -39,22 +39,22 @@ public LROSADsDeleteAsyncRelativeRetry400Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/nonretryerror/deleteasync/retry/operationResults/400 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/nonretryerror/deleteasync/retry/operationResults/400 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.cs index 1c1262eb4bd11..bcb53a47e9945 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.cs @@ -39,20 +39,22 @@ public LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders() { } } /// - /// Location to poll for result status: will be set to /foo + /// Gets or sets location to poll for result status: will be set to + /// /foo /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to /foo + /// Gets or sets location to poll for result status: will be set to + /// /foo /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to /bar + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to /bar /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.cs index 2ccbcaf1f68b6..8c30a0a4f97c9 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.cs @@ -40,22 +40,22 @@ public LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/error/deleteasync/retry/failed/operationResults/invalidjsonpolling /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/error/deleteasync/retry/failed/operationResults/invalidjsonpolling /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.cs index a3b082bc44677..1a6afea5086b7 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.cs @@ -39,22 +39,22 @@ public LROSADsDeleteAsyncRelativeRetryNoStatusHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteNonRetry400Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteNonRetry400Headers.cs index 8388c132dbadb..202e5b5d8b720 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteNonRetry400Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteNonRetry400Headers.cs @@ -38,15 +38,15 @@ public LROSADsDeleteNonRetry400Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/delete/202/retry/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NoLocationHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NoLocationHeaders.cs index d0ff72b0480ad..275c476a53236 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NoLocationHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NoLocationHeaders.cs @@ -38,14 +38,14 @@ public LROSADsPost202NoLocationHeaders() { } } /// - /// Location to poll for result status: will not be set + /// Gets or sets location to poll for result status: will not be set /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NonRetry400Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NonRetry400Headers.cs index 4a631690e2b5d..448c6f2ed5db5 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NonRetry400Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NonRetry400Headers.cs @@ -38,15 +38,15 @@ public LROSADsPost202NonRetry400Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/post/202/retry/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202RetryInvalidHeaderHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202RetryInvalidHeaderHeaders.cs index 8d258cf724680..31373a1d5bc26 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202RetryInvalidHeaderHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202RetryInvalidHeaderHeaders.cs @@ -38,14 +38,15 @@ public LROSADsPost202RetryInvalidHeaderHeaders() { } } /// - /// Location to poll for result status: will be set to /foo + /// Gets or sets location to poll for result status: will be set to + /// /foo /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to /bar + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to /bar /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetry400Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetry400Headers.cs index 8b4d91544b02e..0c8e775eb0b59 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetry400Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetry400Headers.cs @@ -39,22 +39,22 @@ public LROSADsPostAsyncRelativeRetry400Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/nonretryerror/putasync/retry/operationResults/400 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/nonretryerror/putasync/retry/operationResults/400 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.cs index ff5102bac8892..8b4a8487a6840 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.cs @@ -39,20 +39,20 @@ public LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders() { } } /// - /// Location to poll for result status: will be set to foo + /// Gets or sets location to poll for result status: will be set to foo /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to foo + /// Gets or sets location to poll for result status: will be set to foo /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to /bar + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to /bar /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.cs index 6b33dddde0813..55f40ad33f05d 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.cs @@ -39,22 +39,22 @@ public LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/error/postasync/retry/failed/operationResults/invalidjsonpolling /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/error/postasync/retry/failed/operationResults/invalidjsonpolling /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryNoPayloadHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryNoPayloadHeaders.cs index 6b879e10ce3ce..c5a6c9a6a4b88 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryNoPayloadHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryNoPayloadHeaders.cs @@ -39,22 +39,22 @@ public LROSADsPostAsyncRelativeRetryNoPayloadHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/error/putasync/retry/failed/operationResults/nopayload /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/error/putasync/retry/failed/operationResults/nopayload /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostNonRetry400Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostNonRetry400Headers.cs index b84f0a4ab2dae..a063b6ed3c2b3 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostNonRetry400Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostNonRetry400Headers.cs @@ -38,15 +38,15 @@ public LROSADsPostNonRetry400Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/post/202/retry/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetry400Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetry400Headers.cs index 4517f177b7c4e..a8fdaaf7b9fdf 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetry400Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetry400Headers.cs @@ -39,22 +39,22 @@ public LROSADsPutAsyncRelativeRetry400Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/nonretryerror/putasync/retry/operationResults/400 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/nonretryerror/putasync/retry/operationResults/400 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.cs index 31f90b28d94dd..730e2a89f794b 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.cs @@ -39,22 +39,22 @@ public LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.cs index cca85263d8ad6..0854ea59e12cd 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.cs @@ -39,22 +39,22 @@ public LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/failed/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/failed/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusHeaders.cs index 5a4aeef323fc4..2d63d0682d5d4 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusHeaders.cs @@ -39,22 +39,22 @@ public LROSADsPutAsyncRelativeRetryNoStatusHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders.cs index d027036126ada..5c75b72ec2e31 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders.cs @@ -39,22 +39,22 @@ public LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPost202Retry200Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPost202Retry200Headers.cs index 462144eb416ec..ab928a160295a 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPost202Retry200Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPost202Retry200Headers.cs @@ -38,15 +38,15 @@ public LROsCustomHeaderPost202Retry200Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/customheader/post/202/retry/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPostAsyncRetrySucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPostAsyncRetrySucceededHeaders.cs index 5a4c1cc9000a0..10a93dfb18dd5 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPostAsyncRetrySucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPostAsyncRetrySucceededHeaders.cs @@ -39,22 +39,22 @@ public LROsCustomHeaderPostAsyncRetrySucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/customheader/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/customheader/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPutAsyncRetrySucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPutAsyncRetrySucceededHeaders.cs index 40a58b667514d..66cb66baec84a 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPutAsyncRetrySucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPutAsyncRetrySucceededHeaders.cs @@ -39,22 +39,22 @@ public LROsCustomHeaderPutAsyncRetrySucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/customheader/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/customheader/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202NoRetry204Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202NoRetry204Headers.cs index 74f325ecf891e..9c1043c99e9c2 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202NoRetry204Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202NoRetry204Headers.cs @@ -38,15 +38,15 @@ public LROsDelete202NoRetry204Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/delete/202/noretry/204 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202Retry200Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202Retry200Headers.cs index 73fec76b069e5..53c58b72c187b 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202Retry200Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202Retry200Headers.cs @@ -38,15 +38,15 @@ public LROsDelete202Retry200Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/delete/202/retry/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoHeaderInRetryHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoHeaderInRetryHeaders.cs index 2be5bc4d04650..71283acb56866 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoHeaderInRetryHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoHeaderInRetryHeaders.cs @@ -37,7 +37,7 @@ public LROsDeleteAsyncNoHeaderInRetryHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/put/noheader/202/204/operationresults /// [JsonProperty(PropertyName = "Location")] diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoRetrySucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoRetrySucceededHeaders.cs index edbb8bacea891..177d0dbd34861 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoRetrySucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoRetrySucceededHeaders.cs @@ -39,22 +39,22 @@ public LROsDeleteAsyncNoRetrySucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/noretry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/noretry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetryFailedHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetryFailedHeaders.cs index f23c19fe68bc5..8f3aebdc781a2 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetryFailedHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetryFailedHeaders.cs @@ -39,22 +39,22 @@ public LROsDeleteAsyncRetryFailedHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/failed/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/failed/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrySucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrySucceededHeaders.cs index be0fa3a4ea8f4..acfd07ed5a1cd 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrySucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrySucceededHeaders.cs @@ -39,22 +39,22 @@ public LROsDeleteAsyncRetrySucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrycanceledHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrycanceledHeaders.cs index ce2675bf5c3d6..a5d86a7f1b956 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrycanceledHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrycanceledHeaders.cs @@ -39,22 +39,22 @@ public LROsDeleteAsyncRetrycanceledHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/canceled/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/canceled/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteNoHeaderInRetryHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteNoHeaderInRetryHeaders.cs index 039a86d9a9f1a..7dc3e9b001a7b 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteNoHeaderInRetryHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteNoHeaderInRetryHeaders.cs @@ -37,7 +37,7 @@ public LROsDeleteNoHeaderInRetryHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/put/noheader/202/204/operationresults /// [JsonProperty(PropertyName = "Location")] diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Accepted200SucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Accepted200SucceededHeaders.cs index af5c4ef25cfa3..9902e42b88cd1 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Accepted200SucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Accepted200SucceededHeaders.cs @@ -39,15 +39,15 @@ public LROsDeleteProvisioning202Accepted200SucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/delete/provisioning/202/accepted/200/succeeded /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202DeletingFailed200Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202DeletingFailed200Headers.cs index c7cd89096d21e..aacc2cc6d51f1 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202DeletingFailed200Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202DeletingFailed200Headers.cs @@ -38,15 +38,15 @@ public LROsDeleteProvisioning202DeletingFailed200Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/delete/provisioning/202/deleting/200/failed /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Deletingcanceled200Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Deletingcanceled200Headers.cs index 0ded45ed5163a..929ce769234e2 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Deletingcanceled200Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Deletingcanceled200Headers.cs @@ -38,15 +38,15 @@ public LROsDeleteProvisioning202Deletingcanceled200Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/delete/provisioning/202/deleting/200/canceled /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202NoRetry204Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202NoRetry204Headers.cs index 5ee71af14e56e..2b1b350499ac7 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202NoRetry204Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202NoRetry204Headers.cs @@ -38,15 +38,15 @@ public LROsPost202NoRetry204Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/post/202/noretry/204 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202Retry200Headers.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202Retry200Headers.cs index 15ec65630416b..ac65636a94e0d 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202Retry200Headers.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202Retry200Headers.cs @@ -36,15 +36,15 @@ public LROsPost202Retry200Headers() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/post/202/retry/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncNoRetrySucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncNoRetrySucceededHeaders.cs index b42d705c25373..ecfca7fc20346 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncNoRetrySucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncNoRetrySucceededHeaders.cs @@ -39,22 +39,22 @@ public LROsPostAsyncNoRetrySucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetryFailedHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetryFailedHeaders.cs index c917433f206d0..075c922deed85 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetryFailedHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetryFailedHeaders.cs @@ -39,22 +39,22 @@ public LROsPostAsyncRetryFailedHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/failed/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/failed/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrySucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrySucceededHeaders.cs index 54b3e15d511b2..c5130f0ffe7d6 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrySucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrySucceededHeaders.cs @@ -39,22 +39,22 @@ public LROsPostAsyncRetrySucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrycanceledHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrycanceledHeaders.cs index 0b4068d4ec5ed..a55f69e4730e4 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrycanceledHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrycanceledHeaders.cs @@ -39,22 +39,22 @@ public LROsPostAsyncRetrycanceledHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/canceled/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/canceled/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrySucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrySucceededHeaders.cs index 517418b91e280..b33f4f7df5d1f 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrySucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrySucceededHeaders.cs @@ -38,14 +38,14 @@ public LROsPutAsyncNoRetrySucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/noretry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/noretry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrycanceledHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrycanceledHeaders.cs index d2d6debcc6834..4c8bd617507b3 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrycanceledHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrycanceledHeaders.cs @@ -38,14 +38,14 @@ public LROsPutAsyncNoRetrycanceledHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/noretry/canceled/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/noretry/canceled/operationResults/200 /// [JsonProperty(PropertyName = "Location")] diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetryFailedHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetryFailedHeaders.cs index d4d12deacaf96..c840b00f06da1 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetryFailedHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetryFailedHeaders.cs @@ -39,22 +39,22 @@ public LROsPutAsyncRetryFailedHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/failed/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/failed/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetrySucceededHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetrySucceededHeaders.cs index 3b09b57d0c161..b6b88a22380cd 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetrySucceededHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetrySucceededHeaders.cs @@ -39,22 +39,22 @@ public LROsPutAsyncRetrySucceededHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// - /// Number of milliseconds until the next poll should be sent, will be - /// set to zero + /// Gets or sets number of milliseconds until the next poll should be + /// sent, will be set to zero /// [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutNoHeaderInRetryHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutNoHeaderInRetryHeaders.cs index 66cec59294444..e0bbd41f30034 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutNoHeaderInRetryHeaders.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutNoHeaderInRetryHeaders.cs @@ -37,7 +37,7 @@ public LROsPutNoHeaderInRetryHeaders() { } } /// - /// Location to poll for result status: will be set to + /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/noheader/202/200/operationResults /// [JsonProperty(PropertyName = "location")] diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResult.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResult.cs index 644400aec8bae..ac96c786203b9 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResult.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResult.cs @@ -33,9 +33,9 @@ public OperationResult() { } } /// - /// The status of the request. Possible values include: 'Succeeded', - /// 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', - /// 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' + /// Gets or sets the status of the request. Possible values include: + /// 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', + /// 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' /// [JsonProperty(PropertyName = "status")] public string Status { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResultError.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResultError.cs index e215156e349d1..879bd79f188ef 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResultError.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResultError.cs @@ -33,13 +33,13 @@ public OperationResultError() { } } /// - /// The error code for an operation failure + /// Gets or sets the error code for an operation failure /// [JsonProperty(PropertyName = "code")] public int? Code { get; set; } /// - /// The detailed arror message + /// Gets or sets the detailed arror message /// [JsonProperty(PropertyName = "message")] public string Message { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Product.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Product.cs index 989a0ca86de57..aa45a2ce75f42 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Product.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Product.cs @@ -40,7 +40,7 @@ public Product() { } public string ProvisioningState { get; set; } /// - /// Possible values include: 'Succeeded', 'Failed', 'canceled', + /// Gets possible values include: 'Succeeded', 'Failed', 'canceled', /// 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', /// 'Deleting', 'Deleted', 'OK' /// diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Resource.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Resource.cs index f723039e2ea2a..ccedfcfae70c4 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Resource.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Resource.cs @@ -36,13 +36,13 @@ public Resource() { } } /// - /// Resource Id + /// Gets resource Id /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } /// - /// Resource Type + /// Gets resource Type /// [JsonProperty(PropertyName = "type")] public string Type { get; private set; } @@ -53,13 +53,13 @@ public Resource() { } public IDictionary Tags { get; set; } /// - /// Resource Location + /// Gets or sets resource Location /// [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// - /// Resource Name + /// Gets resource Name /// [JsonProperty(PropertyName = "name")] public string Name { get; private set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubProduct.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubProduct.cs index 3e2dfb91369cd..838d1be2a237a 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubProduct.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubProduct.cs @@ -40,7 +40,7 @@ public SubProduct() { } public string ProvisioningState { get; set; } /// - /// Possible values include: 'Succeeded', 'Failed', 'canceled', + /// Gets possible values include: 'Succeeded', 'Failed', 'canceled', /// 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', /// 'Deleting', 'Deleted', 'OK' /// diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubResource.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubResource.cs index a41dc0dd848fe..55a46212dfea1 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubResource.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubResource.cs @@ -32,7 +32,7 @@ public SubResource() { } } /// - /// Sub Resource Id + /// Gets sub Resource Id /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/OperationResult.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/OperationResult.cs index 584dc52c773b4..69a3704652479 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/OperationResult.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/OperationResult.cs @@ -32,9 +32,9 @@ public OperationResult() { } } /// - /// The status of the request. Possible values include: 'Succeeded', - /// 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', - /// 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' + /// Gets or sets the status of the request. Possible values include: + /// 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', + /// 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' /// [JsonProperty(PropertyName = "status")] public string Status { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesOptions.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesOptions.cs index 3b1227cd3b0f5..2c900f171ed91 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesOptions.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesOptions.cs @@ -17,7 +17,7 @@ namespace Fixtures.Azure.AcceptanceTestsPaging.Models using Microsoft.Rest.Azure; /// - /// Additional parameters for the getMultiplePages operation. + /// Additional parameters for the Paging_getMultiplePages operation. /// public partial class PagingGetMultiplePagesOptions { @@ -38,14 +38,15 @@ public PagingGetMultiplePagesOptions() { } } /// - /// Sets the maximum number of items to return in the response. + /// Gets or sets sets the maximum number of items to return in the + /// response. /// [JsonProperty(PropertyName = "")] public int? Maxresults { get; set; } /// - /// Sets the maximum time that the server can spend processing the - /// request, in seconds. The default is 30 seconds. + /// Gets or sets sets the maximum time that the server can spend + /// processing the request, in seconds. The default is 30 seconds. /// [JsonProperty(PropertyName = "")] public int? Timeout { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetNextOptions.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetNextOptions.cs index 78992ebfb834e..13885d8129848 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetNextOptions.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetNextOptions.cs @@ -38,14 +38,15 @@ public PagingGetMultiplePagesWithOffsetNextOptions() { } } /// - /// Sets the maximum number of items to return in the response. + /// Gets or sets sets the maximum number of items to return in the + /// response. /// [JsonProperty(PropertyName = "")] public int? Maxresults { get; set; } /// - /// Sets the maximum time that the server can spend processing the - /// request, in seconds. The default is 30 seconds. + /// Gets or sets sets the maximum time that the server can spend + /// processing the request, in seconds. The default is 30 seconds. /// [JsonProperty(PropertyName = "")] public int? Timeout { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetOptions.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetOptions.cs index e4c74a8e57a6e..076d5bf8587b8 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetOptions.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetOptions.cs @@ -17,7 +17,8 @@ namespace Fixtures.Azure.AcceptanceTestsPaging.Models using Microsoft.Rest.Azure; /// - /// Additional parameters for the getMultiplePagesWithOffset operation. + /// Additional parameters for the Paging_getMultiplePagesWithOffset + /// operation. /// public partial class PagingGetMultiplePagesWithOffsetOptions { @@ -39,20 +40,21 @@ public PagingGetMultiplePagesWithOffsetOptions() { } } /// - /// Sets the maximum number of items to return in the response. + /// Gets or sets sets the maximum number of items to return in the + /// response. /// [JsonProperty(PropertyName = "")] public int? Maxresults { get; set; } /// - /// Offset of return value + /// Gets or sets offset of return value /// [JsonProperty(PropertyName = "")] public int Offset { get; set; } /// - /// Sets the maximum time that the server can spend processing the - /// request, in seconds. The default is 30 seconds. + /// Gets or sets sets the maximum time that the server can spend + /// processing the request, in seconds. The default is 30 seconds. /// [JsonProperty(PropertyName = "")] public int? Timeout { get; set; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/SampleResourceGroup.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/SampleResourceGroup.cs index 4b1187cae87dd..6ce67ca345a8b 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/SampleResourceGroup.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/SampleResourceGroup.cs @@ -33,13 +33,13 @@ public SampleResourceGroup() { } } /// - /// resource group name 'testgroup101' + /// Gets or sets resource group name 'testgroup101' /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// - /// resource group location 'West US' + /// Gets or sets resource group location 'West US' /// [JsonProperty(PropertyName = "location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModel.cs index d78403311ec8c..d287e6188c543 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModel.cs @@ -217,12 +217,9 @@ public BoolModel(AutoRestBoolTestService client) // Serialize Request string _requestContent = null; - if(boolBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(boolBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(boolBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -446,12 +443,9 @@ public BoolModel(AutoRestBoolTestService client) // Serialize Request string _requestContent = null; - if(boolBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(boolBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(boolBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Basic.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Basic.cs index 37a8fff6fc165..be0b4041263e4 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Basic.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Basic.cs @@ -43,7 +43,8 @@ public Basic() { } public string Name { get; set; } /// - /// Possible values include: 'cyan', 'Magenta', 'YELLOW', 'blacK' + /// Gets or sets possible values include: 'cyan', 'Magenta', 'YELLOW', + /// 'blacK' /// [JsonProperty(PropertyName = "color")] public string Color { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Date.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Date.cs index 0a4c07170740d..509781fe382c5 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Date.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Date.cs @@ -574,12 +574,9 @@ public Date(AutoRestDateTestService client) // Serialize Request string _requestContent = null; - if(dateBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(dateBody, new DateJsonConverter()); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(dateBody, new DateJsonConverter()); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -803,12 +800,9 @@ public Date(AutoRestDateTestService client) // Serialize Request string _requestContent = null; - if(dateBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(dateBody, new DateJsonConverter()); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(dateBody, new DateJsonConverter()); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Datetime.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Datetime.cs index 2248d4263b000..a46a03a8ae9b4 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Datetime.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Datetime.cs @@ -574,12 +574,9 @@ public Datetime(AutoRestDateTimeTestService client) // Serialize Request string _requestContent = null; - if(datetimeBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -923,12 +920,9 @@ public Datetime(AutoRestDateTimeTestService client) // Serialize Request string _requestContent = null; - if(datetimeBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1274,12 +1268,9 @@ public Datetime(AutoRestDateTimeTestService client) // Serialize Request string _requestContent = null; - if(datetimeBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1624,12 +1615,9 @@ public Datetime(AutoRestDateTimeTestService client) // Serialize Request string _requestContent = null; - if(datetimeBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1853,12 +1841,9 @@ public Datetime(AutoRestDateTimeTestService client) // Serialize Request string _requestContent = null; - if(datetimeBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -2082,12 +2067,9 @@ public Datetime(AutoRestDateTimeTestService client) // Serialize Request string _requestContent = null; - if(datetimeBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123.cs index 068aced56df75..2506c533d5633 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123.cs @@ -574,12 +574,9 @@ public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) // Serialize Request string _requestContent = null; - if(datetimeBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, new DateTimeRfc1123JsonConverter()); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, new DateTimeRfc1123JsonConverter()); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -922,12 +919,9 @@ public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) // Serialize Request string _requestContent = null; - if(datetimeBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, new DateTimeRfc1123JsonConverter()); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(datetimeBody, new DateTimeRfc1123JsonConverter()); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Duration.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Duration.cs index 42b50edf64d33..7893ed1ee8506 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Duration.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Duration.cs @@ -217,12 +217,9 @@ public Duration(AutoRestDurationTestService client) // Serialize Request string _requestContent = null; - if(durationBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(durationBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(durationBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModel.cs index 9c9b57ebbb2a4..03b6a56c686c0 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModel.cs @@ -812,12 +812,9 @@ public IntModel(AutoRestIntegerTestService client) // Serialize Request string _requestContent = null; - if(intBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -922,12 +919,9 @@ public IntModel(AutoRestIntegerTestService client) // Serialize Request string _requestContent = null; - if(intBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1032,12 +1026,9 @@ public IntModel(AutoRestIntegerTestService client) // Serialize Request string _requestContent = null; - if(intBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1142,12 +1133,9 @@ public IntModel(AutoRestIntegerTestService client) // Serialize Request string _requestContent = null; - if(intBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1371,12 +1359,9 @@ public IntModel(AutoRestIntegerTestService client) // Serialize Request string _requestContent = null; - if(intBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(intBody, new UnixTimeJsonConverter()); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(intBody, new UnixTimeJsonConverter()); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Number.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Number.cs index 4b60b5582025a..dc98d33d86449 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Number.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Number.cs @@ -574,12 +574,9 @@ public Number(AutoRestNumberTestService client) // Serialize Request string _requestContent = null; - if(numberBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -803,12 +800,9 @@ public Number(AutoRestNumberTestService client) // Serialize Request string _requestContent = null; - if(numberBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1032,12 +1026,9 @@ public Number(AutoRestNumberTestService client) // Serialize Request string _requestContent = null; - if(numberBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1261,12 +1252,9 @@ public Number(AutoRestNumberTestService client) // Serialize Request string _requestContent = null; - if(numberBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1490,12 +1478,9 @@ public Number(AutoRestNumberTestService client) // Serialize Request string _requestContent = null; - if(numberBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1719,12 +1704,9 @@ public Number(AutoRestNumberTestService client) // Serialize Request string _requestContent = null; - if(numberBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1948,12 +1930,9 @@ public Number(AutoRestNumberTestService client) // Serialize Request string _requestContent = null; - if(numberBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -2177,12 +2156,9 @@ public Number(AutoRestNumberTestService client) // Serialize Request string _requestContent = null; - if(numberBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -2406,12 +2382,9 @@ public Number(AutoRestNumberTestService client) // Serialize Request string _requestContent = null; - if(numberBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -2635,12 +2608,9 @@ public Number(AutoRestNumberTestService client) // Serialize Request string _requestContent = null; - if(numberBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(numberBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModel.cs index 8861a350c04b9..c1701bfb31ad1 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModel.cs @@ -220,12 +220,9 @@ public EnumModel(AutoRestSwaggerBATService client) // Serialize Request string _requestContent = null; - if(stringBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(stringBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(stringBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModel.cs index 22ff99e128385..9c761510fc304 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModel.cs @@ -217,12 +217,9 @@ public BoolModel(CompositeBoolInt client) // Serialize Request string _requestContent = null; - if(boolBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(boolBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(boolBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -446,12 +443,9 @@ public BoolModel(CompositeBoolInt client) // Serialize Request string _requestContent = null; - if(boolBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(boolBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(boolBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModel.cs index 2047fd860871e..c730d55f15474 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModel.cs @@ -812,12 +812,9 @@ public IntModel(CompositeBoolInt client) // Serialize Request string _requestContent = null; - if(intBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -922,12 +919,9 @@ public IntModel(CompositeBoolInt client) // Serialize Request string _requestContent = null; - if(intBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1032,12 +1026,9 @@ public IntModel(CompositeBoolInt client) // Serialize Request string _requestContent = null; - if(intBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1142,12 +1133,9 @@ public IntModel(CompositeBoolInt client) // Serialize Request string _requestContent = null; - if(intBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(intBody, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { @@ -1371,12 +1359,9 @@ public IntModel(CompositeBoolInt client) // Serialize Request string _requestContent = null; - if(intBody != null) - { - _requestContent = SafeJsonConvert.SerializeObject(intBody, new UnixTimeJsonConverter()); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(intBody, new UnixTimeJsonConverter()); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseBoolHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseBoolHeaders.cs index 54bb390e7cb96..3461139acef89 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseBoolHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseBoolHeaders.cs @@ -34,7 +34,7 @@ public HeaderResponseBoolHeaders() { } } /// - /// response with header value "value": true or false + /// Gets or sets response with header value "value": true or false /// [JsonProperty(PropertyName = "value")] public bool? Value { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseByteHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseByteHeaders.cs index 1119ed4d030a1..742bece92143d 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseByteHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseByteHeaders.cs @@ -34,7 +34,7 @@ public HeaderResponseByteHeaders() { } } /// - /// response with header values "啊齄丂狛狜隣郎隣兀﨩" + /// Gets or sets response with header values "啊齄丂狛狜隣郎隣兀﨩" /// [JsonProperty(PropertyName = "value")] public byte[] Value { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDateHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDateHeaders.cs index 0cb1bd745fb51..e00cbc09557f9 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDateHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDateHeaders.cs @@ -34,7 +34,8 @@ public HeaderResponseDateHeaders() { } } /// - /// response with header values "2010-01-01" or "0001-01-01" + /// Gets or sets response with header values "2010-01-01" or + /// "0001-01-01" /// [JsonConverter(typeof(DateJsonConverter))] [JsonProperty(PropertyName = "value")] diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeHeaders.cs index 8215b0ae1c617..cffbd3421661b 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeHeaders.cs @@ -36,7 +36,7 @@ public HeaderResponseDatetimeHeaders() { } } /// - /// response with header values "2010-01-01T12:34:56Z" or + /// Gets or sets response with header values "2010-01-01T12:34:56Z" or /// "0001-01-01T00:00:00Z" /// [JsonProperty(PropertyName = "value")] diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeRfc1123Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeRfc1123Headers.cs index 124f599f9ba0d..f188e986ab6b5 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeRfc1123Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeRfc1123Headers.cs @@ -36,8 +36,8 @@ public HeaderResponseDatetimeRfc1123Headers() { } } /// - /// response with header values "Wed, 01 Jan 2010 12:34:56 GMT" or - /// "Mon, 01 Jan 0001 00:00:00 GMT" + /// Gets or sets response with header values "Wed, 01 Jan 2010 + /// 12:34:56 GMT" or "Mon, 01 Jan 0001 00:00:00 GMT" /// [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] [JsonProperty(PropertyName = "value")] diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDoubleHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDoubleHeaders.cs index 104620a950907..e34f3b911d504 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDoubleHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDoubleHeaders.cs @@ -36,7 +36,7 @@ public HeaderResponseDoubleHeaders() { } } /// - /// response with header value "value": 7e120 or -3.0 + /// Gets or sets response with header value "value": 7e120 or -3.0 /// [JsonProperty(PropertyName = "value")] public double? Value { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDurationHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDurationHeaders.cs index 71f279990a846..2795657f73e3f 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDurationHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDurationHeaders.cs @@ -36,7 +36,7 @@ public HeaderResponseDurationHeaders() { } } /// - /// response with header values "P123DT22H14M12.011S" + /// Gets or sets response with header values "P123DT22H14M12.011S" /// [JsonProperty(PropertyName = "value")] public TimeSpan? Value { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseEnumHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseEnumHeaders.cs index 06092074d54e8..f955fca276f99 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseEnumHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseEnumHeaders.cs @@ -34,7 +34,7 @@ public HeaderResponseEnumHeaders() { } } /// - /// response with header values "GREY" or null + /// Gets or sets response with header values "GREY" or null /// [JsonProperty(PropertyName = "value")] public GreyscaleColors? Value { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseExistingKeyHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseExistingKeyHeaders.cs index 344136218eec5..42a5c1aeda709 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseExistingKeyHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseExistingKeyHeaders.cs @@ -36,7 +36,7 @@ public HeaderResponseExistingKeyHeaders() { } } /// - /// response with header value "User-Agent": "overwrite" + /// Gets or sets response with header value "User-Agent": "overwrite" /// [JsonProperty(PropertyName = "User-Agent")] public string UserAgent { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseFloatHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseFloatHeaders.cs index 987718bad93bb..6e5353a3fcaeb 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseFloatHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseFloatHeaders.cs @@ -34,7 +34,7 @@ public HeaderResponseFloatHeaders() { } } /// - /// response with header value "value": 0.07 or -3.0 + /// Gets or sets response with header value "value": 0.07 or -3.0 /// [JsonProperty(PropertyName = "value")] public double? Value { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseIntegerHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseIntegerHeaders.cs index 28d60394d0b77..3ce8bd066a79f 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseIntegerHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseIntegerHeaders.cs @@ -36,7 +36,7 @@ public HeaderResponseIntegerHeaders() { } } /// - /// response with header value "value": 1 or -2 + /// Gets or sets response with header value "value": 1 or -2 /// [JsonProperty(PropertyName = "value")] public int? Value { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseLongHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseLongHeaders.cs index cf9efd1fe838e..6e15f2eecc4a1 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseLongHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseLongHeaders.cs @@ -34,7 +34,7 @@ public HeaderResponseLongHeaders() { } } /// - /// response with header value "value": 105 or -2 + /// Gets or sets response with header value "value": 105 or -2 /// [JsonProperty(PropertyName = "value")] public long? Value { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseProtectedKeyHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseProtectedKeyHeaders.cs index abb1464ad445d..7adbdf29bebfa 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseProtectedKeyHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseProtectedKeyHeaders.cs @@ -36,7 +36,7 @@ public HeaderResponseProtectedKeyHeaders() { } } /// - /// response with header value "Content-Type": "text/html" + /// Gets or sets response with header value "Content-Type": "text/html" /// [JsonProperty(PropertyName = "Content-Type")] public string ContentType { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseStringHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseStringHeaders.cs index 7184a38f5c59a..0744f2115b545 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseStringHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseStringHeaders.cs @@ -36,8 +36,8 @@ public HeaderResponseStringHeaders() { } } /// - /// response with header values "The quick brown fox jumps over the - /// lazy dog" or null or "" + /// Gets or sets response with header values "The quick brown fox + /// jumps over the lazy dog" or null or "" /// [JsonProperty(PropertyName = "value")] public string Value { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsDelete307Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsDelete307Headers.cs index cbf7865f2726d..999dd9f164742 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsDelete307Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsDelete307Headers.cs @@ -36,7 +36,7 @@ public HttpRedirectsDelete307Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet300Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet300Headers.cs index d14c5fc870c9f..ad0dacb9d1aaa 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet300Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet300Headers.cs @@ -34,7 +34,7 @@ public HttpRedirectsGet300Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet301Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet301Headers.cs index 70432eae09b3e..2a543db3975b1 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet301Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet301Headers.cs @@ -34,7 +34,7 @@ public HttpRedirectsGet301Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet302Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet302Headers.cs index 22bc242974d1e..59b857904134b 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet302Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet302Headers.cs @@ -34,7 +34,7 @@ public HttpRedirectsGet302Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet307Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet307Headers.cs index 7eb98fab6bef3..73111e08f2591 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet307Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet307Headers.cs @@ -34,7 +34,7 @@ public HttpRedirectsGet307Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead300Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead300Headers.cs index 5f32659b21b54..3970436db87b0 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead300Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead300Headers.cs @@ -36,7 +36,7 @@ public HttpRedirectsHead300Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead301Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead301Headers.cs index af9b0310e5bc4..aed6cb6c515d5 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead301Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead301Headers.cs @@ -36,7 +36,7 @@ public HttpRedirectsHead301Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead302Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead302Headers.cs index 2f1ed670c469e..797193619a8de 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead302Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead302Headers.cs @@ -36,7 +36,7 @@ public HttpRedirectsHead302Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead307Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead307Headers.cs index b1ad99069c7cb..dd01aa2366771 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead307Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead307Headers.cs @@ -36,7 +36,7 @@ public HttpRedirectsHead307Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch302Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch302Headers.cs index 5dfe6e3e5290e..8178b6f377ec0 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch302Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch302Headers.cs @@ -36,7 +36,7 @@ public HttpRedirectsPatch302Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch307Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch307Headers.cs index 19973f88ef893..d94f9c8ac7785 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch307Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch307Headers.cs @@ -36,7 +36,7 @@ public HttpRedirectsPatch307Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost303Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost303Headers.cs index 8036c76d9716c..9f6ac7869584a 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost303Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost303Headers.cs @@ -36,7 +36,7 @@ public HttpRedirectsPost303Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost307Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost307Headers.cs index 59c68c116bea0..3f6ee41fd2e46 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost307Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost307Headers.cs @@ -36,7 +36,7 @@ public HttpRedirectsPost307Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut301Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut301Headers.cs index e48732af63bea..3eb3f2fe37f13 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut301Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut301Headers.cs @@ -34,7 +34,7 @@ public HttpRedirectsPut301Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut307Headers.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut307Headers.cs index f3148bff9a057..a4cbbc843f10c 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut307Headers.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut307Headers.cs @@ -34,7 +34,7 @@ public HttpRedirectsPut307Headers() { } } /// - /// The redirect location for this request + /// Gets or sets the redirect location for this request /// [JsonProperty(PropertyName = "Location")] public string Location { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/BaseProduct.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/BaseProduct.cs index 40511ce7b4474..3615d58922019 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/BaseProduct.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/BaseProduct.cs @@ -35,15 +35,16 @@ public BaseProduct() { } } /// - /// Unique identifier representing a specific product for a given - /// latitude & longitude. For example, uberX in San Francisco - /// will have a different product_id than uberX in Los Angeles. + /// Gets or sets unique identifier representing a specific product for + /// a given latitude & longitude. For example, uberX in San + /// Francisco will have a different product_id than uberX in Los + /// Angeles. /// [JsonProperty(PropertyName = "base_product_id")] public string ProductId { get; set; } /// - /// Description of product. + /// Gets or sets description of product. /// [JsonProperty(PropertyName = "base_product_description")] public string Description { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenParameterGroup.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenParameterGroup.cs index db9785813c55c..fac4cd5c66e3d 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenParameterGroup.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenParameterGroup.cs @@ -40,39 +40,40 @@ public FlattenParameterGroup() { } } /// - /// Product name with value 'groupproduct' + /// Gets or sets product name with value 'groupproduct' /// [JsonProperty(PropertyName = "")] public string Name { get; set; } /// - /// Unique identifier representing a specific product for a given - /// latitude & longitude. For example, uberX in San Francisco - /// will have a different product_id than uberX in Los Angeles. + /// Gets or sets unique identifier representing a specific product for + /// a given latitude & longitude. For example, uberX in San + /// Francisco will have a different product_id than uberX in Los + /// Angeles. /// [JsonProperty(PropertyName = "")] public string ProductId { get; set; } /// - /// Description of product. + /// Gets or sets description of product. /// [JsonProperty(PropertyName = "")] public string Description { get; set; } /// - /// Display name of product. + /// Gets or sets display name of product. /// [JsonProperty(PropertyName = "")] public string MaxProductDisplayName { get; set; } /// - /// Generic URL value. + /// Gets or sets generic URL value. /// [JsonProperty(PropertyName = "")] public string GenericValue { get; set; } /// - /// URL value. + /// Gets or sets URL value. /// [JsonProperty(PropertyName = "")] public string Odatavalue { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenedProduct.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenedProduct.cs index 9c7cb37c74d13..415f53a6e3dfd 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenedProduct.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenedProduct.cs @@ -46,7 +46,7 @@ public FlattenedProduct() { } public string FlattenedProductType { get; set; } /// - /// Possible values include: 'Succeeded', 'Failed', 'canceled', + /// Gets possible values include: 'Succeeded', 'Failed', 'canceled', /// 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', /// 'Deleting', 'Deleted', 'OK' /// diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/GenericUrl.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/GenericUrl.cs index 309028eb12669..2022f0d0a073c 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/GenericUrl.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/GenericUrl.cs @@ -34,7 +34,7 @@ public GenericUrl() { } } /// - /// Generic URL value. + /// Gets or sets generic URL value. /// [JsonProperty(PropertyName = "generic_value")] public string GenericValue { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Resource.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Resource.cs index a43c4e5d5a21e..5679632fe9533 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Resource.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Resource.cs @@ -35,13 +35,13 @@ public Resource() { } } /// - /// Resource Id + /// Gets resource Id /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } /// - /// Resource Type + /// Gets resource Type /// [JsonProperty(PropertyName = "type")] public string Type { get; private set; } @@ -52,13 +52,13 @@ public Resource() { } public IDictionary Tags { get; set; } /// - /// Resource Location + /// Gets or sets resource Location /// [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// - /// Resource Name + /// Gets resource Name /// [JsonProperty(PropertyName = "name")] public string Name { get; private set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/SimpleProduct.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/SimpleProduct.cs index 5ee2fa897a5ea..4ae8f66017f6c 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/SimpleProduct.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/SimpleProduct.cs @@ -45,19 +45,19 @@ static SimpleProduct() } /// - /// Display name of product. + /// Gets or sets display name of product. /// [JsonProperty(PropertyName = "details.max_product_display_name")] public string MaxProductDisplayName { get; set; } /// - /// Generic URL value. + /// Gets or sets generic URL value. /// [JsonProperty(PropertyName = "details.max_product_image.generic_value")] public string GenericValue { get; set; } /// - /// URL value. + /// Gets or sets URL value. /// [JsonProperty(PropertyName = "details.max_product_image.@odata\\.value")] public string Odatavalue { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModel.cs index f0e42c1bf7fc9..117742e60f654 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModel.cs @@ -99,12 +99,9 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) // Serialize Request string _requestContent = null; - if(bodyParameter != null) - { - _requestContent = SafeJsonConvert.SerializeObject(bodyParameter, this.Client.SerializationSettings); - _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); - } + _requestContent = SafeJsonConvert.SerializeObject(bodyParameter, this.Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); // Send Request if (_shouldTrace) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ChildProduct.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ChildProduct.cs index 07e06b7a22d11..be6803337118d 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ChildProduct.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ChildProduct.cs @@ -41,7 +41,7 @@ static ChildProduct() } /// - /// Count + /// Gets or sets count /// [JsonProperty(PropertyName = "count")] public int? Count { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Product.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Product.cs index 09addd8369ff8..e434110c5df7d 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Product.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Product.cs @@ -51,19 +51,20 @@ static Product() } /// - /// Non required array of unique items from 0 to 6 elements. + /// Gets or sets non required array of unique items from 0 to 6 + /// elements. /// [JsonProperty(PropertyName = "display_names")] public IList DisplayNames { get; set; } /// - /// Non required int betwen 0 and 100 exclusive. + /// Gets or sets non required int betwen 0 and 100 exclusive. /// [JsonProperty(PropertyName = "capacity")] public int? Capacity { get; set; } /// - /// Image URL representing the product. + /// Gets or sets image URL representing the product. /// [JsonProperty(PropertyName = "image")] public string Image { get; set; } @@ -74,7 +75,7 @@ static Product() public ChildProduct Child { get; set; } /// - /// Constant string as Enum. Possible values include: + /// Gets or sets constant string as Enum. Possible values include: /// 'constant_string_as_enum' /// [JsonProperty(PropertyName = "constStringAsEnum")] diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Animal.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Animal.cs index f473ba11c0c73..ff20c9b53490f 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Animal.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Animal.cs @@ -32,13 +32,13 @@ public Animal() { } } /// - /// Id. + /// Gets or sets id. /// [JsonProperty(PropertyName = "id")] public string Id { get; set; } /// - /// Description of a Animal. + /// Gets or sets description of a Animal. /// [JsonProperty(PropertyName = "description")] public string Description { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/BaseCat.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/BaseCat.cs index d789e963ce3e7..1504a551144a8 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/BaseCat.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/BaseCat.cs @@ -32,7 +32,7 @@ public BaseCat() { } } /// - /// cat color + /// Gets or sets cat color /// [JsonProperty(PropertyName = "color")] public string Color { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/BurmeseCat.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/BurmeseCat.cs index 9afcdd57e4274..b815f2c67c76e 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/BurmeseCat.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/BurmeseCat.cs @@ -32,7 +32,7 @@ public BurmeseCat() { } } /// - /// cat nick name + /// Gets or sets cat nick name /// [JsonProperty(PropertyName = "nickName")] public int? NickName { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Doggy.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Doggy.cs index ef0ad5d1d7a75..0572ac24c447f 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Doggy.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Doggy.cs @@ -32,7 +32,7 @@ public Doggy() { } } /// - /// dog name + /// Gets or sets dog name /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/HimalayanCat.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/HimalayanCat.cs index d8f3b45767b92..5d175e80804a1 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/HimalayanCat.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/HimalayanCat.cs @@ -32,7 +32,7 @@ public HimalayanCat() { } } /// - /// cat hair length + /// Gets or sets cat hair length /// [JsonProperty(PropertyName = "hairLength")] public int? HairLength { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Horsey.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Horsey.cs index 7bfdbd57709fc..144bf308611f6 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Horsey.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Horsey.cs @@ -32,7 +32,7 @@ public Horsey() { } } /// - /// horse breed + /// Gets or sets horse breed /// [JsonProperty(PropertyName = "breed")] public string Breed { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/PersianCat.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/PersianCat.cs index fc5c99d0eebb3..26ff193a73afc 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/PersianCat.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/PersianCat.cs @@ -32,7 +32,7 @@ public PersianCat() { } } /// - /// cat size + /// Gets or sets cat size /// [JsonProperty(PropertyName = "size")] public int? Size { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/SiameseCat.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/SiameseCat.cs index 17ba85a1781b1..fbaf9b7ecdaef 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/SiameseCat.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/SiameseCat.cs @@ -32,7 +32,7 @@ public SiameseCat() { } } /// - /// cat length + /// Gets or sets cat length /// [JsonProperty(PropertyName = "length")] public int? Length { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Product.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Product.cs index d2ea149e267a9..fcb542d7165ed 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Product.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Product.cs @@ -108,7 +108,7 @@ public Product() { } public Guid? Uuid { get; set; } /// - /// Possible values include: 'red', 'blue', 'green' + /// Gets or sets possible values include: 'red', 'blue', 'green' /// [JsonProperty(PropertyName = "enum")] public string EnumProperty { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Product.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Product.cs index 3757ada79d8f7..5752acc51ef91 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Product.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Product.cs @@ -33,9 +33,10 @@ public Product() { } } /// - /// Unique identifier representing a specific product for a given - /// latitude & longitude. For example, uberX in San Francisco - /// will have a different product_id than uberX in Los Angeles. + /// Gets or sets unique identifier representing a specific product for + /// a given latitude & longitude. For example, uberX in San + /// Francisco will have a different product_id than uberX in Los + /// Angeles. /// [JsonProperty(PropertyName = "product_id")] public string ProductId { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/LoginUserHeaders.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/LoginUserHeaders.cs index 1402f6a440cc7..295f1137f2e98 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/LoginUserHeaders.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/LoginUserHeaders.cs @@ -35,13 +35,13 @@ public LoginUserHeaders() { } } /// - /// calls per hour allowed by the user + /// Gets or sets calls per hour allowed by the user /// [JsonProperty(PropertyName = "X-Rate-Limit")] public int? XRateLimit { get; set; } /// - /// date in UTC when toekn expires + /// Gets or sets date in UTC when toekn expires /// [JsonProperty(PropertyName = "X-Expires-After")] public DateTime? XExpiresAfter { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Order.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Order.cs index c4823360b919f..fab6f61cc6cc3 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Order.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Order.cs @@ -56,8 +56,8 @@ public Order() { } public DateTime? ShipDate { get; set; } /// - /// Order Status. Possible values include: 'placed', 'approved', - /// 'delivered' + /// Gets or sets order Status. Possible values include: 'placed', + /// 'approved', 'delivered' /// [JsonProperty(PropertyName = "status")] public string Status { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Pet.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Pet.cs index 5cf3bf826766e..176ac348f7598 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Pet.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Pet.cs @@ -79,8 +79,8 @@ public Pet() { } public IDictionary Dictionary { get; set; } /// - /// pet status in the store. Possible values include: 'available', - /// 'pending', 'sold' + /// Gets or sets pet status in the store. Possible values include: + /// 'available', 'pending', 'sold' /// [JsonProperty(PropertyName = "status")] public string Status { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/User.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/User.cs index 9e770d05cc329..26aa7a291ee10 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/User.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/User.cs @@ -73,7 +73,7 @@ public User() { } public string Phone { get; set; } /// - /// User Status + /// Gets or sets user Status /// [JsonProperty(PropertyName = "userStatus")] public int? UserStatus { get; set; } diff --git a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs index ae4d9f11159de..028322670e583 100644 --- a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs +++ b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs @@ -131,6 +131,41 @@ private static bool ShouldValidate(this IType model) return false; } + /// + /// Format the documentation of a property properly with the correct getters and setters. Note that this validation will + /// checks for special cases such as acronyms and article words. + /// + /// The given property documentation to format + /// A reference to the property documentation + public static string GetFormattedPropertyDocumentation(this Property property) + { + if (property == null) + { + throw new ArgumentNullException("property"); + } + + if (string.IsNullOrEmpty(property.Documentation)) + { + return property.Documentation.EscapeXmlComment(); + } + + string documentation = property.IsReadOnly ? "Gets " : "Gets or sets "; + + string firstWord = property.Documentation.TrimStart().Split(' ').First(); + if (firstWord.Length <= 1) + { + documentation += char.ToLower(property.Documentation[0], CultureInfo.InvariantCulture) + property.Documentation.Substring(1); + } + else + { + documentation += firstWord.ToUpper(CultureInfo.InvariantCulture) == firstWord + ? property.Documentation + : char.ToLower(property.Documentation[0], CultureInfo.InvariantCulture) + property.Documentation.Substring(1); + } + + return documentation.EscapeXmlComment(); + } + /// /// Format the value of a sequence given the modeled element format. Note that only sequences of strings are supported /// diff --git a/AutoRest/Generators/CSharp/CSharp/Templates/MethodTemplate.cshtml b/AutoRest/Generators/CSharp/CSharp/Templates/MethodTemplate.cshtml index df038116b29cb..96077aaee3c81 100644 --- a/AutoRest/Generators/CSharp/CSharp/Templates/MethodTemplate.cshtml +++ b/AutoRest/Generators/CSharp/CSharp/Templates/MethodTemplate.cshtml @@ -161,12 +161,21 @@ else } else { + if (!Model.RequestBody.CanBeNull()) + { + @:_requestContent = SafeJsonConvert.SerializeObject(@(Model.RequestBody.Name), @(Model.GetSerializationSettingsReference(Model.RequestBody.Type))); + @:_httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + @:_httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("@(Model.RequestContentType)"); + } + else + { @:if(@(Model.RequestBody.Name) != null) @:{ - @:_requestContent = SafeJsonConvert.SerializeObject(@(Model.RequestBody.Name), @(Model.GetSerializationSettingsReference(Model.RequestBody.Type))); - @:_httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); - @:_httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("@(Model.RequestContentType)"); + @: _requestContent = SafeJsonConvert.SerializeObject(@(Model.RequestBody.Name), @(Model.GetSerializationSettingsReference(Model.RequestBody.Type))); + @: _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); + @: _httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("@(Model.RequestContentType)"); @:} + } } } else if (Model.LogicalParameters.Where(p => p.Location == ParameterLocation.FormData).Any()) diff --git a/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml b/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml index 942e67ef809e3..aeb27d92a4579 100644 --- a/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml +++ b/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml @@ -109,7 +109,7 @@ namespace @(Settings.Namespace).Models @foreach (var property in Model.PropertyTemplateModels.Where(p => !p.IsConstant)) { @:/// - @:@WrapComment("/// ", property.Documentation.EscapeXmlComment()) + @:@WrapComment("/// ", property.GetFormattedPropertyDocumentation()) @:/// if (property.Type.IsPrimaryType(KnownPrimaryType.Date)) { diff --git a/AutoRest/Generators/Extensions/Azure.Extensions/AzureExtensions.cs b/AutoRest/Generators/Extensions/Azure.Extensions/AzureExtensions.cs index c38246fdccd61..d4863ccf8beb9 100644 --- a/AutoRest/Generators/Extensions/Azure.Extensions/AzureExtensions.cs +++ b/AutoRest/Generators/Extensions/Azure.Extensions/AzureExtensions.cs @@ -77,7 +77,7 @@ public static void NormalizeAzureClientModel(ServiceClient serviceClient, Settin ParseODataExtension(serviceClient); FlattenModels(serviceClient); FlattenMethodParameters(serviceClient, settings); - AddParameterGroups(serviceClient); + ParameterGroupExtensionHelper.AddParameterGroups(serviceClient); AddLongRunningOperations(serviceClient); AddAzureProperties(serviceClient); SetDefaultResponses(serviceClient); diff --git a/AutoRest/Generators/Extensions/Extensions/AutoRest.Generator.Extensions.csproj b/AutoRest/Generators/Extensions/Extensions/AutoRest.Generator.Extensions.csproj index b5ca288802491..baeb25e146303 100644 --- a/AutoRest/Generators/Extensions/Extensions/AutoRest.Generator.Extensions.csproj +++ b/AutoRest/Generators/Extensions/Extensions/AutoRest.Generator.Extensions.csproj @@ -27,6 +27,7 @@ + True diff --git a/AutoRest/Generators/Extensions/Extensions/Extensions.cs b/AutoRest/Generators/Extensions/Extensions/Extensions.cs index 44b69bfea2122..2016e53f1fb60 100644 --- a/AutoRest/Generators/Extensions/Extensions/Extensions.cs +++ b/AutoRest/Generators/Extensions/Extensions/Extensions.cs @@ -44,7 +44,7 @@ public static void NormalizeClientModel(ServiceClient serviceClient, Settings se { FlattenModels(serviceClient); FlattenMethodParameters(serviceClient, settings); - AddParameterGroups(serviceClient); + ParameterGroupExtensionHelper.AddParameterGroups(serviceClient); ProcessParameterizedHost(serviceClient, settings); } @@ -333,141 +333,6 @@ public static void RemoveUnreferencedTypes(ServiceClient serviceClient, HashSet< } } - /// - /// Adds the parameter groups to operation parameters. - /// - /// - public static void AddParameterGroups(ServiceClient serviceClient) - { - if (serviceClient == null) - { - throw new ArgumentNullException("serviceClient"); - } - - HashSet generatedParameterGroups = new HashSet(); - - foreach (Method method in serviceClient.Methods) - { - //Copy out flattening transformations as they should be the last - List flatteningTransformations = method.InputParameterTransformation.ToList(); - method.InputParameterTransformation.Clear(); - - //This group name is normalized by each languages code generator later, so it need not happen here. - Dictionary> parameterGroups = new Dictionary>(); - - foreach (Parameter parameter in method.Parameters) - { - if (parameter.Extensions.ContainsKey(ParameterGroupExtension)) - { - JContainer extensionObject = parameter.Extensions[ParameterGroupExtension] as JContainer; - if (extensionObject != null) - { - string specifiedGroupName = extensionObject.Value("name"); - string parameterGroupName; - if (specifiedGroupName == null) - { - string postfix = extensionObject.Value("postfix") ?? "Parameters"; - parameterGroupName = method.Group + "-" + method.Name + "-" + postfix; - } - else - { - parameterGroupName = specifiedGroupName; - } - - if (!parameterGroups.ContainsKey(parameterGroupName)) - { - parameterGroups.Add(parameterGroupName, new Dictionary()); - } - - Property groupProperty = new Property() - { - IsReadOnly = false, //Since these properties are used as parameters they are never read only - Name = parameter.Name, - IsRequired = parameter.IsRequired, - DefaultValue = parameter.DefaultValue, - //Constraints = parameter.Constraints, Omit these since we don't want to perform parameter validation - Documentation = parameter.Documentation, - Type = parameter.Type, - SerializedName = null //Parameter is never serialized directly - }; - // Copy over extensions - foreach (var key in parameter.Extensions.Keys) - { - groupProperty.Extensions[key] = parameter.Extensions[key]; - } - - parameterGroups[parameterGroupName].Add(groupProperty, parameter); - } - } - } - - foreach (string parameterGroupName in parameterGroups.Keys) - { - CompositeType parameterGroupType = - generatedParameterGroups.FirstOrDefault(item => item.Name == parameterGroupName); - if (parameterGroupType == null) - { - parameterGroupType = new CompositeType - { - Name = parameterGroupName, - Documentation = "Additional parameters for one or more operations" - }; - generatedParameterGroups.Add(parameterGroupType); - - //Add to the service client - serviceClient.ModelTypes.Add(parameterGroupType); - } - foreach (Property property in parameterGroups[parameterGroupName].Keys) - { - Property matchingProperty = parameterGroupType.Properties.FirstOrDefault( - item => item.Name == property.Name && - item.IsReadOnly == property.IsReadOnly && - item.DefaultValue == property.DefaultValue && - item.SerializedName == property.SerializedName); - if (matchingProperty == null) - { - parameterGroupType.Properties.Add(property); - } - } - - bool isGroupParameterRequired = parameterGroupType.Properties.Any(p => p.IsRequired); - - //Create the new parameter object based on the parameter group type - Parameter parameterGroup = new Parameter() - { - Name = parameterGroupName, - IsRequired = isGroupParameterRequired, - Location = ClientModel.ParameterLocation.None, - SerializedName = string.Empty, - Type = parameterGroupType, - Documentation = "Additional parameters for the operation" - }; - - method.Parameters.Add(parameterGroup); - - //Link the grouped parameters to their parent, and remove them from the method parameters - foreach (Property property in parameterGroups[parameterGroupName].Keys) - { - Parameter p = parameterGroups[parameterGroupName][property]; - - var parameterTransformation = new ParameterTransformation - { - OutputParameter = p - }; - parameterTransformation.ParameterMappings.Add(new ParameterMapping - { - InputParameter = parameterGroup, - InputParameterProperty = property.GetClientName() - }); - method.InputParameterTransformation.Add(parameterTransformation); - method.Parameters.Remove(p); - } - } - - // Copy back flattening transformations if any - flatteningTransformations.ForEach(t => method.InputParameterTransformation.Add(t)); - } - } /// /// Flattens the request payload if the number of properties of the diff --git a/AutoRest/Generators/Extensions/Extensions/ParameterGroupExtensionHelper.cs b/AutoRest/Generators/Extensions/Extensions/ParameterGroupExtensionHelper.cs new file mode 100644 index 0000000000000..5a97e2619f79f --- /dev/null +++ b/AutoRest/Generators/Extensions/Extensions/ParameterGroupExtensionHelper.cs @@ -0,0 +1,229 @@ +namespace Microsoft.Rest.Generator +{ + using System; + using System.Collections.Generic; + using System.Globalization; + using System.Linq; + using System.Text; + using System.Threading.Tasks; + using ClientModel; + using Newtonsoft.Json.Linq; + + public static class ParameterGroupExtensionHelper + { + private class ParameterGroup + { + public string Name { get; } + + public Dictionary ParameterMapping { get; } + + public ParameterGroup(string name, Dictionary parameterMapping) + { + this.Name = name; + this.ParameterMapping = parameterMapping; + } + } + + private static Property CreateParameterGroupProperty(Parameter parameter) + { + Property groupProperty = new Property() + { + IsReadOnly = false, //Since these properties are used as parameters they are never read only + Name = parameter.Name, + IsRequired = parameter.IsRequired, + DefaultValue = parameter.DefaultValue, + //Constraints = parameter.Constraints, Omit these since we don't want to perform parameter validation + Documentation = parameter.Documentation, + Type = parameter.Type, + SerializedName = null //Parameter is never serialized directly + }; + + // Copy over extensions + foreach (var key in parameter.Extensions.Keys) + { + groupProperty.Extensions[key] = parameter.Extensions[key]; + } + + return groupProperty; + } + + private static ParameterGroup BuildParameterGroup(string parameterGroupName, Method method) + { + Dictionary parameterMapping = method.Parameters.Where( + p => GetParameterGroupName(method.Group, method.Name, p) == parameterGroupName).ToDictionary( + CreateParameterGroupProperty, + p => p); + + return new ParameterGroup(parameterGroupName, parameterMapping); + } + + private static string GetParameterGroupName(string methodGroupName, string methodName, Parameter parameter) + { + if (parameter.Extensions.ContainsKey(Extensions.ParameterGroupExtension)) + { + JContainer extensionObject = parameter.Extensions[Extensions.ParameterGroupExtension] as JContainer; + if (extensionObject != null) + { + string specifiedGroupName = extensionObject.Value("name"); + string parameterGroupName; + if (specifiedGroupName == null) + { + string postfix = extensionObject.Value("postfix") ?? "Parameters"; + parameterGroupName = methodGroupName + "-" + methodName + "-" + postfix; + } + else + { + parameterGroupName = specifiedGroupName; + } + return parameterGroupName; + } + } + + return null; + } + + private static IEnumerable ExtractParameterGroupNames(Method method) + { + return method.Parameters.Select(p => GetParameterGroupName(method.Group, method.Name, p)).Where(name => !string.IsNullOrEmpty(name)).Distinct(); + } + + private static IEnumerable ExtractParameterGroups(Method method) + { + IEnumerable parameterGroupNames = ExtractParameterGroupNames(method); + + return parameterGroupNames.Select(parameterGroupName => BuildParameterGroup(parameterGroupName, method)); + } + + private static IEnumerable GetMethodsUsingParameterGroup(IEnumerable methods, ParameterGroup parameterGroup) + { + return methods.Where(m => ExtractParameterGroupNames(m).Contains(parameterGroup.Name)); + } + + private static string GenerateParameterGroupModelText(IEnumerable methodsWhichUseGroup) + { + Func createOperationDisplayString = (group, name) => + { + return string.IsNullOrEmpty(group) ? name : string.Format(CultureInfo.InvariantCulture, "{0}_{1}", group, name); + }; + + List methodList = methodsWhichUseGroup.ToList(); + if (methodList.Count == 1) + { + Method method = methodList.Single(); + return string.Format(CultureInfo.InvariantCulture, "Additional parameters for the {0} operation.", + createOperationDisplayString(method.Group, method.Name)); + } + else if (methodList.Count <= 4) + { + string operationsString = string.Join(", ", methodList.Select( + m => string.Format(CultureInfo.InvariantCulture, createOperationDisplayString(m.Group, m.Name)))); + + return string.Format(CultureInfo.InvariantCulture, "Additional parameters for a set of operations, such as: {0}.", operationsString); + } + else + { + return "Additional parameters for a set of operations."; + } + } + + /// + /// Adds the parameter groups to operation parameters. + /// + /// + public static void AddParameterGroups(ServiceClient serviceClient) + { + if (serviceClient == null) + { + throw new ArgumentNullException("serviceClient"); + } + + HashSet generatedParameterGroups = new HashSet(); + + foreach (Method method in serviceClient.Methods) + { + //Copy out flattening transformations as they should be the last + List flatteningTransformations = method.InputParameterTransformation.ToList(); + method.InputParameterTransformation.Clear(); + + //This group name is normalized by each languages code generator later, so it need not happen here. + IEnumerable parameterGroups = ExtractParameterGroups(method); + + List parametersToAddToMethod = new List(); + List parametersToRemoveFromMethod = new List(); + + foreach (ParameterGroup parameterGroup in parameterGroups) + { + CompositeType parameterGroupType = + generatedParameterGroups.FirstOrDefault(item => item.Name == parameterGroup.Name); + + if (parameterGroupType == null) + { + IEnumerable methodsWhichUseGroup = GetMethodsUsingParameterGroup(serviceClient.Methods, parameterGroup); + + parameterGroupType = new CompositeType + { + Name = parameterGroup.Name, + Documentation = GenerateParameterGroupModelText(methodsWhichUseGroup) + }; + generatedParameterGroups.Add(parameterGroupType); + + //Add to the service client + serviceClient.ModelTypes.Add(parameterGroupType); + } + + foreach (Property property in parameterGroup.ParameterMapping.Keys) + { + Property matchingProperty = parameterGroupType.Properties.FirstOrDefault( + item => item.Name == property.Name && + item.IsReadOnly == property.IsReadOnly && + item.DefaultValue == property.DefaultValue && + item.SerializedName == property.SerializedName); + if (matchingProperty == null) + { + parameterGroupType.Properties.Add(property); + } + } + + bool isGroupParameterRequired = parameterGroupType.Properties.Any(p => p.IsRequired); + + //Create the new parameter object based on the parameter group type + Parameter newParameter = new Parameter() + { + Name = parameterGroup.Name, + IsRequired = isGroupParameterRequired, + Location = ClientModel.ParameterLocation.None, + SerializedName = string.Empty, + Type = parameterGroupType, + Documentation = "Additional parameters for the operation" + }; + parametersToAddToMethod.Add(newParameter); + + //Link the grouped parameters to their parent, and remove them from the method parameters + foreach (Property property in parameterGroup.ParameterMapping.Keys) + { + Parameter p = parameterGroup.ParameterMapping[property]; + + var parameterTransformation = new ParameterTransformation + { + OutputParameter = p + }; + + parameterTransformation.ParameterMappings.Add(new ParameterMapping + { + InputParameter = newParameter, + InputParameterProperty = property.GetClientName() + }); + method.InputParameterTransformation.Add(parameterTransformation); + parametersToRemoveFromMethod.Add(p); + } + } + + method.Parameters.RemoveAll(p => parametersToRemoveFromMethod.Contains(p)); + method.Parameters.AddRange(parametersToAddToMethod); + + // Copy back flattening transformations if any + flatteningTransformations.ForEach(t => method.InputParameterTransformation.Add(t)); + } + } + } +} diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/FirstParameterGroup.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/FirstParameterGroup.java index 714247eeb7969..bbe5038e8892e 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/FirstParameterGroup.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/FirstParameterGroup.java @@ -13,7 +13,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Additional parameters for the postMultiParamGroups operation. + * Additional parameters for a set of operations, such as: + * parameterGrouping_postMultiParamGroups, + * parameterGrouping_postSharedParameterGroupObject. */ public class FirstParameterGroup { /** diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.java index c44445601ac69..e8c9db90cc753 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.java @@ -13,7 +13,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Additional parameters for the postMultiParamGroups operation. + * Additional parameters for the parameterGrouping_postMultiParamGroups + * operation. */ public class ParameterGroupingPostMultiParamGroupsSecondParamGroup { /** diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/ParameterGroupingPostOptionalParameters.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/ParameterGroupingPostOptionalParameters.java index 641ac92c6ad07..8177eb2257697 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/ParameterGroupingPostOptionalParameters.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/ParameterGroupingPostOptionalParameters.java @@ -13,7 +13,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Additional parameters for the postOptional operation. + * Additional parameters for the parameterGrouping_postOptional operation. */ public class ParameterGroupingPostOptionalParameters { /** diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/ParameterGroupingPostRequiredParameters.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/ParameterGroupingPostRequiredParameters.java index c038b22f59d50..98f0a230bc383 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/ParameterGroupingPostRequiredParameters.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azureparametergrouping/models/ParameterGroupingPostRequiredParameters.java @@ -13,7 +13,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Additional parameters for the postRequired operation. + * Additional parameters for the parameterGrouping_postRequired operation. */ public class ParameterGroupingPostRequiredParameters { /** diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/PagingGetMultiplePagesOptions.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/PagingGetMultiplePagesOptions.java index 6f61d486bb090..0ce6b1680d2f3 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/PagingGetMultiplePagesOptions.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/PagingGetMultiplePagesOptions.java @@ -13,7 +13,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Additional parameters for the getMultiplePages operation. + * Additional parameters for the Paging_getMultiplePages operation. */ public class PagingGetMultiplePagesOptions { /** diff --git a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/PagingGetMultiplePagesWithOffsetOptions.java b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/PagingGetMultiplePagesWithOffsetOptions.java index 5827dbdd2d3a4..1cff9918a4fee 100644 --- a/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/PagingGetMultiplePagesWithOffsetOptions.java +++ b/AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/paging/models/PagingGetMultiplePagesWithOffsetOptions.java @@ -13,7 +13,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Additional parameters for the getMultiplePagesWithOffset operation. + * Additional parameters for the Paging_getMultiplePagesWithOffset operation. */ public class PagingGetMultiplePagesWithOffsetOptions { /** diff --git a/AutoRest/Generators/Java/Azure.Java/AzureJavaCodeGenerator.cs b/AutoRest/Generators/Java/Azure.Java/AzureJavaCodeGenerator.cs index d17290e7a1b97..45e4651a69e84 100644 --- a/AutoRest/Generators/Java/Azure.Java/AzureJavaCodeGenerator.cs +++ b/AutoRest/Generators/Java/Azure.Java/AzureJavaCodeGenerator.cs @@ -18,7 +18,7 @@ public class AzureJavaCodeGenerator : JavaCodeGenerator { private readonly AzureJavaCodeNamer _namer; - private const string ClientRuntimePackage = "com.microsoft.rest:azure-client-runtime:0.0.1-SNAPSHOT"; + private const string ClientRuntimePackage = "com.microsoft.rest:azure-client-runtime:1.0.0-SNAPSHOT from snapshot repo http://adxsnapshots.azurewebsites.net/"; private const string _packageInfoFileName = "package-info.java"; // page extensions class dictionary. diff --git a/AutoRest/Generators/Java/Java/JavaCodeGenerator.cs b/AutoRest/Generators/Java/Java/JavaCodeGenerator.cs index 275c4b16eb4e3..66621e2f0034c 100644 --- a/AutoRest/Generators/Java/Java/JavaCodeGenerator.cs +++ b/AutoRest/Generators/Java/Java/JavaCodeGenerator.cs @@ -14,7 +14,7 @@ namespace Microsoft.Rest.Generator.Java { public class JavaCodeGenerator : CodeGenerator { - private const string ClientRuntimePackage = "com.microsoft.rest:client-runtime:0.0.1-SNAPSHOT"; + private const string ClientRuntimePackage = "com.microsoft.rest:client-runtime:1.0.0-SNAPSHOT from snapshot repo http://adxsnapshots.azurewebsites.net/"; private const string _packageInfoFileName = "package-info.java"; public JavaCodeNamer Namer { get; private set; } diff --git a/AutoRest/Generators/Java/Java/JavaCodeNamer.cs b/AutoRest/Generators/Java/Java/JavaCodeNamer.cs index c8d58b1031848..3c4921479f9e1 100644 --- a/AutoRest/Generators/Java/Java/JavaCodeNamer.cs +++ b/AutoRest/Generators/Java/Java/JavaCodeNamer.cs @@ -33,7 +33,7 @@ public JavaCodeNamer(string nameSpace) { // List retrieved from // http://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html - _package = nameSpace.ToLower(CultureInfo.InvariantCulture); + _package = nameSpace != null ? nameSpace.ToLower(CultureInfo.InvariantCulture) : string.Empty; new HashSet { "abstract", "assert", "boolean", "break", "byte", diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/firstParameterGroup.js b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/firstParameterGroup.js index 0ee0d72686ad4..30da6b2ad3c63 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/firstParameterGroup.js +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/firstParameterGroup.js @@ -14,7 +14,9 @@ * @class * Initializes a new instance of the FirstParameterGroup class. * @constructor - * Additional parameters for the postMultiParamGroups operation. + * Additional parameters for a set of operations, such as: + * parameterGrouping_postMultiParamGroups, + * parameterGrouping_postSharedParameterGroupObject. * @member {string} [headerOne] * * @member {number} [queryOne] Query parameter with default. Default value: 30 diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/index.d.ts b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/index.d.ts index b2155667f07a8..16a7ffc754ca4 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/index.d.ts +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/index.d.ts @@ -28,7 +28,7 @@ export interface ErrorModel { * @class * Initializes a new instance of the ParameterGroupingPostRequiredParameters class. * @constructor - * Additional parameters for the postRequired operation. + * Additional parameters for the parameterGrouping_postRequired operation. * @member {number} body * * @member {string} [customHeader] @@ -49,7 +49,7 @@ export interface ParameterGroupingPostRequiredParameters { * @class * Initializes a new instance of the ParameterGroupingPostOptionalParameters class. * @constructor - * Additional parameters for the postOptional operation. + * Additional parameters for the parameterGrouping_postOptional operation. * @member {string} [customHeader] * * @member {number} [query] Query parameter with default @@ -64,7 +64,9 @@ export interface ParameterGroupingPostOptionalParameters { * @class * Initializes a new instance of the FirstParameterGroup class. * @constructor - * Additional parameters for the postMultiParamGroups operation. + * Additional parameters for a set of operations, such as: + * parameterGrouping_postMultiParamGroups, + * parameterGrouping_postSharedParameterGroupObject. * @member {string} [headerOne] * * @member {number} [queryOne] Query parameter with default @@ -79,7 +81,8 @@ export interface FirstParameterGroup { * @class * Initializes a new instance of the ParameterGroupingPostMultiParamGroupsSecondParamGroup class. * @constructor - * Additional parameters for the postMultiParamGroups operation. + * Additional parameters for the parameterGrouping_postMultiParamGroups + * operation. * @member {string} [headerTwo] * * @member {number} [queryTwo] Query parameter with default diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostMultiParamGroupsSecondParamGroup.js b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostMultiParamGroupsSecondParamGroup.js index aa82d43c29053..430f4f669f12c 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostMultiParamGroupsSecondParamGroup.js +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostMultiParamGroupsSecondParamGroup.js @@ -14,7 +14,8 @@ * @class * Initializes a new instance of the ParameterGroupingPostMultiParamGroupsSecondParamGroup class. * @constructor - * Additional parameters for the postMultiParamGroups operation. + * Additional parameters for the parameterGrouping_postMultiParamGroups + * operation. * @member {string} [headerTwo] * * @member {number} [queryTwo] Query parameter with default. Default value: 30 diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostOptionalParameters.js b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostOptionalParameters.js index 825d2f6436ab3..b100000a14aee 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostOptionalParameters.js +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostOptionalParameters.js @@ -14,7 +14,7 @@ * @class * Initializes a new instance of the ParameterGroupingPostOptionalParameters class. * @constructor - * Additional parameters for the postOptional operation. + * Additional parameters for the parameterGrouping_postOptional operation. * @member {string} [customHeader] * * @member {number} [query] Query parameter with default. Default value: 30 . diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostRequiredParameters.js b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostRequiredParameters.js index 561fa05da6a71..70dfd11124694 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostRequiredParameters.js +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostRequiredParameters.js @@ -14,7 +14,7 @@ * @class * Initializes a new instance of the ParameterGroupingPostRequiredParameters class. * @constructor - * Additional parameters for the postRequired operation. + * Additional parameters for the parameterGrouping_postRequired operation. * @member {number} body * * @member {string} [customHeader] diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lRORetrys.js b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lRORetrys.js index 91416004b938f..bacca9fd614ab 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lRORetrys.js +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lRORetrys.js @@ -81,7 +81,7 @@ LRORetrys.prototype.put201CreatingSucceeded200 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -334,7 +334,7 @@ LRORetrys.prototype.putAsyncRelativeRetrySucceeded = function (options, callback initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -562,7 +562,7 @@ LRORetrys.prototype.deleteProvisioning202Accepted200Succeeded = function (option initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -782,7 +782,7 @@ LRORetrys.prototype.delete202Retry200 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -952,7 +952,7 @@ LRORetrys.prototype.deleteAsyncRelativeRetrySucceeded = function (options, callb initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1130,7 +1130,7 @@ LRORetrys.prototype.post202Retry200 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1332,7 +1332,7 @@ LRORetrys.prototype.postAsyncRelativeRetrySucceeded = function (options, callbac initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1485,4 +1485,4 @@ LRORetrys.prototype.beginPostAsyncRelativeRetrySucceeded = function (options, ca }; -module.exports = LRORetrys; \ No newline at end of file +module.exports = LRORetrys; diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lROSADs.js b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lROSADs.js index b82dd78f09140..240dd4e45fbd6 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lROSADs.js +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lROSADs.js @@ -78,7 +78,7 @@ LROSADs.prototype.putNonRetry400 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -326,7 +326,7 @@ LROSADs.prototype.putNonRetry201Creating400 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -575,7 +575,7 @@ LROSADs.prototype.putNonRetry201Creating400InvalidJson = function (options, call initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -825,7 +825,7 @@ LROSADs.prototype.putAsyncRelativeRetry400 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1048,7 +1048,7 @@ LROSADs.prototype.deleteNonRetry400 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1214,7 +1214,7 @@ LROSADs.prototype.delete202NonRetry400 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1382,7 +1382,7 @@ LROSADs.prototype.deleteAsyncRelativeRetry400 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1558,7 +1558,7 @@ LROSADs.prototype.postNonRetry400 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1755,7 +1755,7 @@ LROSADs.prototype.post202NonRetry400 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1954,7 +1954,7 @@ LROSADs.prototype.postAsyncRelativeRetry400 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -2155,7 +2155,7 @@ LROSADs.prototype.putError201NoProvisioningStatePayload = function (options, cal initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -2405,7 +2405,7 @@ LROSADs.prototype.putAsyncRelativeRetryNoStatus = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -2639,7 +2639,7 @@ LROSADs.prototype.putAsyncRelativeRetryNoStatusPayload = function (options, call initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -2863,7 +2863,7 @@ LROSADs.prototype.delete204Succeeded = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -3032,7 +3032,7 @@ LROSADs.prototype.deleteAsyncRelativeRetryNoStatus = function (options, callback initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -3209,7 +3209,7 @@ LROSADs.prototype.post202NoLocation = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -3409,7 +3409,7 @@ LROSADs.prototype.postAsyncRelativeRetryNoPayload = function (options, callback) initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -3610,7 +3610,7 @@ LROSADs.prototype.put200InvalidJson = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -3843,7 +3843,7 @@ LROSADs.prototype.putAsyncRelativeRetryInvalidHeader = function (options, callba initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -4077,7 +4077,7 @@ LROSADs.prototype.putAsyncRelativeRetryInvalidJsonPolling = function (options, c initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -4301,7 +4301,7 @@ LROSADs.prototype.delete202RetryInvalidHeader = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -4469,7 +4469,7 @@ LROSADs.prototype.deleteAsyncRelativeRetryInvalidHeader = function (options, cal initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -4638,7 +4638,7 @@ LROSADs.prototype.deleteAsyncRelativeRetryInvalidJsonPolling = function (options initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -4815,7 +4815,7 @@ LROSADs.prototype.post202RetryInvalidHeader = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -5015,7 +5015,7 @@ LROSADs.prototype.postAsyncRelativeRetryInvalidHeader = function (options, callb initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -5216,7 +5216,7 @@ LROSADs.prototype.postAsyncRelativeRetryInvalidJsonPolling = function (options, initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lROs.js b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lROs.js index 7655fc4191aa2..f403121e6dfec 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lROs.js +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lROs.js @@ -79,7 +79,7 @@ LROs.prototype.put200Succeeded = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -311,7 +311,7 @@ LROs.prototype.put200SucceededNoState = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -544,7 +544,7 @@ LROs.prototype.put202Retry200 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -779,7 +779,7 @@ LROs.prototype.put201CreatingSucceeded200 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1032,7 +1032,7 @@ LROs.prototype.put200UpdatingSucceeded204 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1268,7 +1268,7 @@ LROs.prototype.put201CreatingFailed200 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1521,7 +1521,7 @@ LROs.prototype.put200Acceptedcanceled200 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1756,7 +1756,7 @@ LROs.prototype.putNoHeaderInRetry = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -1990,7 +1990,7 @@ LROs.prototype.putAsyncRetrySucceeded = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -2224,7 +2224,7 @@ LROs.prototype.putAsyncNoRetrySucceeded = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -2458,7 +2458,7 @@ LROs.prototype.putAsyncRetryFailed = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -2692,7 +2692,7 @@ LROs.prototype.putAsyncNoRetrycanceled = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -2926,7 +2926,7 @@ LROs.prototype.putAsyncNoHeaderInRetry = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -3156,7 +3156,7 @@ LROs.prototype.putNonResource = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -3382,7 +3382,7 @@ LROs.prototype.putAsyncNonResource = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -3606,7 +3606,7 @@ LROs.prototype.putSubResource = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -3828,7 +3828,7 @@ LROs.prototype.putAsyncSubResource = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -4049,7 +4049,7 @@ LROs.prototype.deleteProvisioning202Accepted200Succeeded = function (options, ca initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -4271,7 +4271,7 @@ LROs.prototype.deleteProvisioning202DeletingFailed200 = function (options, callb initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -4493,7 +4493,7 @@ LROs.prototype.deleteProvisioning202Deletingcanceled200 = function (options, cal initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -4711,7 +4711,7 @@ LROs.prototype.delete204Succeeded = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -4880,7 +4880,7 @@ LROs.prototype.delete202Retry200 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -5083,7 +5083,7 @@ LROs.prototype.delete202NoRetry204 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -5285,7 +5285,7 @@ LROs.prototype.deleteNoHeaderInRetry = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -5455,7 +5455,7 @@ LROs.prototype.deleteAsyncNoHeaderInRetry = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -5625,7 +5625,7 @@ LROs.prototype.deleteAsyncRetrySucceeded = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -5795,7 +5795,7 @@ LROs.prototype.deleteAsyncNoRetrySucceeded = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -5965,7 +5965,7 @@ LROs.prototype.deleteAsyncRetryFailed = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -6135,7 +6135,7 @@ LROs.prototype.deleteAsyncRetrycanceled = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -6306,7 +6306,7 @@ LROs.prototype.post200WithPayload = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -6533,7 +6533,7 @@ LROs.prototype.post202Retry200 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -6734,7 +6734,7 @@ LROs.prototype.post202NoRetry204 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -6967,7 +6967,7 @@ LROs.prototype.postAsyncRetrySucceeded = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -7201,7 +7201,7 @@ LROs.prototype.postAsyncNoRetrySucceeded = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -7434,7 +7434,7 @@ LROs.prototype.postAsyncRetryFailed = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -7635,7 +7635,7 @@ LROs.prototype.postAsyncRetrycanceled = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -7787,4 +7787,4 @@ LROs.prototype.beginPostAsyncRetrycanceled = function (options, callback) { }; -module.exports = LROs; \ No newline at end of file +module.exports = LROs; diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lROsCustomHeader.js b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lROsCustomHeader.js index 0c25e2df3bb0c..3d4d296e68aaa 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lROsCustomHeader.js +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Lro/operations/lROsCustomHeader.js @@ -82,7 +82,7 @@ LROsCustomHeader.prototype.putAsyncRetrySucceeded = function (options, callback) initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -320,7 +320,7 @@ LROsCustomHeader.prototype.put201CreatingSucceeded200 = function (options, callb initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -573,7 +573,7 @@ LROsCustomHeader.prototype.post202Retry200 = function (options, callback) { initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -777,7 +777,7 @@ LROsCustomHeader.prototype.postAsyncRetrySucceeded = function (options, callback initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result @@ -931,4 +931,4 @@ LROsCustomHeader.prototype.beginPostAsyncRetrySucceeded = function (options, cal }; -module.exports = LROsCustomHeader; \ No newline at end of file +module.exports = LROsCustomHeader; diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Paging/models/index.d.ts b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Paging/models/index.d.ts index b95c21cdbef8a..4df2fb2dc1100 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Paging/models/index.d.ts +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Paging/models/index.d.ts @@ -56,7 +56,7 @@ export interface OperationResult { * @class * Initializes a new instance of the PagingGetMultiplePagesOptions class. * @constructor - * Additional parameters for the getMultiplePages operation. + * Additional parameters for the Paging_getMultiplePages operation. * @member {number} [maxresults] Sets the maximum number of items to return in * the response. * @@ -73,7 +73,7 @@ export interface PagingGetMultiplePagesOptions { * @class * Initializes a new instance of the PagingGetMultiplePagesWithOffsetOptions class. * @constructor - * Additional parameters for the getMultiplePagesWithOffset operation. + * Additional parameters for the Paging_getMultiplePagesWithOffset operation. * @member {number} [maxresults] Sets the maximum number of items to return in * the response. * diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesOptions.js b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesOptions.js index 017fd4372b9ee..054ea7a991213 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesOptions.js +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesOptions.js @@ -14,7 +14,7 @@ * @class * Initializes a new instance of the PagingGetMultiplePagesOptions class. * @constructor - * Additional parameters for the getMultiplePages operation. + * Additional parameters for the Paging_getMultiplePages operation. * @member {number} [maxresults] Sets the maximum number of items to return in * the response. * diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesWithOffsetOptions.js b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesWithOffsetOptions.js index 42631d194f11b..03b9df22d91a4 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesWithOffsetOptions.js +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesWithOffsetOptions.js @@ -14,7 +14,7 @@ * @class * Initializes a new instance of the PagingGetMultiplePagesWithOffsetOptions class. * @constructor - * Additional parameters for the getMultiplePagesWithOffset operation. + * Additional parameters for the Paging_getMultiplePagesWithOffset operation. * @member {number} [maxresults] Sets the maximum number of items to return in * the response. * diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/storageAccounts.js b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/storageAccounts.js index 272319d4ccc39..bff7003860456 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/storageAccounts.js +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/storageAccounts.js @@ -253,7 +253,7 @@ StorageAccounts.prototype.create = function (resourceGroupName, accountName, par initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result diff --git a/AutoRest/Generators/NodeJS/Azure.NodeJS/AzureNodeJSCodeGenerator.cs b/AutoRest/Generators/NodeJS/Azure.NodeJS/AzureNodeJSCodeGenerator.cs index 06bdbd84874fc..e68eb4727a6dc 100644 --- a/AutoRest/Generators/NodeJS/Azure.NodeJS/AzureNodeJSCodeGenerator.cs +++ b/AutoRest/Generators/NodeJS/Azure.NodeJS/AzureNodeJSCodeGenerator.cs @@ -18,7 +18,7 @@ namespace Microsoft.Rest.Generator.Azure.NodeJS { public class AzureNodeJSCodeGenerator : NodeJSCodeGenerator { - private const string ClientRuntimePackage = "ms-rest-azure version 1.13.0"; + private const string ClientRuntimePackage = "ms-rest-azure version 1.13.1"; // List of models with paging extensions. private IList pageModels; diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureBodyDuration/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureBodyDuration/setup.py index 251a4cda74c35..97aa1ecfa3dd1 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureBodyDuration/setup.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureBodyDuration/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/first_parameter_group.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/first_parameter_group.py index 0a3174e49ea52..172a4349ff36c 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/first_parameter_group.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/first_parameter_group.py @@ -14,7 +14,9 @@ class FirstParameterGroup(Model): """ - Additional parameters for the postMultiParamGroups operation. + Additional parameters for a set of operations, such as: + parameterGrouping_postMultiParamGroups, + parameterGrouping_postSharedParameterGroupObject. :param header_one: :type header_one: str diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_multi_param_groups_second_param_group.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_multi_param_groups_second_param_group.py index d178c7470903e..bccdfab25480f 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_multi_param_groups_second_param_group.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_multi_param_groups_second_param_group.py @@ -14,7 +14,8 @@ class ParameterGroupingPostMultiParamGroupsSecondParamGroup(Model): """ - Additional parameters for the postMultiParamGroups operation. + Additional parameters for the parameterGrouping_postMultiParamGroups + operation. :param header_two: :type header_two: str diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_optional_parameters.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_optional_parameters.py index 7368af7d84956..a62313adf9a27 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_optional_parameters.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_optional_parameters.py @@ -14,7 +14,7 @@ class ParameterGroupingPostOptionalParameters(Model): """ - Additional parameters for the postOptional operation. + Additional parameters for the parameterGrouping_postOptional operation. :param custom_header: :type custom_header: str diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_required_parameters.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_required_parameters.py index 33627d834bdad..409f4ffcdcf26 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_required_parameters.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_required_parameters.py @@ -14,7 +14,7 @@ class ParameterGroupingPostRequiredParameters(Model): """ - Additional parameters for the postRequired operation. + Additional parameters for the parameterGrouping_postRequired operation. :param body: :type body: int diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/setup.py index 2e0910c9bcdeb..4e3dc67a4f96a 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/setup.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureReport/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureReport/setup.py index 762429f51c290..fee4d2a41a3c6 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureReport/setup.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureReport/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureResource/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureResource/setup.py index d4003cb22d3fd..095659cbb3fa4 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureResource/setup.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureResource/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureSpecials/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureSpecials/setup.py index a23f56d19161d..cd93aa2dd66d6 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureSpecials/setup.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureSpecials/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/setup.py index b58762d14bf16..b60d7cd0eb460 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/setup.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Head/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Head/setup.py index e11e2311eb413..083369e096dcc 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Head/setup.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Head/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/HeadExceptions/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/HeadExceptions/setup.py index eea7127ecba39..d66fa596b1ebb 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/HeadExceptions/setup.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/HeadExceptions/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Lro/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Lro/setup.py index 6efdcd0d3ea4e..dab3d2e5e77e0 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Lro/setup.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Lro/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_options.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_options.py index c776b4da879d7..15ba71465cac8 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_options.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_options.py @@ -14,7 +14,7 @@ class PagingGetMultiplePagesOptions(Model): """ - Additional parameters for the getMultiplePages operation. + Additional parameters for the Paging_getMultiplePages operation. :param maxresults: Sets the maximum number of items to return in the response. diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_with_offset_options.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_with_offset_options.py index 57650f8519648..23e7a887f274c 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_with_offset_options.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_with_offset_options.py @@ -14,7 +14,7 @@ class PagingGetMultiplePagesWithOffsetOptions(Model): """ - Additional parameters for the getMultiplePagesWithOffset operation. + Additional parameters for the Paging_getMultiplePagesWithOffset operation. :param maxresults: Sets the maximum number of items to return in the response. diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/setup.py index b8c042a69efb9..063fc0d9388e6 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/setup.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/StorageManagementClient/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/StorageManagementClient/setup.py index 7e7b4160e02e1..b204e8c8c203b 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/StorageManagementClient/setup.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/StorageManagementClient/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py index a0eeb22b2beda..270e110d8b34f 100644 --- a/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py +++ b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/AutoRest/Generators/Python/Azure.Python/AzurePythonCodeGenerator.cs b/AutoRest/Generators/Python/Azure.Python/AzurePythonCodeGenerator.cs index eeb311593bb52..2bc8932aa11fc 100644 --- a/AutoRest/Generators/Python/Azure.Python/AzurePythonCodeGenerator.cs +++ b/AutoRest/Generators/Python/Azure.Python/AzurePythonCodeGenerator.cs @@ -62,7 +62,7 @@ public override void NormalizeClientModel(ServiceClient serviceClient) AzureExtensions.UpdateHeadMethods(serviceClient); AzureExtensions.ParseODataExtension(serviceClient); Extensions.FlattenModels(serviceClient); - Extensions.AddParameterGroups(serviceClient); + ParameterGroupExtensionHelper.AddParameterGroups(serviceClient); AzureExtensions.AddAzureProperties(serviceClient); AzureExtensions.SetDefaultResponses(serviceClient); CorrectFilterParameters(serviceClient); diff --git a/AutoRest/Generators/Ruby/Azure.Ruby/AzureClientModelExtensions.cs b/AutoRest/Generators/Ruby/Azure.Ruby/AzureClientModelExtensions.cs index 13a93416ce55d..61699fbef07be 100644 --- a/AutoRest/Generators/Ruby/Azure.Ruby/AzureClientModelExtensions.cs +++ b/AutoRest/Generators/Ruby/Azure.Ruby/AzureClientModelExtensions.cs @@ -68,6 +68,11 @@ public static string AzureDeserializeType( { return builder.AppendLine("{0} = DateTime.parse({0}) unless {0}.to_s.empty?", valueReference).ToString(); } + + if (primary.Type == KnownPrimaryType.UnixTime) + { + return builder.AppendLine("{0} = DateTime.strptime({0}.to_s, '%s') unless {0}.to_s.empty?", valueReference).ToString(); + } } else if (enumType != null && !string.IsNullOrEmpty(enumType.Name)) { @@ -175,6 +180,11 @@ public static string AzureSerializeType( { return builder.AppendLine("{0} = {0}.new_offset(0).strftime('%a, %d %b %Y %H:%M:%S GMT')", valueReference).ToString(); } + + if (primary.Type == KnownPrimaryType.UnixTime) + { + return builder.AppendLine("{0} = {0}.new_offset(0).strftime('%s')", valueReference).ToString(); + } } else if (sequence != null) { diff --git a/AutoRest/Generators/Ruby/Ruby.Tests/RspecTests/integer_spec.rb b/AutoRest/Generators/Ruby/Ruby.Tests/RspecTests/integer_spec.rb index 2d118b8531760..f7556f6741a20 100644 --- a/AutoRest/Generators/Ruby/Ruby.Tests/RspecTests/integer_spec.rb +++ b/AutoRest/Generators/Ruby/Ruby.Tests/RspecTests/integer_spec.rb @@ -67,11 +67,33 @@ it 'should get null' do result = @int_client.get_null_async().value! - expect(result.response.status).to eq(200) - expect(result.body).to eq(nil) + expect(result.response.status).to eq(200) + expect(result.body).to eq(nil) end it 'should get invalid' do expect{ @int_client.get_invalid_async().value! }.to raise_error(MsRest::DeserializationError) end + + it 'should put unix time' do + result = @int_client.put_unix_time_date_async(DateTime.new(2016, 4, 13, 0, 0, 0, 'Z')).value! + expect(result.response.status).to eq(200) + expect(result.body).to eq(nil) + end + + it 'should get unix time' do + result = @int_client.get_unix_time_async().value! + expect(result.response.status).to eq(200) + expect(result.body).to eq(DateTime.new(2016, 4, 13, 0, 0, 0, 'Z')) + end + + it 'should get null unix time' do + result = @int_client.get_null_unix_time_async().value! + expect(result.response.status).to eq(200) + expect(result.body).to eq(nil) + end + + it 'should get invalid unix time' do + expect{ @int_client.get_invalid_unix_time_async().value! }.to raise_error(MsRest::DeserializationError) + end end \ No newline at end of file diff --git a/AutoRest/Generators/Ruby/Ruby/ClientModelExtensions.cs b/AutoRest/Generators/Ruby/Ruby/ClientModelExtensions.cs index 8a055ed3fe45a..853c37f8ea7e7 100644 --- a/AutoRest/Generators/Ruby/Ruby/ClientModelExtensions.cs +++ b/AutoRest/Generators/Ruby/Ruby/ClientModelExtensions.cs @@ -313,6 +313,11 @@ public static string DeserializeType( { return builder.AppendLine("{0} = DateTime.parse({0}) unless {0}.to_s.empty?", valueReference).ToString(); } + + if (primary.Type == KnownPrimaryType.UnixTime) + { + return builder.AppendLine("{0} = DateTime.strptime({0}.to_s, '%s') unless {0}.to_s.empty?", valueReference).ToString(); + } } else if (enumType != null && !string.IsNullOrEmpty(enumType.Name)) { @@ -415,6 +420,11 @@ public static string SerializeType( { return builder.AppendLine("{0} = {0}.new_offset(0).strftime('%a, %d %b %Y %H:%M:%S GMT')", valueReference).ToString(); } + + if (primary.Type == KnownPrimaryType.UnixTime) + { + return builder.AppendLine("{0} = {0}.new_offset(0).strftime('%s')", valueReference).ToString(); + } } else if (sequence != null) { diff --git a/AutoRest/Generators/Ruby/Ruby/RubyCodeNamer.cs b/AutoRest/Generators/Ruby/Ruby/RubyCodeNamer.cs index c40423ee1b4ae..3709e888fdb8c 100644 --- a/AutoRest/Generators/Ruby/Ruby/RubyCodeNamer.cs +++ b/AutoRest/Generators/Ruby/Ruby/RubyCodeNamer.cs @@ -374,7 +374,7 @@ private IType NormalizePrimaryType(PrimaryType primaryType) } else if (primaryType.Type == KnownPrimaryType.UnixTime) { - primaryType.Name = "Bignum"; + primaryType.Name = "DateTime"; } else if (primaryType.Type == KnownPrimaryType.Object) { diff --git a/ChangeLog.md b/ChangeLog.md index c4affb34a9f94..3bb5f63273058 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,15 @@ -## VNext (not released yet) -* Fix ruby require module_definition if namespace is specified. See [#831](https://github.com/Azure/autorest/issues/831) +##2016.05.11 Version 0.16.0 +* Fixed ruby require module_definition if namespace is specified. See [#831](https://github.com/Azure/autorest/issues/831) +* Added an exit code for AutoRest.exe to indicate success or error +* Added support for Unix time formatted dates with the `'unix-time'` format (#909) + * Serializing/deserializing Unix time formatted dates in C# and NodeJS to DateTime (C#) and Date (NodeJS) +* Added support for Base64Url formatted values with the `'base64url'` format (#805) + * Serializing/deserializing Base64Url formatted values in C# and NodeJS to byte\[\] (C#) and Buffer (NodeJS) +* Fixed issue where the contents of the output file for SingleFileGeneration are appended instead of replaced (#667) +* Made generated parameter group documentation more accurate for `'x-ms-parameter-grouping'` extension (#634) +* UserAgent header in ServiceClient now includes more detailed information (#583) +* Added the ability to specify a name in generated code for query parameters, entity headers, etc. with the [`'x-ms-client-name'`](https://github.com/Azure/autorest/blob/master/Documentation/swagger-extensions.md#x-ms-client-name) +* Bug fixes in all code generators (#722, #742, #745, #746, #819, #820, #824, #825, #889, #896, #897, #900, #915, #923, #934, #944, #943) ##2016.03.04 Version 0.15.0 * Added Java code generator! diff --git a/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/ServiceClientTracing.cs b/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/ServiceClientTracing.cs index a9df767f21494..1343b5edcf0b0 100644 --- a/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/ServiceClientTracing.cs +++ b/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/ServiceClientTracing.cs @@ -10,7 +10,7 @@ namespace Microsoft.Rest { /// - /// Provides a set of methods and properties that help you trace the serviceclient. + /// Provides a set of methods and properties that help you trace the service client. /// public static class ServiceClientTracing { @@ -119,7 +119,7 @@ public static bool RemoveTracingInterceptor(IServiceClientTracingInterceptor int /// /// Write the informational tracing message. /// - /// The msessage to trace. + /// The message to trace. /// An object array containing zero or more objects to format public static void Information(string message, params object[] parameters) { diff --git a/ClientRuntimes/NodeJS/ms-rest-azure/lib/azureEnvironment.js b/ClientRuntimes/NodeJS/ms-rest-azure/lib/azureEnvironment.js index e902c471c5d30..bc8e1a961dc48 100644 --- a/ClientRuntimes/NodeJS/ms-rest-azure/lib/azureEnvironment.js +++ b/ClientRuntimes/NodeJS/ms-rest-azure/lib/azureEnvironment.js @@ -55,7 +55,7 @@ var supportedEnvironments = { sqlManagementEndpointUrl: 'https://management.core.windows.net:8443/', sqlServerHostnameSuffix: '.database.windows.net', galleryEndpointUrl: 'https://gallery.azure.com/', - activeDirectoryEndpointUrl: 'https://login.microsoftonline.com', + activeDirectoryEndpointUrl: 'https://login.microsoftonline.com/', activeDirectoryResourceId: 'https://management.core.windows.net/', activeDirectoryGraphResourceId: 'https://graph.windows.net/', activeDirectoryGraphApiVersion: '2013-04-05', @@ -73,7 +73,7 @@ var supportedEnvironments = { sqlManagementEndpointUrl: 'https://management.core.chinacloudapi.cn:8443/', sqlServerHostnameSuffix: '.database.chinacloudapi.cn', galleryEndpointUrl: 'https://gallery.chinacloudapi.cn/', - activeDirectoryEndpointUrl: 'https://login.chinacloudapi.cn', + activeDirectoryEndpointUrl: 'https://login.chinacloudapi.cn/', activeDirectoryResourceId: 'https://management.core.chinacloudapi.cn/', activeDirectoryGraphResourceId: 'https://graph.chinacloudapi.cn/', activeDirectoryGraphApiVersion: '2013-04-05', @@ -92,7 +92,7 @@ var supportedEnvironments = { sqlManagementEndpointUrl: 'https://management.core.usgovcloudapi.net:8443/', sqlServerHostnameSuffix: '.database.usgovcloudapi.net', galleryEndpointUrl: 'https://gallery.usgovcloudapi.net/', - activeDirectoryEndpointUrl: 'https://login.microsoftonline.com', + activeDirectoryEndpointUrl: 'https://login.microsoftonline.com/', activeDirectoryResourceId: 'https://management.core.usgovcloudapi.net/', activeDirectoryGraphResourceId: 'https://graph.windows.net/', activeDirectoryGraphApiVersion: '2013-04-05', @@ -111,7 +111,7 @@ var supportedEnvironments = { sqlManagementEndpointUrl: 'https://management.core.cloudapi.de:8443/', sqlServerHostnameSuffix: '.database.cloudapi.de', galleryEndpointUrl: 'https://gallery.cloudapi.de/', - activeDirectoryEndpointUrl: 'https://login.microsoftonline.de', + activeDirectoryEndpointUrl: 'https://login.microsoftonline.de/', activeDirectoryResourceId: 'https://management.core.cloudapi.de/', activeDirectoryGraphResourceId: 'https://graph.cloudapi.de/', activeDirectoryGraphApiVersion: '2013-04-05', diff --git a/ClientRuntimes/NodeJS/ms-rest-azure/package.json b/ClientRuntimes/NodeJS/ms-rest-azure/package.json index 1002e12f3eaa6..cd4e61c7c9655 100644 --- a/ClientRuntimes/NodeJS/ms-rest-azure/package.json +++ b/ClientRuntimes/NodeJS/ms-rest-azure/package.json @@ -5,7 +5,7 @@ "email": "azsdkteam@microsoft.com", "url": "https://github.com/Azure/AutoRest" }, - "version": "1.13.0", + "version": "1.13.1", "description": "Client Runtime for Node.js Azure client libraries generated using AutoRest", "tags": [ "node", "microsoft", "autorest", "azure", "clientruntime" ], "keywords": [ "node", "microsoft", "autorest", "azure", "clientruntime" ], diff --git a/ClientRuntimes/NodeJS/ms-rest-azure/test/azureEnvironmentTests.js b/ClientRuntimes/NodeJS/ms-rest-azure/test/azureEnvironmentTests.js index 01b6fbfd81708..26f8db2e2e3e8 100644 --- a/ClientRuntimes/NodeJS/ms-rest-azure/test/azureEnvironmentTests.js +++ b/ClientRuntimes/NodeJS/ms-rest-azure/test/azureEnvironmentTests.js @@ -14,7 +14,7 @@ describe('AzureEnvironment', function() { it('should show the details of Azure Production environment correctly', function(done) { var tempEnv = msRestAzure.AzureEnvironment.Azure; tempEnv.name.should.equal('Azure'); - tempEnv.activeDirectoryEndpointUrl.should.equal('https://login.microsoftonline.com'); + tempEnv.activeDirectoryEndpointUrl.should.equal('https://login.microsoftonline.com/'); tempEnv.activeDirectoryResourceId.should.equal('https://management.core.windows.net/'); tempEnv.managementEndpointUrl.should.equal('https://management.core.windows.net'); tempEnv.resourceManagerEndpointUrl.should.equal('https://management.azure.com/'); @@ -26,7 +26,7 @@ describe('AzureEnvironment', function() { it('should show the details of Azure China environment correctly', function(done) { var tempEnv = msRestAzure.AzureEnvironment.AzureChina; tempEnv.name.should.equal('AzureChina'); - tempEnv.activeDirectoryEndpointUrl.should.equal('https://login.chinacloudapi.cn'); + tempEnv.activeDirectoryEndpointUrl.should.equal('https://login.chinacloudapi.cn/'); tempEnv.activeDirectoryResourceId.should.equal('https://management.core.chinacloudapi.cn/'); tempEnv.managementEndpointUrl.should.equal('https://management.core.chinacloudapi.cn'); tempEnv.resourceManagerEndpointUrl.should.equal('https://management.chinacloudapi.cn'); @@ -38,7 +38,7 @@ describe('AzureEnvironment', function() { it('should show the details of Azure USGovernment environment correctly', function(done) { var tempEnv = msRestAzure.AzureEnvironment.AzureUSGovernment; tempEnv.name.should.equal('AzureUSGovernment'); - tempEnv.activeDirectoryEndpointUrl.should.equal('https://login.microsoftonline.com'); + tempEnv.activeDirectoryEndpointUrl.should.equal('https://login.microsoftonline.com/'); tempEnv.activeDirectoryResourceId.should.equal('https://management.core.usgovcloudapi.net/'); tempEnv.managementEndpointUrl.should.equal('https://management.core.usgovcloudapi.net'); tempEnv.resourceManagerEndpointUrl.should.equal('https://management.usgovcloudapi.net'); @@ -50,7 +50,7 @@ describe('AzureEnvironment', function() { it('should show the details of Azure GermanCloud environment correctly', function(done) { var tempEnv = msRestAzure.AzureEnvironment.AzureGermanCloud; tempEnv.name.should.equal('AzureGermanCloud'); - tempEnv.activeDirectoryEndpointUrl.should.equal('https://login.microsoftonline.de'); + tempEnv.activeDirectoryEndpointUrl.should.equal('https://login.microsoftonline.de/'); tempEnv.activeDirectoryResourceId.should.equal('https://management.core.cloudapi.de/'); tempEnv.managementEndpointUrl.should.equal('https://management.core.cloudapi.de'); tempEnv.resourceManagerEndpointUrl.should.equal('https://management.microsoftazure.de'); @@ -65,13 +65,13 @@ describe('AzureEnvironment', function() { portalUrl: 'http://go.microsoft.com/fwlink/?LinkId=254433', managementEndpointUrl: 'https://management.core.windows.net', resourceManagerEndpointUrl: 'https://management.azure.com/', - activeDirectoryEndpointUrl: 'https://login.microsoftonline.com', + activeDirectoryEndpointUrl: 'https://login.microsoftonline.com/', activeDirectoryResourceId: 'https://management.core.windows.net/' }; var tempEnv = msRestAzure.AzureEnvironment; var dfood = tempEnv.add(df); dfood.name.should.equal('Dogfood'); - dfood.activeDirectoryEndpointUrl.should.equal('https://login.microsoftonline.com'); + dfood.activeDirectoryEndpointUrl.should.equal('https://login.microsoftonline.com/'); dfood.activeDirectoryResourceId.should.equal('https://management.core.windows.net/'); dfood.managementEndpointUrl.should.equal('https://management.core.windows.net'); dfood.resourceManagerEndpointUrl.should.equal('https://management.azure.com/'); @@ -80,7 +80,7 @@ describe('AzureEnvironment', function() { //Verify that the environment properly got added to the prototype tempEnv.Dogfood.name.should.equal('Dogfood'); - tempEnv.Dogfood.activeDirectoryEndpointUrl.should.equal('https://login.microsoftonline.com'); + tempEnv.Dogfood.activeDirectoryEndpointUrl.should.equal('https://login.microsoftonline.com/'); tempEnv.Dogfood.activeDirectoryResourceId.should.equal('https://management.core.windows.net/'); tempEnv.Dogfood.managementEndpointUrl.should.equal('https://management.core.windows.net'); tempEnv.Dogfood.resourceManagerEndpointUrl.should.equal('https://management.azure.com/'); diff --git a/Samples/azure-storage/Azure.CSharp/Models/CheckNameAvailabilityResult.cs b/Samples/azure-storage/Azure.CSharp/Models/CheckNameAvailabilityResult.cs index c2a6c4848934b..086e8b5169ec2 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/CheckNameAvailabilityResult.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/CheckNameAvailabilityResult.cs @@ -32,23 +32,26 @@ public CheckNameAvailabilityResult() { } } /// - /// Gets a boolean value that indicates whether the name is available - /// for you to use. If true, the name is available. If false, the - /// name has already been taken or invalid and cannot be used. + /// Gets or sets gets a boolean value that indicates whether the name + /// is available for you to use. If true, the name is available. If + /// false, the name has already been taken or invalid and cannot be + /// used. /// [JsonProperty(PropertyName = "nameAvailable")] public bool? NameAvailable { get; set; } /// - /// Gets the reason that a storage account name could not be used. The - /// Reason element is only returned if NameAvailable is false. - /// Possible values include: 'AccountNameInvalid', 'AlreadyExists' + /// Gets or sets gets the reason that a storage account name could not + /// be used. The Reason element is only returned if NameAvailable is + /// false. Possible values include: 'AccountNameInvalid', + /// 'AlreadyExists' /// [JsonProperty(PropertyName = "reason")] public Reason? Reason { get; set; } /// - /// Gets an error message explaining the Reason value in more detail. + /// Gets or sets gets an error message explaining the Reason value in + /// more detail. /// [JsonProperty(PropertyName = "message")] public string Message { get; set; } diff --git a/Samples/azure-storage/Azure.CSharp/Models/CustomDomain.cs b/Samples/azure-storage/Azure.CSharp/Models/CustomDomain.cs index d783381ad39d1..5ada788894a57 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/CustomDomain.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/CustomDomain.cs @@ -30,14 +30,16 @@ public CustomDomain() { } } /// - /// Gets or sets the custom domain name. Name is the CNAME source. + /// Gets or sets gets or sets the custom domain name. Name is the + /// CNAME source. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// - /// Indicates whether indirect CName validation is enabled. Default - /// value is false. This should only be set on updates + /// Gets or sets indicates whether indirect CName validation is + /// enabled. Default value is false. This should only be set on + /// updates /// [JsonProperty(PropertyName = "useSubDomain")] public bool? UseSubDomain { get; set; } diff --git a/Samples/azure-storage/Azure.CSharp/Models/Endpoints.cs b/Samples/azure-storage/Azure.CSharp/Models/Endpoints.cs index 892510076c3e5..f9b8d67d127d3 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/Endpoints.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/Endpoints.cs @@ -32,25 +32,25 @@ public Endpoints() { } } /// - /// Gets the blob endpoint. + /// Gets or sets gets the blob endpoint. /// [JsonProperty(PropertyName = "blob")] public string Blob { get; set; } /// - /// Gets the queue endpoint. + /// Gets or sets gets the queue endpoint. /// [JsonProperty(PropertyName = "queue")] public string Queue { get; set; } /// - /// Gets the table endpoint. + /// Gets or sets gets the table endpoint. /// [JsonProperty(PropertyName = "table")] public string Table { get; set; } /// - /// Gets the file endpoint. + /// Gets or sets gets the file endpoint. /// [JsonProperty(PropertyName = "file")] public string File { get; set; } diff --git a/Samples/azure-storage/Azure.CSharp/Models/Resource.cs b/Samples/azure-storage/Azure.CSharp/Models/Resource.cs index 4bdc3976317e8..fbf994880b942 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/Resource.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/Resource.cs @@ -29,31 +29,31 @@ public Resource() { } } /// - /// Resource Id + /// Gets resource Id /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } /// - /// Resource name + /// Gets resource name /// [JsonProperty(PropertyName = "name")] public string Name { get; private set; } /// - /// Resource type + /// Gets resource type /// [JsonProperty(PropertyName = "type")] public string Type { get; private set; } /// - /// Resource location + /// Gets or sets resource location /// [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// - /// Resource tags + /// Gets or sets resource tags /// [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountCreateParameters.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountCreateParameters.cs index c9b194c878b09..1c23f83ac300c 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountCreateParameters.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountCreateParameters.cs @@ -32,13 +32,13 @@ public StorageAccountCreateParameters() { } } /// - /// Resource location + /// Gets or sets resource location /// [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// - /// Resource tags + /// Gets or sets resource tags /// [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountKeys.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountKeys.cs index ce80a21921515..823fee32250f7 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountKeys.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountKeys.cs @@ -29,13 +29,13 @@ public StorageAccountKeys() { } } /// - /// Gets the value of key 1. + /// Gets or sets gets the value of key 1. /// [JsonProperty(PropertyName = "key1")] public string Key1 { get; set; } /// - /// Gets the value of key 2. + /// Gets or sets gets the value of key 2. /// [JsonProperty(PropertyName = "key2")] public string Key2 { get; set; } diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountProperties.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountProperties.cs index e5af974c69344..8282d7cc49c8d 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountProperties.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountProperties.cs @@ -35,87 +35,89 @@ public StorageAccountProperties() { } } /// - /// Gets the status of the storage account at the time the operation - /// was called. Possible values include: 'Creating', 'ResolvingDNS', - /// 'Succeeded' + /// Gets or sets gets the status of the storage account at the time + /// the operation was called. Possible values include: 'Creating', + /// 'ResolvingDNS', 'Succeeded' /// [JsonProperty(PropertyName = "provisioningState")] public ProvisioningState? ProvisioningState { get; set; } /// - /// Gets the type of the storage account. Possible values include: - /// 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS', - /// 'Premium_LRS' + /// Gets or sets gets the type of the storage account. Possible values + /// include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', + /// 'Standard_RAGRS', 'Premium_LRS' /// [JsonProperty(PropertyName = "accountType")] public AccountType? AccountType { get; set; } /// - /// Gets the URLs that are used to perform a retrieval of a public - /// blob, queue or table object.Note that StandardZRS and PremiumLRS - /// accounts only return the blob endpoint. + /// Gets or sets gets the URLs that are used to perform a retrieval of + /// a public blob, queue or table object.Note that StandardZRS and + /// PremiumLRS accounts only return the blob endpoint. /// [JsonProperty(PropertyName = "primaryEndpoints")] public Endpoints PrimaryEndpoints { get; set; } /// - /// Gets the location of the primary for the storage account. + /// Gets or sets gets the location of the primary for the storage + /// account. /// [JsonProperty(PropertyName = "primaryLocation")] public string PrimaryLocation { get; set; } /// - /// Gets the status indicating whether the primary location of the - /// storage account is available or unavailable. Possible values - /// include: 'Available', 'Unavailable' + /// Gets or sets gets the status indicating whether the primary + /// location of the storage account is available or unavailable. + /// Possible values include: 'Available', 'Unavailable' /// [JsonProperty(PropertyName = "statusOfPrimary")] public AccountStatus? StatusOfPrimary { get; set; } /// - /// Gets the timestamp of the most recent instance of a failover to - /// the secondary location. Only the most recent timestamp is - /// retained. This element is not returned if there has never been a - /// failover instance. Only available if the accountType is - /// StandardGRS or StandardRAGRS. + /// Gets or sets gets the timestamp of the most recent instance of a + /// failover to the secondary location. Only the most recent + /// timestamp is retained. This element is not returned if there has + /// never been a failover instance. Only available if the accountType + /// is StandardGRS or StandardRAGRS. /// [JsonProperty(PropertyName = "lastGeoFailoverTime")] public DateTime? LastGeoFailoverTime { get; set; } /// - /// Gets the location of the geo replicated secondary for the storage - /// account. Only available if the accountType is StandardGRS or - /// StandardRAGRS. + /// Gets or sets gets the location of the geo replicated secondary for + /// the storage account. Only available if the accountType is + /// StandardGRS or StandardRAGRS. /// [JsonProperty(PropertyName = "secondaryLocation")] public string SecondaryLocation { get; set; } /// - /// Gets the status indicating whether the secondary location of the - /// storage account is available or unavailable. Only available if - /// the accountType is StandardGRS or StandardRAGRS. Possible values - /// include: 'Available', 'Unavailable' + /// Gets or sets gets the status indicating whether the secondary + /// location of the storage account is available or unavailable. Only + /// available if the accountType is StandardGRS or StandardRAGRS. + /// Possible values include: 'Available', 'Unavailable' /// [JsonProperty(PropertyName = "statusOfSecondary")] public AccountStatus? StatusOfSecondary { get; set; } /// - /// Gets the creation date and time of the storage account in UTC. + /// Gets or sets gets the creation date and time of the storage + /// account in UTC. /// [JsonProperty(PropertyName = "creationTime")] public DateTime? CreationTime { get; set; } /// - /// Gets the user assigned custom domain assigned to this storage - /// account. + /// Gets or sets gets the user assigned custom domain assigned to this + /// storage account. /// [JsonProperty(PropertyName = "customDomain")] public CustomDomain CustomDomain { get; set; } /// - /// Gets the URLs that are used to perform a retrieval of a public - /// blob, queue or table object from the secondary location of the - /// storage account. Only available if the accountType is + /// Gets or sets gets the URLs that are used to perform a retrieval of + /// a public blob, queue or table object from the secondary location + /// of the storage account. Only available if the accountType is /// StandardRAGRS. /// [JsonProperty(PropertyName = "secondaryEndpoints")] diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesCreateParameters.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesCreateParameters.cs index bc0824cb9d80e..0c2a98e26f0b0 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesCreateParameters.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesCreateParameters.cs @@ -27,9 +27,9 @@ public StorageAccountPropertiesCreateParameters(AccountType accountType) } /// - /// Gets or sets the account type. Possible values include: - /// 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS', - /// 'Premium_LRS' + /// Gets or sets gets or sets the account type. Possible values + /// include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', + /// 'Standard_RAGRS', 'Premium_LRS' /// [JsonProperty(PropertyName = "accountType")] public AccountType AccountType { get; set; } diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesUpdateParameters.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesUpdateParameters.cs index 4808f3439b039..22ca07468f62a 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesUpdateParameters.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesUpdateParameters.cs @@ -28,9 +28,9 @@ public StorageAccountPropertiesUpdateParameters() { } } /// - /// Gets or sets the account type. Note that StandardZRS and - /// PremiumLRS accounts cannot be changed to other account types, and - /// other account types cannot be changed to StandardZRS or + /// Gets or sets gets or sets the account type. Note that StandardZRS + /// and PremiumLRS accounts cannot be changed to other account types, + /// and other account types cannot be changed to StandardZRS or /// PremiumLRS. Possible values include: 'Standard_LRS', /// 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' /// @@ -38,10 +38,10 @@ public StorageAccountPropertiesUpdateParameters() { } public AccountType? AccountType { get; set; } /// - /// User domain assigned to the storage account. Name is the CNAME - /// source. Only one custom domain is supported per storage account - /// at this time. To clear the existing custom domain, use an empty - /// string for the custom domain name property. + /// Gets or sets user domain assigned to the storage account. Name is + /// the CNAME source. Only one custom domain is supported per storage + /// account at this time. To clear the existing custom domain, use an + /// empty string for the custom domain name property. /// [JsonProperty(PropertyName = "customDomain")] public CustomDomain CustomDomain { get; set; } diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountUpdateParameters.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountUpdateParameters.cs index 768e0fe7fbe4c..3346aab6e2f10 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountUpdateParameters.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountUpdateParameters.cs @@ -31,7 +31,7 @@ public StorageAccountUpdateParameters() { } } /// - /// Resource tags + /// Gets or sets resource tags /// [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } diff --git a/Samples/azure-storage/Azure.CSharp/Models/Usage.cs b/Samples/azure-storage/Azure.CSharp/Models/Usage.cs index 338a900b30ddb..4499cc0487999 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/Usage.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/Usage.cs @@ -31,28 +31,29 @@ public Usage(UsageUnit unit, int currentValue, int limit, UsageName name) } /// - /// Gets the unit of measurement. Possible values include: 'Count', - /// 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' + /// Gets or sets gets the unit of measurement. Possible values + /// include: 'Count', 'Bytes', 'Seconds', 'Percent', + /// 'CountsPerSecond', 'BytesPerSecond' /// [JsonProperty(PropertyName = "unit")] public UsageUnit Unit { get; set; } /// - /// Gets the current count of the allocated resources in the - /// subscription. + /// Gets or sets gets the current count of the allocated resources in + /// the subscription. /// [JsonProperty(PropertyName = "currentValue")] public int CurrentValue { get; set; } /// - /// Gets the maximum count of the resources that can be allocated in - /// the subscription. + /// Gets or sets gets the maximum count of the resources that can be + /// allocated in the subscription. /// [JsonProperty(PropertyName = "limit")] public int Limit { get; set; } /// - /// Gets the name of the type of usage. + /// Gets or sets gets the name of the type of usage. /// [JsonProperty(PropertyName = "name")] public UsageName Name { get; set; } diff --git a/Samples/azure-storage/Azure.CSharp/Models/UsageName.cs b/Samples/azure-storage/Azure.CSharp/Models/UsageName.cs index 694332c58b21b..9acc8b5e30d4e 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/UsageName.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/UsageName.cs @@ -29,13 +29,13 @@ public UsageName() { } } /// - /// Gets a string describing the resource name. + /// Gets or sets gets a string describing the resource name. /// [JsonProperty(PropertyName = "value")] public string Value { get; set; } /// - /// Gets a localized string describing the resource name. + /// Gets or sets gets a localized string describing the resource name. /// [JsonProperty(PropertyName = "localizedValue")] public string LocalizedValue { get; set; } diff --git a/Samples/azure-storage/Azure.NodeJS/operations/storageAccounts.js b/Samples/azure-storage/Azure.NodeJS/operations/storageAccounts.js index 1cd198259f23d..c1b4897711661 100644 --- a/Samples/azure-storage/Azure.NodeJS/operations/storageAccounts.js +++ b/Samples/azure-storage/Azure.NodeJS/operations/storageAccounts.js @@ -248,7 +248,7 @@ StorageAccounts.prototype.create = function (resourceGroupName, accountName, par initialResult.request = httpRequest; initialResult.response = response; initialResult.body = response.body; - client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) { + client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) { if (err) return callback(err); // Create Result diff --git a/Samples/azure-storage/Azure.Python/setup.py b/Samples/azure-storage/Azure.Python/setup.py index b9fe5db7a8f35..3260175533423 100644 --- a/Samples/azure-storage/Azure.Python/setup.py +++ b/Samples/azure-storage/Azure.Python/setup.py @@ -15,7 +15,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["msrest>=0.2.0", "msrestazure>=0.2.1"] +REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"] setup( name=NAME, diff --git a/Samples/azure-storage/Azure.Ruby/azure_storage/storage_accounts.rb b/Samples/azure-storage/Azure.Ruby/azure_storage/storage_accounts.rb index d81d3ec1045df..771307fb0945d 100644 --- a/Samples/azure-storage/Azure.Ruby/azure_storage/storage_accounts.rb +++ b/Samples/azure-storage/Azure.Ruby/azure_storage/storage_accounts.rb @@ -89,7 +89,10 @@ def check_name_availability_async(account_name, custom_headers = nil) body: request_content, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options) + + request_url = @base_url || @client.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end @@ -161,7 +164,7 @@ def create(resource_group_name, account_name, parameters, custom_headers = nil) end # Waiting for response. - @client.get_put_operation_result(response, deserialize_method) + @client.get_long_running_operation_result(response, deserialize_method) end promise @@ -260,7 +263,10 @@ def begin_create_async(resource_group_name, account_name, parameters, custom_hea body: request_content, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :put, options) + + request_url = @base_url || @client.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end @@ -359,7 +365,10 @@ def delete_async(resource_group_name, account_name, custom_headers = nil) query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :delete, options) + + request_url = @base_url || @client.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end @@ -453,7 +462,10 @@ def get_properties_async(resource_group_name, account_name, custom_headers = nil query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options) + + request_url = @base_url || @client.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end @@ -605,7 +617,10 @@ def update_async(resource_group_name, account_name, parameters, custom_headers = body: request_content, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :patch, options) + + request_url = @base_url || @client.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :patch, options) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end @@ -696,7 +711,10 @@ def list_keys_async(resource_group_name, account_name, custom_headers = nil) query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options) + + request_url = @base_url || @client.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end @@ -782,7 +800,10 @@ def list_async(custom_headers = nil) query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options) + + request_url = @base_url || @client.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end @@ -878,7 +899,10 @@ def list_by_resource_group_async(resource_group_name, custom_headers = nil) query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options) + + request_url = @base_url || @client.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end @@ -994,7 +1018,10 @@ def regenerate_key_async(resource_group_name, account_name, regenerate_key, cust body: request_content, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options) + + request_url = @base_url || @client.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end diff --git a/Samples/azure-storage/Azure.Ruby/azure_storage/usage_operations.rb b/Samples/azure-storage/Azure.Ruby/azure_storage/usage_operations.rb index 54a4173ea263f..7ac968267e69c 100644 --- a/Samples/azure-storage/Azure.Ruby/azure_storage/usage_operations.rb +++ b/Samples/azure-storage/Azure.Ruby/azure_storage/usage_operations.rb @@ -70,7 +70,10 @@ def list_async(custom_headers = nil) query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options) + + request_url = @base_url || @client.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end diff --git a/Samples/petstore/CSharp/Models/Order.cs b/Samples/petstore/CSharp/Models/Order.cs index b0c9e5ab6d146..23e3155fa2f51 100644 --- a/Samples/petstore/CSharp/Models/Order.cs +++ b/Samples/petstore/CSharp/Models/Order.cs @@ -49,8 +49,8 @@ public Order() { } public DateTime? ShipDate { get; set; } /// - /// Order Status. Possible values include: 'placed', 'approved', - /// 'delivered' + /// Gets or sets order Status. Possible values include: 'placed', + /// 'approved', 'delivered' /// [JsonProperty(PropertyName = "status")] public string Status { get; set; } diff --git a/Samples/petstore/CSharp/Models/Pet.cs b/Samples/petstore/CSharp/Models/Pet.cs index c4e0286deb254..672c2aad64087 100644 --- a/Samples/petstore/CSharp/Models/Pet.cs +++ b/Samples/petstore/CSharp/Models/Pet.cs @@ -54,8 +54,8 @@ public Pet() { } public IList Tags { get; set; } /// - /// pet status in the store. Possible values include: 'available', - /// 'pending', 'sold' + /// Gets or sets pet status in the store. Possible values include: + /// 'available', 'pending', 'sold' /// [JsonProperty(PropertyName = "status")] public string Status { get; set; } diff --git a/Samples/petstore/CSharp/Models/User.cs b/Samples/petstore/CSharp/Models/User.cs index d30dd443ac789..acdc7b1824011 100644 --- a/Samples/petstore/CSharp/Models/User.cs +++ b/Samples/petstore/CSharp/Models/User.cs @@ -66,7 +66,7 @@ public User() { } public string Phone { get; set; } /// - /// User Status + /// Gets or sets user Status /// [JsonProperty(PropertyName = "userStatus")] public int? UserStatus { get; set; } diff --git a/Samples/petstore/Ruby/petstore/swagger_petstore.rb b/Samples/petstore/Ruby/petstore/swagger_petstore.rb index 9584898cad19a..d1ebfee575938 100644 --- a/Samples/petstore/Ruby/petstore/swagger_petstore.rb +++ b/Samples/petstore/Ruby/petstore/swagger_petstore.rb @@ -75,7 +75,10 @@ def add_pet_using_byte_array_async(body = nil, custom_headers = nil) body: request_content, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :post, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -148,7 +151,10 @@ def add_pet_async(body = nil, custom_headers = nil) body: request_content, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :post, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -221,7 +227,10 @@ def update_pet_async(body = nil, custom_headers = nil) body: request_content, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :put, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -294,10 +303,13 @@ def find_pets_by_status_async(status = nil, custom_headers = nil) path_template = '/pet/findByStatus' options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - query_params: {'status' => status}, + query_params: {'status' => status.join(',')}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :get, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -389,10 +401,13 @@ def find_pets_by_tags_async(tags = nil, custom_headers = nil) path_template = '/pet/findByTags' options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - query_params: {'tags' => tags}, + query_params: {'tags' => tags.join(',')}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :get, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -484,10 +499,13 @@ def find_pets_with_byte_array_async(pet_id, custom_headers = nil) path_template = '/pet/{petId}' options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'petId' => pet_id}, + path_params: {'petId' => pet_id.to_s}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :get, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -569,10 +587,13 @@ def get_pet_by_id_async(pet_id, custom_headers = nil) path_template = '/pet/{petId}' options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'petId' => pet_id}, + path_params: {'petId' => pet_id.to_s}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :get, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -656,7 +677,10 @@ def update_pet_with_form_async(pet_id, name = nil, status = nil, custom_headers path_params: {'petId' => pet_id}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :post, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -725,10 +749,13 @@ def delete_pet_async(pet_id, api_key = nil, custom_headers = nil) path_template = '/pet/{petId}' options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'petId' => pet_id}, + path_params: {'petId' => pet_id.to_s}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :delete, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -797,10 +824,13 @@ def upload_file_async(pet_id, additional_metadata = nil, file = nil, custom_head path_template = '/pet/{petId}/uploadImage' options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'petId' => pet_id}, + path_params: {'petId' => pet_id.to_s}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :post, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -868,7 +898,10 @@ def get_inventory_async(custom_headers = nil) middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :get, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -957,7 +990,10 @@ def place_order_async(body = nil, custom_headers = nil) body: request_content, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :post, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -1045,7 +1081,10 @@ def get_order_by_id_async(order_id, custom_headers = nil) path_params: {'orderId' => order_id}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :get, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -1132,7 +1171,10 @@ def delete_order_async(order_id, custom_headers = nil) path_params: {'orderId' => order_id}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :delete, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -1211,7 +1253,10 @@ def create_user_async(body = nil, custom_headers = nil) body: request_content, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :post, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -1291,7 +1336,10 @@ def create_users_with_array_input_async(body = nil, custom_headers = nil) body: request_content, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :post, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -1371,7 +1419,10 @@ def create_users_with_list_input_async(body = nil, custom_headers = nil) body: request_content, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :post, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -1440,7 +1491,10 @@ def login_user_async(username = nil, password = nil, custom_headers = nil) query_params: {'username' => username,'password' => password}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :get, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -1510,7 +1564,10 @@ def logout_user_async(custom_headers = nil) middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :get, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -1580,7 +1637,10 @@ def get_user_by_name_async(username, custom_headers = nil) path_params: {'username' => username}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :get, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -1676,7 +1736,10 @@ def update_user_async(username, body = nil, custom_headers = nil) body: request_content, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :put, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end @@ -1748,7 +1811,10 @@ def delete_user_async(username, custom_headers = nil) path_params: {'username' => username}, headers: request_headers.merge(custom_headers || {}) } - request = MsRest::HttpOperationRequest.new(@base_url || self.base_url, path_template, :delete, options) + + request_url = @base_url || self.base_url + + request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options) promise = request.run_promise do |req| self.credentials.sign_request(req) unless self.credentials.nil? end diff --git a/Tools/dockerfiles/Dockerfile b/Tools/dockerfiles/Dockerfile index dd223ea348932..a7b67824690b7 100644 --- a/Tools/dockerfiles/Dockerfile +++ b/Tools/dockerfiles/Dockerfile @@ -10,8 +10,8 @@ RUN apt-get -qqy update && \ RUN bash -c "\ mkdir /opt/autorest && \ cd /opt/autorest && \ - wget https://github.com/Azure/autorest/releases/download/AutoRest-0.15.0/autorest.0.15.0.zip && \ - unzip autorest.0.15.0.zip" + wget https://github.com/Azure/autorest/releases/download/AutoRest-0.16.0/autorest.0.16.0.zip && \ + unzip autorest.0.16.0.zip" ADD autorest /opt/autorest/autorest