From 1afef7d8988ae59b18bbaf84ddea04d9c90c71e8 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 29 Apr 2016 10:53:11 -0700 Subject: [PATCH 01/11] Added gets or sets property rule for model template --- .../MethodGroupInterfaceTemplate.cshtml | 2 +- .../CSharp/Templates/MethodTemplate.cshtml | 2 +- .../CSharp/Templates/ModelTemplate.cshtml | 18 +++++++--- .../ServiceClientBodyTemplate.cshtml | 34 +++++++++---------- .../ServiceClientInterfaceTemplate.cshtml | 8 ++--- 5 files changed, 37 insertions(+), 27 deletions(-) diff --git a/AutoRest/Generators/CSharp/CSharp/Templates/MethodGroupInterfaceTemplate.cshtml b/AutoRest/Generators/CSharp/CSharp/Templates/MethodGroupInterfaceTemplate.cshtml index b61d2bc7d1..d339221de6 100644 --- a/AutoRest/Generators/CSharp/CSharp/Templates/MethodGroupInterfaceTemplate.cshtml +++ b/AutoRest/Generators/CSharp/CSharp/Templates/MethodGroupInterfaceTemplate.cshtml @@ -39,7 +39,7 @@ namespace @Settings.Namespace @:/// } @:/// - @:/// The headers that will be added to request. + @:/// The headers that will be added to the request. @:/// @:/// @:/// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp/Templates/MethodTemplate.cshtml b/AutoRest/Generators/CSharp/CSharp/Templates/MethodTemplate.cshtml index df038116b2..dad70f2cc0 100644 --- a/AutoRest/Generators/CSharp/CSharp/Templates/MethodTemplate.cshtml +++ b/AutoRest/Generators/CSharp/CSharp/Templates/MethodTemplate.cshtml @@ -23,7 +23,7 @@ @:/// } /// -/// Headers that will be added to request. +/// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml b/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml index 942e67ef80..2f026c356e 100644 --- a/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml +++ b/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml @@ -59,7 +59,7 @@ namespace @(Settings.Namespace).Models { @:public @(Model.Name)() { } } - + @EmptyLine @@ -86,7 +86,7 @@ namespace @(Settings.Namespace).Models foreach (var property in Model.Properties.Where(p => !p.IsConstant)) { @:@(property.Name) = @(CodeNamer.CamelCase(property.Name)); - } + } @:} } @@ -108,8 +108,18 @@ namespace @(Settings.Namespace).Models @EmptyLine @foreach (var property in Model.PropertyTemplateModels.Where(p => !p.IsConstant)) { + string firstWord = property.Documentation.Split(' ').First(); + string documentation = string.Empty; + if (firstWord.Length <= 1) + { + documentation = char.ToLower(property.Documentation[0]) + property.Documentation.Substring(1); + } + else + { + documentation = firstWord.ToUpper() == firstWord ? property.Documentation : char.ToLower(property.Documentation[0]) + property.Documentation.Substring(1); + } @:/// - @:@WrapComment("/// ", property.Documentation.EscapeXmlComment()) + @:@WrapComment("/// ", property.IsReadOnly ? "Gets " + documentation.EscapeXmlComment() : "Gets or sets " + documentation.EscapeXmlComment()) @:/// if (property.Type.IsPrimaryType(KnownPrimaryType.Date)) { @@ -181,7 +191,7 @@ namespace @(Settings.Namespace).Models @:} @: } - foreach (var property in Model.Properties.Where(p => !p.IsConstant + foreach (var property in Model.Properties.Where(p => !p.IsConstant && (p.Constraints.Any() || !(p.Type is PrimaryType)))) { anythingToValidate = true; diff --git a/AutoRest/Generators/CSharp/CSharp/Templates/ServiceClientBodyTemplate.cshtml b/AutoRest/Generators/CSharp/CSharp/Templates/ServiceClientBodyTemplate.cshtml index 7561449c6c..eb01d2f335 100644 --- a/AutoRest/Generators/CSharp/CSharp/Templates/ServiceClientBodyTemplate.cshtml +++ b/AutoRest/Generators/CSharp/CSharp/Templates/ServiceClientBodyTemplate.cshtml @@ -21,17 +21,17 @@ else @EmptyLine /// -/// Gets or sets json serialization settings. +/// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } @EmptyLine /// -/// Gets or sets json deserialization settings. +/// Gets the JSON deserialization settings. /// -public JsonSerializerSettings DeserializationSettings { get; private set; } +public JsonSerializerSettings DeserializationSettings { get; private set; } @EmptyLine - + @foreach (var property in Model.Properties) { @:/// @@ -49,12 +49,12 @@ public JsonSerializerSettings DeserializationSettings { get; private set; } @:public virtual I@(operation.MethodGroupType) @(operation.MethodGroupName) { get; private set; } @EmptyLine } - + /// /// Initializes a new instance of the @Model.Name class. /// /// -/// Optional. The delegating handlers to add to the http client pipeline. +/// Optional. The delegating handlers to add to the HTTP pipeline. /// @(Model.ContainsCredentials ? "protected" : Model.ConstructorVisibility) @(Model.Name)(params DelegatingHandler[] handlers) : base(handlers) { @@ -66,10 +66,10 @@ public JsonSerializerSettings DeserializationSettings { get; private set; } /// Initializes a new instance of the @Model.Name class. /// /// -/// Optional. The http client handler used to handle http transport. +/// Optional. The HTTP client handler used to handle HTTP transport. /// /// -/// Optional. The delegating handlers to add to the http client pipeline. +/// Optional. The delegating handlers to add to the HTTP pipeline. /// @(Model.ContainsCredentials ? "protected" : Model.ConstructorVisibility) @(Model.Name)(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -86,7 +86,7 @@ public JsonSerializerSettings DeserializationSettings { get; private set; } @:/// Optional. The base URI of the service. @:/// @:/// -@:/// Optional. The delegating handlers to add to the http client pipeline. +@:/// Optional. The delegating handlers to add to the HTTP pipeline. @:/// @:@(Model.ContainsCredentials ? "protected" : Model.ConstructorVisibility) @(Model.Name)(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) @:{ @@ -106,10 +106,10 @@ public JsonSerializerSettings DeserializationSettings { get; private set; } @:/// Optional. The base URI of the service. @:/// @:/// -@:/// Optional. The http client handler used to handle http transport. +@:/// Optional. The HTTP client handler used to handle HTTP transport. @:/// @:/// -@:/// Optional. The delegating handlers to add to the http client pipeline. +@:/// Optional. The delegating handlers to add to the HTTP pipeline. @:/// @:@(Model.ContainsCredentials ? "protected" : Model.ConstructorVisibility) @(Model.Name)(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) @:{ @@ -136,7 +136,7 @@ foreach (var param in parameters) @:/// } @:/// -@:/// Optional. The delegating handlers to add to the http client pipeline. +@:/// Optional. The delegating handlers to add to the HTTP pipeline. @:/// @:@(Model.ConstructorVisibility) @(Model.Name)(@(Model.RequiredConstructorParameters), params DelegatingHandler[] handlers) : this(handlers) @:{ @@ -171,10 +171,10 @@ foreach (var param in parameters) @:/// } @:/// -@:/// Optional. The http client handler used to handle http transport. +@:/// Optional. The HTTP client handler used to handle HTTP transport. @:/// @:/// -@:/// Optional. The delegating handlers to add to the http client pipeline. +@:/// Optional. The delegating handlers to add to the HTTP pipeline. @:/// @:@(Model.ConstructorVisibility) @(Model.Name)(@(Model.RequiredConstructorParameters), HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) @:{ @@ -214,7 +214,7 @@ foreach (var param in parameters) @:/// } @:/// -@:/// Optional. The delegating handlers to add to the http client pipeline. +@:/// Optional. The delegating handlers to add to the HTTP pipeline. @:/// @:@(Model.ConstructorVisibility) @(Model.Name)(Uri baseUri, @(Model.RequiredConstructorParameters), params DelegatingHandler[] handlers) : this(handlers) @:{ @@ -260,10 +260,10 @@ foreach (var param in parameters) @:/// } @:/// -@:/// Optional. The http client handler used to handle http transport. +@:/// Optional. The HTTP client handler used to handle HTTP transport. @:/// @:/// -@:/// Optional. The delegating handlers to add to the http client pipeline. +@:/// Optional. The delegating handlers to add to the HTTP pipeline. @:/// @:@(Model.ConstructorVisibility) @(Model.Name)(Uri baseUri, @(Model.RequiredConstructorParameters), HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) @:{ diff --git a/AutoRest/Generators/CSharp/CSharp/Templates/ServiceClientInterfaceTemplate.cshtml b/AutoRest/Generators/CSharp/CSharp/Templates/ServiceClientInterfaceTemplate.cshtml index 00587d6edd..6ed797631b 100644 --- a/AutoRest/Generators/CSharp/CSharp/Templates/ServiceClientInterfaceTemplate.cshtml +++ b/AutoRest/Generators/CSharp/CSharp/Templates/ServiceClientInterfaceTemplate.cshtml @@ -29,17 +29,17 @@ namespace @Settings.Namespace { @:Uri BaseUri { get; set; } } - + @EmptyLine /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } @EmptyLine /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @EmptyLine @@ -82,7 +82,7 @@ namespace @Settings.Namespace @:/// } @:/// - @:/// The headers that will be added to request. + @:/// The headers that will be added to the request. @:/// @:/// @:/// The cancellation token. From 786f94e4911852089d0bfa35e03bfaf0adce3afc Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 29 Apr 2016 11:23:42 -0700 Subject: [PATCH 02/11] Added regenerated expected tests --- .../AutoRestDurationTestService.cs | 30 +-- .../AzureBodyDuration/DurationOperations.cs | 8 +- .../IAutoRestDurationTestService.cs | 4 +- .../AzureBodyDuration/IDurationOperations.cs | 8 +- .../AzureBodyDuration/Models/Error.cs | 46 ---- .../Models/ErrorException.cs | 99 --------- .../ArrayOperations.cs | 10 +- .../AzureCompositeModel.cs | 36 ++-- .../BasicOperations.cs | 12 +- .../DictionaryOperations.cs | 12 +- .../IArrayOperations.cs | 10 +- .../IAzureCompositeModel.cs | 10 +- .../IBasicOperations.cs | 12 +- .../IDictionaryOperations.cs | 12 +- .../IInheritanceOperations.cs | 4 +- .../IPolymorphicrecursiveOperations.cs | 4 +- .../IPolymorphismOperations.cs | 6 +- .../IPrimitiveOperations.cs | 44 ++-- .../IReadonlypropertyOperations.cs | 4 +- .../InheritanceOperations.cs | 4 +- .../Models/ArrayWrapper.cs | 40 ---- .../AzureCompositeModelClient/Models/Basic.cs | 53 ----- .../Models/BooleanWrapper.cs | 46 ---- .../Models/ByteWrapper.cs | 40 ---- .../Models/CMYKColors.cs | 25 --- .../AzureCompositeModelClient/Models/Cat.cs | 47 ----- .../Models/CatalogArray.cs | 2 +- .../Models/CatalogArrayOfDictionary.cs | 2 +- .../Models/CatalogDictionary.cs | 2 +- .../Models/CatalogDictionaryOfArray.cs | 2 +- .../Models/Cookiecuttershark.cs | 43 ---- .../Models/DateWrapper.cs | 48 ----- .../Models/DatetimeWrapper.cs | 46 ---- .../Models/Datetimerfc1123Wrapper.cs | 48 ----- .../Models/DictionaryWrapper.cs | 40 ---- .../AzureCompositeModelClient/Models/Dog.cs | 41 ---- .../Models/DoubleWrapper.cs | 46 ---- .../Models/DurationWrapper.cs | 40 ---- .../AzureCompositeModelClient/Models/Error.cs | 46 ---- .../Models/ErrorException.cs | 99 --------- .../AzureCompositeModelClient/Models/Fish.cs | 68 ------ .../Models/FloatWrapper.cs | 46 ---- .../Models/Goblinshark.cs | 49 ----- .../Models/IntWrapper.cs | 46 ---- .../Models/LongWrapper.cs | 46 ---- .../AzureCompositeModelClient/Models/Pet.cs | 46 ---- .../Models/Product.cs | 15 +- .../Models/ReadonlyObj.cs | 46 ---- .../Models/Salmon.cs | 55 ----- .../Models/Sawshark.cs | 49 ----- .../AzureCompositeModelClient/Models/Shark.cs | 55 ----- .../Models/Siamese.cs | 41 ---- .../Models/StringWrapper.cs | 52 ----- .../PolymorphicrecursiveOperations.cs | 4 +- .../PolymorphismOperations.cs | 6 +- .../PrimitiveOperations.cs | 44 ++-- .../ReadonlypropertyOperations.cs | 4 +- .../AutoRestParameterGroupingTestService.cs | 30 +-- .../IAutoRestParameterGroupingTestService.cs | 4 +- .../IParameterGroupingOperations.cs | 8 +- .../AzureParameterGrouping/Models/Error.cs | 46 ---- .../Models/ErrorException.cs | 99 --------- .../Models/FirstParameterGroup.cs | 50 ----- ...ingPostMultiParamGroupsSecondParamGroup.cs | 52 ----- ...ParameterGroupingPostOptionalParameters.cs | 52 ----- ...ParameterGroupingPostRequiredParameters.cs | 75 ------- .../ParameterGroupingOperations.cs | 8 +- .../AutoRestReportServiceForAzure.cs | 32 +-- .../IAutoRestReportServiceForAzure.cs | 6 +- .../AzureReport/Models/Error.cs | 46 ---- .../AzureReport/Models/ErrorException.cs | 99 --------- .../AutoRestResourceFlatteningTestService.cs | 42 ++-- .../IAutoRestResourceFlatteningTestService.cs | 16 +- .../AzureResource/Models/Error.cs | 46 ---- .../AzureResource/Models/ErrorException.cs | 99 --------- .../AzureResource/Models/FlattenedProduct.cs | 54 ----- .../AzureResource/Models/Resource.cs | 68 ------ .../Models/ResourceCollection.cs | 52 ----- .../ApiVersionDefaultOperations.cs | 8 +- .../ApiVersionLocalOperations.cs | 8 +- ...utoRestAzureSpecialParametersTestClient.cs | 30 +-- .../AzureSpecials/HeaderOperations.cs | 2 +- .../IApiVersionDefaultOperations.cs | 8 +- .../IApiVersionLocalOperations.cs | 8 +- ...utoRestAzureSpecialParametersTestClient.cs | 4 +- .../AzureSpecials/IHeaderOperations.cs | 2 +- .../AzureSpecials/IOdataOperations.cs | 2 +- .../ISkipUrlEncodingOperations.cs | 14 +- .../ISubscriptionInCredentialsOperations.cs | 10 +- .../ISubscriptionInMethodOperations.cs | 8 +- .../IXMsClientRequestIdOperations.cs | 4 +- .../AzureSpecials/Models/Error.cs | 52 ----- .../AzureSpecials/Models/ErrorException.cs | 99 --------- .../HeaderCustomNamedRequestIdHeaders.cs | 46 ---- .../AzureSpecials/Models/OdataFilter.cs | 46 ---- .../AzureSpecials/OdataOperations.cs | 2 +- .../SkipUrlEncodingOperations.cs | 14 +- .../SubscriptionInCredentialsOperations.cs | 10 +- .../SubscriptionInMethodOperations.cs | 8 +- .../XMsClientRequestIdOperations.cs | 4 +- .../AutoRestParameterizedHostTestClient.cs | 18 +- .../IAutoRestParameterizedHostTestClient.cs | 4 +- .../CustomBaseUri/IPathsOperations.cs | 2 +- .../CustomBaseUri/Models/Error.cs | 46 ---- .../CustomBaseUri/Models/ErrorException.cs | 99 --------- .../CustomBaseUri/PathsOperations.cs | 2 +- .../Head/AutoRestHeadTestService.cs | 30 +-- .../Head/HttpSuccessOperations.cs | 6 +- .../Head/IAutoRestHeadTestService.cs | 4 +- .../Head/IHttpSuccessOperations.cs | 6 +- .../AutoRestHeadExceptionTestService.cs | 30 +-- .../HeadExceptions/HeadExceptionOperations.cs | 6 +- .../IAutoRestHeadExceptionTestService.cs | 4 +- .../IHeadExceptionOperations.cs | 6 +- ...AutoRestLongRunningOperationTestService.cs | 30 +-- ...AutoRestLongRunningOperationTestService.cs | 4 +- .../Lro/ILRORetrysOperations.cs | 28 +-- .../AcceptanceTests/Lro/ILROSADsOperations.cs | 104 ++++----- .../Lro/ILROsCustomHeaderOperations.cs | 16 +- .../AcceptanceTests/Lro/ILROsOperations.cs | 144 ++++++------- .../Lro/LRORetrysOperations.cs | 14 +- .../AcceptanceTests/Lro/LROSADsOperations.cs | 52 ++--- .../Lro/LROsCustomHeaderOperations.cs | 8 +- .../AcceptanceTests/Lro/LROsOperations.cs | 72 +++---- .../LRORetrysDelete202Retry200Headers.cs | 55 ----- ...eleteAsyncRelativeRetrySucceededHeaders.cs | 63 ------ ...visioning202Accepted200SucceededHeaders.cs | 56 ----- .../Models/LRORetrysPost202Retry200Headers.cs | 55 ----- ...sPostAsyncRelativeRetrySucceededHeaders.cs | 63 ------ ...ysPutAsyncRelativeRetrySucceededHeaders.cs | 63 ------ .../LROSADsDelete202NonRetry400Headers.cs | 55 ----- ...OSADsDelete202RetryInvalidHeaderHeaders.cs | 54 ----- ...OSADsDeleteAsyncRelativeRetry400Headers.cs | 63 ------ ...eAsyncRelativeRetryInvalidHeaderHeaders.cs | 61 ------ ...cRelativeRetryInvalidJsonPollingHeaders.cs | 64 ------ ...DeleteAsyncRelativeRetryNoStatusHeaders.cs | 63 ------ .../Models/LROSADsDeleteNonRetry400Headers.cs | 55 ----- .../Models/LROSADsPost202NoLocationHeaders.cs | 54 ----- .../LROSADsPost202NonRetry400Headers.cs | 55 ----- ...LROSADsPost202RetryInvalidHeaderHeaders.cs | 54 ----- ...LROSADsPostAsyncRelativeRetry400Headers.cs | 63 ------ ...tAsyncRelativeRetryInvalidHeaderHeaders.cs | 61 ------ ...cRelativeRetryInvalidJsonPollingHeaders.cs | 63 ------ ...sPostAsyncRelativeRetryNoPayloadHeaders.cs | 63 ------ .../Models/LROSADsPostNonRetry400Headers.cs | 55 ----- .../LROSADsPutAsyncRelativeRetry400Headers.cs | 63 ------ ...tAsyncRelativeRetryInvalidHeaderHeaders.cs | 63 ------ ...cRelativeRetryInvalidJsonPollingHeaders.cs | 63 ------ ...ADsPutAsyncRelativeRetryNoStatusHeaders.cs | 63 ------ ...syncRelativeRetryNoStatusPayloadHeaders.cs | 63 ------ .../LROsCustomHeaderPost202Retry200Headers.cs | 55 ----- ...tomHeaderPostAsyncRetrySucceededHeaders.cs | 63 ------ ...stomHeaderPutAsyncRetrySucceededHeaders.cs | 63 ------ .../Models/LROsDelete202NoRetry204Headers.cs | 55 ----- .../Models/LROsDelete202Retry200Headers.cs | 55 ----- .../LROsDeleteAsyncNoHeaderInRetryHeaders.cs | 47 ----- .../LROsDeleteAsyncNoRetrySucceededHeaders.cs | 63 ------ .../LROsDeleteAsyncRetryFailedHeaders.cs | 63 ------ .../LROsDeleteAsyncRetrySucceededHeaders.cs | 63 ------ .../LROsDeleteAsyncRetrycanceledHeaders.cs | 63 ------ .../LROsDeleteNoHeaderInRetryHeaders.cs | 47 ----- ...visioning202Accepted200SucceededHeaders.cs | 56 ----- ...Provisioning202DeletingFailed200Headers.cs | 55 ----- ...ovisioning202Deletingcanceled200Headers.cs | 55 ----- .../Models/LROsPost202NoRetry204Headers.cs | 55 ----- .../Lro/Models/LROsPost202Retry200Headers.cs | 53 ----- .../LROsPostAsyncNoRetrySucceededHeaders.cs | 63 ------ .../Models/LROsPostAsyncRetryFailedHeaders.cs | 63 ------ .../LROsPostAsyncRetrySucceededHeaders.cs | 63 ------ .../LROsPostAsyncRetrycanceledHeaders.cs | 63 ------ .../LROsPutAsyncNoHeaderInRetryHeaders.cs | 45 ---- .../LROsPutAsyncNoRetrySucceededHeaders.cs | 55 ----- .../LROsPutAsyncNoRetrycanceledHeaders.cs | 55 ----- .../Models/LROsPutAsyncRetryFailedHeaders.cs | 63 ------ .../LROsPutAsyncRetrySucceededHeaders.cs | 63 ------ .../Models/LROsPutNoHeaderInRetryHeaders.cs | 47 ----- .../Lro/Models/OperationResult.cs | 49 ----- .../Lro/Models/OperationResultError.cs | 48 ----- .../AcceptanceTests/Lro/Models/Product.cs | 51 ----- .../AcceptanceTests/Lro/Models/Resource.cs | 68 ------ .../AcceptanceTests/Lro/Models/Sku.cs | 46 ---- .../AcceptanceTests/Lro/Models/SubProduct.cs | 51 ----- .../AcceptanceTests/Lro/Models/SubResource.cs | 41 ---- .../Paging/AutoRestPagingTestService.cs | 30 +-- .../Paging/IAutoRestPagingTestService.cs | 4 +- .../Paging/IPagingOperations.cs | 32 +-- .../Paging/Models/OperationResult.cs | 43 ---- .../AcceptanceTests/Paging/Models/Page.cs | 50 ----- .../Models/PagingGetMultiplePagesOptions.cs | 54 ----- ...ngGetMultiplePagesWithOffsetNextOptions.cs | 54 ----- ...PagingGetMultiplePagesWithOffsetOptions.cs | 68 ------ .../AcceptanceTests/Paging/Models/Product.cs | 40 ---- .../Paging/Models/ProductProperties.cs | 46 ---- .../Paging/PagingOperations.cs | 32 +-- .../GroupOperations.cs | 2 +- .../IGroupOperations.cs | 2 +- .../IMicrosoftAzureTestUrl.cs | 4 +- .../MicrosoftAzureTestUrl.cs | 30 +-- .../SubscriptionIdApiVersion/Models/Error.cs | 46 ---- .../Models/ErrorException.cs | 99 --------- .../Models/SampleResourceGroup.cs | 4 +- .../AcceptanceTests/BodyArray/Array.cs | 130 ++++++------ .../AutoRestSwaggerBATArrayService.cs | 18 +- .../AcceptanceTests/BodyArray/IArray.cs | 130 ++++++------ .../IAutoRestSwaggerBATArrayService.cs | 4 +- .../AcceptanceTests/BodyArray/Models/Error.cs | 45 ---- .../BodyArray/Models/ErrorException.cs | 99 --------- .../BodyArray/Models/Product.cs | 45 ---- .../BodyBoolean/AutoRestBoolTestService.cs | 18 +- .../AcceptanceTests/BodyBoolean/BoolModel.cs | 12 +- .../BodyBoolean/IAutoRestBoolTestService.cs | 4 +- .../AcceptanceTests/BodyBoolean/IBoolModel.cs | 12 +- .../BodyBoolean/Models/Error.cs | 45 ---- .../BodyBoolean/Models/ErrorException.cs | 99 --------- .../BodyByte/AutoRestSwaggerBATByteService.cs | 18 +- .../AcceptanceTests/BodyByte/ByteModel.cs | 10 +- .../IAutoRestSwaggerBATByteService.cs | 4 +- .../AcceptanceTests/BodyByte/IByteModel.cs | 10 +- .../AcceptanceTests/BodyByte/Models/Error.cs | 45 ---- .../BodyByte/Models/ErrorException.cs | 99 --------- .../AcceptanceTests/BodyComplex/Array.cs | 10 +- .../BodyComplex/AutoRestComplexTestService.cs | 18 +- .../BodyComplex/BasicOperations.cs | 12 +- .../AcceptanceTests/BodyComplex/Dictionary.cs | 12 +- .../AcceptanceTests/BodyComplex/IArray.cs | 10 +- .../IAutoRestComplexTestService.cs | 4 +- .../BodyComplex/IBasicOperations.cs | 12 +- .../BodyComplex/IDictionary.cs | 12 +- .../BodyComplex/IInheritance.cs | 4 +- .../BodyComplex/IPolymorphicrecursive.cs | 4 +- .../BodyComplex/IPolymorphism.cs | 6 +- .../AcceptanceTests/BodyComplex/IPrimitive.cs | 44 ++-- .../BodyComplex/IReadonlyproperty.cs | 4 +- .../BodyComplex/Inheritance.cs | 4 +- .../BodyComplex/Models/ArrayWrapper.cs | 39 ---- .../BodyComplex/Models/Basic.cs | 52 ----- .../BodyComplex/Models/BooleanWrapper.cs | 45 ---- .../BodyComplex/Models/ByteWrapper.cs | 39 ---- .../BodyComplex/Models/CMYKColors.cs | 25 --- .../AcceptanceTests/BodyComplex/Models/Cat.cs | 46 ---- .../BodyComplex/Models/Cookiecuttershark.cs | 42 ---- .../BodyComplex/Models/DateWrapper.cs | 47 ----- .../BodyComplex/Models/DatetimeWrapper.cs | 45 ---- .../Models/Datetimerfc1123Wrapper.cs | 47 ----- .../BodyComplex/Models/DictionaryWrapper.cs | 39 ---- .../AcceptanceTests/BodyComplex/Models/Dog.cs | 40 ---- .../BodyComplex/Models/DoubleWrapper.cs | 45 ---- .../BodyComplex/Models/DurationWrapper.cs | 39 ---- .../BodyComplex/Models/Error.cs | 45 ---- .../BodyComplex/Models/ErrorException.cs | 99 --------- .../BodyComplex/Models/Fish.cs | 67 ------ .../BodyComplex/Models/FloatWrapper.cs | 45 ---- .../BodyComplex/Models/Goblinshark.cs | 48 ----- .../BodyComplex/Models/IntWrapper.cs | 45 ---- .../BodyComplex/Models/LongWrapper.cs | 45 ---- .../AcceptanceTests/BodyComplex/Models/Pet.cs | 45 ---- .../BodyComplex/Models/ReadonlyObj.cs | 45 ---- .../BodyComplex/Models/Salmon.cs | 54 ----- .../BodyComplex/Models/Sawshark.cs | 48 ----- .../BodyComplex/Models/Shark.cs | 54 ----- .../BodyComplex/Models/Siamese.cs | 40 ---- .../BodyComplex/Models/StringWrapper.cs | 51 ----- .../BodyComplex/Polymorphicrecursive.cs | 4 +- .../BodyComplex/Polymorphism.cs | 6 +- .../AcceptanceTests/BodyComplex/Primitive.cs | 44 ++-- .../BodyComplex/Readonlyproperty.cs | 4 +- .../BodyDate/AutoRestDateTestService.cs | 18 +- .../Expected/AcceptanceTests/BodyDate/Date.cs | 16 +- .../BodyDate/IAutoRestDateTestService.cs | 4 +- .../AcceptanceTests/BodyDate/IDate.cs | 16 +- .../AcceptanceTests/BodyDate/Models/Error.cs | 45 ---- .../BodyDate/Models/ErrorException.cs | 99 --------- .../AutoRestDateTimeTestService.cs | 18 +- .../AcceptanceTests/BodyDateTime/Datetime.cs | 38 ++-- .../IAutoRestDateTimeTestService.cs | 4 +- .../AcceptanceTests/BodyDateTime/IDatetime.cs | 38 ++-- .../BodyDateTime/Models/Error.cs | 45 ---- .../BodyDateTime/Models/ErrorException.cs | 99 --------- .../AutoRestRFC1123DateTimeTestService.cs | 18 +- .../BodyDateTimeRfc1123/Datetimerfc1123.cs | 18 +- .../IAutoRestRFC1123DateTimeTestService.cs | 4 +- .../BodyDateTimeRfc1123/IDatetimerfc1123.cs | 18 +- .../BodyDateTimeRfc1123/Models/Error.cs | 45 ---- .../Models/ErrorException.cs | 99 --------- .../AutoRestSwaggerBATdictionaryService.cs | 18 +- .../BodyDictionary/Dictionary.cs | 130 ++++++------ .../IAutoRestSwaggerBATdictionaryService.cs | 4 +- .../BodyDictionary/IDictionary.cs | 130 ++++++------ .../BodyDictionary/Models/Error.cs | 45 ---- .../BodyDictionary/Models/ErrorException.cs | 99 --------- .../BodyDictionary/Models/Widget.cs | 45 ---- .../AutoRestDurationTestService.cs | 18 +- .../AcceptanceTests/BodyDuration/Duration.cs | 8 +- .../IAutoRestDurationTestService.cs | 4 +- .../AcceptanceTests/BodyDuration/IDuration.cs | 8 +- .../BodyDuration/Models/Error.cs | 45 ---- .../BodyDuration/Models/ErrorException.cs | 99 --------- .../BodyFile/AutoRestSwaggerBATFileService.cs | 18 +- .../AcceptanceTests/BodyFile/Files.cs | 6 +- .../IAutoRestSwaggerBATFileService.cs | 4 +- .../AcceptanceTests/BodyFile/IFiles.cs | 6 +- .../AcceptanceTests/BodyFile/Models/Error.cs | 45 ---- .../BodyFile/Models/ErrorException.cs | 99 --------- .../AutoRestSwaggerBATFormDataService.cs | 18 +- .../AcceptanceTests/BodyFormData/Formdata.cs | 4 +- .../IAutoRestSwaggerBATFormDataService.cs | 4 +- .../AcceptanceTests/BodyFormData/IFormdata.cs | 4 +- .../BodyFormData/Models/Error.cs | 45 ---- .../BodyFormData/Models/ErrorException.cs | 99 --------- .../BodyInteger/AutoRestIntegerTestService.cs | 18 +- .../IAutoRestIntegerTestService.cs | 4 +- .../AcceptanceTests/BodyInteger/IIntModel.cs | 28 +-- .../AcceptanceTests/BodyInteger/IntModel.cs | 28 +-- .../BodyInteger/Models/Error.cs | 45 ---- .../BodyInteger/Models/ErrorException.cs | 99 --------- .../BodyNumber/AutoRestNumberTestService.cs | 18 +- .../BodyNumber/IAutoRestNumberTestService.cs | 4 +- .../AcceptanceTests/BodyNumber/INumber.cs | 48 ++--- .../BodyNumber/Models/Error.cs | 45 ---- .../BodyNumber/Models/ErrorException.cs | 99 --------- .../AcceptanceTests/BodyNumber/Number.cs | 48 ++--- .../BodyString/AutoRestSwaggerBATService.cs | 18 +- .../AcceptanceTests/BodyString/EnumModel.cs | 4 +- .../BodyString/IAutoRestSwaggerBATService.cs | 4 +- .../AcceptanceTests/BodyString/IEnumModel.cs | 4 +- .../BodyString/IStringModel.cs | 26 +-- .../BodyString/Models/Colors.cs | 28 --- .../BodyString/Models/Error.cs | 45 ---- .../BodyString/Models/ErrorException.cs | 99 --------- .../AcceptanceTests/BodyString/StringModel.cs | 26 +-- .../CompositeBoolIntClient/BoolModel.cs | 12 +- .../CompositeBoolInt.cs | 18 +- .../CompositeBoolIntClient/IBoolModel.cs | 12 +- .../ICompositeBoolInt.cs | 4 +- .../CompositeBoolIntClient/IIntModel.cs | 28 +-- .../CompositeBoolIntClient/IntModel.cs | 28 +-- .../CompositeBoolIntClient/Models/Error.cs | 45 ---- .../Models/ErrorException.cs | 99 --------- .../AutoRestParameterizedHostTestClient.cs | 12 +- .../IAutoRestParameterizedHostTestClient.cs | 4 +- .../AcceptanceTests/CustomBaseUri/IPaths.cs | 2 +- .../CustomBaseUri/Models/Error.cs | 45 ---- .../CustomBaseUri/Models/ErrorException.cs | 99 --------- .../AcceptanceTests/CustomBaseUri/Paths.cs | 2 +- ...toRestParameterizedCustomHostTestClient.cs | 12 +- ...toRestParameterizedCustomHostTestClient.cs | 4 +- .../CustomBaseUriMoreOptions/IPaths.cs | 2 +- .../CustomBaseUriMoreOptions/Models/Error.cs | 45 ---- .../Models/ErrorException.cs | 99 --------- .../CustomBaseUriMoreOptions/Paths.cs | 2 +- .../Header/AutoRestSwaggerBATHeaderService.cs | 18 +- .../Expected/AcceptanceTests/Header/Header.cs | 58 ++--- .../IAutoRestSwaggerBATHeaderService.cs | 4 +- .../AcceptanceTests/Header/IHeader.cs | 58 ++--- .../AcceptanceTests/Header/Models/Error.cs | 45 ---- .../Header/Models/ErrorException.cs | 99 --------- .../Header/Models/GreyscaleColors.cs | 28 --- .../Models/HeaderResponseBoolHeaders.cs | 43 ---- .../Models/HeaderResponseByteHeaders.cs | 43 ---- .../Models/HeaderResponseDateHeaders.cs | 44 ---- .../Models/HeaderResponseDatetimeHeaders.cs | 46 ---- .../HeaderResponseDatetimeRfc1123Headers.cs | 47 ----- .../Models/HeaderResponseDoubleHeaders.cs | 45 ---- .../Models/HeaderResponseDurationHeaders.cs | 45 ---- .../Models/HeaderResponseEnumHeaders.cs | 43 ---- .../HeaderResponseExistingKeyHeaders.cs | 45 ---- .../Models/HeaderResponseFloatHeaders.cs | 43 ---- .../Models/HeaderResponseIntegerHeaders.cs | 45 ---- .../Models/HeaderResponseLongHeaders.cs | 43 ---- .../HeaderResponseProtectedKeyHeaders.cs | 45 ---- .../Models/HeaderResponseStringHeaders.cs | 46 ---- .../AutoRestHttpInfrastructureTestService.cs | 18 +- .../AcceptanceTests/Http/HttpClientFailure.cs | 46 ++-- .../AcceptanceTests/Http/HttpFailure.cs | 4 +- .../AcceptanceTests/Http/HttpRedirects.cs | 30 +-- .../AcceptanceTests/Http/HttpRetry.cs | 16 +- .../AcceptanceTests/Http/HttpServerFailure.cs | 8 +- .../AcceptanceTests/Http/HttpSuccess.cs | 36 ++-- .../IAutoRestHttpInfrastructureTestService.cs | 4 +- .../Http/IHttpClientFailure.cs | 46 ++-- .../AcceptanceTests/Http/IHttpFailure.cs | 4 +- .../AcceptanceTests/Http/IHttpRedirects.cs | 30 +-- .../AcceptanceTests/Http/IHttpRetry.cs | 16 +- .../Http/IHttpServerFailure.cs | 8 +- .../AcceptanceTests/Http/IHttpSuccess.cs | 36 ++-- .../Http/IMultipleResponses.cs | 68 +++--- .../Expected/AcceptanceTests/Http/Models/A.cs | 39 ---- .../Expected/AcceptanceTests/Http/Models/B.cs | 40 ---- .../Expected/AcceptanceTests/Http/Models/C.cs | 39 ---- .../Expected/AcceptanceTests/Http/Models/D.cs | 39 ---- .../AcceptanceTests/Http/Models/Error.cs | 45 ---- .../Http/Models/ErrorException.cs | 99 --------- .../Models/HttpRedirectsDelete307Headers.cs | 45 ---- .../Http/Models/HttpRedirectsGet300Headers.cs | 43 ---- .../Http/Models/HttpRedirectsGet301Headers.cs | 43 ---- .../Http/Models/HttpRedirectsGet302Headers.cs | 43 ---- .../Http/Models/HttpRedirectsGet307Headers.cs | 43 ---- .../Models/HttpRedirectsHead300Headers.cs | 45 ---- .../Models/HttpRedirectsHead301Headers.cs | 45 ---- .../Models/HttpRedirectsHead302Headers.cs | 45 ---- .../Models/HttpRedirectsHead307Headers.cs | 45 ---- .../Models/HttpRedirectsPatch302Headers.cs | 45 ---- .../Models/HttpRedirectsPatch307Headers.cs | 45 ---- .../Models/HttpRedirectsPost303Headers.cs | 45 ---- .../Models/HttpRedirectsPost307Headers.cs | 45 ---- .../Http/Models/HttpRedirectsPut301Headers.cs | 43 ---- .../Http/Models/HttpRedirectsPut307Headers.cs | 43 ---- .../Http/Models/MyException.cs | 99 --------- .../AcceptanceTests/Http/MultipleResponses.cs | 68 +++--- .../AutoRestResourceFlatteningTestService.cs | 36 ++-- .../IAutoRestResourceFlatteningTestService.cs | 22 +- .../ModelFlattening/Models/BaseProduct.cs | 62 ------ .../ModelFlattening/Models/Error.cs | 51 ----- .../ModelFlattening/Models/ErrorException.cs | 99 --------- .../Models/FlattenParameterGroup.cs | 99 --------- .../Models/FlattenedProduct.cs | 62 ------ .../ModelFlattening/Models/GenericUrl.cs | 43 ---- .../ModelFlattening/Models/Resource.cs | 67 ------ .../Models/ResourceCollection.cs | 51 ----- .../ModelFlattening/Models/SimpleProduct.cs | 83 -------- .../AutoRestParameterFlattening.cs | 18 +- .../ParameterFlattening/AvailabilitySets.cs | 2 +- .../IAutoRestParameterFlattening.cs | 4 +- .../ParameterFlattening/IAvailabilitySets.cs | 2 +- .../Models/AvailabilitySetUpdateParameters.cs | 51 ----- .../Report/AutoRestReportService.cs | 20 +- .../Report/IAutoRestReportService.cs | 6 +- .../AcceptanceTests/Report/Models/Error.cs | 45 ---- .../Report/Models/ErrorException.cs | 99 --------- .../AutoRestRequiredOptionalTestService.cs | 18 +- .../RequiredOptional/ExplicitModel.cs | 44 ++-- .../IAutoRestRequiredOptionalTestService.cs | 4 +- .../RequiredOptional/IExplicitModel.cs | 44 ++-- .../RequiredOptional/IImplicitModel.cs | 14 +- .../RequiredOptional/ImplicitModel.cs | 14 +- .../Models/ArrayOptionalWrapper.cs | 39 ---- .../RequiredOptional/Models/ArrayWrapper.cs | 49 ----- .../Models/ClassOptionalWrapper.cs | 49 ----- .../RequiredOptional/Models/ClassWrapper.cs | 53 ----- .../RequiredOptional/Models/Error.cs | 45 ---- .../RequiredOptional/Models/ErrorException.cs | 99 --------- .../Models/IntOptionalWrapper.cs | 39 ---- .../RequiredOptional/Models/IntWrapper.cs | 46 ---- .../RequiredOptional/Models/Product.cs | 52 ----- .../Models/StringOptionalWrapper.cs | 39 ---- .../RequiredOptional/Models/StringWrapper.cs | 49 ----- .../Url/AutoRestUrlTestService.cs | 18 +- .../Url/IAutoRestUrlTestService.cs | 4 +- .../AcceptanceTests/Url/IPathItems.cs | 8 +- .../Expected/AcceptanceTests/Url/IPaths.cs | 52 ++--- .../Expected/AcceptanceTests/Url/IQueries.cs | 68 +++--- .../AcceptanceTests/Url/Models/Error.cs | 45 ---- .../Url/Models/ErrorException.cs | 99 --------- .../AcceptanceTests/Url/Models/UriColor.cs | 28 --- .../Expected/AcceptanceTests/Url/PathItems.cs | 8 +- .../Expected/AcceptanceTests/Url/Paths.cs | 52 ++--- .../Expected/AcceptanceTests/Url/Queries.cs | 68 +++--- .../Validation/AutoRestValidationTest.cs | 26 +-- .../Validation/IAutoRestValidationTest.cs | 12 +- .../Validation/Models/ChildProduct.cs | 56 ----- .../Validation/Models/ConstantProduct.cs | 50 ----- .../Validation/Models/EnumConst.cs | 24 --- .../Validation/Models/Error.cs | 51 ----- .../Validation/Models/ErrorException.cs | 99 --------- .../Validation/Models/Product.cs | 141 ------------- .../ISwaggerDateTimeOffsetClient.cs | 12 +- .../Expected/DateTimeOffset/Models/Error.cs | 51 ----- .../DateTimeOffset/Models/ErrorException.cs | 99 --------- .../Expected/DateTimeOffset/Models/Product.cs | 58 ----- .../SwaggerDateTimeOffsetClient.cs | 26 +-- .../Internal.Ctors/IInternalClient.cs | 4 +- .../Expected/Internal.Ctors/IPets.cs | 2 +- .../Expected/Internal.Ctors/InternalClient.cs | 18 +- .../Expected/Internal.Ctors/Pets.cs | 2 +- .../IPolymorphicAnimalStore.cs | 6 +- .../Mirror.Polymorphic/Models/Animal.cs | 4 +- .../Mirror.Polymorphic/Models/BaseCat.cs | 2 +- .../Mirror.Polymorphic/Models/BurmeseCat.cs | 2 +- .../Mirror.Polymorphic/Models/Doggy.cs | 2 +- .../Mirror.Polymorphic/Models/Error2.cs | 51 ----- .../Models/Error2Exception.cs | 99 --------- .../Mirror.Polymorphic/Models/HimalayanCat.cs | 2 +- .../Mirror.Polymorphic/Models/Horsey.cs | 2 +- .../Mirror.Polymorphic/Models/PersianCat.cs | 2 +- .../Mirror.Polymorphic/Models/SiameseCat.cs | 2 +- .../PolymorphicAnimalStore.cs | 20 +- .../ISwaggerDataTypesClient.cs | 12 +- .../Mirror.Primitives/Models/Error.cs | 51 ----- .../Models/ErrorException.cs | 99 --------- .../Mirror.Primitives/Models/Product.cs | 198 ------------------ .../SwaggerDataTypesClient.cs | 26 +-- .../IRecursiveTypesAPI.cs | 6 +- .../Mirror.RecursiveTypes/Models/Error.cs | 51 ----- .../Models/ErrorException.cs | 99 --------- .../Mirror.RecursiveTypes/Models/Product.cs | 54 ----- .../RecursiveTypesAPI.cs | 20 +- .../ISequenceRequestResponseTest.cs | 10 +- .../Mirror.Sequences/Models/ErrorModel.cs | 55 ----- .../Models/ErrorModelException.cs | 99 --------- .../Expected/Mirror.Sequences/Models/Pet.cs | 77 ------- .../Mirror.Sequences/Models/PetStyle.cs | 49 ----- .../SequenceRequestResponseTest.cs | 24 +-- .../Expected/PetstoreV2/ISwaggerPetstoreV2.cs | 42 ++-- .../Expected/PetstoreV2/Models/ApiResponse.cs | 51 ----- .../Expected/PetstoreV2/Models/Category.cs | 45 ---- .../PetstoreV2/Models/LoginUserHeaders.cs | 50 ----- .../Expected/PetstoreV2/Models/Order.cs | 71 ------- .../Expected/PetstoreV2/Models/Pet.cs | 103 --------- .../Expected/PetstoreV2/Models/Tag.cs | 45 ---- .../Expected/PetstoreV2/Models/User.cs | 82 -------- .../Expected/PetstoreV2/SwaggerPetstoreV2.cs | 68 +++--- .../IStorageAccountsOperations.cs | 20 +- .../Azure.CSharp/IStorageManagementClient.cs | 4 +- .../Azure.CSharp/IUsageOperations.cs | 2 +- .../Azure.CSharp/StorageAccountsOperations.cs | 18 +- .../Azure.CSharp/StorageManagementClient.cs | 30 +-- .../Azure.CSharp/UsageOperations.cs | 2 +- Samples/petstore/CSharp/ISwaggerPetstore.cs | 48 ++--- Samples/petstore/CSharp/SwaggerPetstore.cs | 62 +++--- 519 files changed, 2287 insertions(+), 18104 deletions(-) delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ArrayWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Basic.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/BooleanWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ByteWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CMYKColors.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cat.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cookiecuttershark.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DateWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DatetimeWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Datetimerfc1123Wrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DictionaryWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Dog.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DoubleWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DurationWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Fish.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/FloatWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Goblinshark.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/IntWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/LongWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Pet.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ReadonlyObj.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Salmon.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Sawshark.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Shark.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Siamese.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/StringWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/FirstParameterGroup.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostOptionalParameters.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostRequiredParameters.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/FlattenedProduct.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Resource.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ResourceCollection.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/OdataFilter.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDelete202Retry200Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteAsyncRelativeRetrySucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteProvisioning202Accepted200SucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPost202Retry200Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPostAsyncRelativeRetrySucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPutAsyncRelativeRetrySucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202NonRetry400Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202RetryInvalidHeaderHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetry400Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteNonRetry400Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NoLocationHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NonRetry400Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202RetryInvalidHeaderHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetry400Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryNoPayloadHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostNonRetry400Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetry400Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPost202Retry200Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPostAsyncRetrySucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPutAsyncRetrySucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202NoRetry204Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202Retry200Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoHeaderInRetryHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoRetrySucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetryFailedHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrySucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrycanceledHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteNoHeaderInRetryHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Accepted200SucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202DeletingFailed200Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Deletingcanceled200Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202NoRetry204Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202Retry200Headers.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncNoRetrySucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetryFailedHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrySucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrycanceledHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoHeaderInRetryHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrySucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrycanceledHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetryFailedHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetrySucceededHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutNoHeaderInRetryHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResult.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResultError.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Product.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Resource.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Sku.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubProduct.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubResource.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/OperationResult.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Page.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesOptions.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetNextOptions.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetOptions.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Product.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/ProductProperties.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Product.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ArrayWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Basic.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/BooleanWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ByteWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/CMYKColors.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cat.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cookiecuttershark.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DateWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DatetimeWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Datetimerfc1123Wrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DictionaryWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Dog.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DoubleWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DurationWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Fish.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/FloatWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/IntWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/LongWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Pet.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ReadonlyObj.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Salmon.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Sawshark.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Shark.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Siamese.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/StringWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Colors.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/GreyscaleColors.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseBoolHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseByteHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDateHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeRfc1123Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDoubleHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDurationHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseEnumHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseExistingKeyHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseFloatHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseIntegerHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseLongHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseProtectedKeyHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseStringHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/A.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/B.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/C.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/D.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsDelete307Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet300Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet301Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet302Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet307Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead300Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead301Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead302Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead307Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch302Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch307Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost303Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost307Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut301Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut307Headers.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/MyException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/BaseProduct.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenParameterGroup.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenedProduct.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/GenericUrl.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Resource.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ResourceCollection.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/SimpleProduct.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/Models/AvailabilitySetUpdateParameters.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayOptionalWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassOptionalWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntOptionalWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Product.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringOptionalWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringWrapper.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/UriColor.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ChildProduct.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ConstantProduct.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/EnumConst.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Product.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Product.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2Exception.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Product.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/ErrorException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Product.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModel.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModelException.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/Pet.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/PetStyle.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/ApiResponse.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Category.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/LoginUserHeaders.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Order.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Pet.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Tag.cs delete mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/User.cs diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/AutoRestDurationTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/AutoRestDurationTestService.cs index 42e4255ad0..c005b96d78 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/AutoRestDurationTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/AutoRestDurationTestService.cs @@ -36,14 +36,14 @@ public partial class AutoRestDurationTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -76,7 +76,7 @@ public partial class AutoRestDurationTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestDurationTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -87,10 +87,10 @@ protected AutoRestDurationTestService(params DelegatingHandler[] handlers) : bas /// Initializes a new instance of the AutoRestDurationTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestDurationTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -104,7 +104,7 @@ protected AutoRestDurationTestService(HttpClientHandler rootHandler, params Dele /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestDurationTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -122,10 +122,10 @@ protected AutoRestDurationTestService(Uri baseUri, params DelegatingHandler[] ha /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestDurationTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -143,7 +143,7 @@ protected AutoRestDurationTestService(Uri baseUri, HttpClientHandler rootHandler /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDurationTestService(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -165,10 +165,10 @@ public AutoRestDurationTestService(ServiceClientCredentials credentials, params /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDurationTestService(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -193,7 +193,7 @@ public AutoRestDurationTestService(ServiceClientCredentials credentials, HttpCli /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDurationTestService(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -223,10 +223,10 @@ public AutoRestDurationTestService(Uri baseUri, ServiceClientCredentials credent /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDurationTestService(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { 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 1bb297f05c..04ff6daead 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 @@ -53,7 +53,7 @@ internal DurationOperations(AutoRestDurationTestService client) /// Get null duration value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -201,7 +201,7 @@ internal DurationOperations(AutoRestDurationTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -336,7 +336,7 @@ internal DurationOperations(AutoRestDurationTestService client) /// Get a positive duration value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -482,7 +482,7 @@ internal DurationOperations(AutoRestDurationTestService client) /// Get an invalid duration value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/IAutoRestDurationTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/IAutoRestDurationTestService.cs index dbc6d62c7a..812bfbd030 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/IAutoRestDurationTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/IAutoRestDurationTestService.cs @@ -29,12 +29,12 @@ public partial interface IAutoRestDurationTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/IDurationOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/IDurationOperations.cs index 97a076728b..124dbbb5d2 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/IDurationOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/IDurationOperations.cs @@ -26,7 +26,7 @@ public partial interface IDurationOperations /// Get null duration value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -38,7 +38,7 @@ public partial interface IDurationOperations /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -48,7 +48,7 @@ public partial interface IDurationOperations /// Get a positive duration value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -58,7 +58,7 @@ public partial interface IDurationOperations /// Get an invalid duration value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/Error.cs deleted file mode 100644 index 08f9bb52b0..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/Error.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureBodyDuration.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/ErrorException.cs deleted file mode 100644 index 9842d37c70..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureBodyDuration.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ArrayOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ArrayOperations.cs index 084e2252f5..72ac67fe0e 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ArrayOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ArrayOperations.cs @@ -53,7 +53,7 @@ internal ArrayOperations(AzureCompositeModel client) /// Get complex types with array property /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -201,7 +201,7 @@ internal ArrayOperations(AzureCompositeModel client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -341,7 +341,7 @@ internal ArrayOperations(AzureCompositeModel client) /// Get complex types with array property which is empty /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -489,7 +489,7 @@ internal ArrayOperations(AzureCompositeModel client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -630,7 +630,7 @@ internal ArrayOperations(AzureCompositeModel client) /// response payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/AzureCompositeModel.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/AzureCompositeModel.cs index 4a1b72d67e..dd1918b7d4 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/AzureCompositeModel.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/AzureCompositeModel.cs @@ -37,14 +37,14 @@ public partial class AzureCompositeModel : ServiceClient, I public Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -117,7 +117,7 @@ public partial class AzureCompositeModel : ServiceClient, I /// Initializes a new instance of the AzureCompositeModel class. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AzureCompositeModel(params DelegatingHandler[] handlers) : base(handlers) { @@ -128,10 +128,10 @@ protected AzureCompositeModel(params DelegatingHandler[] handlers) : base(handle /// Initializes a new instance of the AzureCompositeModel class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AzureCompositeModel(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -145,7 +145,7 @@ protected AzureCompositeModel(HttpClientHandler rootHandler, params DelegatingHa /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AzureCompositeModel(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -163,10 +163,10 @@ protected AzureCompositeModel(Uri baseUri, params DelegatingHandler[] handlers) /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AzureCompositeModel(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -184,7 +184,7 @@ protected AzureCompositeModel(Uri baseUri, HttpClientHandler rootHandler, params /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AzureCompositeModel(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -206,10 +206,10 @@ public AzureCompositeModel(ServiceClientCredentials credentials, params Delegati /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AzureCompositeModel(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -234,7 +234,7 @@ public AzureCompositeModel(ServiceClientCredentials credentials, HttpClientHandl /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AzureCompositeModel(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -264,10 +264,10 @@ public AzureCompositeModel(Uri baseUri, ServiceClientCredentials credentials, pa /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AzureCompositeModel(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -345,7 +345,7 @@ private void Initialize() /// Resource Group ID. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -514,7 +514,7 @@ private void Initialize() /// Dictionary of Array of product /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -700,7 +700,7 @@ private void Initialize() /// Array of dictionary of products /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/BasicOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/BasicOperations.cs index 48f31b747d..3aab7ed2d8 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/BasicOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/BasicOperations.cs @@ -53,7 +53,7 @@ internal BasicOperations(AzureCompositeModel client) /// Get complex type {id: 2, name: 'abc', color: 'YELLOW'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -202,7 +202,7 @@ internal BasicOperations(AzureCompositeModel client) /// Please put {id: 2, name: 'abc', color: 'Magenta'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -347,7 +347,7 @@ internal BasicOperations(AzureCompositeModel client) /// Get a basic complex type that is invalid for the local strong type /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -493,7 +493,7 @@ internal BasicOperations(AzureCompositeModel client) /// Get a basic complex type that is empty /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -639,7 +639,7 @@ internal BasicOperations(AzureCompositeModel client) /// Get a basic complex type whose properties are null /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -786,7 +786,7 @@ internal BasicOperations(AzureCompositeModel client) /// payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/DictionaryOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/DictionaryOperations.cs index 00abbb1a9f..b29c95866d 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/DictionaryOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/DictionaryOperations.cs @@ -53,7 +53,7 @@ internal DictionaryOperations(AzureCompositeModel client) /// Get complex types with dictionary property /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -201,7 +201,7 @@ internal DictionaryOperations(AzureCompositeModel client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -341,7 +341,7 @@ internal DictionaryOperations(AzureCompositeModel client) /// Get complex types with dictionary property which is empty /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -489,7 +489,7 @@ internal DictionaryOperations(AzureCompositeModel client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -629,7 +629,7 @@ internal DictionaryOperations(AzureCompositeModel client) /// Get complex types with dictionary property which is null /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -776,7 +776,7 @@ internal DictionaryOperations(AzureCompositeModel client) /// response payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IArrayOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IArrayOperations.cs index 44570ec213..f48b65a30f 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IArrayOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IArrayOperations.cs @@ -26,7 +26,7 @@ public partial interface IArrayOperations /// Get complex types with array property /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -38,7 +38,7 @@ public partial interface IArrayOperations /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -48,7 +48,7 @@ public partial interface IArrayOperations /// Get complex types with array property which is empty /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -60,7 +60,7 @@ public partial interface IArrayOperations /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -71,7 +71,7 @@ public partial interface IArrayOperations /// a response payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IAzureCompositeModel.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IAzureCompositeModel.cs index 71f8a027aa..b4d5cc260c 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IAzureCompositeModel.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IAzureCompositeModel.cs @@ -30,12 +30,12 @@ public partial interface IAzureCompositeModel : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -118,7 +118,7 @@ public partial interface IAzureCompositeModel : IDisposable /// Resource Group ID. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -139,7 +139,7 @@ public partial interface IAzureCompositeModel : IDisposable /// Dictionary of Array of product /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -160,7 +160,7 @@ public partial interface IAzureCompositeModel : IDisposable /// Array of dictionary of products /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IBasicOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IBasicOperations.cs index e49257de6b..f27d96d57c 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IBasicOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IBasicOperations.cs @@ -26,7 +26,7 @@ public partial interface IBasicOperations /// Get complex type {id: 2, name: 'abc', color: 'YELLOW'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -39,7 +39,7 @@ public partial interface IBasicOperations /// Please put {id: 2, name: 'abc', color: 'Magenta'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -49,7 +49,7 @@ public partial interface IBasicOperations /// Get a basic complex type that is invalid for the local strong type /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -59,7 +59,7 @@ public partial interface IBasicOperations /// Get a basic complex type that is empty /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -69,7 +69,7 @@ public partial interface IBasicOperations /// Get a basic complex type whose properties are null /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -80,7 +80,7 @@ public partial interface IBasicOperations /// response payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IDictionaryOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IDictionaryOperations.cs index 48bf0d568f..f2d29aa1fd 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IDictionaryOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IDictionaryOperations.cs @@ -26,7 +26,7 @@ public partial interface IDictionaryOperations /// Get complex types with dictionary property /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -38,7 +38,7 @@ public partial interface IDictionaryOperations /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -48,7 +48,7 @@ public partial interface IDictionaryOperations /// Get complex types with dictionary property which is empty /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -60,7 +60,7 @@ public partial interface IDictionaryOperations /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -70,7 +70,7 @@ public partial interface IDictionaryOperations /// Get complex types with dictionary property which is null /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -81,7 +81,7 @@ public partial interface IDictionaryOperations /// provide a response payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IInheritanceOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IInheritanceOperations.cs index ca331c53ee..684ee4c26a 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IInheritanceOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IInheritanceOperations.cs @@ -26,7 +26,7 @@ public partial interface IInheritanceOperations /// Get complex types that extend others /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -42,7 +42,7 @@ public partial interface IInheritanceOperations /// id=-1 and food="french fries". /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphicrecursiveOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphicrecursiveOperations.cs index 67c94bdd14..58e2a381f2 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphicrecursiveOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphicrecursiveOperations.cs @@ -27,7 +27,7 @@ public partial interface IPolymorphicrecursiveOperations /// references /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -93,7 +93,7 @@ public partial interface IPolymorphicrecursiveOperations /// } /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphismOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphismOperations.cs index 2371a49f71..8ecb549d3b 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphismOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphismOperations.cs @@ -26,7 +26,7 @@ public partial interface IPolymorphismOperations /// Get complex types that are polymorphic /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -72,7 +72,7 @@ public partial interface IPolymorphismOperations /// }; /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -113,7 +113,7 @@ public partial interface IPolymorphismOperations /// } /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPrimitiveOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPrimitiveOperations.cs index f9c86a8be3..248cd0527d 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPrimitiveOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPrimitiveOperations.cs @@ -26,7 +26,7 @@ public partial interface IPrimitiveOperations /// Get complex types with integer properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -39,7 +39,7 @@ public partial interface IPrimitiveOperations /// Please put -1 and 2 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -49,7 +49,7 @@ public partial interface IPrimitiveOperations /// Get complex types with long properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -62,7 +62,7 @@ public partial interface IPrimitiveOperations /// Please put 1099511627775 and -999511627788 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -72,7 +72,7 @@ public partial interface IPrimitiveOperations /// Get complex types with float properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -85,7 +85,7 @@ public partial interface IPrimitiveOperations /// Please put 1.05 and -0.003 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -95,7 +95,7 @@ public partial interface IPrimitiveOperations /// Get complex types with double properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -109,7 +109,7 @@ public partial interface IPrimitiveOperations /// -0.000000000000000000000000000000000000000000000000000000005 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -119,7 +119,7 @@ public partial interface IPrimitiveOperations /// Get complex types with bool properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -132,7 +132,7 @@ public partial interface IPrimitiveOperations /// Please put true and false /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -142,7 +142,7 @@ public partial interface IPrimitiveOperations /// Get complex types with string properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -155,7 +155,7 @@ public partial interface IPrimitiveOperations /// Please put 'goodrequest', '', and null /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -165,7 +165,7 @@ public partial interface IPrimitiveOperations /// Get complex types with date properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -178,7 +178,7 @@ public partial interface IPrimitiveOperations /// Please put '0001-01-01' and '2016-02-29' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -188,7 +188,7 @@ public partial interface IPrimitiveOperations /// Get complex types with datetime properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -202,7 +202,7 @@ public partial interface IPrimitiveOperations /// '2015-05-18T11:38:00-08:00' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -212,7 +212,7 @@ public partial interface IPrimitiveOperations /// Get complex types with datetimeRfc1123 properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -226,7 +226,7 @@ public partial interface IPrimitiveOperations /// 11:38:00 GMT' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -236,7 +236,7 @@ public partial interface IPrimitiveOperations /// Get complex types with duration properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -248,7 +248,7 @@ public partial interface IPrimitiveOperations /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -258,7 +258,7 @@ public partial interface IPrimitiveOperations /// Get complex types with byte properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -270,7 +270,7 @@ public partial interface IPrimitiveOperations /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IReadonlypropertyOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IReadonlypropertyOperations.cs index 3a1b9826f2..05ba768c5d 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IReadonlypropertyOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IReadonlypropertyOperations.cs @@ -26,7 +26,7 @@ public partial interface IReadonlypropertyOperations /// Get complex types that have readonly properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -38,7 +38,7 @@ public partial interface IReadonlypropertyOperations /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/InheritanceOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/InheritanceOperations.cs index 6fc88683f2..13d736f974 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/InheritanceOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/InheritanceOperations.cs @@ -53,7 +53,7 @@ internal InheritanceOperations(AzureCompositeModel client) /// Get complex types that extend others /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -205,7 +205,7 @@ internal InheritanceOperations(AzureCompositeModel client) /// food="french fries". /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ArrayWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ArrayWrapper.cs deleted file mode 100644 index aace336a55..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ArrayWrapper.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class ArrayWrapper - { - /// - /// Initializes a new instance of the ArrayWrapper class. - /// - public ArrayWrapper() { } - - /// - /// Initializes a new instance of the ArrayWrapper class. - /// - public ArrayWrapper(IList array = default(IList)) - { - Array = array; - } - - /// - /// - [JsonProperty(PropertyName = "array")] - public IList Array { get; set; } - - } -} 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 deleted file mode 100644 index e30aad4613..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Basic.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Basic - { - /// - /// Initializes a new instance of the Basic class. - /// - public Basic() { } - - /// - /// Initializes a new instance of the Basic class. - /// - public Basic(int? id = default(int?), string name = default(string), string color = default(string)) - { - Id = id; - Name = name; - Color = color; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// 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/BooleanWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/BooleanWrapper.cs deleted file mode 100644 index 707ddf3d4d..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/BooleanWrapper.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class BooleanWrapper - { - /// - /// Initializes a new instance of the BooleanWrapper class. - /// - public BooleanWrapper() { } - - /// - /// Initializes a new instance of the BooleanWrapper class. - /// - public BooleanWrapper(bool? fieldTrue = default(bool?), bool? fieldFalse = default(bool?)) - { - FieldTrue = fieldTrue; - FieldFalse = fieldFalse; - } - - /// - /// - [JsonProperty(PropertyName = "field_true")] - public bool? FieldTrue { get; set; } - - /// - /// - [JsonProperty(PropertyName = "field_false")] - public bool? FieldFalse { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ByteWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ByteWrapper.cs deleted file mode 100644 index 6e0ec07831..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ByteWrapper.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class ByteWrapper - { - /// - /// Initializes a new instance of the ByteWrapper class. - /// - public ByteWrapper() { } - - /// - /// Initializes a new instance of the ByteWrapper class. - /// - public ByteWrapper(byte[] field = default(byte[])) - { - Field = field; - } - - /// - /// - [JsonProperty(PropertyName = "field")] - public byte[] Field { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CMYKColors.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CMYKColors.cs deleted file mode 100644 index 8bb13c44f7..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CMYKColors.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime.Serialization; - - /// - /// Defines values for CMYKColors. - /// - public static class CMYKColors - { - public const string Cyan = "cyan"; - public const string Magenta = "Magenta"; - public const string YELLOW = "YELLOW"; - public const string BlacK = "blacK"; - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cat.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cat.cs deleted file mode 100644 index 3418697257..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cat.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Cat : Pet - { - /// - /// Initializes a new instance of the Cat class. - /// - public Cat() { } - - /// - /// Initializes a new instance of the Cat class. - /// - public Cat(int? id = default(int?), string name = default(string), string color = default(string), IList hates = default(IList)) - : base(id, name) - { - Color = color; - Hates = hates; - } - - /// - /// - [JsonProperty(PropertyName = "color")] - public string Color { get; set; } - - /// - /// - [JsonProperty(PropertyName = "hates")] - public IList Hates { 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 66c81ff69d..7d380e403b 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 893eaa5620..5f64fd7d8b 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 fc5886801b..f3b008a02d 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 08422bdccb..1ce6d5bda5 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/Cookiecuttershark.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cookiecuttershark.cs deleted file mode 100644 index f3d6a1e986..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cookiecuttershark.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - [JsonObject("cookiecuttershark")] - public partial class Cookiecuttershark : Shark - { - /// - /// Initializes a new instance of the Cookiecuttershark class. - /// - public Cookiecuttershark() { } - - /// - /// Initializes a new instance of the Cookiecuttershark class. - /// - public Cookiecuttershark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?)) - : base(length, birthday, species, siblings, age) - { - } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DateWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DateWrapper.cs deleted file mode 100644 index 740332c80a..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DateWrapper.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class DateWrapper - { - /// - /// Initializes a new instance of the DateWrapper class. - /// - public DateWrapper() { } - - /// - /// Initializes a new instance of the DateWrapper class. - /// - public DateWrapper(DateTime? field = default(DateTime?), DateTime? leap = default(DateTime?)) - { - Field = field; - Leap = leap; - } - - /// - /// - [JsonConverter(typeof(DateJsonConverter))] - [JsonProperty(PropertyName = "field")] - public DateTime? Field { get; set; } - - /// - /// - [JsonConverter(typeof(DateJsonConverter))] - [JsonProperty(PropertyName = "leap")] - public DateTime? Leap { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DatetimeWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DatetimeWrapper.cs deleted file mode 100644 index a3b3cb8dc8..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DatetimeWrapper.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class DatetimeWrapper - { - /// - /// Initializes a new instance of the DatetimeWrapper class. - /// - public DatetimeWrapper() { } - - /// - /// Initializes a new instance of the DatetimeWrapper class. - /// - public DatetimeWrapper(DateTime? field = default(DateTime?), DateTime? now = default(DateTime?)) - { - Field = field; - Now = now; - } - - /// - /// - [JsonProperty(PropertyName = "field")] - public DateTime? Field { get; set; } - - /// - /// - [JsonProperty(PropertyName = "now")] - public DateTime? Now { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Datetimerfc1123Wrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Datetimerfc1123Wrapper.cs deleted file mode 100644 index b475f9c1e0..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Datetimerfc1123Wrapper.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Datetimerfc1123Wrapper - { - /// - /// Initializes a new instance of the Datetimerfc1123Wrapper class. - /// - public Datetimerfc1123Wrapper() { } - - /// - /// Initializes a new instance of the Datetimerfc1123Wrapper class. - /// - public Datetimerfc1123Wrapper(DateTime? field = default(DateTime?), DateTime? now = default(DateTime?)) - { - Field = field; - Now = now; - } - - /// - /// - [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] - [JsonProperty(PropertyName = "field")] - public DateTime? Field { get; set; } - - /// - /// - [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] - [JsonProperty(PropertyName = "now")] - public DateTime? Now { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DictionaryWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DictionaryWrapper.cs deleted file mode 100644 index 368233d4c2..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DictionaryWrapper.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class DictionaryWrapper - { - /// - /// Initializes a new instance of the DictionaryWrapper class. - /// - public DictionaryWrapper() { } - - /// - /// Initializes a new instance of the DictionaryWrapper class. - /// - public DictionaryWrapper(IDictionary defaultProgram = default(IDictionary)) - { - DefaultProgram = defaultProgram; - } - - /// - /// - [JsonProperty(PropertyName = "defaultProgram")] - public IDictionary DefaultProgram { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Dog.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Dog.cs deleted file mode 100644 index d6ccb24348..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Dog.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Dog : Pet - { - /// - /// Initializes a new instance of the Dog class. - /// - public Dog() { } - - /// - /// Initializes a new instance of the Dog class. - /// - public Dog(int? id = default(int?), string name = default(string), string food = default(string)) - : base(id, name) - { - Food = food; - } - - /// - /// - [JsonProperty(PropertyName = "food")] - public string Food { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DoubleWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DoubleWrapper.cs deleted file mode 100644 index 8e0551568f..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DoubleWrapper.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class DoubleWrapper - { - /// - /// Initializes a new instance of the DoubleWrapper class. - /// - public DoubleWrapper() { } - - /// - /// Initializes a new instance of the DoubleWrapper class. - /// - public DoubleWrapper(double? field1 = default(double?), double? field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose = default(double?)) - { - Field1 = field1; - Field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose = field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose; - } - - /// - /// - [JsonProperty(PropertyName = "field1")] - public double? Field1 { get; set; } - - /// - /// - [JsonProperty(PropertyName = "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose")] - public double? Field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DurationWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DurationWrapper.cs deleted file mode 100644 index 798670e4cc..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DurationWrapper.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class DurationWrapper - { - /// - /// Initializes a new instance of the DurationWrapper class. - /// - public DurationWrapper() { } - - /// - /// Initializes a new instance of the DurationWrapper class. - /// - public DurationWrapper(TimeSpan? field = default(TimeSpan?)) - { - Field = field; - } - - /// - /// - [JsonProperty(PropertyName = "field")] - public TimeSpan? Field { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Error.cs deleted file mode 100644 index 1c4eef9690..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Error.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ErrorException.cs deleted file mode 100644 index 58d2cd0e7c..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Fish.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Fish.cs deleted file mode 100644 index a9fbaef026..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Fish.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Fish - { - /// - /// Initializes a new instance of the Fish class. - /// - public Fish() { } - - /// - /// Initializes a new instance of the Fish class. - /// - public Fish(double length, string species = default(string), IList siblings = default(IList)) - { - Species = species; - Length = length; - Siblings = siblings; - } - - /// - /// - [JsonProperty(PropertyName = "species")] - public string Species { get; set; } - - /// - /// - [JsonProperty(PropertyName = "length")] - public double Length { get; set; } - - /// - /// - [JsonProperty(PropertyName = "siblings")] - public IList Siblings { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (this.Siblings != null) - { - foreach (var element in this.Siblings) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/FloatWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/FloatWrapper.cs deleted file mode 100644 index 59648ed8c5..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/FloatWrapper.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class FloatWrapper - { - /// - /// Initializes a new instance of the FloatWrapper class. - /// - public FloatWrapper() { } - - /// - /// Initializes a new instance of the FloatWrapper class. - /// - public FloatWrapper(double? field1 = default(double?), double? field2 = default(double?)) - { - Field1 = field1; - Field2 = field2; - } - - /// - /// - [JsonProperty(PropertyName = "field1")] - public double? Field1 { get; set; } - - /// - /// - [JsonProperty(PropertyName = "field2")] - public double? Field2 { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Goblinshark.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Goblinshark.cs deleted file mode 100644 index b7d197470e..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Goblinshark.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - [JsonObject("goblin")] - public partial class Goblinshark : Shark - { - /// - /// Initializes a new instance of the Goblinshark class. - /// - public Goblinshark() { } - - /// - /// Initializes a new instance of the Goblinshark class. - /// - public Goblinshark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?), int? jawsize = default(int?)) - : base(length, birthday, species, siblings, age) - { - Jawsize = jawsize; - } - - /// - /// - [JsonProperty(PropertyName = "jawsize")] - public int? Jawsize { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/IntWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/IntWrapper.cs deleted file mode 100644 index 03c0a7f34a..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/IntWrapper.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class IntWrapper - { - /// - /// Initializes a new instance of the IntWrapper class. - /// - public IntWrapper() { } - - /// - /// Initializes a new instance of the IntWrapper class. - /// - public IntWrapper(int? field1 = default(int?), int? field2 = default(int?)) - { - Field1 = field1; - Field2 = field2; - } - - /// - /// - [JsonProperty(PropertyName = "field1")] - public int? Field1 { get; set; } - - /// - /// - [JsonProperty(PropertyName = "field2")] - public int? Field2 { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/LongWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/LongWrapper.cs deleted file mode 100644 index f3db3ab6fc..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/LongWrapper.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class LongWrapper - { - /// - /// Initializes a new instance of the LongWrapper class. - /// - public LongWrapper() { } - - /// - /// Initializes a new instance of the LongWrapper class. - /// - public LongWrapper(long? field1 = default(long?), long? field2 = default(long?)) - { - Field1 = field1; - Field2 = field2; - } - - /// - /// - [JsonProperty(PropertyName = "field1")] - public long? Field1 { get; set; } - - /// - /// - [JsonProperty(PropertyName = "field2")] - public long? Field2 { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Pet.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Pet.cs deleted file mode 100644 index 8ef9a39505..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Pet.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Pet - { - /// - /// Initializes a new instance of the Pet class. - /// - public Pet() { } - - /// - /// Initializes a new instance of the Pet class. - /// - public Pet(int? id = default(int?), string name = default(string)) - { - Id = id; - Name = name; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { 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 f09206d457..6490bfe15f 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/AzureCompositeModelClient/Models/ReadonlyObj.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ReadonlyObj.cs deleted file mode 100644 index a8fcabd253..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ReadonlyObj.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class ReadonlyObj - { - /// - /// Initializes a new instance of the ReadonlyObj class. - /// - public ReadonlyObj() { } - - /// - /// Initializes a new instance of the ReadonlyObj class. - /// - public ReadonlyObj(string id = default(string), int? size = default(int?)) - { - Id = id; - Size = size; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; private set; } - - /// - /// - [JsonProperty(PropertyName = "size")] - public int? Size { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Salmon.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Salmon.cs deleted file mode 100644 index 9baebb4eef..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Salmon.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - [JsonObject("salmon")] - public partial class Salmon : Fish - { - /// - /// Initializes a new instance of the Salmon class. - /// - public Salmon() { } - - /// - /// Initializes a new instance of the Salmon class. - /// - public Salmon(double length, string species = default(string), IList siblings = default(IList), string location = default(string), bool? iswild = default(bool?)) - : base(length, species, siblings) - { - Location = location; - Iswild = iswild; - } - - /// - /// - [JsonProperty(PropertyName = "location")] - public string Location { get; set; } - - /// - /// - [JsonProperty(PropertyName = "iswild")] - public bool? Iswild { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Sawshark.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Sawshark.cs deleted file mode 100644 index d5640692dc..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Sawshark.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - [JsonObject("sawshark")] - public partial class Sawshark : Shark - { - /// - /// Initializes a new instance of the Sawshark class. - /// - public Sawshark() { } - - /// - /// Initializes a new instance of the Sawshark class. - /// - public Sawshark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?), byte[] picture = default(byte[])) - : base(length, birthday, species, siblings, age) - { - Picture = picture; - } - - /// - /// - [JsonProperty(PropertyName = "picture")] - public byte[] Picture { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Shark.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Shark.cs deleted file mode 100644 index 0339026294..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Shark.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - [JsonObject("shark")] - public partial class Shark : Fish - { - /// - /// Initializes a new instance of the Shark class. - /// - public Shark() { } - - /// - /// Initializes a new instance of the Shark class. - /// - public Shark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?)) - : base(length, species, siblings) - { - Age = age; - Birthday = birthday; - } - - /// - /// - [JsonProperty(PropertyName = "age")] - public int? Age { get; set; } - - /// - /// - [JsonProperty(PropertyName = "birthday")] - public DateTime Birthday { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Siamese.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Siamese.cs deleted file mode 100644 index 6a49062d1c..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Siamese.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Siamese : Cat - { - /// - /// Initializes a new instance of the Siamese class. - /// - public Siamese() { } - - /// - /// Initializes a new instance of the Siamese class. - /// - public Siamese(int? id = default(int?), string name = default(string), string color = default(string), IList hates = default(IList), string breed = default(string)) - : base(id, name, color, hates) - { - Breed = breed; - } - - /// - /// - [JsonProperty(PropertyName = "breed")] - public string Breed { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/StringWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/StringWrapper.cs deleted file mode 100644 index e9e39f4b67..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/StringWrapper.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class StringWrapper - { - /// - /// Initializes a new instance of the StringWrapper class. - /// - public StringWrapper() { } - - /// - /// Initializes a new instance of the StringWrapper class. - /// - public StringWrapper(string field = default(string), string empty = default(string), string nullProperty = default(string)) - { - Field = field; - Empty = empty; - NullProperty = nullProperty; - } - - /// - /// - [JsonProperty(PropertyName = "field")] - public string Field { get; set; } - - /// - /// - [JsonProperty(PropertyName = "empty")] - public string Empty { get; set; } - - /// - /// - [JsonProperty(PropertyName = "null")] - public string NullProperty { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphicrecursiveOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphicrecursiveOperations.cs index 62c2becc51..cb48d151e3 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphicrecursiveOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphicrecursiveOperations.cs @@ -53,7 +53,7 @@ internal PolymorphicrecursiveOperations(AzureCompositeModel client) /// Get complex types that are polymorphic and have recursive references /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -254,7 +254,7 @@ internal PolymorphicrecursiveOperations(AzureCompositeModel client) /// } /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphismOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphismOperations.cs index e731fe36e9..feb135c608 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphismOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphismOperations.cs @@ -53,7 +53,7 @@ internal PolymorphismOperations(AzureCompositeModel client) /// Get complex types that are polymorphic /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -235,7 +235,7 @@ internal PolymorphismOperations(AzureCompositeModel client) /// }; /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -408,7 +408,7 @@ internal PolymorphismOperations(AzureCompositeModel client) /// } /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PrimitiveOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PrimitiveOperations.cs index 6e66f9fa38..c5e2a3f0e2 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PrimitiveOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PrimitiveOperations.cs @@ -53,7 +53,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Get complex types with integer properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -202,7 +202,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Please put -1 and 2 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -341,7 +341,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Get complex types with long properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -490,7 +490,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Please put 1099511627775 and -999511627788 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -629,7 +629,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Get complex types with float properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -778,7 +778,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Please put 1.05 and -0.003 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -917,7 +917,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Get complex types with double properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1067,7 +1067,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// -0.000000000000000000000000000000000000000000000000000000005 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1206,7 +1206,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Get complex types with bool properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1355,7 +1355,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Please put true and false /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1494,7 +1494,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Get complex types with string properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1643,7 +1643,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Please put 'goodrequest', '', and null /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1782,7 +1782,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Get complex types with date properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1931,7 +1931,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Please put '0001-01-01' and '2016-02-29' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2070,7 +2070,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Get complex types with datetime properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2219,7 +2219,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2358,7 +2358,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Get complex types with datetimeRfc1123 properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2508,7 +2508,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// GMT' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2647,7 +2647,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Get complex types with duration properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2795,7 +2795,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2932,7 +2932,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// Get complex types with byte properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3080,7 +3080,7 @@ internal PrimitiveOperations(AzureCompositeModel client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ReadonlypropertyOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ReadonlypropertyOperations.cs index 70e1a11d28..95bf7b2c76 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ReadonlypropertyOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ReadonlypropertyOperations.cs @@ -53,7 +53,7 @@ internal ReadonlypropertyOperations(AzureCompositeModel client) /// Get complex types that have readonly properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -201,7 +201,7 @@ internal ReadonlypropertyOperations(AzureCompositeModel client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/AutoRestParameterGroupingTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/AutoRestParameterGroupingTestService.cs index 3718cd115c..206bb946b5 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/AutoRestParameterGroupingTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/AutoRestParameterGroupingTestService.cs @@ -36,14 +36,14 @@ public partial class AutoRestParameterGroupingTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -76,7 +76,7 @@ public partial class AutoRestParameterGroupingTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestParameterGroupingTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -87,10 +87,10 @@ protected AutoRestParameterGroupingTestService(params DelegatingHandler[] handle /// Initializes a new instance of the AutoRestParameterGroupingTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestParameterGroupingTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -104,7 +104,7 @@ protected AutoRestParameterGroupingTestService(HttpClientHandler rootHandler, pa /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestParameterGroupingTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -122,10 +122,10 @@ protected AutoRestParameterGroupingTestService(Uri baseUri, params DelegatingHan /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestParameterGroupingTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -143,7 +143,7 @@ protected AutoRestParameterGroupingTestService(Uri baseUri, HttpClientHandler ro /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterGroupingTestService(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -165,10 +165,10 @@ public AutoRestParameterGroupingTestService(ServiceClientCredentials credentials /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterGroupingTestService(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -193,7 +193,7 @@ public AutoRestParameterGroupingTestService(ServiceClientCredentials credentials /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterGroupingTestService(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -223,10 +223,10 @@ public AutoRestParameterGroupingTestService(Uri baseUri, ServiceClientCredential /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterGroupingTestService(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IAutoRestParameterGroupingTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IAutoRestParameterGroupingTestService.cs index c9a904c70d..5785aa0993 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IAutoRestParameterGroupingTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IAutoRestParameterGroupingTestService.cs @@ -29,12 +29,12 @@ public partial interface IAutoRestParameterGroupingTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IParameterGroupingOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IParameterGroupingOperations.cs index 830be66909..47897bf1ac 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IParameterGroupingOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IParameterGroupingOperations.cs @@ -29,7 +29,7 @@ public partial interface IParameterGroupingOperations /// Additional parameters for the operation /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -42,7 +42,7 @@ public partial interface IParameterGroupingOperations /// Additional parameters for the operation /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -58,7 +58,7 @@ public partial interface IParameterGroupingOperations /// Additional parameters for the operation /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -71,7 +71,7 @@ public partial interface IParameterGroupingOperations /// Additional parameters for the operation /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/Error.cs deleted file mode 100644 index d2e62d8909..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/Error.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ErrorException.cs deleted file mode 100644 index 93d43525cd..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} 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 deleted file mode 100644 index 0b05e6b452..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/FirstParameterGroup.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Additional parameters for the postMultiParamGroups operation. - /// - public partial class FirstParameterGroup - { - /// - /// Initializes a new instance of the FirstParameterGroup class. - /// - public FirstParameterGroup() { } - - /// - /// Initializes a new instance of the FirstParameterGroup class. - /// - public FirstParameterGroup(string headerOne = default(string), int? queryOne = default(int?)) - { - HeaderOne = headerOne; - QueryOne = queryOne; - } - - /// - /// - [JsonProperty(PropertyName = "")] - public string HeaderOne { get; set; } - - /// - /// 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 deleted file mode 100644 index b62aab87f7..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Additional parameters for the postMultiParamGroups operation. - /// - public partial class ParameterGroupingPostMultiParamGroupsSecondParamGroup - { - /// - /// Initializes a new instance of the - /// ParameterGroupingPostMultiParamGroupsSecondParamGroup class. - /// - public ParameterGroupingPostMultiParamGroupsSecondParamGroup() { } - - /// - /// Initializes a new instance of the - /// ParameterGroupingPostMultiParamGroupsSecondParamGroup class. - /// - public ParameterGroupingPostMultiParamGroupsSecondParamGroup(string headerTwo = default(string), int? queryTwo = default(int?)) - { - HeaderTwo = headerTwo; - QueryTwo = queryTwo; - } - - /// - /// - [JsonProperty(PropertyName = "")] - public string HeaderTwo { get; set; } - - /// - /// 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 deleted file mode 100644 index ad34300acc..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostOptionalParameters.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Additional parameters for the postOptional operation. - /// - public partial class ParameterGroupingPostOptionalParameters - { - /// - /// Initializes a new instance of the - /// ParameterGroupingPostOptionalParameters class. - /// - public ParameterGroupingPostOptionalParameters() { } - - /// - /// Initializes a new instance of the - /// ParameterGroupingPostOptionalParameters class. - /// - public ParameterGroupingPostOptionalParameters(string customHeader = default(string), int? query = default(int?)) - { - CustomHeader = customHeader; - Query = query; - } - - /// - /// - [JsonProperty(PropertyName = "")] - public string CustomHeader { get; set; } - - /// - /// 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 deleted file mode 100644 index 65b9f51198..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostRequiredParameters.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Additional parameters for the postRequired operation. - /// - public partial class ParameterGroupingPostRequiredParameters - { - /// - /// Initializes a new instance of the - /// ParameterGroupingPostRequiredParameters class. - /// - public ParameterGroupingPostRequiredParameters() { } - - /// - /// Initializes a new instance of the - /// ParameterGroupingPostRequiredParameters class. - /// - public ParameterGroupingPostRequiredParameters(int body, string path, string customHeader = default(string), int? query = default(int?)) - { - Body = body; - CustomHeader = customHeader; - Query = query; - Path = path; - } - - /// - /// - [JsonProperty(PropertyName = "")] - public int Body { get; set; } - - /// - /// - [JsonProperty(PropertyName = "")] - public string CustomHeader { get; set; } - - /// - /// Query parameter with default - /// - [JsonProperty(PropertyName = "")] - public int? Query { get; set; } - - /// - /// Path parameter - /// - [JsonProperty(PropertyName = "")] - public string Path { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (Path == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Path"); - } - } - } -} 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 7fe382cfcd..835daf51b1 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 @@ -56,7 +56,7 @@ internal ParameterGroupingOperations(AutoRestParameterGroupingTestService client /// Additional parameters for the operation /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -238,7 +238,7 @@ internal ParameterGroupingOperations(AutoRestParameterGroupingTestService client /// Additional parameters for the operation /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -396,7 +396,7 @@ internal ParameterGroupingOperations(AutoRestParameterGroupingTestService client /// Additional parameters for the operation /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -575,7 +575,7 @@ internal ParameterGroupingOperations(AutoRestParameterGroupingTestService client /// Additional parameters for the operation /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/AutoRestReportServiceForAzure.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/AutoRestReportServiceForAzure.cs index 33e2a58ba1..1c05a3f8d9 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/AutoRestReportServiceForAzure.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/AutoRestReportServiceForAzure.cs @@ -36,14 +36,14 @@ public partial class AutoRestReportServiceForAzure : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -71,7 +71,7 @@ public partial class AutoRestReportServiceForAzure : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestReportServiceForAzure(params DelegatingHandler[] handlers) : base(handlers) { @@ -82,10 +82,10 @@ protected AutoRestReportServiceForAzure(params DelegatingHandler[] handlers) : b /// Initializes a new instance of the AutoRestReportServiceForAzure class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestReportServiceForAzure(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -99,7 +99,7 @@ protected AutoRestReportServiceForAzure(HttpClientHandler rootHandler, params De /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestReportServiceForAzure(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -117,10 +117,10 @@ protected AutoRestReportServiceForAzure(Uri baseUri, params DelegatingHandler[] /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestReportServiceForAzure(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -138,7 +138,7 @@ protected AutoRestReportServiceForAzure(Uri baseUri, HttpClientHandler rootHandl /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestReportServiceForAzure(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -160,10 +160,10 @@ public AutoRestReportServiceForAzure(ServiceClientCredentials credentials, param /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestReportServiceForAzure(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -188,7 +188,7 @@ public AutoRestReportServiceForAzure(ServiceClientCredentials credentials, HttpC /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestReportServiceForAzure(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -218,10 +218,10 @@ public AutoRestReportServiceForAzure(Uri baseUri, ServiceClientCredentials crede /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestReportServiceForAzure(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -281,7 +281,7 @@ private void Initialize() /// Get test coverage report /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/IAutoRestReportServiceForAzure.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/IAutoRestReportServiceForAzure.cs index 5d108f8488..bcbf160649 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/IAutoRestReportServiceForAzure.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/IAutoRestReportServiceForAzure.cs @@ -29,12 +29,12 @@ public partial interface IAutoRestReportServiceForAzure : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -65,7 +65,7 @@ public partial interface IAutoRestReportServiceForAzure : IDisposable /// Get test coverage report /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/Error.cs deleted file mode 100644 index 2fbfb83e4c..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/Error.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureReport.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/ErrorException.cs deleted file mode 100644 index ebcce30a4c..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureReport.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/AutoRestResourceFlatteningTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/AutoRestResourceFlatteningTestService.cs index a922764f2b..68610dab5c 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/AutoRestResourceFlatteningTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/AutoRestResourceFlatteningTestService.cs @@ -36,14 +36,14 @@ public partial class AutoRestResourceFlatteningTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -71,7 +71,7 @@ public partial class AutoRestResourceFlatteningTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestResourceFlatteningTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -82,10 +82,10 @@ protected AutoRestResourceFlatteningTestService(params DelegatingHandler[] handl /// Initializes a new instance of the AutoRestResourceFlatteningTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestResourceFlatteningTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -99,7 +99,7 @@ protected AutoRestResourceFlatteningTestService(HttpClientHandler rootHandler, p /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestResourceFlatteningTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -117,10 +117,10 @@ protected AutoRestResourceFlatteningTestService(Uri baseUri, params DelegatingHa /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestResourceFlatteningTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -138,7 +138,7 @@ protected AutoRestResourceFlatteningTestService(Uri baseUri, HttpClientHandler r /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestResourceFlatteningTestService(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -160,10 +160,10 @@ public AutoRestResourceFlatteningTestService(ServiceClientCredentials credential /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestResourceFlatteningTestService(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -188,7 +188,7 @@ public AutoRestResourceFlatteningTestService(ServiceClientCredentials credential /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestResourceFlatteningTestService(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -218,10 +218,10 @@ public AutoRestResourceFlatteningTestService(Uri baseUri, ServiceClientCredentia /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestResourceFlatteningTestService(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -286,7 +286,7 @@ private void Initialize() /// External Resource as an Array to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -421,7 +421,7 @@ private void Initialize() /// Get External Resource as an Array /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -570,7 +570,7 @@ private void Initialize() /// External Resource as a Dictionary to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -705,7 +705,7 @@ private void Initialize() /// Get External Resource as a Dictionary /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -854,7 +854,7 @@ private void Initialize() /// External Resource as a ResourceCollection to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -989,7 +989,7 @@ private void Initialize() /// Get External Resource as a ResourceCollection /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/IAutoRestResourceFlatteningTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/IAutoRestResourceFlatteningTestService.cs index 4a472326bb..d2591cbd18 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/IAutoRestResourceFlatteningTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/IAutoRestResourceFlatteningTestService.cs @@ -29,12 +29,12 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -68,7 +68,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// External Resource as an Array to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -79,7 +79,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// Get External Resource as an Array /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -93,7 +93,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// External Resource as a Dictionary to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -104,7 +104,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// Get External Resource as a Dictionary /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -118,7 +118,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// External Resource as a ResourceCollection to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -129,7 +129,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// Get External Resource as a ResourceCollection /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Error.cs deleted file mode 100644 index 029dd2c207..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Error.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ErrorException.cs deleted file mode 100644 index 4ba9b55b33..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/FlattenedProduct.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/FlattenedProduct.cs deleted file mode 100644 index 8309b61244..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/FlattenedProduct.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - [JsonTransformation] - public partial class FlattenedProduct : Resource - { - /// - /// Initializes a new instance of the FlattenedProduct class. - /// - public FlattenedProduct() { } - - /// - /// Initializes a new instance of the FlattenedProduct class. - /// - public FlattenedProduct(string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string name = default(string), string pname = default(string), int? lsize = default(int?), string provisioningState = default(string)) - : base(id, type, tags, location, name) - { - Pname = pname; - Lsize = lsize; - ProvisioningState = provisioningState; - } - - /// - /// - [JsonProperty(PropertyName = "properties.pname")] - public string Pname { get; set; } - - /// - /// - [JsonProperty(PropertyName = "properties.lsize")] - public int? Lsize { get; set; } - - /// - /// - [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; set; } - - } -} 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 deleted file mode 100644 index 8e0914cc4e..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Resource.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Resource : IResource - { - /// - /// Initializes a new instance of the Resource class. - /// - public Resource() { } - - /// - /// Initializes a new instance of the Resource class. - /// - public Resource(string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string name = default(string)) - { - Id = id; - Type = type; - Tags = tags; - Location = location; - Name = name; - } - - /// - /// Resource Id - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; private set; } - - /// - /// Resource Type - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } - - /// - /// - [JsonProperty(PropertyName = "tags")] - public IDictionary Tags { get; set; } - - /// - /// Resource Location - /// - [JsonProperty(PropertyName = "location")] - public string Location { get; set; } - - /// - /// Resource Name - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; private set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ResourceCollection.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ResourceCollection.cs deleted file mode 100644 index 4e644a557a..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ResourceCollection.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class ResourceCollection - { - /// - /// Initializes a new instance of the ResourceCollection class. - /// - public ResourceCollection() { } - - /// - /// Initializes a new instance of the ResourceCollection class. - /// - public ResourceCollection(FlattenedProduct productresource = default(FlattenedProduct), IList arrayofresources = default(IList), IDictionary dictionaryofresources = default(IDictionary)) - { - Productresource = productresource; - Arrayofresources = arrayofresources; - Dictionaryofresources = dictionaryofresources; - } - - /// - /// - [JsonProperty(PropertyName = "productresource")] - public FlattenedProduct Productresource { get; set; } - - /// - /// - [JsonProperty(PropertyName = "arrayofresources")] - public IList Arrayofresources { get; set; } - - /// - /// - [JsonProperty(PropertyName = "dictionaryofresources")] - public IDictionary Dictionaryofresources { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionDefaultOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionDefaultOperations.cs index 6cce0bb2e7..784a0db957 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionDefaultOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionDefaultOperations.cs @@ -53,7 +53,7 @@ internal ApiVersionDefaultOperations(AutoRestAzureSpecialParametersTestClient cl /// GET method with api-version modeled in global settings. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -189,7 +189,7 @@ internal ApiVersionDefaultOperations(AutoRestAzureSpecialParametersTestClient cl /// GET method with api-version modeled in global settings. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -325,7 +325,7 @@ internal ApiVersionDefaultOperations(AutoRestAzureSpecialParametersTestClient cl /// GET method with api-version modeled in global settings. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -461,7 +461,7 @@ internal ApiVersionDefaultOperations(AutoRestAzureSpecialParametersTestClient cl /// GET method with api-version modeled in global settings. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionLocalOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionLocalOperations.cs index cd2eb68184..05ed5c2bca 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionLocalOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionLocalOperations.cs @@ -54,7 +54,7 @@ internal ApiVersionLocalOperations(AutoRestAzureSpecialParametersTestClient clie /// '2.0' to succeed /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -193,7 +193,7 @@ internal ApiVersionLocalOperations(AutoRestAzureSpecialParametersTestClient clie /// result in no serialized parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -327,7 +327,7 @@ internal ApiVersionLocalOperations(AutoRestAzureSpecialParametersTestClient clie /// '2.0' to succeed /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -462,7 +462,7 @@ internal ApiVersionLocalOperations(AutoRestAzureSpecialParametersTestClient clie /// '2.0' to succeed /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/AutoRestAzureSpecialParametersTestClient.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/AutoRestAzureSpecialParametersTestClient.cs index 1233eb14f6..4084daa2a3 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/AutoRestAzureSpecialParametersTestClient.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/AutoRestAzureSpecialParametersTestClient.cs @@ -36,14 +36,14 @@ public partial class AutoRestAzureSpecialParametersTestClient : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -123,7 +123,7 @@ public partial class AutoRestAzureSpecialParametersTestClient : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestAzureSpecialParametersTestClient(params DelegatingHandler[] handlers) : base(handlers) { @@ -134,10 +134,10 @@ protected AutoRestAzureSpecialParametersTestClient(params DelegatingHandler[] ha /// Initializes a new instance of the AutoRestAzureSpecialParametersTestClient class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestAzureSpecialParametersTestClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -151,7 +151,7 @@ protected AutoRestAzureSpecialParametersTestClient(HttpClientHandler rootHandler /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestAzureSpecialParametersTestClient(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -169,10 +169,10 @@ protected AutoRestAzureSpecialParametersTestClient(Uri baseUri, params Delegatin /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestAzureSpecialParametersTestClient(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -190,7 +190,7 @@ protected AutoRestAzureSpecialParametersTestClient(Uri baseUri, HttpClientHandle /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestAzureSpecialParametersTestClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -212,10 +212,10 @@ public AutoRestAzureSpecialParametersTestClient(ServiceClientCredentials credent /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestAzureSpecialParametersTestClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -240,7 +240,7 @@ public AutoRestAzureSpecialParametersTestClient(ServiceClientCredentials credent /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestAzureSpecialParametersTestClient(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -270,10 +270,10 @@ public AutoRestAzureSpecialParametersTestClient(Uri baseUri, ServiceClientCreden /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestAzureSpecialParametersTestClient(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/HeaderOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/HeaderOperations.cs index af204f2adb..97caff9628 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/HeaderOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/HeaderOperations.cs @@ -57,7 +57,7 @@ internal HeaderOperations(AutoRestAzureSpecialParametersTestClient client) /// The fooRequestId /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionDefaultOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionDefaultOperations.cs index 2cfcf63f70..978b0c086a 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionDefaultOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionDefaultOperations.cs @@ -26,7 +26,7 @@ public partial interface IApiVersionDefaultOperations /// GET method with api-version modeled in global settings. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -36,7 +36,7 @@ public partial interface IApiVersionDefaultOperations /// GET method with api-version modeled in global settings. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -46,7 +46,7 @@ public partial interface IApiVersionDefaultOperations /// GET method with api-version modeled in global settings. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -56,7 +56,7 @@ public partial interface IApiVersionDefaultOperations /// GET method with api-version modeled in global settings. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionLocalOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionLocalOperations.cs index 950ae85190..12af3de5dd 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionLocalOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionLocalOperations.cs @@ -27,7 +27,7 @@ public partial interface IApiVersionLocalOperations /// api-version = '2.0' to succeed /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -42,7 +42,7 @@ public partial interface IApiVersionLocalOperations /// should result in no serialized parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -53,7 +53,7 @@ public partial interface IApiVersionLocalOperations /// api-version = '2.0' to succeed /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -64,7 +64,7 @@ public partial interface IApiVersionLocalOperations /// api-version = '2.0' to succeed /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IAutoRestAzureSpecialParametersTestClient.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IAutoRestAzureSpecialParametersTestClient.cs index 60e44286f8..f85eac935a 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IAutoRestAzureSpecialParametersTestClient.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IAutoRestAzureSpecialParametersTestClient.cs @@ -29,12 +29,12 @@ public partial interface IAutoRestAzureSpecialParametersTestClient : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IHeaderOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IHeaderOperations.cs index 16a28b66f3..09013c026f 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IHeaderOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IHeaderOperations.cs @@ -30,7 +30,7 @@ public partial interface IHeaderOperations /// The fooRequestId /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IOdataOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IOdataOperations.cs index c2c0cb2ac7..9f36e2fead 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IOdataOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IOdataOperations.cs @@ -31,7 +31,7 @@ public partial interface IOdataOperations /// OData parameters to apply to the operation. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ISkipUrlEncodingOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ISkipUrlEncodingOperations.cs index f0b9fa7f4f..47f4ac8e48 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ISkipUrlEncodingOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ISkipUrlEncodingOperations.cs @@ -30,7 +30,7 @@ public partial interface ISkipUrlEncodingOperations /// Unencoded path parameter with value 'path1/path2/path3' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -44,7 +44,7 @@ public partial interface ISkipUrlEncodingOperations /// Unencoded path parameter with value 'path1/path2/path3' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -55,7 +55,7 @@ public partial interface ISkipUrlEncodingOperations /// 'path1/path2/path3' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -70,7 +70,7 @@ public partial interface ISkipUrlEncodingOperations /// 'value1&q2=value2&q3=value3' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -83,7 +83,7 @@ public partial interface ISkipUrlEncodingOperations /// Unencoded query parameter with value null /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -98,7 +98,7 @@ public partial interface ISkipUrlEncodingOperations /// 'value1&q2=value2&q3=value3' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -109,7 +109,7 @@ public partial interface ISkipUrlEncodingOperations /// 'value1&q2=value2&q3=value3' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInCredentialsOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInCredentialsOperations.cs index fe5433508e..c059fbe53d 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInCredentialsOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInCredentialsOperations.cs @@ -27,7 +27,7 @@ public partial interface ISubscriptionInCredentialsOperations /// credential subscriptionId to '1234-5678-9012-3456' to succeed /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -39,7 +39,7 @@ public partial interface ISubscriptionInCredentialsOperations /// should prevent you from making this call /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -50,7 +50,7 @@ public partial interface ISubscriptionInCredentialsOperations /// credential subscriptionId to '1234-5678-9012-3456' to succeed /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -61,7 +61,7 @@ public partial interface ISubscriptionInCredentialsOperations /// credential subscriptionId to '1234-5678-9012-3456' to succeed /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -72,7 +72,7 @@ public partial interface ISubscriptionInCredentialsOperations /// credential subscriptionId to '1234-5678-9012-3456' to succeed /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInMethodOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInMethodOperations.cs index 7e428055d9..7dbf0264fd 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInMethodOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInMethodOperations.cs @@ -31,7 +31,7 @@ public partial interface ISubscriptionInMethodOperations /// '1234-5678-9012-3456' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -47,7 +47,7 @@ public partial interface ISubscriptionInMethodOperations /// client-side validation should prvenet the call /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -62,7 +62,7 @@ public partial interface ISubscriptionInMethodOperations /// '1234-5678-9012-3456' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -77,7 +77,7 @@ public partial interface ISubscriptionInMethodOperations /// '1234-5678-9012-3456' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IXMsClientRequestIdOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IXMsClientRequestIdOperations.cs index 7c602a46fa..8a3f530703 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IXMsClientRequestIdOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/IXMsClientRequestIdOperations.cs @@ -27,7 +27,7 @@ public partial interface IXMsClientRequestIdOperations /// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -42,7 +42,7 @@ public partial interface IXMsClientRequestIdOperations /// '9C4D50EE-2D56-4CD3-8152-34347DC9F2B0' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/Error.cs deleted file mode 100644 index de85e0a28b..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/Error.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), int? constantId = default(int?), string message = default(string)) - { - Status = status; - ConstantId = constantId; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "constantId")] - public int? ConstantId { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/ErrorException.cs deleted file mode 100644 index fdd3f42f7e..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} 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 deleted file mode 100644 index d00b60f839..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdHeaders.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for customNamedRequestId operation. - /// - public partial class HeaderCustomNamedRequestIdHeaders - { - /// - /// Initializes a new instance of the - /// HeaderCustomNamedRequestIdHeaders class. - /// - public HeaderCustomNamedRequestIdHeaders() { } - - /// - /// Initializes a new instance of the - /// HeaderCustomNamedRequestIdHeaders class. - /// - public HeaderCustomNamedRequestIdHeaders(string fooRequestId = default(string)) - { - FooRequestId = fooRequestId; - } - - /// - /// 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/AzureSpecials/Models/OdataFilter.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/OdataFilter.cs deleted file mode 100644 index 2f2e3c2b51..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/OdataFilter.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class OdataFilter - { - /// - /// Initializes a new instance of the OdataFilter class. - /// - public OdataFilter() { } - - /// - /// Initializes a new instance of the OdataFilter class. - /// - public OdataFilter(int? id = default(int?), string name = default(string)) - { - Id = id; - Name = name; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/OdataOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/OdataOperations.cs index 53e34a7066..16761d9f47 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/OdataOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/OdataOperations.cs @@ -58,7 +58,7 @@ internal OdataOperations(AutoRestAzureSpecialParametersTestClient client) /// OData parameters to apply to the operation. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/SkipUrlEncodingOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/SkipUrlEncodingOperations.cs index 17bae772f1..bfeb19a37b 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/SkipUrlEncodingOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/SkipUrlEncodingOperations.cs @@ -56,7 +56,7 @@ internal SkipUrlEncodingOperations(AutoRestAzureSpecialParametersTestClient clie /// Unencoded path parameter with value 'path1/path2/path3' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -193,7 +193,7 @@ internal SkipUrlEncodingOperations(AutoRestAzureSpecialParametersTestClient clie /// Unencoded path parameter with value 'path1/path2/path3' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -327,7 +327,7 @@ internal SkipUrlEncodingOperations(AutoRestAzureSpecialParametersTestClient clie /// Get method with unencoded path parameter with value 'path1/path2/path3' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -462,7 +462,7 @@ internal SkipUrlEncodingOperations(AutoRestAzureSpecialParametersTestClient clie /// Unencoded query parameter with value 'value1&q2=value2&q3=value3' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -602,7 +602,7 @@ internal SkipUrlEncodingOperations(AutoRestAzureSpecialParametersTestClient clie /// Unencoded query parameter with value null /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -739,7 +739,7 @@ internal SkipUrlEncodingOperations(AutoRestAzureSpecialParametersTestClient clie /// Unencoded query parameter with value 'value1&q2=value2&q3=value3' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -877,7 +877,7 @@ internal SkipUrlEncodingOperations(AutoRestAzureSpecialParametersTestClient clie /// 'value1&q2=value2&q3=value3' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInCredentialsOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInCredentialsOperations.cs index 52014796f7..d27fcffaa2 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInCredentialsOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInCredentialsOperations.cs @@ -54,7 +54,7 @@ internal SubscriptionInCredentialsOperations(AutoRestAzureSpecialParametersTestC /// credential subscriptionId to '1234-5678-9012-3456' to succeed /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -189,7 +189,7 @@ internal SubscriptionInCredentialsOperations(AutoRestAzureSpecialParametersTestC /// prevent you from making this call /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -323,7 +323,7 @@ internal SubscriptionInCredentialsOperations(AutoRestAzureSpecialParametersTestC /// credential subscriptionId to '1234-5678-9012-3456' to succeed /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -465,7 +465,7 @@ internal SubscriptionInCredentialsOperations(AutoRestAzureSpecialParametersTestC /// credential subscriptionId to '1234-5678-9012-3456' to succeed /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -599,7 +599,7 @@ internal SubscriptionInCredentialsOperations(AutoRestAzureSpecialParametersTestC /// credential subscriptionId to '1234-5678-9012-3456' to succeed /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInMethodOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInMethodOperations.cs index 530fb69ef8..8e46c887c8 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInMethodOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInMethodOperations.cs @@ -57,7 +57,7 @@ internal SubscriptionInMethodOperations(AutoRestAzureSpecialParametersTestClient /// This should appear as a method parameter, use value '1234-5678-9012-3456' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -197,7 +197,7 @@ internal SubscriptionInMethodOperations(AutoRestAzureSpecialParametersTestClient /// validation should prvenet the call /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -335,7 +335,7 @@ internal SubscriptionInMethodOperations(AutoRestAzureSpecialParametersTestClient /// Should appear as a method parameter -use value '1234-5678-9012-3456' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -474,7 +474,7 @@ internal SubscriptionInMethodOperations(AutoRestAzureSpecialParametersTestClient /// '1234-5678-9012-3456' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/XMsClientRequestIdOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/XMsClientRequestIdOperations.cs index 21d646f64e..c1c7f5b969 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/XMsClientRequestIdOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/XMsClientRequestIdOperations.cs @@ -54,7 +54,7 @@ internal XMsClientRequestIdOperations(AutoRestAzureSpecialParametersTestClient c /// 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -179,7 +179,7 @@ internal XMsClientRequestIdOperations(AutoRestAzureSpecialParametersTestClient c /// '9C4D50EE-2D56-4CD3-8152-34347DC9F2B0' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs index 95ce1e052c..5908c161b2 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs @@ -36,14 +36,14 @@ public partial class AutoRestParameterizedHostTestClient : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -81,7 +81,7 @@ public partial class AutoRestParameterizedHostTestClient : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestParameterizedHostTestClient(params DelegatingHandler[] handlers) : base(handlers) { @@ -92,10 +92,10 @@ protected AutoRestParameterizedHostTestClient(params DelegatingHandler[] handler /// Initializes a new instance of the AutoRestParameterizedHostTestClient class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestParameterizedHostTestClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -109,7 +109,7 @@ protected AutoRestParameterizedHostTestClient(HttpClientHandler rootHandler, par /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterizedHostTestClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -131,10 +131,10 @@ public AutoRestParameterizedHostTestClient(ServiceClientCredentials credentials, /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterizedHostTestClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs index 689ecb9d38..3ad89691b4 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestParameterizedHostTestClient : IDisposable /// /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IPathsOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IPathsOperations.cs index e1b8d32215..2da26ac5cc 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IPathsOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IPathsOperations.cs @@ -29,7 +29,7 @@ public partial interface IPathsOperations /// Account Name /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs deleted file mode 100644 index 2654d3647f..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsCustomBaseUri.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs deleted file mode 100644 index 9f069157ee..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsCustomBaseUri.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsOperations.cs index 9e96e28627..1e108ac13c 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsOperations.cs @@ -56,7 +56,7 @@ internal PathsOperations(AutoRestParameterizedHostTestClient client) /// Account Name /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/AutoRestHeadTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/AutoRestHeadTestService.cs index c63f6633a3..3ca460ee87 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/AutoRestHeadTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/AutoRestHeadTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestHeadTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -75,7 +75,7 @@ public partial class AutoRestHeadTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestHeadTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -86,10 +86,10 @@ protected AutoRestHeadTestService(params DelegatingHandler[] handlers) : base(ha /// Initializes a new instance of the AutoRestHeadTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestHeadTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -103,7 +103,7 @@ protected AutoRestHeadTestService(HttpClientHandler rootHandler, params Delegati /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestHeadTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -121,10 +121,10 @@ protected AutoRestHeadTestService(Uri baseUri, params DelegatingHandler[] handle /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestHeadTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -142,7 +142,7 @@ protected AutoRestHeadTestService(Uri baseUri, HttpClientHandler rootHandler, pa /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestHeadTestService(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -164,10 +164,10 @@ public AutoRestHeadTestService(ServiceClientCredentials credentials, params Dele /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestHeadTestService(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -192,7 +192,7 @@ public AutoRestHeadTestService(ServiceClientCredentials credentials, HttpClientH /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestHeadTestService(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -222,10 +222,10 @@ public AutoRestHeadTestService(Uri baseUri, ServiceClientCredentials credentials /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestHeadTestService(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/HttpSuccessOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/HttpSuccessOperations.cs index 978f893769..478a9360d9 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/HttpSuccessOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/HttpSuccessOperations.cs @@ -52,7 +52,7 @@ internal HttpSuccessOperations(AutoRestHeadTestService client) /// Return 200 status code if successful /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -186,7 +186,7 @@ internal HttpSuccessOperations(AutoRestHeadTestService client) /// Return 204 status code if successful /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -320,7 +320,7 @@ internal HttpSuccessOperations(AutoRestHeadTestService client) /// Return 404 status code if successful /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/IAutoRestHeadTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/IAutoRestHeadTestService.cs index d3bbcb6636..1afe9933e2 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/IAutoRestHeadTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/IAutoRestHeadTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestHeadTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/IHttpSuccessOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/IHttpSuccessOperations.cs index e98b52834f..f3e0699253 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/IHttpSuccessOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Head/IHttpSuccessOperations.cs @@ -25,7 +25,7 @@ public partial interface IHttpSuccessOperations /// Return 200 status code if successful /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IHttpSuccessOperations /// Return 204 status code if successful /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IHttpSuccessOperations /// Return 404 status code if successful /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/AutoRestHeadExceptionTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/AutoRestHeadExceptionTestService.cs index 7a36fd8570..1221c59c78 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/AutoRestHeadExceptionTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/AutoRestHeadExceptionTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestHeadExceptionTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -75,7 +75,7 @@ public partial class AutoRestHeadExceptionTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestHeadExceptionTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -86,10 +86,10 @@ protected AutoRestHeadExceptionTestService(params DelegatingHandler[] handlers) /// Initializes a new instance of the AutoRestHeadExceptionTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestHeadExceptionTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -103,7 +103,7 @@ protected AutoRestHeadExceptionTestService(HttpClientHandler rootHandler, params /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestHeadExceptionTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -121,10 +121,10 @@ protected AutoRestHeadExceptionTestService(Uri baseUri, params DelegatingHandler /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestHeadExceptionTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -142,7 +142,7 @@ protected AutoRestHeadExceptionTestService(Uri baseUri, HttpClientHandler rootHa /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestHeadExceptionTestService(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -164,10 +164,10 @@ public AutoRestHeadExceptionTestService(ServiceClientCredentials credentials, pa /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestHeadExceptionTestService(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -192,7 +192,7 @@ public AutoRestHeadExceptionTestService(ServiceClientCredentials credentials, Ht /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestHeadExceptionTestService(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -222,10 +222,10 @@ public AutoRestHeadExceptionTestService(Uri baseUri, ServiceClientCredentials cr /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestHeadExceptionTestService(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/HeadExceptionOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/HeadExceptionOperations.cs index 69948d4ae4..2c0f9c9a54 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/HeadExceptionOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/HeadExceptionOperations.cs @@ -52,7 +52,7 @@ internal HeadExceptionOperations(AutoRestHeadExceptionTestService client) /// Return 200 status code if successful /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -172,7 +172,7 @@ internal HeadExceptionOperations(AutoRestHeadExceptionTestService client) /// Return 204 status code if successful /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -292,7 +292,7 @@ internal HeadExceptionOperations(AutoRestHeadExceptionTestService client) /// Return 404 status code if successful /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/IAutoRestHeadExceptionTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/IAutoRestHeadExceptionTestService.cs index def064a39f..c79b12fe49 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/IAutoRestHeadExceptionTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/IAutoRestHeadExceptionTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestHeadExceptionTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/IHeadExceptionOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/IHeadExceptionOperations.cs index 35417b0ce9..22712db88a 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/IHeadExceptionOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/HeadExceptions/IHeadExceptionOperations.cs @@ -25,7 +25,7 @@ public partial interface IHeadExceptionOperations /// Return 200 status code if successful /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IHeadExceptionOperations /// Return 204 status code if successful /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IHeadExceptionOperations /// Return 404 status code if successful /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/AutoRestLongRunningOperationTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/AutoRestLongRunningOperationTestService.cs index 55e90cd318..777ac90dce 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/AutoRestLongRunningOperationTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/AutoRestLongRunningOperationTestService.cs @@ -36,14 +36,14 @@ public partial class AutoRestLongRunningOperationTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -91,7 +91,7 @@ public partial class AutoRestLongRunningOperationTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestLongRunningOperationTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -102,10 +102,10 @@ protected AutoRestLongRunningOperationTestService(params DelegatingHandler[] han /// Initializes a new instance of the AutoRestLongRunningOperationTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestLongRunningOperationTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -119,7 +119,7 @@ protected AutoRestLongRunningOperationTestService(HttpClientHandler rootHandler, /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestLongRunningOperationTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -137,10 +137,10 @@ protected AutoRestLongRunningOperationTestService(Uri baseUri, params Delegating /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestLongRunningOperationTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -158,7 +158,7 @@ protected AutoRestLongRunningOperationTestService(Uri baseUri, HttpClientHandler /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestLongRunningOperationTestService(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -180,10 +180,10 @@ public AutoRestLongRunningOperationTestService(ServiceClientCredentials credenti /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestLongRunningOperationTestService(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -208,7 +208,7 @@ public AutoRestLongRunningOperationTestService(ServiceClientCredentials credenti /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestLongRunningOperationTestService(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -238,10 +238,10 @@ public AutoRestLongRunningOperationTestService(Uri baseUri, ServiceClientCredent /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestLongRunningOperationTestService(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/IAutoRestLongRunningOperationTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/IAutoRestLongRunningOperationTestService.cs index 4222f1e96a..d49ceef591 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/IAutoRestLongRunningOperationTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/IAutoRestLongRunningOperationTestService.cs @@ -29,12 +29,12 @@ public partial interface IAutoRestLongRunningOperationTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILRORetrysOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILRORetrysOperations.cs index 99270b1a44..35d96a4c06 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILRORetrysOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILRORetrysOperations.cs @@ -32,7 +32,7 @@ public partial interface ILRORetrysOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -48,7 +48,7 @@ public partial interface ILRORetrysOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -64,7 +64,7 @@ public partial interface ILRORetrysOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -80,7 +80,7 @@ public partial interface ILRORetrysOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -93,7 +93,7 @@ public partial interface ILRORetrysOperations /// last poll returns a ‘200’ with ProvisioningState=’Succeeded’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -106,7 +106,7 @@ public partial interface ILRORetrysOperations /// last poll returns a ‘200’ with ProvisioningState=’Succeeded’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -118,7 +118,7 @@ public partial interface ILRORetrysOperations /// returns a ‘200’ with ProvisioningState=’Succeeded’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -130,7 +130,7 @@ public partial interface ILRORetrysOperations /// returns a ‘200’ with ProvisioningState=’Succeeded’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -142,7 +142,7 @@ public partial interface ILRORetrysOperations /// Azure-AsyncOperation header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -154,7 +154,7 @@ public partial interface ILRORetrysOperations /// Azure-AsyncOperation header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -169,7 +169,7 @@ public partial interface ILRORetrysOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -184,7 +184,7 @@ public partial interface ILRORetrysOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -200,7 +200,7 @@ public partial interface ILRORetrysOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -216,7 +216,7 @@ public partial interface ILRORetrysOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILROSADsOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILROSADsOperations.cs index 5717f7f8f6..84c133cd20 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILROSADsOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILROSADsOperations.cs @@ -30,7 +30,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -44,7 +44,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -58,7 +58,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -72,7 +72,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -86,7 +86,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -100,7 +100,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -115,7 +115,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -130,7 +130,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -141,7 +141,7 @@ public partial interface ILROSADsOperations /// body /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -152,7 +152,7 @@ public partial interface ILROSADsOperations /// body /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -163,7 +163,7 @@ public partial interface ILROSADsOperations /// header /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -174,7 +174,7 @@ public partial interface ILROSADsOperations /// header /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -186,7 +186,7 @@ public partial interface ILROSADsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -198,7 +198,7 @@ public partial interface ILROSADsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -211,7 +211,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -224,7 +224,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -238,7 +238,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -252,7 +252,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -267,7 +267,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -282,7 +282,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -296,7 +296,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -310,7 +310,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -326,7 +326,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -342,7 +342,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -358,7 +358,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -374,7 +374,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -385,7 +385,7 @@ public partial interface ILROSADsOperations /// request, indicating success. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -396,7 +396,7 @@ public partial interface ILROSADsOperations /// request, indicating success. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -408,7 +408,7 @@ public partial interface ILROSADsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -420,7 +420,7 @@ public partial interface ILROSADsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -434,7 +434,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -448,7 +448,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -464,7 +464,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -480,7 +480,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -494,7 +494,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -508,7 +508,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -524,7 +524,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -540,7 +540,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -556,7 +556,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -572,7 +572,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -584,7 +584,7 @@ public partial interface ILROSADsOperations /// 'Retry-After' headers /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -596,7 +596,7 @@ public partial interface ILROSADsOperations /// 'Retry-After' headers /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -608,7 +608,7 @@ public partial interface ILROSADsOperations /// header is invalid /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -620,7 +620,7 @@ public partial interface ILROSADsOperations /// header is invalid /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -632,7 +632,7 @@ public partial interface ILROSADsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -644,7 +644,7 @@ public partial interface ILROSADsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -658,7 +658,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -672,7 +672,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -688,7 +688,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -704,7 +704,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -720,7 +720,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -736,7 +736,7 @@ public partial interface ILROSADsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILROsCustomHeaderOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILROsCustomHeaderOperations.cs index c39352b095..6be1d608c4 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILROsCustomHeaderOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILROsCustomHeaderOperations.cs @@ -34,7 +34,7 @@ public partial interface ILROsCustomHeaderOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -52,7 +52,7 @@ public partial interface ILROsCustomHeaderOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -70,7 +70,7 @@ public partial interface ILROsCustomHeaderOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -88,7 +88,7 @@ public partial interface ILROsCustomHeaderOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -105,7 +105,7 @@ public partial interface ILROsCustomHeaderOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -122,7 +122,7 @@ public partial interface ILROsCustomHeaderOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -140,7 +140,7 @@ public partial interface ILROsCustomHeaderOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -158,7 +158,7 @@ public partial interface ILROsCustomHeaderOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILROsOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILROsOperations.cs index 7bd37478bd..cbad22275f 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILROsOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/ILROsOperations.cs @@ -31,7 +31,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -46,7 +46,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -61,7 +61,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -76,7 +76,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -92,7 +92,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -108,7 +108,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -124,7 +124,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -140,7 +140,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -156,7 +156,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -172,7 +172,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -188,7 +188,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -204,7 +204,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -220,7 +220,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -236,7 +236,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -251,7 +251,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -266,7 +266,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -282,7 +282,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -298,7 +298,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -314,7 +314,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -330,7 +330,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -346,7 +346,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -362,7 +362,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -378,7 +378,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -394,7 +394,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -409,7 +409,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -424,7 +424,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -437,7 +437,7 @@ public partial interface ILROsOperations /// sku to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -450,7 +450,7 @@ public partial interface ILROsOperations /// sku to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -463,7 +463,7 @@ public partial interface ILROsOperations /// Sku to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -476,7 +476,7 @@ public partial interface ILROsOperations /// Sku to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -489,7 +489,7 @@ public partial interface ILROsOperations /// Sub Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -502,7 +502,7 @@ public partial interface ILROsOperations /// Sub Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -515,7 +515,7 @@ public partial interface ILROsOperations /// Sub Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -528,7 +528,7 @@ public partial interface ILROsOperations /// Sub Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -541,7 +541,7 @@ public partial interface ILROsOperations /// last poll returns a ‘200’ with ProvisioningState=’Succeeded’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -554,7 +554,7 @@ public partial interface ILROsOperations /// last poll returns a ‘200’ with ProvisioningState=’Succeeded’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -567,7 +567,7 @@ public partial interface ILROsOperations /// last poll returns a ‘200’ with ProvisioningState=’Failed’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -580,7 +580,7 @@ public partial interface ILROsOperations /// last poll returns a ‘200’ with ProvisioningState=’Failed’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -593,7 +593,7 @@ public partial interface ILROsOperations /// last poll returns a ‘200’ with ProvisioningState=’Canceled’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -606,7 +606,7 @@ public partial interface ILROsOperations /// last poll returns a ‘200’ with ProvisioningState=’Canceled’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -616,7 +616,7 @@ public partial interface ILROsOperations /// Long running delete succeeds and returns right away /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -626,7 +626,7 @@ public partial interface ILROsOperations /// Long running delete succeeds and returns right away /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -638,7 +638,7 @@ public partial interface ILROsOperations /// ‘200’ with ProvisioningState=’Succeeded’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -650,7 +650,7 @@ public partial interface ILROsOperations /// ‘200’ with ProvisioningState=’Succeeded’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -662,7 +662,7 @@ public partial interface ILROsOperations /// ‘200’ with ProvisioningState=’Succeeded’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -674,7 +674,7 @@ public partial interface ILROsOperations /// ‘200’ with ProvisioningState=’Succeeded’ /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -686,7 +686,7 @@ public partial interface ILROsOperations /// contain location header. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -698,7 +698,7 @@ public partial interface ILROsOperations /// contain location header. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -711,7 +711,7 @@ public partial interface ILROsOperations /// header. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -724,7 +724,7 @@ public partial interface ILROsOperations /// header. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -736,7 +736,7 @@ public partial interface ILROsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -748,7 +748,7 @@ public partial interface ILROsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -760,7 +760,7 @@ public partial interface ILROsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -772,7 +772,7 @@ public partial interface ILROsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -784,7 +784,7 @@ public partial interface ILROsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -796,7 +796,7 @@ public partial interface ILROsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -808,7 +808,7 @@ public partial interface ILROsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -820,7 +820,7 @@ public partial interface ILROsOperations /// header for operation status /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -832,7 +832,7 @@ public partial interface ILROsOperations /// response body after success. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -844,7 +844,7 @@ public partial interface ILROsOperations /// response body after success. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -859,7 +859,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -874,7 +874,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -889,7 +889,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -904,7 +904,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -920,7 +920,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -936,7 +936,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -952,7 +952,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -968,7 +968,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -984,7 +984,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -1000,7 +1000,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -1016,7 +1016,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -1032,7 +1032,7 @@ public partial interface ILROsOperations /// Product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperations.cs index 9ed93a653f..63825355c8 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperations.cs @@ -84,7 +84,7 @@ internal LRORetrysOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -291,7 +291,7 @@ internal LRORetrysOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -485,7 +485,7 @@ internal LRORetrysOperations(AutoRestLongRunningOperationTestService client) /// poll returns a ‘200’ with ProvisioningState=’Succeeded’ /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -688,7 +688,7 @@ internal LRORetrysOperations(AutoRestLongRunningOperationTestService client) /// ‘200’ with ProvisioningState=’Succeeded’ /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -855,7 +855,7 @@ internal LRORetrysOperations(AutoRestLongRunningOperationTestService client) /// header for operation status /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1028,7 +1028,7 @@ internal LRORetrysOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1210,7 +1210,7 @@ internal LRORetrysOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LROSADsOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LROSADsOperations.cs index cbd54f7811..d8ae3829fd 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LROSADsOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LROSADsOperations.cs @@ -78,7 +78,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -281,7 +281,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -484,7 +484,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -689,7 +689,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -877,7 +877,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Long running delete request, service returns a 400 with an error body /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1040,7 +1040,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Long running delete request, service returns a 202 with a location header /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1207,7 +1207,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// operation status /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1376,7 +1376,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1552,7 +1552,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1732,7 +1732,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1912,7 +1912,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2117,7 +2117,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2317,7 +2317,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2507,7 +2507,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// indicating success. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2661,7 +2661,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// operation status /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2832,7 +2832,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3012,7 +3012,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3192,7 +3192,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3379,7 +3379,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3579,7 +3579,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3769,7 +3769,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// receing a reponse with an invalid 'Location' and 'Retry-After' headers /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3934,7 +3934,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// The endpoint indicated in the Azure-AsyncOperation header is invalid /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4101,7 +4101,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// operation status /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4272,7 +4272,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4452,7 +4452,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4632,7 +4632,7 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LROsCustomHeaderOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LROsCustomHeaderOperations.cs index a6475eba26..c768bbeced 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LROsCustomHeaderOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LROsCustomHeaderOperations.cs @@ -86,7 +86,7 @@ internal LROsCustomHeaderOperations(AutoRestLongRunningOperationTestService clie /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -290,7 +290,7 @@ internal LROsCustomHeaderOperations(AutoRestLongRunningOperationTestService clie /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -495,7 +495,7 @@ internal LROsCustomHeaderOperations(AutoRestLongRunningOperationTestService clie /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -679,7 +679,7 @@ internal LROsCustomHeaderOperations(AutoRestLongRunningOperationTestService clie /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LROsOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LROsOperations.cs index b518b2963b..385ce0aff5 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LROsOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LROsOperations.cs @@ -80,7 +80,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -265,7 +265,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -452,7 +452,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -641,7 +641,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -848,7 +848,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1037,7 +1037,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1244,7 +1244,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1431,7 +1431,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1631,7 +1631,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1831,7 +1831,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2031,7 +2031,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2231,7 +2231,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2431,7 +2431,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2627,7 +2627,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// sku to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2810,7 +2810,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Sku to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2993,7 +2993,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Sub Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3176,7 +3176,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Sub Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3357,7 +3357,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// ProvisioningState=’Succeeded’ /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3562,7 +3562,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// ProvisioningState=’Failed’ /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3767,7 +3767,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// ProvisioningState=’Canceled’ /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3966,7 +3966,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Long running delete succeeds and returns right away /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4120,7 +4120,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// ProvisioningState=’Succeeded’ /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4305,7 +4305,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// ProvisioningState=’Succeeded’ /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4490,7 +4490,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// location header. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4657,7 +4657,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// not contain Azure-AsyncOperation header. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4824,7 +4824,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// operation status /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4991,7 +4991,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// operation status /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5158,7 +5158,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// operation status /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5325,7 +5325,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// operation status /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5492,7 +5492,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// success. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5688,7 +5688,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5866,7 +5866,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6064,7 +6064,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6262,7 +6262,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6460,7 +6460,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6640,7 +6640,7 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) /// Product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. 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 deleted file mode 100644 index 5a86816dc6..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDelete202Retry200Headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for delete202Retry200 operation. - /// - public partial class LRORetrysDelete202Retry200Headers - { - /// - /// Initializes a new instance of the - /// LRORetrysDelete202Retry200Headers class. - /// - public LRORetrysDelete202Retry200Headers() { } - - /// - /// Initializes a new instance of the - /// LRORetrysDelete202Retry200Headers class. - /// - public LRORetrysDelete202Retry200Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index e368937f0d..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteAsyncRelativeRetrySucceededHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteAsyncRelativeRetrySucceeded operation. - /// - public partial class LRORetrysDeleteAsyncRelativeRetrySucceededHeaders - { - /// - /// Initializes a new instance of the - /// LRORetrysDeleteAsyncRelativeRetrySucceededHeaders class. - /// - public LRORetrysDeleteAsyncRelativeRetrySucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LRORetrysDeleteAsyncRelativeRetrySucceededHeaders class. - /// - public LRORetrysDeleteAsyncRelativeRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 6bf24c3d9a..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteProvisioning202Accepted200SucceededHeaders.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteProvisioning202Accepted200Succeeded - /// operation. - /// - public partial class LRORetrysDeleteProvisioning202Accepted200SucceededHeaders - { - /// - /// Initializes a new instance of the - /// LRORetrysDeleteProvisioning202Accepted200SucceededHeaders class. - /// - public LRORetrysDeleteProvisioning202Accepted200SucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LRORetrysDeleteProvisioning202Accepted200SucceededHeaders class. - /// - public LRORetrysDeleteProvisioning202Accepted200SucceededHeaders(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index d8e377089a..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPost202Retry200Headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for post202Retry200 operation. - /// - public partial class LRORetrysPost202Retry200Headers - { - /// - /// Initializes a new instance of the LRORetrysPost202Retry200Headers - /// class. - /// - public LRORetrysPost202Retry200Headers() { } - - /// - /// Initializes a new instance of the LRORetrysPost202Retry200Headers - /// class. - /// - public LRORetrysPost202Retry200Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index 0cf65de610..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPostAsyncRelativeRetrySucceededHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for postAsyncRelativeRetrySucceeded operation. - /// - public partial class LRORetrysPostAsyncRelativeRetrySucceededHeaders - { - /// - /// Initializes a new instance of the - /// LRORetrysPostAsyncRelativeRetrySucceededHeaders class. - /// - public LRORetrysPostAsyncRelativeRetrySucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LRORetrysPostAsyncRelativeRetrySucceededHeaders class. - /// - public LRORetrysPostAsyncRelativeRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index eeb61fc755..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPutAsyncRelativeRetrySucceededHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putAsyncRelativeRetrySucceeded operation. - /// - public partial class LRORetrysPutAsyncRelativeRetrySucceededHeaders - { - /// - /// Initializes a new instance of the - /// LRORetrysPutAsyncRelativeRetrySucceededHeaders class. - /// - public LRORetrysPutAsyncRelativeRetrySucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LRORetrysPutAsyncRelativeRetrySucceededHeaders class. - /// - public LRORetrysPutAsyncRelativeRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 5178d27baa..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202NonRetry400Headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for delete202NonRetry400 operation. - /// - public partial class LROSADsDelete202NonRetry400Headers - { - /// - /// Initializes a new instance of the - /// LROSADsDelete202NonRetry400Headers class. - /// - public LROSADsDelete202NonRetry400Headers() { } - - /// - /// Initializes a new instance of the - /// LROSADsDelete202NonRetry400Headers class. - /// - public LROSADsDelete202NonRetry400Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index 74944259a2..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202RetryInvalidHeaderHeaders.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for delete202RetryInvalidHeader operation. - /// - public partial class LROSADsDelete202RetryInvalidHeaderHeaders - { - /// - /// Initializes a new instance of the - /// LROSADsDelete202RetryInvalidHeaderHeaders class. - /// - public LROSADsDelete202RetryInvalidHeaderHeaders() { } - - /// - /// Initializes a new instance of the - /// LROSADsDelete202RetryInvalidHeaderHeaders class. - /// - public LROSADsDelete202RetryInvalidHeaderHeaders(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index fc54f97d80..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetry400Headers.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteAsyncRelativeRetry400 operation. - /// - public partial class LROSADsDeleteAsyncRelativeRetry400Headers - { - /// - /// Initializes a new instance of the - /// LROSADsDeleteAsyncRelativeRetry400Headers class. - /// - public LROSADsDeleteAsyncRelativeRetry400Headers() { } - - /// - /// Initializes a new instance of the - /// LROSADsDeleteAsyncRelativeRetry400Headers class. - /// - public LROSADsDeleteAsyncRelativeRetry400Headers(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 1c1262eb4b..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteAsyncRelativeRetryInvalidHeader operation. - /// - public partial class LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders - { - /// - /// Initializes a new instance of the - /// LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders class. - /// - public LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders() { } - - /// - /// Initializes a new instance of the - /// LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders class. - /// - public LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "Location")] - public string Location { get; set; } - - /// - /// 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 deleted file mode 100644 index 2ccbcaf1f6..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.cs +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteAsyncRelativeRetryInvalidJsonPolling - /// operation. - /// - public partial class LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders - { - /// - /// Initializes a new instance of the - /// LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders class. - /// - public LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders() { } - - /// - /// Initializes a new instance of the - /// LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders class. - /// - public LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index a3b082bc44..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteAsyncRelativeRetryNoStatus operation. - /// - public partial class LROSADsDeleteAsyncRelativeRetryNoStatusHeaders - { - /// - /// Initializes a new instance of the - /// LROSADsDeleteAsyncRelativeRetryNoStatusHeaders class. - /// - public LROSADsDeleteAsyncRelativeRetryNoStatusHeaders() { } - - /// - /// Initializes a new instance of the - /// LROSADsDeleteAsyncRelativeRetryNoStatusHeaders class. - /// - public LROSADsDeleteAsyncRelativeRetryNoStatusHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 8388c132db..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteNonRetry400Headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteNonRetry400 operation. - /// - public partial class LROSADsDeleteNonRetry400Headers - { - /// - /// Initializes a new instance of the LROSADsDeleteNonRetry400Headers - /// class. - /// - public LROSADsDeleteNonRetry400Headers() { } - - /// - /// Initializes a new instance of the LROSADsDeleteNonRetry400Headers - /// class. - /// - public LROSADsDeleteNonRetry400Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index d0ff72b048..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NoLocationHeaders.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for post202NoLocation operation. - /// - public partial class LROSADsPost202NoLocationHeaders - { - /// - /// Initializes a new instance of the LROSADsPost202NoLocationHeaders - /// class. - /// - public LROSADsPost202NoLocationHeaders() { } - - /// - /// Initializes a new instance of the LROSADsPost202NoLocationHeaders - /// class. - /// - public LROSADsPost202NoLocationHeaders(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index 4a631690e2..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NonRetry400Headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for post202NonRetry400 operation. - /// - public partial class LROSADsPost202NonRetry400Headers - { - /// - /// Initializes a new instance of the LROSADsPost202NonRetry400Headers - /// class. - /// - public LROSADsPost202NonRetry400Headers() { } - - /// - /// Initializes a new instance of the LROSADsPost202NonRetry400Headers - /// class. - /// - public LROSADsPost202NonRetry400Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index 8d258cf724..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202RetryInvalidHeaderHeaders.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for post202RetryInvalidHeader operation. - /// - public partial class LROSADsPost202RetryInvalidHeaderHeaders - { - /// - /// Initializes a new instance of the - /// LROSADsPost202RetryInvalidHeaderHeaders class. - /// - public LROSADsPost202RetryInvalidHeaderHeaders() { } - - /// - /// Initializes a new instance of the - /// LROSADsPost202RetryInvalidHeaderHeaders class. - /// - public LROSADsPost202RetryInvalidHeaderHeaders(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index 8b4d91544b..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetry400Headers.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for postAsyncRelativeRetry400 operation. - /// - public partial class LROSADsPostAsyncRelativeRetry400Headers - { - /// - /// Initializes a new instance of the - /// LROSADsPostAsyncRelativeRetry400Headers class. - /// - public LROSADsPostAsyncRelativeRetry400Headers() { } - - /// - /// Initializes a new instance of the - /// LROSADsPostAsyncRelativeRetry400Headers class. - /// - public LROSADsPostAsyncRelativeRetry400Headers(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index ff5102bac8..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for postAsyncRelativeRetryInvalidHeader operation. - /// - public partial class LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders - { - /// - /// Initializes a new instance of the - /// LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders class. - /// - public LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders() { } - - /// - /// Initializes a new instance of the - /// LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders class. - /// - public LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [JsonProperty(PropertyName = "Location")] - public string Location { get; set; } - - /// - /// 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 deleted file mode 100644 index 6b33dddde0..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for postAsyncRelativeRetryInvalidJsonPolling operation. - /// - public partial class LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders - { - /// - /// Initializes a new instance of the - /// LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders class. - /// - public LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders() { } - - /// - /// Initializes a new instance of the - /// LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders class. - /// - public LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 6b879e10ce..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryNoPayloadHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for postAsyncRelativeRetryNoPayload operation. - /// - public partial class LROSADsPostAsyncRelativeRetryNoPayloadHeaders - { - /// - /// Initializes a new instance of the - /// LROSADsPostAsyncRelativeRetryNoPayloadHeaders class. - /// - public LROSADsPostAsyncRelativeRetryNoPayloadHeaders() { } - - /// - /// Initializes a new instance of the - /// LROSADsPostAsyncRelativeRetryNoPayloadHeaders class. - /// - public LROSADsPostAsyncRelativeRetryNoPayloadHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index b84f0a4ab2..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostNonRetry400Headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for postNonRetry400 operation. - /// - public partial class LROSADsPostNonRetry400Headers - { - /// - /// Initializes a new instance of the LROSADsPostNonRetry400Headers - /// class. - /// - public LROSADsPostNonRetry400Headers() { } - - /// - /// Initializes a new instance of the LROSADsPostNonRetry400Headers - /// class. - /// - public LROSADsPostNonRetry400Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index 4517f177b7..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetry400Headers.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putAsyncRelativeRetry400 operation. - /// - public partial class LROSADsPutAsyncRelativeRetry400Headers - { - /// - /// Initializes a new instance of the - /// LROSADsPutAsyncRelativeRetry400Headers class. - /// - public LROSADsPutAsyncRelativeRetry400Headers() { } - - /// - /// Initializes a new instance of the - /// LROSADsPutAsyncRelativeRetry400Headers class. - /// - public LROSADsPutAsyncRelativeRetry400Headers(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 31f90b28d9..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putAsyncRelativeRetryInvalidHeader operation. - /// - public partial class LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders - { - /// - /// Initializes a new instance of the - /// LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders class. - /// - public LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders() { } - - /// - /// Initializes a new instance of the - /// LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders class. - /// - public LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index cca85263d8..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putAsyncRelativeRetryInvalidJsonPolling operation. - /// - public partial class LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders - { - /// - /// Initializes a new instance of the - /// LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders class. - /// - public LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders() { } - - /// - /// Initializes a new instance of the - /// LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders class. - /// - public LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 5a4aeef323..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putAsyncRelativeRetryNoStatus operation. - /// - public partial class LROSADsPutAsyncRelativeRetryNoStatusHeaders - { - /// - /// Initializes a new instance of the - /// LROSADsPutAsyncRelativeRetryNoStatusHeaders class. - /// - public LROSADsPutAsyncRelativeRetryNoStatusHeaders() { } - - /// - /// Initializes a new instance of the - /// LROSADsPutAsyncRelativeRetryNoStatusHeaders class. - /// - public LROSADsPutAsyncRelativeRetryNoStatusHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index d027036126..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putAsyncRelativeRetryNoStatusPayload operation. - /// - public partial class LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders - { - /// - /// Initializes a new instance of the - /// LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders class. - /// - public LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders() { } - - /// - /// Initializes a new instance of the - /// LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders class. - /// - public LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 462144eb41..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPost202Retry200Headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for post202Retry200 operation. - /// - public partial class LROsCustomHeaderPost202Retry200Headers - { - /// - /// Initializes a new instance of the - /// LROsCustomHeaderPost202Retry200Headers class. - /// - public LROsCustomHeaderPost202Retry200Headers() { } - - /// - /// Initializes a new instance of the - /// LROsCustomHeaderPost202Retry200Headers class. - /// - public LROsCustomHeaderPost202Retry200Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index 5a4c1cc900..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPostAsyncRetrySucceededHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for postAsyncRetrySucceeded operation. - /// - public partial class LROsCustomHeaderPostAsyncRetrySucceededHeaders - { - /// - /// Initializes a new instance of the - /// LROsCustomHeaderPostAsyncRetrySucceededHeaders class. - /// - public LROsCustomHeaderPostAsyncRetrySucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsCustomHeaderPostAsyncRetrySucceededHeaders class. - /// - public LROsCustomHeaderPostAsyncRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 40a58b6675..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPutAsyncRetrySucceededHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putAsyncRetrySucceeded operation. - /// - public partial class LROsCustomHeaderPutAsyncRetrySucceededHeaders - { - /// - /// Initializes a new instance of the - /// LROsCustomHeaderPutAsyncRetrySucceededHeaders class. - /// - public LROsCustomHeaderPutAsyncRetrySucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsCustomHeaderPutAsyncRetrySucceededHeaders class. - /// - public LROsCustomHeaderPutAsyncRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 74f325ecf8..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202NoRetry204Headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for delete202NoRetry204 operation. - /// - public partial class LROsDelete202NoRetry204Headers - { - /// - /// Initializes a new instance of the LROsDelete202NoRetry204Headers - /// class. - /// - public LROsDelete202NoRetry204Headers() { } - - /// - /// Initializes a new instance of the LROsDelete202NoRetry204Headers - /// class. - /// - public LROsDelete202NoRetry204Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index 73fec76b06..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202Retry200Headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for delete202Retry200 operation. - /// - public partial class LROsDelete202Retry200Headers - { - /// - /// Initializes a new instance of the LROsDelete202Retry200Headers - /// class. - /// - public LROsDelete202Retry200Headers() { } - - /// - /// Initializes a new instance of the LROsDelete202Retry200Headers - /// class. - /// - public LROsDelete202Retry200Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index 2be5bc4d04..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoHeaderInRetryHeaders.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteAsyncNoHeaderInRetry operation. - /// - public partial class LROsDeleteAsyncNoHeaderInRetryHeaders - { - /// - /// Initializes a new instance of the - /// LROsDeleteAsyncNoHeaderInRetryHeaders class. - /// - public LROsDeleteAsyncNoHeaderInRetryHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsDeleteAsyncNoHeaderInRetryHeaders class. - /// - public LROsDeleteAsyncNoHeaderInRetryHeaders(string location = default(string)) - { - Location = location; - } - - /// - /// Location to poll for result status: will be set to - /// /lro/put/noheader/202/204/operationresults - /// - [JsonProperty(PropertyName = "Location")] - public string Location { get; set; } - - } -} 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 deleted file mode 100644 index edbb8bacea..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoRetrySucceededHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteAsyncNoRetrySucceeded operation. - /// - public partial class LROsDeleteAsyncNoRetrySucceededHeaders - { - /// - /// Initializes a new instance of the - /// LROsDeleteAsyncNoRetrySucceededHeaders class. - /// - public LROsDeleteAsyncNoRetrySucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsDeleteAsyncNoRetrySucceededHeaders class. - /// - public LROsDeleteAsyncNoRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index f23c19fe68..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetryFailedHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteAsyncRetryFailed operation. - /// - public partial class LROsDeleteAsyncRetryFailedHeaders - { - /// - /// Initializes a new instance of the - /// LROsDeleteAsyncRetryFailedHeaders class. - /// - public LROsDeleteAsyncRetryFailedHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsDeleteAsyncRetryFailedHeaders class. - /// - public LROsDeleteAsyncRetryFailedHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index be0fa3a4ea..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrySucceededHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteAsyncRetrySucceeded operation. - /// - public partial class LROsDeleteAsyncRetrySucceededHeaders - { - /// - /// Initializes a new instance of the - /// LROsDeleteAsyncRetrySucceededHeaders class. - /// - public LROsDeleteAsyncRetrySucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsDeleteAsyncRetrySucceededHeaders class. - /// - public LROsDeleteAsyncRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index ce2675bf5c..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrycanceledHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteAsyncRetrycanceled operation. - /// - public partial class LROsDeleteAsyncRetrycanceledHeaders - { - /// - /// Initializes a new instance of the - /// LROsDeleteAsyncRetrycanceledHeaders class. - /// - public LROsDeleteAsyncRetrycanceledHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsDeleteAsyncRetrycanceledHeaders class. - /// - public LROsDeleteAsyncRetrycanceledHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 039a86d9a9..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteNoHeaderInRetryHeaders.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteNoHeaderInRetry operation. - /// - public partial class LROsDeleteNoHeaderInRetryHeaders - { - /// - /// Initializes a new instance of the LROsDeleteNoHeaderInRetryHeaders - /// class. - /// - public LROsDeleteNoHeaderInRetryHeaders() { } - - /// - /// Initializes a new instance of the LROsDeleteNoHeaderInRetryHeaders - /// class. - /// - public LROsDeleteNoHeaderInRetryHeaders(string location = default(string)) - { - Location = location; - } - - /// - /// Location to poll for result status: will be set to - /// /lro/put/noheader/202/204/operationresults - /// - [JsonProperty(PropertyName = "Location")] - public string Location { get; set; } - - } -} 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 deleted file mode 100644 index af5c4ef25c..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Accepted200SucceededHeaders.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteProvisioning202Accepted200Succeeded - /// operation. - /// - public partial class LROsDeleteProvisioning202Accepted200SucceededHeaders - { - /// - /// Initializes a new instance of the - /// LROsDeleteProvisioning202Accepted200SucceededHeaders class. - /// - public LROsDeleteProvisioning202Accepted200SucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsDeleteProvisioning202Accepted200SucceededHeaders class. - /// - public LROsDeleteProvisioning202Accepted200SucceededHeaders(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index c7cd89096d..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202DeletingFailed200Headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteProvisioning202DeletingFailed200 operation. - /// - public partial class LROsDeleteProvisioning202DeletingFailed200Headers - { - /// - /// Initializes a new instance of the - /// LROsDeleteProvisioning202DeletingFailed200Headers class. - /// - public LROsDeleteProvisioning202DeletingFailed200Headers() { } - - /// - /// Initializes a new instance of the - /// LROsDeleteProvisioning202DeletingFailed200Headers class. - /// - public LROsDeleteProvisioning202DeletingFailed200Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index 0ded45ed51..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Deletingcanceled200Headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for deleteProvisioning202Deletingcanceled200 operation. - /// - public partial class LROsDeleteProvisioning202Deletingcanceled200Headers - { - /// - /// Initializes a new instance of the - /// LROsDeleteProvisioning202Deletingcanceled200Headers class. - /// - public LROsDeleteProvisioning202Deletingcanceled200Headers() { } - - /// - /// Initializes a new instance of the - /// LROsDeleteProvisioning202Deletingcanceled200Headers class. - /// - public LROsDeleteProvisioning202Deletingcanceled200Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index 5ee71af14e..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202NoRetry204Headers.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for post202NoRetry204 operation. - /// - public partial class LROsPost202NoRetry204Headers - { - /// - /// Initializes a new instance of the LROsPost202NoRetry204Headers - /// class. - /// - public LROsPost202NoRetry204Headers() { } - - /// - /// Initializes a new instance of the LROsPost202NoRetry204Headers - /// class. - /// - public LROsPost202NoRetry204Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index 15ec656304..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202Retry200Headers.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for post202Retry200 operation. - /// - public partial class LROsPost202Retry200Headers - { - /// - /// Initializes a new instance of the LROsPost202Retry200Headers class. - /// - public LROsPost202Retry200Headers() { } - - /// - /// Initializes a new instance of the LROsPost202Retry200Headers class. - /// - public LROsPost202Retry200Headers(string location = default(string), int? retryAfter = default(int?)) - { - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// - [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 deleted file mode 100644 index b42d705c25..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncNoRetrySucceededHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for postAsyncNoRetrySucceeded operation. - /// - public partial class LROsPostAsyncNoRetrySucceededHeaders - { - /// - /// Initializes a new instance of the - /// LROsPostAsyncNoRetrySucceededHeaders class. - /// - public LROsPostAsyncNoRetrySucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsPostAsyncNoRetrySucceededHeaders class. - /// - public LROsPostAsyncNoRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index c917433f20..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetryFailedHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for postAsyncRetryFailed operation. - /// - public partial class LROsPostAsyncRetryFailedHeaders - { - /// - /// Initializes a new instance of the LROsPostAsyncRetryFailedHeaders - /// class. - /// - public LROsPostAsyncRetryFailedHeaders() { } - - /// - /// Initializes a new instance of the LROsPostAsyncRetryFailedHeaders - /// class. - /// - public LROsPostAsyncRetryFailedHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 54b3e15d51..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrySucceededHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for postAsyncRetrySucceeded operation. - /// - public partial class LROsPostAsyncRetrySucceededHeaders - { - /// - /// Initializes a new instance of the - /// LROsPostAsyncRetrySucceededHeaders class. - /// - public LROsPostAsyncRetrySucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsPostAsyncRetrySucceededHeaders class. - /// - public LROsPostAsyncRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 0b4068d4ec..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrycanceledHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for postAsyncRetrycanceled operation. - /// - public partial class LROsPostAsyncRetrycanceledHeaders - { - /// - /// Initializes a new instance of the - /// LROsPostAsyncRetrycanceledHeaders class. - /// - public LROsPostAsyncRetrycanceledHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsPostAsyncRetrycanceledHeaders class. - /// - public LROsPostAsyncRetrycanceledHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [JsonProperty(PropertyName = "Retry-After")] - public int? RetryAfter { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoHeaderInRetryHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoHeaderInRetryHeaders.cs deleted file mode 100644 index cc8968175a..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoHeaderInRetryHeaders.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putAsyncNoHeaderInRetry operation. - /// - public partial class LROsPutAsyncNoHeaderInRetryHeaders - { - /// - /// Initializes a new instance of the - /// LROsPutAsyncNoHeaderInRetryHeaders class. - /// - public LROsPutAsyncNoHeaderInRetryHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsPutAsyncNoHeaderInRetryHeaders class. - /// - public LROsPutAsyncNoHeaderInRetryHeaders(string azureAsyncOperation = default(string)) - { - AzureAsyncOperation = azureAsyncOperation; - } - - /// - /// - [JsonProperty(PropertyName = "Azure-AsyncOperation")] - public string AzureAsyncOperation { 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 deleted file mode 100644 index 517418b91e..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrySucceededHeaders.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putAsyncNoRetrySucceeded operation. - /// - public partial class LROsPutAsyncNoRetrySucceededHeaders - { - /// - /// Initializes a new instance of the - /// LROsPutAsyncNoRetrySucceededHeaders class. - /// - public LROsPutAsyncNoRetrySucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsPutAsyncNoRetrySucceededHeaders class. - /// - public LROsPutAsyncNoRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - } - - /// - /// 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 - /// /lro/putasync/noretry/succeeded/operationResults/200 - /// - [JsonProperty(PropertyName = "Location")] - public string Location { get; set; } - - } -} 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 deleted file mode 100644 index d2d6debcc6..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrycanceledHeaders.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putAsyncNoRetrycanceled operation. - /// - public partial class LROsPutAsyncNoRetrycanceledHeaders - { - /// - /// Initializes a new instance of the - /// LROsPutAsyncNoRetrycanceledHeaders class. - /// - public LROsPutAsyncNoRetrycanceledHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsPutAsyncNoRetrycanceledHeaders class. - /// - public LROsPutAsyncNoRetrycanceledHeaders(string azureAsyncOperation = default(string), string location = default(string)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - } - - /// - /// 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 - /// /lro/putasync/noretry/canceled/operationResults/200 - /// - [JsonProperty(PropertyName = "Location")] - public string Location { get; set; } - - } -} 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 deleted file mode 100644 index d4d12deaca..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetryFailedHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putAsyncRetryFailed operation. - /// - public partial class LROsPutAsyncRetryFailedHeaders - { - /// - /// Initializes a new instance of the LROsPutAsyncRetryFailedHeaders - /// class. - /// - public LROsPutAsyncRetryFailedHeaders() { } - - /// - /// Initializes a new instance of the LROsPutAsyncRetryFailedHeaders - /// class. - /// - public LROsPutAsyncRetryFailedHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 3b09b57d0c..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetrySucceededHeaders.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putAsyncRetrySucceeded operation. - /// - public partial class LROsPutAsyncRetrySucceededHeaders - { - /// - /// Initializes a new instance of the - /// LROsPutAsyncRetrySucceededHeaders class. - /// - public LROsPutAsyncRetrySucceededHeaders() { } - - /// - /// Initializes a new instance of the - /// LROsPutAsyncRetrySucceededHeaders class. - /// - public LROsPutAsyncRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) - { - AzureAsyncOperation = azureAsyncOperation; - Location = location; - RetryAfter = retryAfter; - } - - /// - /// 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 - /// /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 - /// - [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 deleted file mode 100644 index 66cec59294..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutNoHeaderInRetryHeaders.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Defines headers for putNoHeaderInRetry operation. - /// - public partial class LROsPutNoHeaderInRetryHeaders - { - /// - /// Initializes a new instance of the LROsPutNoHeaderInRetryHeaders - /// class. - /// - public LROsPutNoHeaderInRetryHeaders() { } - - /// - /// Initializes a new instance of the LROsPutNoHeaderInRetryHeaders - /// class. - /// - public LROsPutNoHeaderInRetryHeaders(string location = default(string)) - { - Location = location; - } - - /// - /// Location to poll for result status: will be set to - /// /lro/putasync/noheader/202/200/operationResults - /// - [JsonProperty(PropertyName = "location")] - public string Location { get; set; } - - } -} 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 deleted file mode 100644 index 644400aec8..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResult.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class OperationResult - { - /// - /// Initializes a new instance of the OperationResult class. - /// - public OperationResult() { } - - /// - /// Initializes a new instance of the OperationResult class. - /// - public OperationResult(string status = default(string), OperationResultError error = default(OperationResultError)) - { - Status = status; - Error = error; - } - - /// - /// 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; } - - /// - /// - [JsonProperty(PropertyName = "error")] - public OperationResultError Error { 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 deleted file mode 100644 index e215156e34..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResultError.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class OperationResultError - { - /// - /// Initializes a new instance of the OperationResultError class. - /// - public OperationResultError() { } - - /// - /// Initializes a new instance of the OperationResultError class. - /// - public OperationResultError(int? code = default(int?), string message = default(string)) - { - Code = code; - Message = message; - } - - /// - /// The error code for an operation failure - /// - [JsonProperty(PropertyName = "code")] - public int? Code { get; set; } - - /// - /// 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 deleted file mode 100644 index 989a0ca86d..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Product.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - [JsonTransformation] - public partial class Product : Resource - { - /// - /// Initializes a new instance of the Product class. - /// - public Product() { } - - /// - /// Initializes a new instance of the Product class. - /// - public Product(string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string name = default(string), string provisioningState = default(string), string provisioningStateValues = default(string)) - : base(id, type, tags, location, name) - { - ProvisioningState = provisioningState; - ProvisioningStateValues = provisioningStateValues; - } - - /// - /// - [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; set; } - - /// - /// Possible values include: 'Succeeded', 'Failed', 'canceled', - /// 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', - /// 'Deleting', 'Deleted', 'OK' - /// - [JsonProperty(PropertyName = "properties.provisioningStateValues")] - public string ProvisioningStateValues { get; private set; } - - } -} 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 deleted file mode 100644 index f723039e2e..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Resource.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Resource : IResource - { - /// - /// Initializes a new instance of the Resource class. - /// - public Resource() { } - - /// - /// Initializes a new instance of the Resource class. - /// - public Resource(string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string name = default(string)) - { - Id = id; - Type = type; - Tags = tags; - Location = location; - Name = name; - } - - /// - /// Resource Id - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; private set; } - - /// - /// Resource Type - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } - - /// - /// - [JsonProperty(PropertyName = "tags")] - public IDictionary Tags { get; set; } - - /// - /// Resource Location - /// - [JsonProperty(PropertyName = "location")] - public string Location { get; set; } - - /// - /// Resource Name - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; private set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Sku.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Sku.cs deleted file mode 100644 index efccdba202..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Sku.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Sku - { - /// - /// Initializes a new instance of the Sku class. - /// - public Sku() { } - - /// - /// Initializes a new instance of the Sku class. - /// - public Sku(string name = default(string), string id = default(string)) - { - Name = name; - Id = id; - } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; 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 deleted file mode 100644 index 3e2dfb9136..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubProduct.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - [JsonTransformation] - public partial class SubProduct : SubResource - { - /// - /// Initializes a new instance of the SubProduct class. - /// - public SubProduct() { } - - /// - /// Initializes a new instance of the SubProduct class. - /// - public SubProduct(string id = default(string), string provisioningState = default(string), string provisioningStateValues = default(string)) - : base(id) - { - ProvisioningState = provisioningState; - ProvisioningStateValues = provisioningStateValues; - } - - /// - /// - [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; set; } - - /// - /// Possible values include: 'Succeeded', 'Failed', 'canceled', - /// 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', - /// 'Deleting', 'Deleted', 'OK' - /// - [JsonProperty(PropertyName = "properties.provisioningStateValues")] - public string ProvisioningStateValues { get; private set; } - - } -} 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 deleted file mode 100644 index a41dc0dd84..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubResource.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsLro.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class SubResource : IResource - { - /// - /// Initializes a new instance of the SubResource class. - /// - public SubResource() { } - - /// - /// Initializes a new instance of the SubResource class. - /// - public SubResource(string id = default(string)) - { - Id = id; - } - - /// - /// Sub Resource Id - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; private set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/AutoRestPagingTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/AutoRestPagingTestService.cs index d57bdc0d3e..e2bc7f6fa2 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/AutoRestPagingTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/AutoRestPagingTestService.cs @@ -36,14 +36,14 @@ public partial class AutoRestPagingTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -76,7 +76,7 @@ public partial class AutoRestPagingTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestPagingTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -87,10 +87,10 @@ protected AutoRestPagingTestService(params DelegatingHandler[] handlers) : base( /// Initializes a new instance of the AutoRestPagingTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestPagingTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -104,7 +104,7 @@ protected AutoRestPagingTestService(HttpClientHandler rootHandler, params Delega /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestPagingTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -122,10 +122,10 @@ protected AutoRestPagingTestService(Uri baseUri, params DelegatingHandler[] hand /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected AutoRestPagingTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -143,7 +143,7 @@ protected AutoRestPagingTestService(Uri baseUri, HttpClientHandler rootHandler, /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestPagingTestService(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -165,10 +165,10 @@ public AutoRestPagingTestService(ServiceClientCredentials credentials, params De /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestPagingTestService(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -193,7 +193,7 @@ public AutoRestPagingTestService(ServiceClientCredentials credentials, HttpClien /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestPagingTestService(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -223,10 +223,10 @@ public AutoRestPagingTestService(Uri baseUri, ServiceClientCredentials credentia /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestPagingTestService(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/IAutoRestPagingTestService.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/IAutoRestPagingTestService.cs index 5a46cbe94a..55b48b95c1 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/IAutoRestPagingTestService.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/IAutoRestPagingTestService.cs @@ -29,12 +29,12 @@ public partial interface IAutoRestPagingTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/IPagingOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/IPagingOperations.cs index c21b774744..f996c23ea1 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/IPagingOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/IPagingOperations.cs @@ -27,7 +27,7 @@ public partial interface IPagingOperations /// nextlink /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -42,7 +42,7 @@ public partial interface IPagingOperations /// Additional parameters for the operation /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -57,7 +57,7 @@ public partial interface IPagingOperations /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -69,7 +69,7 @@ public partial interface IPagingOperations /// pages /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -81,7 +81,7 @@ public partial interface IPagingOperations /// and finish all 10 pages eventually. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -91,7 +91,7 @@ public partial interface IPagingOperations /// A paging operation that receives a 400 on the first call /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -101,7 +101,7 @@ public partial interface IPagingOperations /// A paging operation that receives a 400 on the second call /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -111,7 +111,7 @@ public partial interface IPagingOperations /// A paging operation that receives an invalid nextLink /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -125,7 +125,7 @@ public partial interface IPagingOperations /// The NextLink from the previous successful call to List operation. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -143,7 +143,7 @@ public partial interface IPagingOperations /// Additional parameters for the operation /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -161,7 +161,7 @@ public partial interface IPagingOperations /// Additional parameters for the operation /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -176,7 +176,7 @@ public partial interface IPagingOperations /// The NextLink from the previous successful call to List operation. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -191,7 +191,7 @@ public partial interface IPagingOperations /// The NextLink from the previous successful call to List operation. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -204,7 +204,7 @@ public partial interface IPagingOperations /// The NextLink from the previous successful call to List operation. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -217,7 +217,7 @@ public partial interface IPagingOperations /// The NextLink from the previous successful call to List operation. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -230,7 +230,7 @@ public partial interface IPagingOperations /// The NextLink from the previous successful call to List operation. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. 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 deleted file mode 100644 index 584dc52c77..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/OperationResult.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsPaging.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class OperationResult - { - /// - /// Initializes a new instance of the OperationResult class. - /// - public OperationResult() { } - - /// - /// Initializes a new instance of the OperationResult class. - /// - public OperationResult(string status = default(string)) - { - Status = status; - } - - /// - /// 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/Page.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Page.cs deleted file mode 100644 index d28a47e439..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Page.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsPaging.Models -{ - using System.Collections.Generic; - using System.Linq; - using Newtonsoft.Json; - using Microsoft.Rest.Azure; - - /// - /// Defines a page in Azure responses. - /// - /// Type of the page content items - [JsonObject] - public class Page : IPage - { - /// - /// Gets the link to the next page. - /// - [JsonProperty("nextLink")] - public string NextPageLink { get; private set; } - - [JsonProperty("values")] - private IList Items{ get; set; } - - /// - /// Returns an enumerator that iterates through the collection. - /// - /// A an enumerator that can be used to iterate through the collection. - public IEnumerator GetEnumerator() - { - return (Items == null) ? Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); - } - - /// - /// Returns an enumerator that iterates through the collection. - /// - /// A an enumerator that can be used to iterate through the collection. - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } - } -} 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 deleted file mode 100644 index 3b1227cd3b..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesOptions.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsPaging.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Additional parameters for the getMultiplePages operation. - /// - public partial class PagingGetMultiplePagesOptions - { - /// - /// Initializes a new instance of the PagingGetMultiplePagesOptions - /// class. - /// - public PagingGetMultiplePagesOptions() { } - - /// - /// Initializes a new instance of the PagingGetMultiplePagesOptions - /// class. - /// - public PagingGetMultiplePagesOptions(int? maxresults = default(int?), int? timeout = default(int?)) - { - Maxresults = maxresults; - Timeout = timeout; - } - - /// - /// 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. - /// - [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 deleted file mode 100644 index 78992ebfb8..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetNextOptions.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsPaging.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Additional parameters for the getMultiplePagesWithOffsetNext operation. - /// - public partial class PagingGetMultiplePagesWithOffsetNextOptions - { - /// - /// Initializes a new instance of the - /// PagingGetMultiplePagesWithOffsetNextOptions class. - /// - public PagingGetMultiplePagesWithOffsetNextOptions() { } - - /// - /// Initializes a new instance of the - /// PagingGetMultiplePagesWithOffsetNextOptions class. - /// - public PagingGetMultiplePagesWithOffsetNextOptions(int? maxresults = default(int?), int? timeout = default(int?)) - { - Maxresults = maxresults; - Timeout = timeout; - } - - /// - /// 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. - /// - [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 deleted file mode 100644 index e4c74a8e57..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetOptions.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsPaging.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - /// - /// Additional parameters for the getMultiplePagesWithOffset operation. - /// - public partial class PagingGetMultiplePagesWithOffsetOptions - { - /// - /// Initializes a new instance of the - /// PagingGetMultiplePagesWithOffsetOptions class. - /// - public PagingGetMultiplePagesWithOffsetOptions() { } - - /// - /// Initializes a new instance of the - /// PagingGetMultiplePagesWithOffsetOptions class. - /// - public PagingGetMultiplePagesWithOffsetOptions(int offset, int? maxresults = default(int?), int? timeout = default(int?)) - { - Maxresults = maxresults; - Offset = offset; - Timeout = timeout; - } - - /// - /// Sets the maximum number of items to return in the response. - /// - [JsonProperty(PropertyName = "")] - public int? Maxresults { get; set; } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "")] - public int? Timeout { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - //Nothing to validate - } - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Product.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Product.cs deleted file mode 100644 index 767b045e83..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Product.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsPaging.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Product - { - /// - /// Initializes a new instance of the Product class. - /// - public Product() { } - - /// - /// Initializes a new instance of the Product class. - /// - public Product(ProductProperties properties = default(ProductProperties)) - { - Properties = properties; - } - - /// - /// - [JsonProperty(PropertyName = "properties")] - public ProductProperties Properties { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/ProductProperties.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/ProductProperties.cs deleted file mode 100644 index 375ec22d0b..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/ProductProperties.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsPaging.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class ProductProperties - { - /// - /// Initializes a new instance of the ProductProperties class. - /// - public ProductProperties() { } - - /// - /// Initializes a new instance of the ProductProperties class. - /// - public ProductProperties(int? id = default(int?), string name = default(string)) - { - Id = id; - Name = name; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/PagingOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/PagingOperations.cs index 3d47e54f93..cd3d93bb7d 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/PagingOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/PagingOperations.cs @@ -53,7 +53,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// A paging operation that finishes on the first call without a nextlink /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -209,7 +209,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// Additional parameters for the operation /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -402,7 +402,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -606,7 +606,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// and then get a response including a nextLink that has 10 pages /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -759,7 +759,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// 10 pages eventually. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -910,7 +910,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// A paging operation that receives a 400 on the first call /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1061,7 +1061,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// A paging operation that receives a 400 on the second call /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1212,7 +1212,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// A paging operation that receives an invalid nextLink /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1366,7 +1366,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// The NextLink from the previous successful call to List operation. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1530,7 +1530,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// Additional parameters for the operation /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1731,7 +1731,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// Additional parameters for the operation /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1928,7 +1928,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// The NextLink from the previous successful call to List operation. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2089,7 +2089,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// The NextLink from the previous successful call to List operation. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2248,7 +2248,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// The NextLink from the previous successful call to List operation. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2407,7 +2407,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// The NextLink from the previous successful call to List operation. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2566,7 +2566,7 @@ internal PagingOperations(AutoRestPagingTestService client) /// The NextLink from the previous successful call to List operation. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/GroupOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/GroupOperations.cs index 53bf02eac3..47aa67fe92 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/GroupOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/GroupOperations.cs @@ -56,7 +56,7 @@ internal GroupOperations(MicrosoftAzureTestUrl client) /// Resource Group name 'testgroup101'. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IGroupOperations.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IGroupOperations.cs index e6eb8c8964..8896e36991 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IGroupOperations.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IGroupOperations.cs @@ -30,7 +30,7 @@ public partial interface IGroupOperations /// Resource Group name 'testgroup101'. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IMicrosoftAzureTestUrl.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IMicrosoftAzureTestUrl.cs index c36b68ecf7..7679c4d982 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IMicrosoftAzureTestUrl.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IMicrosoftAzureTestUrl.cs @@ -29,12 +29,12 @@ public partial interface IMicrosoftAzureTestUrl : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/MicrosoftAzureTestUrl.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/MicrosoftAzureTestUrl.cs index c23f24cda0..86ab103c0e 100644 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/MicrosoftAzureTestUrl.cs +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/MicrosoftAzureTestUrl.cs @@ -36,14 +36,14 @@ public partial class MicrosoftAzureTestUrl : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -86,7 +86,7 @@ public partial class MicrosoftAzureTestUrl : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected MicrosoftAzureTestUrl(params DelegatingHandler[] handlers) : base(handlers) { @@ -97,10 +97,10 @@ protected MicrosoftAzureTestUrl(params DelegatingHandler[] handlers) : base(hand /// Initializes a new instance of the MicrosoftAzureTestUrl class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected MicrosoftAzureTestUrl(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -114,7 +114,7 @@ protected MicrosoftAzureTestUrl(HttpClientHandler rootHandler, params Delegating /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected MicrosoftAzureTestUrl(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -132,10 +132,10 @@ protected MicrosoftAzureTestUrl(Uri baseUri, params DelegatingHandler[] handlers /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected MicrosoftAzureTestUrl(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -153,7 +153,7 @@ protected MicrosoftAzureTestUrl(Uri baseUri, HttpClientHandler rootHandler, para /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public MicrosoftAzureTestUrl(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -175,10 +175,10 @@ public MicrosoftAzureTestUrl(ServiceClientCredentials credentials, params Delega /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public MicrosoftAzureTestUrl(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -203,7 +203,7 @@ public MicrosoftAzureTestUrl(ServiceClientCredentials credentials, HttpClientHan /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public MicrosoftAzureTestUrl(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -233,10 +233,10 @@ public MicrosoftAzureTestUrl(Uri baseUri, ServiceClientCredentials credentials, /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public MicrosoftAzureTestUrl(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/Error.cs deleted file mode 100644 index b73b1f6743..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/Error.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsSubscriptionIdApiVersion.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Microsoft.Rest.Azure; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? code = default(int?), string message = default(string)) - { - Code = code; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "code")] - public int? Code { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/ErrorException.cs deleted file mode 100644 index 826ec5d3fd..0000000000 --- a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.Azure.AcceptanceTestsSubscriptionIdApiVersion.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} 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 4b1187cae8..6ce67ca345 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/BodyArray/Array.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Array.cs index 3812833eac..8a4cee3218 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Array.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Array.cs @@ -52,7 +52,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get null array value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -171,7 +171,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get invalid array [1, 2, 3 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -290,7 +290,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get empty array value [] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -411,7 +411,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -523,7 +523,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get boolean array value [true, false, false, true] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -644,7 +644,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -756,7 +756,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get boolean array value [true, null, false] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -875,7 +875,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get boolean array value [true, 'boolean', false] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -994,7 +994,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get integer array value [1, -1, 3, 300] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1115,7 +1115,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1227,7 +1227,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get integer array value [1, null, 0] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1346,7 +1346,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get integer array value [1, 'integer', 0] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1465,7 +1465,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get integer array value [1, -1, 3, 300] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1586,7 +1586,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1698,7 +1698,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get long array value [1, null, 0] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1817,7 +1817,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get long array value [1, 'integer', 0] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1936,7 +1936,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get float array value [0, -0.01, 1.2e20] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2057,7 +2057,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2169,7 +2169,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get float array value [0.0, null, -1.2e20] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2288,7 +2288,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get boolean array value [1.0, 'number', 0.0] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2407,7 +2407,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get float array value [0, -0.01, 1.2e20] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2528,7 +2528,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2640,7 +2640,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get float array value [0.0, null, -1.2e20] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2759,7 +2759,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get boolean array value [1.0, 'number', 0.0] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2878,7 +2878,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get string array value ['foo1', 'foo2', 'foo3'] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2999,7 +2999,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3111,7 +3111,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get string array value ['foo', null, 'foo2'] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3230,7 +3230,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get string array value ['foo', 123, 'foo2'] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3351,7 +3351,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// 'f42f6aa1-a5bc-4ddf-907e-5f915de43205'] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3474,7 +3474,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3586,7 +3586,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo'] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3705,7 +3705,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12'] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3826,7 +3826,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3938,7 +3938,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get date array value ['2012-01-01', null, '1776-07-04'] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4057,7 +4057,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get date array value ['2011-03-22', 'date'] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4177,7 +4177,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00'] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4299,7 +4299,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4411,7 +4411,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get date array value ['2000-12-01t00:00:01z', null] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4530,7 +4530,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get date array value ['2000-12-01t00:00:01z', 'date-time'] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4650,7 +4650,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT'] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4772,7 +4772,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4884,7 +4884,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S'] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5005,7 +5005,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5118,7 +5118,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// with each item encoded in base64 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5240,7 +5240,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5353,7 +5353,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// encoded /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5473,7 +5473,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// string' 'Lorem ipsum'] with the items base64url encoded /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5592,7 +5592,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get array of complex type null value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5711,7 +5711,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get empty array of complex type [] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5831,7 +5831,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// null, {'integer': 5, 'string': '6'}] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5951,7 +5951,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// {}, {'integer': 5, 'string': '6'}] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6071,7 +6071,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// 3, 'string': '4'}, {'integer': 5, 'string': '6'}] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6193,7 +6193,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6305,7 +6305,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get a null array /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6424,7 +6424,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get an empty array [] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6543,7 +6543,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6662,7 +6662,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6782,7 +6782,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// '8', '9']] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6904,7 +6904,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -7016,7 +7016,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get an array of Dictionaries with value null /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -7135,7 +7135,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// Get an array of Dictionaries of type <string, string> with value [] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -7256,7 +7256,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// 'eight', '9': 'nine'}] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -7377,7 +7377,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// '9': 'nine'}] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -7498,7 +7498,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}] /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -7621,7 +7621,7 @@ public Array(AutoRestSwaggerBATArrayService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/AutoRestSwaggerBATArrayService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/AutoRestSwaggerBATArrayService.cs index a23114fb15..a3ff6970b3 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/AutoRestSwaggerBATArrayService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/AutoRestSwaggerBATArrayService.cs @@ -35,14 +35,14 @@ public partial class AutoRestSwaggerBATArrayService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IArray. @@ -53,7 +53,7 @@ public partial class AutoRestSwaggerBATArrayService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATArrayService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestSwaggerBATArrayService(params DelegatingHandler[] handlers) : bas /// Initializes a new instance of the AutoRestSwaggerBATArrayService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATArrayService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestSwaggerBATArrayService(HttpClientHandler rootHandler, params Dele /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATArrayService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestSwaggerBATArrayService(Uri baseUri, params DelegatingHandler[] ha /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATArrayService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/IArray.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/IArray.cs index 65f46721b9..b63dd7c56c 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/IArray.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/IArray.cs @@ -25,7 +25,7 @@ public partial interface IArray /// Get null array value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IArray /// Get invalid array [1, 2, 3 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IArray /// Get empty array value [] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -57,7 +57,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -67,7 +67,7 @@ public partial interface IArray /// Get boolean array value [true, false, false, true] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -79,7 +79,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -89,7 +89,7 @@ public partial interface IArray /// Get boolean array value [true, null, false] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -99,7 +99,7 @@ public partial interface IArray /// Get boolean array value [true, 'boolean', false] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -109,7 +109,7 @@ public partial interface IArray /// Get integer array value [1, -1, 3, 300] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -121,7 +121,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -131,7 +131,7 @@ public partial interface IArray /// Get integer array value [1, null, 0] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -141,7 +141,7 @@ public partial interface IArray /// Get integer array value [1, 'integer', 0] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -151,7 +151,7 @@ public partial interface IArray /// Get integer array value [1, -1, 3, 300] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -163,7 +163,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -173,7 +173,7 @@ public partial interface IArray /// Get long array value [1, null, 0] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -183,7 +183,7 @@ public partial interface IArray /// Get long array value [1, 'integer', 0] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -193,7 +193,7 @@ public partial interface IArray /// Get float array value [0, -0.01, 1.2e20] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -205,7 +205,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -215,7 +215,7 @@ public partial interface IArray /// Get float array value [0.0, null, -1.2e20] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -225,7 +225,7 @@ public partial interface IArray /// Get boolean array value [1.0, 'number', 0.0] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -235,7 +235,7 @@ public partial interface IArray /// Get float array value [0, -0.01, 1.2e20] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -247,7 +247,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -257,7 +257,7 @@ public partial interface IArray /// Get float array value [0.0, null, -1.2e20] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -267,7 +267,7 @@ public partial interface IArray /// Get boolean array value [1.0, 'number', 0.0] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -277,7 +277,7 @@ public partial interface IArray /// Get string array value ['foo1', 'foo2', 'foo3'] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -289,7 +289,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -299,7 +299,7 @@ public partial interface IArray /// Get string array value ['foo', null, 'foo2'] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -309,7 +309,7 @@ public partial interface IArray /// Get string array value ['foo', 123, 'foo2'] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -321,7 +321,7 @@ public partial interface IArray /// 'f42f6aa1-a5bc-4ddf-907e-5f915de43205'] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -335,7 +335,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -346,7 +346,7 @@ public partial interface IArray /// 'foo'] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -356,7 +356,7 @@ public partial interface IArray /// Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12'] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -368,7 +368,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -378,7 +378,7 @@ public partial interface IArray /// Get date array value ['2012-01-01', null, '1776-07-04'] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -388,7 +388,7 @@ public partial interface IArray /// Get date array value ['2011-03-22', 'date'] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -399,7 +399,7 @@ public partial interface IArray /// '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00'] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -412,7 +412,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -422,7 +422,7 @@ public partial interface IArray /// Get date array value ['2000-12-01t00:00:01z', null] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -432,7 +432,7 @@ public partial interface IArray /// Get date array value ['2000-12-01t00:00:01z', 'date-time'] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -443,7 +443,7 @@ public partial interface IArray /// 02 Jan 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT'] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -456,7 +456,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -466,7 +466,7 @@ public partial interface IArray /// Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S'] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -478,7 +478,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -489,7 +489,7 @@ public partial interface IArray /// 29, 43)] with each item encoded in base64 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -502,7 +502,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -513,7 +513,7 @@ public partial interface IArray /// base64 encoded /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -524,7 +524,7 @@ public partial interface IArray /// 'test string' 'Lorem ipsum'] with the items base64url encoded /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -534,7 +534,7 @@ public partial interface IArray /// Get array of complex type null value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -544,7 +544,7 @@ public partial interface IArray /// Get empty array of complex type [] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -555,7 +555,7 @@ public partial interface IArray /// '2'}, null, {'integer': 5, 'string': '6'}] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -566,7 +566,7 @@ public partial interface IArray /// '2'}, {}, {'integer': 5, 'string': '6'}] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -577,7 +577,7 @@ public partial interface IArray /// {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -591,7 +591,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -601,7 +601,7 @@ public partial interface IArray /// Get a null array /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -611,7 +611,7 @@ public partial interface IArray /// Get an empty array [] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -622,7 +622,7 @@ public partial interface IArray /// '8', '9']] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -633,7 +633,7 @@ public partial interface IArray /// '9']] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -644,7 +644,7 @@ public partial interface IArray /// '6'], ['7', '8', '9']] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -657,7 +657,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -667,7 +667,7 @@ public partial interface IArray /// Get an array of Dictionaries with value null /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -678,7 +678,7 @@ public partial interface IArray /// value [] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -690,7 +690,7 @@ public partial interface IArray /// 'seven', '8': 'eight', '9': 'nine'}] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -702,7 +702,7 @@ public partial interface IArray /// '8': 'eight', '9': 'nine'}] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -714,7 +714,7 @@ public partial interface IArray /// 'five', '6': 'six'}, {'7': 'seven', '8': 'eight', '9': 'nine'}] /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -728,7 +728,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/IAutoRestSwaggerBATArrayService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/IAutoRestSwaggerBATArrayService.cs index c6e3b14a7a..3fd6e2a1c8 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/IAutoRestSwaggerBATArrayService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/IAutoRestSwaggerBATArrayService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestSwaggerBATArrayService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Error.cs deleted file mode 100644 index 5f254e651e..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyArray.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/ErrorException.cs deleted file mode 100644 index b067ffb596..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyArray.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Product.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Product.cs deleted file mode 100644 index 97cc8a55c7..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Product.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyArray.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Product - { - /// - /// Initializes a new instance of the Product class. - /// - public Product() { } - - /// - /// Initializes a new instance of the Product class. - /// - public Product(int? integer = default(int?), string stringProperty = default(string)) - { - Integer = integer; - StringProperty = stringProperty; - } - - /// - /// - [JsonProperty(PropertyName = "integer")] - public int? Integer { get; set; } - - /// - /// - [JsonProperty(PropertyName = "string")] - public string StringProperty { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/AutoRestBoolTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/AutoRestBoolTestService.cs index ceefbc9764..da4df0f0ed 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/AutoRestBoolTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/AutoRestBoolTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestBoolTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IBoolModel. @@ -53,7 +53,7 @@ public partial class AutoRestBoolTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestBoolTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestBoolTestService(params DelegatingHandler[] handlers) : base(handl /// Initializes a new instance of the AutoRestBoolTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestBoolTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestBoolTestService(HttpClientHandler rootHandler, params DelegatingH /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestBoolTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestBoolTestService(Uri baseUri, params DelegatingHandler[] handlers) /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestBoolTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { 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 d78403311e..965ff321ef 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModel.cs @@ -52,7 +52,7 @@ public BoolModel(AutoRestBoolTestService client) /// Get true Boolean value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -173,7 +173,7 @@ public BoolModel(AutoRestBoolTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -281,7 +281,7 @@ public BoolModel(AutoRestBoolTestService client) /// Get false Boolean value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -402,7 +402,7 @@ public BoolModel(AutoRestBoolTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -510,7 +510,7 @@ public BoolModel(AutoRestBoolTestService client) /// Get null Boolean value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -629,7 +629,7 @@ public BoolModel(AutoRestBoolTestService client) /// Get invalid Boolean value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IAutoRestBoolTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IAutoRestBoolTestService.cs index cb480d7ea2..c9a79400bc 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IAutoRestBoolTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IAutoRestBoolTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestBoolTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IBoolModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IBoolModel.cs index 04a7fb6b49..040a22eebc 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IBoolModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IBoolModel.cs @@ -25,7 +25,7 @@ public partial interface IBoolModel /// Get true Boolean value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -37,7 +37,7 @@ public partial interface IBoolModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -47,7 +47,7 @@ public partial interface IBoolModel /// Get false Boolean value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -59,7 +59,7 @@ public partial interface IBoolModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -69,7 +69,7 @@ public partial interface IBoolModel /// Get null Boolean value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -79,7 +79,7 @@ public partial interface IBoolModel /// Get invalid Boolean value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/Error.cs deleted file mode 100644 index 5ec7ad6410..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyBoolean.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/ErrorException.cs deleted file mode 100644 index 15cddb927f..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyBoolean.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/AutoRestSwaggerBATByteService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/AutoRestSwaggerBATByteService.cs index 1f2929c694..3e9de57ed3 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/AutoRestSwaggerBATByteService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/AutoRestSwaggerBATByteService.cs @@ -35,14 +35,14 @@ public partial class AutoRestSwaggerBATByteService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IByteModel. @@ -53,7 +53,7 @@ public partial class AutoRestSwaggerBATByteService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATByteService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestSwaggerBATByteService(params DelegatingHandler[] handlers) : base /// Initializes a new instance of the AutoRestSwaggerBATByteService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATByteService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestSwaggerBATByteService(HttpClientHandler rootHandler, params Deleg /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATByteService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestSwaggerBATByteService(Uri baseUri, params DelegatingHandler[] han /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATByteService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/ByteModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/ByteModel.cs index 6343dc98de..817e894691 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/ByteModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/ByteModel.cs @@ -52,7 +52,7 @@ public ByteModel(AutoRestSwaggerBATByteService client) /// Get null byte value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -171,7 +171,7 @@ public ByteModel(AutoRestSwaggerBATByteService client) /// Get empty byte value '' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -290,7 +290,7 @@ public ByteModel(AutoRestSwaggerBATByteService client) /// Get non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6) /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -412,7 +412,7 @@ public ByteModel(AutoRestSwaggerBATByteService client) /// Base64-encoded non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6) /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -524,7 +524,7 @@ public ByteModel(AutoRestSwaggerBATByteService client) /// Get invalid byte value ':::SWAGGER::::' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/IAutoRestSwaggerBATByteService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/IAutoRestSwaggerBATByteService.cs index 4ed49e0061..426567e161 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/IAutoRestSwaggerBATByteService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/IAutoRestSwaggerBATByteService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestSwaggerBATByteService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/IByteModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/IByteModel.cs index b00d9e065f..03b02de7ba 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/IByteModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/IByteModel.cs @@ -25,7 +25,7 @@ public partial interface IByteModel /// Get null byte value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IByteModel /// Get empty byte value '' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IByteModel /// Get non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6) /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -59,7 +59,7 @@ public partial interface IByteModel /// F7 F6) /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -69,7 +69,7 @@ public partial interface IByteModel /// Get invalid byte value ':::SWAGGER::::' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/Error.cs deleted file mode 100644 index 7578266a66..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyByte.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/ErrorException.cs deleted file mode 100644 index e84c83b21c..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyByte.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Array.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Array.cs index 5009f9e28b..d667e9ffd0 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Array.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Array.cs @@ -52,7 +52,7 @@ public Array(AutoRestComplexTestService client) /// Get complex types with array property /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -173,7 +173,7 @@ public Array(AutoRestComplexTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -286,7 +286,7 @@ public Array(AutoRestComplexTestService client) /// Get complex types with array property which is empty /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -407,7 +407,7 @@ public Array(AutoRestComplexTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -521,7 +521,7 @@ public Array(AutoRestComplexTestService client) /// response payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/AutoRestComplexTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/AutoRestComplexTestService.cs index c3b2702dcc..9add069d78 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/AutoRestComplexTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/AutoRestComplexTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestComplexTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// API ID. @@ -93,7 +93,7 @@ public partial class AutoRestComplexTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestComplexTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -104,10 +104,10 @@ public AutoRestComplexTestService(params DelegatingHandler[] handlers) : base(ha /// Initializes a new instance of the AutoRestComplexTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestComplexTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -121,7 +121,7 @@ public AutoRestComplexTestService(HttpClientHandler rootHandler, params Delegati /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestComplexTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -139,10 +139,10 @@ public AutoRestComplexTestService(Uri baseUri, params DelegatingHandler[] handle /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestComplexTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/BasicOperations.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/BasicOperations.cs index 39cc806a8c..28da52ef83 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/BasicOperations.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/BasicOperations.cs @@ -52,7 +52,7 @@ public BasicOperations(AutoRestComplexTestService client) /// Get complex type {id: 2, name: 'abc', color: 'YELLOW'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -174,7 +174,7 @@ public BasicOperations(AutoRestComplexTestService client) /// Please put {id: 2, name: 'abc', color: 'Magenta'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -295,7 +295,7 @@ public BasicOperations(AutoRestComplexTestService client) /// Get a basic complex type that is invalid for the local strong type /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -414,7 +414,7 @@ public BasicOperations(AutoRestComplexTestService client) /// Get a basic complex type that is empty /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -533,7 +533,7 @@ public BasicOperations(AutoRestComplexTestService client) /// Get a basic complex type whose properties are null /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -653,7 +653,7 @@ public BasicOperations(AutoRestComplexTestService client) /// payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Dictionary.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Dictionary.cs index d707e2106f..85c7f374f0 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Dictionary.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Dictionary.cs @@ -52,7 +52,7 @@ public Dictionary(AutoRestComplexTestService client) /// Get complex types with dictionary property /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -173,7 +173,7 @@ public Dictionary(AutoRestComplexTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -286,7 +286,7 @@ public Dictionary(AutoRestComplexTestService client) /// Get complex types with dictionary property which is empty /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -407,7 +407,7 @@ public Dictionary(AutoRestComplexTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -520,7 +520,7 @@ public Dictionary(AutoRestComplexTestService client) /// Get complex types with dictionary property which is null /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -640,7 +640,7 @@ public Dictionary(AutoRestComplexTestService client) /// response payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IArray.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IArray.cs index d08154f6e2..8f0a1ed00c 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IArray.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IArray.cs @@ -25,7 +25,7 @@ public partial interface IArray /// Get complex types with array property /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -37,7 +37,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -47,7 +47,7 @@ public partial interface IArray /// Get complex types with array property which is empty /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -59,7 +59,7 @@ public partial interface IArray /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -70,7 +70,7 @@ public partial interface IArray /// a response payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IAutoRestComplexTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IAutoRestComplexTestService.cs index 18c4a08bec..be865ff6d2 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IAutoRestComplexTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IAutoRestComplexTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestComplexTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IBasicOperations.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IBasicOperations.cs index 2380a47aed..3d0034f90b 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IBasicOperations.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IBasicOperations.cs @@ -25,7 +25,7 @@ public partial interface IBasicOperations /// Get complex type {id: 2, name: 'abc', color: 'YELLOW'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -38,7 +38,7 @@ public partial interface IBasicOperations /// Please put {id: 2, name: 'abc', color: 'Magenta'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -48,7 +48,7 @@ public partial interface IBasicOperations /// Get a basic complex type that is invalid for the local strong type /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -58,7 +58,7 @@ public partial interface IBasicOperations /// Get a basic complex type that is empty /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -68,7 +68,7 @@ public partial interface IBasicOperations /// Get a basic complex type whose properties are null /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -79,7 +79,7 @@ public partial interface IBasicOperations /// response payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IDictionary.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IDictionary.cs index e1dcc11cb0..e77fbd0bef 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IDictionary.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IDictionary.cs @@ -25,7 +25,7 @@ public partial interface IDictionary /// Get complex types with dictionary property /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -37,7 +37,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -47,7 +47,7 @@ public partial interface IDictionary /// Get complex types with dictionary property which is empty /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -59,7 +59,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -69,7 +69,7 @@ public partial interface IDictionary /// Get complex types with dictionary property which is null /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -80,7 +80,7 @@ public partial interface IDictionary /// provide a response payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IInheritance.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IInheritance.cs index 38e67f4445..a4eb2802f3 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IInheritance.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IInheritance.cs @@ -25,7 +25,7 @@ public partial interface IInheritance /// Get complex types that extend others /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -41,7 +41,7 @@ public partial interface IInheritance /// id=-1 and food="french fries". /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphicrecursive.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphicrecursive.cs index 53849b0bfc..217eba8de6 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphicrecursive.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphicrecursive.cs @@ -26,7 +26,7 @@ public partial interface IPolymorphicrecursive /// references /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -92,7 +92,7 @@ public partial interface IPolymorphicrecursive /// } /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphism.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphism.cs index a982f26064..38259e46c4 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphism.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphism.cs @@ -25,7 +25,7 @@ public partial interface IPolymorphism /// Get complex types that are polymorphic /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -71,7 +71,7 @@ public partial interface IPolymorphism /// }; /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -112,7 +112,7 @@ public partial interface IPolymorphism /// } /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPrimitive.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPrimitive.cs index 06b7341a9a..7c0f283f3f 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPrimitive.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPrimitive.cs @@ -25,7 +25,7 @@ public partial interface IPrimitive /// Get complex types with integer properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -38,7 +38,7 @@ public partial interface IPrimitive /// Please put -1 and 2 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -48,7 +48,7 @@ public partial interface IPrimitive /// Get complex types with long properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -61,7 +61,7 @@ public partial interface IPrimitive /// Please put 1099511627775 and -999511627788 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -71,7 +71,7 @@ public partial interface IPrimitive /// Get complex types with float properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -84,7 +84,7 @@ public partial interface IPrimitive /// Please put 1.05 and -0.003 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -94,7 +94,7 @@ public partial interface IPrimitive /// Get complex types with double properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -108,7 +108,7 @@ public partial interface IPrimitive /// -0.000000000000000000000000000000000000000000000000000000005 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -118,7 +118,7 @@ public partial interface IPrimitive /// Get complex types with bool properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -131,7 +131,7 @@ public partial interface IPrimitive /// Please put true and false /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -141,7 +141,7 @@ public partial interface IPrimitive /// Get complex types with string properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -154,7 +154,7 @@ public partial interface IPrimitive /// Please put 'goodrequest', '', and null /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -164,7 +164,7 @@ public partial interface IPrimitive /// Get complex types with date properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -177,7 +177,7 @@ public partial interface IPrimitive /// Please put '0001-01-01' and '2016-02-29' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -187,7 +187,7 @@ public partial interface IPrimitive /// Get complex types with datetime properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -201,7 +201,7 @@ public partial interface IPrimitive /// '2015-05-18T11:38:00-08:00' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -211,7 +211,7 @@ public partial interface IPrimitive /// Get complex types with datetimeRfc1123 properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -225,7 +225,7 @@ public partial interface IPrimitive /// 11:38:00 GMT' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -235,7 +235,7 @@ public partial interface IPrimitive /// Get complex types with duration properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -247,7 +247,7 @@ public partial interface IPrimitive /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -257,7 +257,7 @@ public partial interface IPrimitive /// Get complex types with byte properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -269,7 +269,7 @@ public partial interface IPrimitive /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IReadonlyproperty.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IReadonlyproperty.cs index bbff98c673..c793ea88f9 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IReadonlyproperty.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IReadonlyproperty.cs @@ -25,7 +25,7 @@ public partial interface IReadonlyproperty /// Get complex types that have readonly properties /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -37,7 +37,7 @@ public partial interface IReadonlyproperty /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Inheritance.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Inheritance.cs index 8884055cd8..9919f858eb 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Inheritance.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Inheritance.cs @@ -52,7 +52,7 @@ public Inheritance(AutoRestComplexTestService client) /// Get complex types that extend others /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -177,7 +177,7 @@ public Inheritance(AutoRestComplexTestService client) /// food="french fries". /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ArrayWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ArrayWrapper.cs deleted file mode 100644 index b8f8910c9e..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ArrayWrapper.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class ArrayWrapper - { - /// - /// Initializes a new instance of the ArrayWrapper class. - /// - public ArrayWrapper() { } - - /// - /// Initializes a new instance of the ArrayWrapper class. - /// - public ArrayWrapper(IList array = default(IList)) - { - Array = array; - } - - /// - /// - [JsonProperty(PropertyName = "array")] - public IList Array { get; set; } - - } -} 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 deleted file mode 100644 index 37a8fff6fc..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Basic.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Basic - { - /// - /// Initializes a new instance of the Basic class. - /// - public Basic() { } - - /// - /// Initializes a new instance of the Basic class. - /// - public Basic(int? id = default(int?), string name = default(string), string color = default(string)) - { - Id = id; - Name = name; - Color = color; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// 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/BodyComplex/Models/BooleanWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/BooleanWrapper.cs deleted file mode 100644 index 90df28db35..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/BooleanWrapper.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class BooleanWrapper - { - /// - /// Initializes a new instance of the BooleanWrapper class. - /// - public BooleanWrapper() { } - - /// - /// Initializes a new instance of the BooleanWrapper class. - /// - public BooleanWrapper(bool? fieldTrue = default(bool?), bool? fieldFalse = default(bool?)) - { - FieldTrue = fieldTrue; - FieldFalse = fieldFalse; - } - - /// - /// - [JsonProperty(PropertyName = "field_true")] - public bool? FieldTrue { get; set; } - - /// - /// - [JsonProperty(PropertyName = "field_false")] - public bool? FieldFalse { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ByteWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ByteWrapper.cs deleted file mode 100644 index 9cf44a4e42..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ByteWrapper.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class ByteWrapper - { - /// - /// Initializes a new instance of the ByteWrapper class. - /// - public ByteWrapper() { } - - /// - /// Initializes a new instance of the ByteWrapper class. - /// - public ByteWrapper(byte[] field = default(byte[])) - { - Field = field; - } - - /// - /// - [JsonProperty(PropertyName = "field")] - public byte[] Field { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/CMYKColors.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/CMYKColors.cs deleted file mode 100644 index f000525c53..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/CMYKColors.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime.Serialization; - - /// - /// Defines values for CMYKColors. - /// - public static class CMYKColors - { - public const string Cyan = "cyan"; - public const string Magenta = "Magenta"; - public const string YELLOW = "YELLOW"; - public const string BlacK = "blacK"; - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cat.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cat.cs deleted file mode 100644 index 601a896d03..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cat.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Cat : Pet - { - /// - /// Initializes a new instance of the Cat class. - /// - public Cat() { } - - /// - /// Initializes a new instance of the Cat class. - /// - public Cat(int? id = default(int?), string name = default(string), string color = default(string), IList hates = default(IList)) - : base(id, name) - { - Color = color; - Hates = hates; - } - - /// - /// - [JsonProperty(PropertyName = "color")] - public string Color { get; set; } - - /// - /// - [JsonProperty(PropertyName = "hates")] - public IList Hates { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cookiecuttershark.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cookiecuttershark.cs deleted file mode 100644 index 63afa24a3c..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cookiecuttershark.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - [JsonObject("cookiecuttershark")] - public partial class Cookiecuttershark : Shark - { - /// - /// Initializes a new instance of the Cookiecuttershark class. - /// - public Cookiecuttershark() { } - - /// - /// Initializes a new instance of the Cookiecuttershark class. - /// - public Cookiecuttershark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?)) - : base(length, birthday, species, siblings, age) - { - } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DateWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DateWrapper.cs deleted file mode 100644 index aa96f66baf..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DateWrapper.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class DateWrapper - { - /// - /// Initializes a new instance of the DateWrapper class. - /// - public DateWrapper() { } - - /// - /// Initializes a new instance of the DateWrapper class. - /// - public DateWrapper(DateTime? field = default(DateTime?), DateTime? leap = default(DateTime?)) - { - Field = field; - Leap = leap; - } - - /// - /// - [JsonConverter(typeof(DateJsonConverter))] - [JsonProperty(PropertyName = "field")] - public DateTime? Field { get; set; } - - /// - /// - [JsonConverter(typeof(DateJsonConverter))] - [JsonProperty(PropertyName = "leap")] - public DateTime? Leap { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DatetimeWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DatetimeWrapper.cs deleted file mode 100644 index f25ce19c3a..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DatetimeWrapper.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class DatetimeWrapper - { - /// - /// Initializes a new instance of the DatetimeWrapper class. - /// - public DatetimeWrapper() { } - - /// - /// Initializes a new instance of the DatetimeWrapper class. - /// - public DatetimeWrapper(DateTime? field = default(DateTime?), DateTime? now = default(DateTime?)) - { - Field = field; - Now = now; - } - - /// - /// - [JsonProperty(PropertyName = "field")] - public DateTime? Field { get; set; } - - /// - /// - [JsonProperty(PropertyName = "now")] - public DateTime? Now { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Datetimerfc1123Wrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Datetimerfc1123Wrapper.cs deleted file mode 100644 index 65b9c24822..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Datetimerfc1123Wrapper.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Datetimerfc1123Wrapper - { - /// - /// Initializes a new instance of the Datetimerfc1123Wrapper class. - /// - public Datetimerfc1123Wrapper() { } - - /// - /// Initializes a new instance of the Datetimerfc1123Wrapper class. - /// - public Datetimerfc1123Wrapper(DateTime? field = default(DateTime?), DateTime? now = default(DateTime?)) - { - Field = field; - Now = now; - } - - /// - /// - [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] - [JsonProperty(PropertyName = "field")] - public DateTime? Field { get; set; } - - /// - /// - [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] - [JsonProperty(PropertyName = "now")] - public DateTime? Now { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DictionaryWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DictionaryWrapper.cs deleted file mode 100644 index 56a0c0624e..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DictionaryWrapper.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class DictionaryWrapper - { - /// - /// Initializes a new instance of the DictionaryWrapper class. - /// - public DictionaryWrapper() { } - - /// - /// Initializes a new instance of the DictionaryWrapper class. - /// - public DictionaryWrapper(IDictionary defaultProgram = default(IDictionary)) - { - DefaultProgram = defaultProgram; - } - - /// - /// - [JsonProperty(PropertyName = "defaultProgram")] - public IDictionary DefaultProgram { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Dog.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Dog.cs deleted file mode 100644 index 70159dab2d..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Dog.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Dog : Pet - { - /// - /// Initializes a new instance of the Dog class. - /// - public Dog() { } - - /// - /// Initializes a new instance of the Dog class. - /// - public Dog(int? id = default(int?), string name = default(string), string food = default(string)) - : base(id, name) - { - Food = food; - } - - /// - /// - [JsonProperty(PropertyName = "food")] - public string Food { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DoubleWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DoubleWrapper.cs deleted file mode 100644 index 9903f11fcc..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DoubleWrapper.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class DoubleWrapper - { - /// - /// Initializes a new instance of the DoubleWrapper class. - /// - public DoubleWrapper() { } - - /// - /// Initializes a new instance of the DoubleWrapper class. - /// - public DoubleWrapper(double? field1 = default(double?), double? field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose = default(double?)) - { - Field1 = field1; - Field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose = field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose; - } - - /// - /// - [JsonProperty(PropertyName = "field1")] - public double? Field1 { get; set; } - - /// - /// - [JsonProperty(PropertyName = "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose")] - public double? Field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DurationWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DurationWrapper.cs deleted file mode 100644 index 822db31553..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DurationWrapper.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class DurationWrapper - { - /// - /// Initializes a new instance of the DurationWrapper class. - /// - public DurationWrapper() { } - - /// - /// Initializes a new instance of the DurationWrapper class. - /// - public DurationWrapper(TimeSpan? field = default(TimeSpan?)) - { - Field = field; - } - - /// - /// - [JsonProperty(PropertyName = "field")] - public TimeSpan? Field { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Error.cs deleted file mode 100644 index 514afda164..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ErrorException.cs deleted file mode 100644 index f334842b9b..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Fish.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Fish.cs deleted file mode 100644 index 8738a13758..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Fish.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Fish - { - /// - /// Initializes a new instance of the Fish class. - /// - public Fish() { } - - /// - /// Initializes a new instance of the Fish class. - /// - public Fish(double length, string species = default(string), IList siblings = default(IList)) - { - Species = species; - Length = length; - Siblings = siblings; - } - - /// - /// - [JsonProperty(PropertyName = "species")] - public string Species { get; set; } - - /// - /// - [JsonProperty(PropertyName = "length")] - public double Length { get; set; } - - /// - /// - [JsonProperty(PropertyName = "siblings")] - public IList Siblings { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (this.Siblings != null) - { - foreach (var element in this.Siblings) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/FloatWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/FloatWrapper.cs deleted file mode 100644 index b15a8a52f4..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/FloatWrapper.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class FloatWrapper - { - /// - /// Initializes a new instance of the FloatWrapper class. - /// - public FloatWrapper() { } - - /// - /// Initializes a new instance of the FloatWrapper class. - /// - public FloatWrapper(double? field1 = default(double?), double? field2 = default(double?)) - { - Field1 = field1; - Field2 = field2; - } - - /// - /// - [JsonProperty(PropertyName = "field1")] - public double? Field1 { get; set; } - - /// - /// - [JsonProperty(PropertyName = "field2")] - public double? Field2 { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs deleted file mode 100644 index e480a63cae..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - [JsonObject("goblin")] - public partial class Goblinshark : Shark - { - /// - /// Initializes a new instance of the Goblinshark class. - /// - public Goblinshark() { } - - /// - /// Initializes a new instance of the Goblinshark class. - /// - public Goblinshark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?), int? jawsize = default(int?)) - : base(length, birthday, species, siblings, age) - { - Jawsize = jawsize; - } - - /// - /// - [JsonProperty(PropertyName = "jawsize")] - public int? Jawsize { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/IntWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/IntWrapper.cs deleted file mode 100644 index c3161cad01..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/IntWrapper.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class IntWrapper - { - /// - /// Initializes a new instance of the IntWrapper class. - /// - public IntWrapper() { } - - /// - /// Initializes a new instance of the IntWrapper class. - /// - public IntWrapper(int? field1 = default(int?), int? field2 = default(int?)) - { - Field1 = field1; - Field2 = field2; - } - - /// - /// - [JsonProperty(PropertyName = "field1")] - public int? Field1 { get; set; } - - /// - /// - [JsonProperty(PropertyName = "field2")] - public int? Field2 { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/LongWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/LongWrapper.cs deleted file mode 100644 index 71541e4c71..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/LongWrapper.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class LongWrapper - { - /// - /// Initializes a new instance of the LongWrapper class. - /// - public LongWrapper() { } - - /// - /// Initializes a new instance of the LongWrapper class. - /// - public LongWrapper(long? field1 = default(long?), long? field2 = default(long?)) - { - Field1 = field1; - Field2 = field2; - } - - /// - /// - [JsonProperty(PropertyName = "field1")] - public long? Field1 { get; set; } - - /// - /// - [JsonProperty(PropertyName = "field2")] - public long? Field2 { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Pet.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Pet.cs deleted file mode 100644 index ca12ebb78a..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Pet.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Pet - { - /// - /// Initializes a new instance of the Pet class. - /// - public Pet() { } - - /// - /// Initializes a new instance of the Pet class. - /// - public Pet(int? id = default(int?), string name = default(string)) - { - Id = id; - Name = name; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public int? Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ReadonlyObj.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ReadonlyObj.cs deleted file mode 100644 index 93da6be2b5..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ReadonlyObj.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class ReadonlyObj - { - /// - /// Initializes a new instance of the ReadonlyObj class. - /// - public ReadonlyObj() { } - - /// - /// Initializes a new instance of the ReadonlyObj class. - /// - public ReadonlyObj(string id = default(string), int? size = default(int?)) - { - Id = id; - Size = size; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; private set; } - - /// - /// - [JsonProperty(PropertyName = "size")] - public int? Size { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Salmon.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Salmon.cs deleted file mode 100644 index 17bd884c05..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Salmon.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - [JsonObject("salmon")] - public partial class Salmon : Fish - { - /// - /// Initializes a new instance of the Salmon class. - /// - public Salmon() { } - - /// - /// Initializes a new instance of the Salmon class. - /// - public Salmon(double length, string species = default(string), IList siblings = default(IList), string location = default(string), bool? iswild = default(bool?)) - : base(length, species, siblings) - { - Location = location; - Iswild = iswild; - } - - /// - /// - [JsonProperty(PropertyName = "location")] - public string Location { get; set; } - - /// - /// - [JsonProperty(PropertyName = "iswild")] - public bool? Iswild { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Sawshark.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Sawshark.cs deleted file mode 100644 index 80cb14029c..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Sawshark.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - [JsonObject("sawshark")] - public partial class Sawshark : Shark - { - /// - /// Initializes a new instance of the Sawshark class. - /// - public Sawshark() { } - - /// - /// Initializes a new instance of the Sawshark class. - /// - public Sawshark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?), byte[] picture = default(byte[])) - : base(length, birthday, species, siblings, age) - { - Picture = picture; - } - - /// - /// - [JsonProperty(PropertyName = "picture")] - public byte[] Picture { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Shark.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Shark.cs deleted file mode 100644 index dedaa8f7b0..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Shark.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - [JsonObject("shark")] - public partial class Shark : Fish - { - /// - /// Initializes a new instance of the Shark class. - /// - public Shark() { } - - /// - /// Initializes a new instance of the Shark class. - /// - public Shark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?)) - : base(length, species, siblings) - { - Age = age; - Birthday = birthday; - } - - /// - /// - [JsonProperty(PropertyName = "age")] - public int? Age { get; set; } - - /// - /// - [JsonProperty(PropertyName = "birthday")] - public DateTime Birthday { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public override void Validate() - { - base.Validate(); - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Siamese.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Siamese.cs deleted file mode 100644 index 08f66d01c8..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Siamese.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Siamese : Cat - { - /// - /// Initializes a new instance of the Siamese class. - /// - public Siamese() { } - - /// - /// Initializes a new instance of the Siamese class. - /// - public Siamese(int? id = default(int?), string name = default(string), string color = default(string), IList hates = default(IList), string breed = default(string)) - : base(id, name, color, hates) - { - Breed = breed; - } - - /// - /// - [JsonProperty(PropertyName = "breed")] - public string Breed { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/StringWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/StringWrapper.cs deleted file mode 100644 index 18640ccf60..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/StringWrapper.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyComplex.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class StringWrapper - { - /// - /// Initializes a new instance of the StringWrapper class. - /// - public StringWrapper() { } - - /// - /// Initializes a new instance of the StringWrapper class. - /// - public StringWrapper(string field = default(string), string empty = default(string), string nullProperty = default(string)) - { - Field = field; - Empty = empty; - NullProperty = nullProperty; - } - - /// - /// - [JsonProperty(PropertyName = "field")] - public string Field { get; set; } - - /// - /// - [JsonProperty(PropertyName = "empty")] - public string Empty { get; set; } - - /// - /// - [JsonProperty(PropertyName = "null")] - public string NullProperty { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphicrecursive.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphicrecursive.cs index 9e3d47fc4a..c4c769e676 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphicrecursive.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphicrecursive.cs @@ -52,7 +52,7 @@ public Polymorphicrecursive(AutoRestComplexTestService client) /// Get complex types that are polymorphic and have recursive references /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -226,7 +226,7 @@ public Polymorphicrecursive(AutoRestComplexTestService client) /// } /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphism.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphism.cs index e9f32ec1fa..e661039a8d 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphism.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphism.cs @@ -52,7 +52,7 @@ public Polymorphism(AutoRestComplexTestService client) /// Get complex types that are polymorphic /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -207,7 +207,7 @@ public Polymorphism(AutoRestComplexTestService client) /// }; /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -353,7 +353,7 @@ public Polymorphism(AutoRestComplexTestService client) /// } /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Primitive.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Primitive.cs index 334e0f205d..4fdd3dbb99 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Primitive.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Primitive.cs @@ -52,7 +52,7 @@ public Primitive(AutoRestComplexTestService client) /// Get complex types with integer properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -174,7 +174,7 @@ public Primitive(AutoRestComplexTestService client) /// Please put -1 and 2 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -286,7 +286,7 @@ public Primitive(AutoRestComplexTestService client) /// Get complex types with long properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -408,7 +408,7 @@ public Primitive(AutoRestComplexTestService client) /// Please put 1099511627775 and -999511627788 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -520,7 +520,7 @@ public Primitive(AutoRestComplexTestService client) /// Get complex types with float properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -642,7 +642,7 @@ public Primitive(AutoRestComplexTestService client) /// Please put 1.05 and -0.003 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -754,7 +754,7 @@ public Primitive(AutoRestComplexTestService client) /// Get complex types with double properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -877,7 +877,7 @@ public Primitive(AutoRestComplexTestService client) /// -0.000000000000000000000000000000000000000000000000000000005 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -989,7 +989,7 @@ public Primitive(AutoRestComplexTestService client) /// Get complex types with bool properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1111,7 +1111,7 @@ public Primitive(AutoRestComplexTestService client) /// Please put true and false /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1223,7 +1223,7 @@ public Primitive(AutoRestComplexTestService client) /// Get complex types with string properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1345,7 +1345,7 @@ public Primitive(AutoRestComplexTestService client) /// Please put 'goodrequest', '', and null /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1457,7 +1457,7 @@ public Primitive(AutoRestComplexTestService client) /// Get complex types with date properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1579,7 +1579,7 @@ public Primitive(AutoRestComplexTestService client) /// Please put '0001-01-01' and '2016-02-29' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1691,7 +1691,7 @@ public Primitive(AutoRestComplexTestService client) /// Get complex types with datetime properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1813,7 +1813,7 @@ public Primitive(AutoRestComplexTestService client) /// Please put '0001-01-01T12:00:00-04:00' and '2015-05-18T11:38:00-08:00' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1925,7 +1925,7 @@ public Primitive(AutoRestComplexTestService client) /// Get complex types with datetimeRfc1123 properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2048,7 +2048,7 @@ public Primitive(AutoRestComplexTestService client) /// GMT' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2160,7 +2160,7 @@ public Primitive(AutoRestComplexTestService client) /// Get complex types with duration properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2281,7 +2281,7 @@ public Primitive(AutoRestComplexTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2391,7 +2391,7 @@ public Primitive(AutoRestComplexTestService client) /// Get complex types with byte properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2512,7 +2512,7 @@ public Primitive(AutoRestComplexTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Readonlyproperty.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Readonlyproperty.cs index 57471567ee..11a015c5fe 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Readonlyproperty.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Readonlyproperty.cs @@ -52,7 +52,7 @@ public Readonlyproperty(AutoRestComplexTestService client) /// Get complex types that have readonly properties /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -173,7 +173,7 @@ public Readonlyproperty(AutoRestComplexTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/AutoRestDateTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/AutoRestDateTestService.cs index 69984301d0..658997f06a 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/AutoRestDateTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/AutoRestDateTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestDateTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IDate. @@ -53,7 +53,7 @@ public partial class AutoRestDateTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDateTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestDateTestService(params DelegatingHandler[] handlers) : base(handl /// Initializes a new instance of the AutoRestDateTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDateTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestDateTestService(HttpClientHandler rootHandler, params DelegatingH /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDateTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestDateTestService(Uri baseUri, params DelegatingHandler[] handlers) /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDateTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { 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 0a4c071707..d1d9b72940 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Date.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Date.cs @@ -52,7 +52,7 @@ public Date(AutoRestDateTestService client) /// Get null date value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -171,7 +171,7 @@ public Date(AutoRestDateTestService client) /// Get invalid date value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -290,7 +290,7 @@ public Date(AutoRestDateTestService client) /// Get overflow date value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -409,7 +409,7 @@ public Date(AutoRestDateTestService client) /// Get underflow date value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -530,7 +530,7 @@ public Date(AutoRestDateTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -638,7 +638,7 @@ public Date(AutoRestDateTestService client) /// Get max date value 9999-12-31 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -759,7 +759,7 @@ public Date(AutoRestDateTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -867,7 +867,7 @@ public Date(AutoRestDateTestService client) /// Get min date value 0000-01-01 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/IAutoRestDateTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/IAutoRestDateTestService.cs index 45b2a270bf..1d44677d49 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/IAutoRestDateTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/IAutoRestDateTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestDateTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/IDate.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/IDate.cs index c98bd53032..51b27d7d7f 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/IDate.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/IDate.cs @@ -25,7 +25,7 @@ public partial interface IDate /// Get null date value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IDate /// Get invalid date value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IDate /// Get overflow date value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -55,7 +55,7 @@ public partial interface IDate /// Get underflow date value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -67,7 +67,7 @@ public partial interface IDate /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -77,7 +77,7 @@ public partial interface IDate /// Get max date value 9999-12-31 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -89,7 +89,7 @@ public partial interface IDate /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -99,7 +99,7 @@ public partial interface IDate /// Get min date value 0000-01-01 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/Error.cs deleted file mode 100644 index 477d866f98..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyDate.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/ErrorException.cs deleted file mode 100644 index 9e379980da..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyDate.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/AutoRestDateTimeTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/AutoRestDateTimeTestService.cs index 061a12d1cd..c00b9f6127 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/AutoRestDateTimeTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/AutoRestDateTimeTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestDateTimeTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IDatetime. @@ -53,7 +53,7 @@ public partial class AutoRestDateTimeTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDateTimeTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestDateTimeTestService(params DelegatingHandler[] handlers) : base(h /// Initializes a new instance of the AutoRestDateTimeTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDateTimeTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestDateTimeTestService(HttpClientHandler rootHandler, params Delegat /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDateTimeTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestDateTimeTestService(Uri baseUri, params DelegatingHandler[] handl /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDateTimeTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { 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 2248d4263b..fd12ef9d74 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Datetime.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Datetime.cs @@ -52,7 +52,7 @@ public Datetime(AutoRestDateTimeTestService client) /// Get null datetime value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -171,7 +171,7 @@ public Datetime(AutoRestDateTimeTestService client) /// Get invalid datetime value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -290,7 +290,7 @@ public Datetime(AutoRestDateTimeTestService client) /// Get overflow datetime value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -409,7 +409,7 @@ public Datetime(AutoRestDateTimeTestService client) /// Get underflow datetime value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -530,7 +530,7 @@ public Datetime(AutoRestDateTimeTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -638,7 +638,7 @@ public Datetime(AutoRestDateTimeTestService client) /// Get max datetime value 9999-12-31t23:59:59.9999999z /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -757,7 +757,7 @@ public Datetime(AutoRestDateTimeTestService client) /// Get max datetime value 9999-12-31T23:59:59.9999999Z /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -879,7 +879,7 @@ public Datetime(AutoRestDateTimeTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -988,7 +988,7 @@ public Datetime(AutoRestDateTimeTestService client) /// 9999-12-31t23:59:59.9999999+14:00 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1108,7 +1108,7 @@ public Datetime(AutoRestDateTimeTestService client) /// 9999-12-31T23:59:59.9999999+14:00 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1230,7 +1230,7 @@ public Datetime(AutoRestDateTimeTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1339,7 +1339,7 @@ public Datetime(AutoRestDateTimeTestService client) /// 9999-12-31T23:59:59.9999999-14:00 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1459,7 +1459,7 @@ public Datetime(AutoRestDateTimeTestService client) /// 9999-12-31t23:59:59.9999999-14:00 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1580,7 +1580,7 @@ public Datetime(AutoRestDateTimeTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1688,7 +1688,7 @@ public Datetime(AutoRestDateTimeTestService client) /// Get min datetime value 0001-01-01T00:00:00Z /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1809,7 +1809,7 @@ public Datetime(AutoRestDateTimeTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1917,7 +1917,7 @@ public Datetime(AutoRestDateTimeTestService client) /// Get min datetime value 0001-01-01T00:00:00+14:00 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2038,7 +2038,7 @@ public Datetime(AutoRestDateTimeTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2146,7 +2146,7 @@ public Datetime(AutoRestDateTimeTestService client) /// Get min datetime value 0001-01-01T00:00:00-14:00 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IAutoRestDateTimeTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IAutoRestDateTimeTestService.cs index 26947b6aa7..be07447be0 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IAutoRestDateTimeTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IAutoRestDateTimeTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestDateTimeTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IDatetime.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IDatetime.cs index 9a4394fe0a..f4c4fb8ab2 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IDatetime.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IDatetime.cs @@ -25,7 +25,7 @@ public partial interface IDatetime /// Get null datetime value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IDatetime /// Get invalid datetime value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IDatetime /// Get overflow datetime value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -55,7 +55,7 @@ public partial interface IDatetime /// Get underflow datetime value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -67,7 +67,7 @@ public partial interface IDatetime /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -77,7 +77,7 @@ public partial interface IDatetime /// Get max datetime value 9999-12-31t23:59:59.9999999z /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -87,7 +87,7 @@ public partial interface IDatetime /// Get max datetime value 9999-12-31T23:59:59.9999999Z /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -100,7 +100,7 @@ public partial interface IDatetime /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -111,7 +111,7 @@ public partial interface IDatetime /// 9999-12-31t23:59:59.9999999+14:00 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -122,7 +122,7 @@ public partial interface IDatetime /// 9999-12-31T23:59:59.9999999+14:00 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -135,7 +135,7 @@ public partial interface IDatetime /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -146,7 +146,7 @@ public partial interface IDatetime /// 9999-12-31T23:59:59.9999999-14:00 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -157,7 +157,7 @@ public partial interface IDatetime /// 9999-12-31t23:59:59.9999999-14:00 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -169,7 +169,7 @@ public partial interface IDatetime /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -179,7 +179,7 @@ public partial interface IDatetime /// Get min datetime value 0001-01-01T00:00:00Z /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -191,7 +191,7 @@ public partial interface IDatetime /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -201,7 +201,7 @@ public partial interface IDatetime /// Get min datetime value 0001-01-01T00:00:00+14:00 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -213,7 +213,7 @@ public partial interface IDatetime /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -223,7 +223,7 @@ public partial interface IDatetime /// Get min datetime value 0001-01-01T00:00:00-14:00 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/Error.cs deleted file mode 100644 index 7b13933619..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyDateTime.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/ErrorException.cs deleted file mode 100644 index ceeebe2fe5..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyDateTime.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/AutoRestRFC1123DateTimeTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/AutoRestRFC1123DateTimeTestService.cs index bc0970cf8f..fc02dae25e 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/AutoRestRFC1123DateTimeTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/AutoRestRFC1123DateTimeTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestRFC1123DateTimeTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IDatetimerfc1123. @@ -53,7 +53,7 @@ public partial class AutoRestRFC1123DateTimeTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestRFC1123DateTimeTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestRFC1123DateTimeTestService(params DelegatingHandler[] handlers) : /// Initializes a new instance of the AutoRestRFC1123DateTimeTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestRFC1123DateTimeTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestRFC1123DateTimeTestService(HttpClientHandler rootHandler, params /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestRFC1123DateTimeTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestRFC1123DateTimeTestService(Uri baseUri, params DelegatingHandler[ /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestRFC1123DateTimeTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { 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 068aced56d..882f25302d 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123.cs @@ -52,7 +52,7 @@ public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) /// Get null datetime value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -171,7 +171,7 @@ public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) /// Get invalid datetime value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -290,7 +290,7 @@ public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) /// Get overflow datetime value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -409,7 +409,7 @@ public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) /// Get underflow datetime value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -530,7 +530,7 @@ public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -638,7 +638,7 @@ public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) /// Get max datetime value fri, 31 dec 9999 23:59:59 gmt /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -757,7 +757,7 @@ public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) /// Get max datetime value FRI, 31 DEC 9999 23:59:59 GMT /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -878,7 +878,7 @@ public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -986,7 +986,7 @@ public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) /// Get min datetime value Mon, 1 Jan 0001 00:00:00 GMT /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IAutoRestRFC1123DateTimeTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IAutoRestRFC1123DateTimeTestService.cs index f4bb60a286..33ce845591 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IAutoRestRFC1123DateTimeTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IAutoRestRFC1123DateTimeTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestRFC1123DateTimeTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IDatetimerfc1123.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IDatetimerfc1123.cs index f127fe5279..b11ec76401 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IDatetimerfc1123.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IDatetimerfc1123.cs @@ -25,7 +25,7 @@ public partial interface IDatetimerfc1123 /// Get null datetime value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IDatetimerfc1123 /// Get invalid datetime value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IDatetimerfc1123 /// Get overflow datetime value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -55,7 +55,7 @@ public partial interface IDatetimerfc1123 /// Get underflow datetime value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -67,7 +67,7 @@ public partial interface IDatetimerfc1123 /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -77,7 +77,7 @@ public partial interface IDatetimerfc1123 /// Get max datetime value fri, 31 dec 9999 23:59:59 gmt /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -87,7 +87,7 @@ public partial interface IDatetimerfc1123 /// Get max datetime value FRI, 31 DEC 9999 23:59:59 GMT /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -99,7 +99,7 @@ public partial interface IDatetimerfc1123 /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -109,7 +109,7 @@ public partial interface IDatetimerfc1123 /// Get min datetime value Mon, 1 Jan 0001 00:00:00 GMT /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/Error.cs deleted file mode 100644 index 23e7a07a20..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyDateTimeRfc1123.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/ErrorException.cs deleted file mode 100644 index 7dfe1036d0..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyDateTimeRfc1123.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/AutoRestSwaggerBATdictionaryService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/AutoRestSwaggerBATdictionaryService.cs index a8974c9a12..5b14750d63 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/AutoRestSwaggerBATdictionaryService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/AutoRestSwaggerBATdictionaryService.cs @@ -35,14 +35,14 @@ public partial class AutoRestSwaggerBATdictionaryService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IDictionary. @@ -53,7 +53,7 @@ public partial class AutoRestSwaggerBATdictionaryService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATdictionaryService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestSwaggerBATdictionaryService(params DelegatingHandler[] handlers) /// Initializes a new instance of the AutoRestSwaggerBATdictionaryService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATdictionaryService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestSwaggerBATdictionaryService(HttpClientHandler rootHandler, params /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATdictionaryService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestSwaggerBATdictionaryService(Uri baseUri, params DelegatingHandler /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATdictionaryService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Dictionary.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Dictionary.cs index ec2b9dd872..e0ce55bb4c 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Dictionary.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Dictionary.cs @@ -52,7 +52,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get null dictionary value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -171,7 +171,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get empty dictionary value {} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -292,7 +292,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -404,7 +404,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get Dictionary with null value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -523,7 +523,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get Dictionary with null key /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -642,7 +642,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get Dictionary with key as empty string /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -761,7 +761,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get invalid Dictionary value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -881,7 +881,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// } /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1002,7 +1002,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1114,7 +1114,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get boolean dictionary value {"0": true, "1": null, "2": false } /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1233,7 +1233,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get boolean dictionary value '{"0": true, "1": "boolean", "2": false}' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1352,7 +1352,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get integer dictionary value {"0": 1, "1": -1, "2": 3, "3": 300} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1473,7 +1473,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1585,7 +1585,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get integer dictionary value {"0": 1, "1": null, "2": 0} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1704,7 +1704,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get integer dictionary value {"0": 1, "1": "integer", "2": 0} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1823,7 +1823,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get integer dictionary value {"0": 1, "1": -1, "2": 3, "3": 300} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1944,7 +1944,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2056,7 +2056,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get long dictionary value {"0": 1, "1": null, "2": 0} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2175,7 +2175,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get long dictionary value {"0": 1, "1": "integer", "2": 0} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2294,7 +2294,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get float dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2415,7 +2415,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2527,7 +2527,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get float dictionary value {"0": 0.0, "1": null, "2": 1.2e20} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2646,7 +2646,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get boolean dictionary value {"0": 1.0, "1": "number", "2": 0.0} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2765,7 +2765,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get float dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2886,7 +2886,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2998,7 +2998,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get float dictionary value {"0": 0.0, "1": null, "2": 1.2e20} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3117,7 +3117,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get boolean dictionary value {"0": 1.0, "1": "number", "2": 0.0} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3236,7 +3236,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get string dictionary value {"0": "foo1", "1": "foo2", "2": "foo3"} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3357,7 +3357,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3469,7 +3469,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get string dictionary value {"0": "foo", "1": null, "2": "foo2"} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3588,7 +3588,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get string dictionary value {"0": "foo", "1": 123, "2": "foo2"} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3708,7 +3708,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// "1492-10-12"} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3830,7 +3830,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3942,7 +3942,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get date dictionary value {"0": "2012-01-01", "1": null, "2": "1776-07-04"} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4061,7 +4061,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get date dictionary value {"0": "2011-03-22", "1": "date"} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4181,7 +4181,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// "1980-01-02T00:11:35+01:00", "2": "1492-10-12T10:15:01-08:00"} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4303,7 +4303,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4415,7 +4415,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get date dictionary value {"0": "2000-12-01t00:00:01z", "1": null} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4534,7 +4534,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get date dictionary value {"0": "2000-12-01t00:00:01z", "1": "date-time"} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4655,7 +4655,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// 10:15:01 GMT"} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4777,7 +4777,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -4890,7 +4890,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// "P5DT1H0M0S"} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5011,7 +5011,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5124,7 +5124,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// hex (25, 29, 43)} with each item encoded in base64 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5246,7 +5246,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5359,7 +5359,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// first item base64 encoded /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5479,7 +5479,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// base64url", "1": "test string", "2": "Lorem ipsum"} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5598,7 +5598,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get dictionary of complex type null value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5717,7 +5717,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get empty dictionary of complex type {} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5837,7 +5837,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// "string": "2"}, "1": null, "2": {"integer": 5, "string": "6"}} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -5957,7 +5957,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// "string": "2"}, "1:" {}, "2": {"integer": 5, "string": "6"}} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6077,7 +6077,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// "1": {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6200,7 +6200,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6312,7 +6312,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get a null array /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6431,7 +6431,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get an empty dictionary {} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6551,7 +6551,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// "2": ["7", "8", "9"]} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6671,7 +6671,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// ["7", "8", "9"]} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6791,7 +6791,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// "6"], "2": ["7", "8", "9"]} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -6913,7 +6913,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -7025,7 +7025,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// Get an dictionaries of dictionaries with value null /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -7145,7 +7145,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// value {} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -7266,7 +7266,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// "seven", "8": "eight", "9": "nine"}} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -7387,7 +7387,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// "seven", "8": "eight", "9": "nine"}} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -7508,7 +7508,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// "5": "five", "6": "six"}, "2": {"7": "seven", "8": "eight", "9": "nine"}} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -7631,7 +7631,7 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/IAutoRestSwaggerBATdictionaryService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/IAutoRestSwaggerBATdictionaryService.cs index 3886da4395..e30b8662d3 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/IAutoRestSwaggerBATdictionaryService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/IAutoRestSwaggerBATdictionaryService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestSwaggerBATdictionaryService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/IDictionary.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/IDictionary.cs index 8c5451a26f..4fde73724e 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/IDictionary.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/IDictionary.cs @@ -25,7 +25,7 @@ public partial interface IDictionary /// Get null dictionary value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IDictionary /// Get empty dictionary value {} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -47,7 +47,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -57,7 +57,7 @@ public partial interface IDictionary /// Get Dictionary with null value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -67,7 +67,7 @@ public partial interface IDictionary /// Get Dictionary with null key /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -77,7 +77,7 @@ public partial interface IDictionary /// Get Dictionary with key as empty string /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -87,7 +87,7 @@ public partial interface IDictionary /// Get invalid Dictionary value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -98,7 +98,7 @@ public partial interface IDictionary /// "3": true } /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -111,7 +111,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -121,7 +121,7 @@ public partial interface IDictionary /// Get boolean dictionary value {"0": true, "1": null, "2": false } /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -132,7 +132,7 @@ public partial interface IDictionary /// false}' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -142,7 +142,7 @@ public partial interface IDictionary /// Get integer dictionary value {"0": 1, "1": -1, "2": 3, "3": 300} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -154,7 +154,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -164,7 +164,7 @@ public partial interface IDictionary /// Get integer dictionary value {"0": 1, "1": null, "2": 0} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -174,7 +174,7 @@ public partial interface IDictionary /// Get integer dictionary value {"0": 1, "1": "integer", "2": 0} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -184,7 +184,7 @@ public partial interface IDictionary /// Get integer dictionary value {"0": 1, "1": -1, "2": 3, "3": 300} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -196,7 +196,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -206,7 +206,7 @@ public partial interface IDictionary /// Get long dictionary value {"0": 1, "1": null, "2": 0} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -216,7 +216,7 @@ public partial interface IDictionary /// Get long dictionary value {"0": 1, "1": "integer", "2": 0} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -226,7 +226,7 @@ public partial interface IDictionary /// Get float dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -238,7 +238,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -248,7 +248,7 @@ public partial interface IDictionary /// Get float dictionary value {"0": 0.0, "1": null, "2": 1.2e20} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -258,7 +258,7 @@ public partial interface IDictionary /// Get boolean dictionary value {"0": 1.0, "1": "number", "2": 0.0} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -268,7 +268,7 @@ public partial interface IDictionary /// Get float dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -280,7 +280,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -290,7 +290,7 @@ public partial interface IDictionary /// Get float dictionary value {"0": 0.0, "1": null, "2": 1.2e20} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -300,7 +300,7 @@ public partial interface IDictionary /// Get boolean dictionary value {"0": 1.0, "1": "number", "2": 0.0} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -310,7 +310,7 @@ public partial interface IDictionary /// Get string dictionary value {"0": "foo1", "1": "foo2", "2": "foo3"} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -322,7 +322,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -332,7 +332,7 @@ public partial interface IDictionary /// Get string dictionary value {"0": "foo", "1": null, "2": "foo2"} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -342,7 +342,7 @@ public partial interface IDictionary /// Get string dictionary value {"0": "foo", "1": 123, "2": "foo2"} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -353,7 +353,7 @@ public partial interface IDictionary /// "1980-01-02", "2": "1492-10-12"} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -366,7 +366,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -377,7 +377,7 @@ public partial interface IDictionary /// "1776-07-04"} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -387,7 +387,7 @@ public partial interface IDictionary /// Get date dictionary value {"0": "2011-03-22", "1": "date"} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -398,7 +398,7 @@ public partial interface IDictionary /// "1980-01-02T00:11:35+01:00", "2": "1492-10-12T10:15:01-08:00"} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -411,7 +411,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -421,7 +421,7 @@ public partial interface IDictionary /// Get date dictionary value {"0": "2000-12-01t00:00:01z", "1": null} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -432,7 +432,7 @@ public partial interface IDictionary /// "date-time"} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -444,7 +444,7 @@ public partial interface IDictionary /// 12 Oct 1492 10:15:01 GMT"} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -458,7 +458,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -469,7 +469,7 @@ public partial interface IDictionary /// "P5DT1H0M0S"} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -482,7 +482,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -493,7 +493,7 @@ public partial interface IDictionary /// 03), "2": hex (25, 29, 43)} with each item encoded in base64 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -506,7 +506,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -517,7 +517,7 @@ public partial interface IDictionary /// the first item base64 encoded /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -528,7 +528,7 @@ public partial interface IDictionary /// with base64url", "1": "test string", "2": "Lorem ipsum"} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -538,7 +538,7 @@ public partial interface IDictionary /// Get dictionary of complex type null value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -548,7 +548,7 @@ public partial interface IDictionary /// Get empty dictionary of complex type {} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -559,7 +559,7 @@ public partial interface IDictionary /// "string": "2"}, "1": null, "2": {"integer": 5, "string": "6"}} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -570,7 +570,7 @@ public partial interface IDictionary /// 1, "string": "2"}, "1:" {}, "2": {"integer": 5, "string": "6"}} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -582,7 +582,7 @@ public partial interface IDictionary /// "string": "6"}} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -596,7 +596,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -606,7 +606,7 @@ public partial interface IDictionary /// Get a null array /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -616,7 +616,7 @@ public partial interface IDictionary /// Get an empty dictionary {} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -627,7 +627,7 @@ public partial interface IDictionary /// null, "2": ["7", "8", "9"]} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -638,7 +638,7 @@ public partial interface IDictionary /// "2": ["7", "8", "9"]} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -649,7 +649,7 @@ public partial interface IDictionary /// "5", "6"], "2": ["7", "8", "9"]} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -662,7 +662,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -672,7 +672,7 @@ public partial interface IDictionary /// Get an dictionaries of dictionaries with value null /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -683,7 +683,7 @@ public partial interface IDictionary /// with value {} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -695,7 +695,7 @@ public partial interface IDictionary /// null, "2": {"7": "seven", "8": "eight", "9": "nine"}} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -707,7 +707,7 @@ public partial interface IDictionary /// "2": {"7": "seven", "8": "eight", "9": "nine"}} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -720,7 +720,7 @@ public partial interface IDictionary /// "eight", "9": "nine"}} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -735,7 +735,7 @@ public partial interface IDictionary /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Error.cs deleted file mode 100644 index b8cd26bd67..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyDictionary.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/ErrorException.cs deleted file mode 100644 index 201f921d77..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyDictionary.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs deleted file mode 100644 index e4b382611d..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyDictionary.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Widget - { - /// - /// Initializes a new instance of the Widget class. - /// - public Widget() { } - - /// - /// Initializes a new instance of the Widget class. - /// - public Widget(int? integer = default(int?), string stringProperty = default(string)) - { - Integer = integer; - StringProperty = stringProperty; - } - - /// - /// - [JsonProperty(PropertyName = "integer")] - public int? Integer { get; set; } - - /// - /// - [JsonProperty(PropertyName = "string")] - public string StringProperty { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/AutoRestDurationTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/AutoRestDurationTestService.cs index 90078aca1b..8a40984d76 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/AutoRestDurationTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/AutoRestDurationTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestDurationTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IDuration. @@ -53,7 +53,7 @@ public partial class AutoRestDurationTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDurationTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestDurationTestService(params DelegatingHandler[] handlers) : base(h /// Initializes a new instance of the AutoRestDurationTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDurationTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestDurationTestService(HttpClientHandler rootHandler, params Delegat /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDurationTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestDurationTestService(Uri baseUri, params DelegatingHandler[] handl /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestDurationTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { 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 42b50edf64..912a3ecc25 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Duration.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Duration.cs @@ -52,7 +52,7 @@ public Duration(AutoRestDurationTestService client) /// Get null duration value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -173,7 +173,7 @@ public Duration(AutoRestDurationTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -281,7 +281,7 @@ public Duration(AutoRestDurationTestService client) /// Get a positive duration value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -400,7 +400,7 @@ public Duration(AutoRestDurationTestService client) /// Get an invalid duration value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IAutoRestDurationTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IAutoRestDurationTestService.cs index 53df28b558..0e11a17b4d 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IAutoRestDurationTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IAutoRestDurationTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestDurationTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IDuration.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IDuration.cs index 153bc1f77f..4280fc08ca 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IDuration.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IDuration.cs @@ -25,7 +25,7 @@ public partial interface IDuration /// Get null duration value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -37,7 +37,7 @@ public partial interface IDuration /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -47,7 +47,7 @@ public partial interface IDuration /// Get a positive duration value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -57,7 +57,7 @@ public partial interface IDuration /// Get an invalid duration value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/Error.cs deleted file mode 100644 index 52a0c19689..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyDuration.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/ErrorException.cs deleted file mode 100644 index 231fbad828..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyDuration.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/AutoRestSwaggerBATFileService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/AutoRestSwaggerBATFileService.cs index dcf031a9b7..36f6f0ef28 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/AutoRestSwaggerBATFileService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/AutoRestSwaggerBATFileService.cs @@ -35,14 +35,14 @@ public partial class AutoRestSwaggerBATFileService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IFiles. @@ -53,7 +53,7 @@ public partial class AutoRestSwaggerBATFileService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATFileService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestSwaggerBATFileService(params DelegatingHandler[] handlers) : base /// Initializes a new instance of the AutoRestSwaggerBATFileService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATFileService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestSwaggerBATFileService(HttpClientHandler rootHandler, params Deleg /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATFileService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestSwaggerBATFileService(Uri baseUri, params DelegatingHandler[] han /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATFileService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Files.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Files.cs index a2d36ef61e..8541a9e598 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Files.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Files.cs @@ -52,7 +52,7 @@ public Files(AutoRestSwaggerBATFileService client) /// Get file /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -158,7 +158,7 @@ public Files(AutoRestSwaggerBATFileService client) /// Get a large file /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -264,7 +264,7 @@ public Files(AutoRestSwaggerBATFileService client) /// Get empty file /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/IAutoRestSwaggerBATFileService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/IAutoRestSwaggerBATFileService.cs index 5c521bb28a..5064867553 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/IAutoRestSwaggerBATFileService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/IAutoRestSwaggerBATFileService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestSwaggerBATFileService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/IFiles.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/IFiles.cs index 32283e7d0d..3489a9ccb7 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/IFiles.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/IFiles.cs @@ -25,7 +25,7 @@ public partial interface IFiles /// Get file /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IFiles /// Get a large file /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IFiles /// Get empty file /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/Error.cs deleted file mode 100644 index faf666cd60..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyFile.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/ErrorException.cs deleted file mode 100644 index 204e3b078d..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyFile.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/AutoRestSwaggerBATFormDataService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/AutoRestSwaggerBATFormDataService.cs index b1207eed51..939f2738e5 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/AutoRestSwaggerBATFormDataService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/AutoRestSwaggerBATFormDataService.cs @@ -35,14 +35,14 @@ public partial class AutoRestSwaggerBATFormDataService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IFormdata. @@ -53,7 +53,7 @@ public partial class AutoRestSwaggerBATFormDataService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATFormDataService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestSwaggerBATFormDataService(params DelegatingHandler[] handlers) : /// Initializes a new instance of the AutoRestSwaggerBATFormDataService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATFormDataService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestSwaggerBATFormDataService(HttpClientHandler rootHandler, params D /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATFormDataService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestSwaggerBATFormDataService(Uri baseUri, params DelegatingHandler[] /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATFormDataService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Formdata.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Formdata.cs index 1880317e4a..292732119f 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Formdata.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Formdata.cs @@ -58,7 +58,7 @@ public Formdata(AutoRestSwaggerBATFormDataService client) /// File name to upload. Name has to be spelled exactly as written here. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -198,7 +198,7 @@ public Formdata(AutoRestSwaggerBATFormDataService client) /// File to upload. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IAutoRestSwaggerBATFormDataService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IAutoRestSwaggerBATFormDataService.cs index 3a1bda43b4..a67fd4c4f7 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IAutoRestSwaggerBATFormDataService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IAutoRestSwaggerBATFormDataService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestSwaggerBATFormDataService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IFormdata.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IFormdata.cs index bc70e3b6e3..35db12f295 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IFormdata.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IFormdata.cs @@ -32,7 +32,7 @@ public partial interface IFormdata /// here. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IFormdata /// File to upload. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/Error.cs deleted file mode 100644 index 15121bfcc5..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyFormData.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/ErrorException.cs deleted file mode 100644 index 6f3755c59c..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyFormData.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/AutoRestIntegerTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/AutoRestIntegerTestService.cs index 2fcbc664c4..d563f2978d 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/AutoRestIntegerTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/AutoRestIntegerTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestIntegerTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IIntModel. @@ -53,7 +53,7 @@ public partial class AutoRestIntegerTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestIntegerTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestIntegerTestService(params DelegatingHandler[] handlers) : base(ha /// Initializes a new instance of the AutoRestIntegerTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestIntegerTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestIntegerTestService(HttpClientHandler rootHandler, params Delegati /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestIntegerTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestIntegerTestService(Uri baseUri, params DelegatingHandler[] handle /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestIntegerTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IAutoRestIntegerTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IAutoRestIntegerTestService.cs index bc95ea514b..0067a223c9 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IAutoRestIntegerTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IAutoRestIntegerTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestIntegerTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IIntModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IIntModel.cs index 7131504bb1..ca12df808b 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IIntModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IIntModel.cs @@ -25,7 +25,7 @@ public partial interface IIntModel /// Get null Int value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IIntModel /// Get invalid Int value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IIntModel /// Get overflow Int32 value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -55,7 +55,7 @@ public partial interface IIntModel /// Get underflow Int32 value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -65,7 +65,7 @@ public partial interface IIntModel /// Get overflow Int64 value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -75,7 +75,7 @@ public partial interface IIntModel /// Get underflow Int64 value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -87,7 +87,7 @@ public partial interface IIntModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -99,7 +99,7 @@ public partial interface IIntModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -111,7 +111,7 @@ public partial interface IIntModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -123,7 +123,7 @@ public partial interface IIntModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -133,7 +133,7 @@ public partial interface IIntModel /// Get datetime encoded as Unix time value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -145,7 +145,7 @@ public partial interface IIntModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -155,7 +155,7 @@ public partial interface IIntModel /// Get invalid Unix time value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -165,7 +165,7 @@ public partial interface IIntModel /// Get null Unix time value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. 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 9c9b57ebbb..4a6ffaf1b5 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModel.cs @@ -52,7 +52,7 @@ public IntModel(AutoRestIntegerTestService client) /// Get null Int value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -171,7 +171,7 @@ public IntModel(AutoRestIntegerTestService client) /// Get invalid Int value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -290,7 +290,7 @@ public IntModel(AutoRestIntegerTestService client) /// Get overflow Int32 value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -409,7 +409,7 @@ public IntModel(AutoRestIntegerTestService client) /// Get underflow Int32 value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -528,7 +528,7 @@ public IntModel(AutoRestIntegerTestService client) /// Get overflow Int64 value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -647,7 +647,7 @@ public IntModel(AutoRestIntegerTestService client) /// Get underflow Int64 value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -768,7 +768,7 @@ public IntModel(AutoRestIntegerTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -878,7 +878,7 @@ public IntModel(AutoRestIntegerTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -988,7 +988,7 @@ public IntModel(AutoRestIntegerTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1098,7 +1098,7 @@ public IntModel(AutoRestIntegerTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1206,7 +1206,7 @@ public IntModel(AutoRestIntegerTestService client) /// Get datetime encoded as Unix time value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1327,7 +1327,7 @@ public IntModel(AutoRestIntegerTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1435,7 +1435,7 @@ public IntModel(AutoRestIntegerTestService client) /// Get invalid Unix time value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1554,7 +1554,7 @@ public IntModel(AutoRestIntegerTestService client) /// Get null Unix time value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/Error.cs deleted file mode 100644 index cbcefbbe58..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyInteger.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/ErrorException.cs deleted file mode 100644 index 5fb0256ac6..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyInteger.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/AutoRestNumberTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/AutoRestNumberTestService.cs index 028e46e867..d50ca1c425 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/AutoRestNumberTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/AutoRestNumberTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestNumberTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the INumber. @@ -53,7 +53,7 @@ public partial class AutoRestNumberTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestNumberTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestNumberTestService(params DelegatingHandler[] handlers) : base(han /// Initializes a new instance of the AutoRestNumberTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestNumberTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestNumberTestService(HttpClientHandler rootHandler, params Delegatin /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestNumberTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestNumberTestService(Uri baseUri, params DelegatingHandler[] handler /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestNumberTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/IAutoRestNumberTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/IAutoRestNumberTestService.cs index 0cbee47ad8..2fd3d6a3f5 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/IAutoRestNumberTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/IAutoRestNumberTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestNumberTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/INumber.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/INumber.cs index d90e5edf12..50505b6a5d 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/INumber.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/INumber.cs @@ -25,7 +25,7 @@ public partial interface INumber /// Get null Number value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface INumber /// Get invalid float Number value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface INumber /// Get invalid double Number value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -55,7 +55,7 @@ public partial interface INumber /// Get invalid decimal Number value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -67,7 +67,7 @@ public partial interface INumber /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -77,7 +77,7 @@ public partial interface INumber /// Get big float value 3.402823e+20 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -89,7 +89,7 @@ public partial interface INumber /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -99,7 +99,7 @@ public partial interface INumber /// Get big double value 2.5976931e+101 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -111,7 +111,7 @@ public partial interface INumber /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -121,7 +121,7 @@ public partial interface INumber /// Get big double value 99999999.99 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -133,7 +133,7 @@ public partial interface INumber /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -143,7 +143,7 @@ public partial interface INumber /// Get big double value -99999999.99 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -155,7 +155,7 @@ public partial interface INumber /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -165,7 +165,7 @@ public partial interface INumber /// Get big decimal value 2.5976931e+101 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -177,7 +177,7 @@ public partial interface INumber /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -187,7 +187,7 @@ public partial interface INumber /// Get big decimal value 99999999.99 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -199,7 +199,7 @@ public partial interface INumber /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -209,7 +209,7 @@ public partial interface INumber /// Get big decimal value -99999999.99 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -221,7 +221,7 @@ public partial interface INumber /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -231,7 +231,7 @@ public partial interface INumber /// Get big double value 3.402823e-20 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -243,7 +243,7 @@ public partial interface INumber /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -253,7 +253,7 @@ public partial interface INumber /// Get big double value 2.5976931e-101 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -265,7 +265,7 @@ public partial interface INumber /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -275,7 +275,7 @@ public partial interface INumber /// Get small decimal value 2.5976931e-101 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/Error.cs deleted file mode 100644 index d2452a351d..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyNumber.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/ErrorException.cs deleted file mode 100644 index 3dda25b781..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyNumber.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} 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 4b60b55820..6781c8dacf 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Number.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Number.cs @@ -52,7 +52,7 @@ public Number(AutoRestNumberTestService client) /// Get null Number value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -171,7 +171,7 @@ public Number(AutoRestNumberTestService client) /// Get invalid float Number value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -290,7 +290,7 @@ public Number(AutoRestNumberTestService client) /// Get invalid double Number value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -409,7 +409,7 @@ public Number(AutoRestNumberTestService client) /// Get invalid decimal Number value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -530,7 +530,7 @@ public Number(AutoRestNumberTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -638,7 +638,7 @@ public Number(AutoRestNumberTestService client) /// Get big float value 3.402823e+20 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -759,7 +759,7 @@ public Number(AutoRestNumberTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -867,7 +867,7 @@ public Number(AutoRestNumberTestService client) /// Get big double value 2.5976931e+101 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -988,7 +988,7 @@ public Number(AutoRestNumberTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1096,7 +1096,7 @@ public Number(AutoRestNumberTestService client) /// Get big double value 99999999.99 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1217,7 +1217,7 @@ public Number(AutoRestNumberTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1325,7 +1325,7 @@ public Number(AutoRestNumberTestService client) /// Get big double value -99999999.99 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1446,7 +1446,7 @@ public Number(AutoRestNumberTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1554,7 +1554,7 @@ public Number(AutoRestNumberTestService client) /// Get big decimal value 2.5976931e+101 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1675,7 +1675,7 @@ public Number(AutoRestNumberTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1783,7 +1783,7 @@ public Number(AutoRestNumberTestService client) /// Get big decimal value 99999999.99 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1904,7 +1904,7 @@ public Number(AutoRestNumberTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2012,7 +2012,7 @@ public Number(AutoRestNumberTestService client) /// Get big decimal value -99999999.99 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2133,7 +2133,7 @@ public Number(AutoRestNumberTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2241,7 +2241,7 @@ public Number(AutoRestNumberTestService client) /// Get big double value 3.402823e-20 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2362,7 +2362,7 @@ public Number(AutoRestNumberTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2470,7 +2470,7 @@ public Number(AutoRestNumberTestService client) /// Get big double value 2.5976931e-101 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2591,7 +2591,7 @@ public Number(AutoRestNumberTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2699,7 +2699,7 @@ public Number(AutoRestNumberTestService client) /// Get small decimal value 2.5976931e-101 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/AutoRestSwaggerBATService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/AutoRestSwaggerBATService.cs index 296e01ee2e..1df14ecd4d 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/AutoRestSwaggerBATService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/AutoRestSwaggerBATService.cs @@ -35,14 +35,14 @@ public partial class AutoRestSwaggerBATService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IStringModel. @@ -58,7 +58,7 @@ public partial class AutoRestSwaggerBATService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATService(params DelegatingHandler[] handlers) : base(handlers) { @@ -69,10 +69,10 @@ public AutoRestSwaggerBATService(params DelegatingHandler[] handlers) : base(han /// Initializes a new instance of the AutoRestSwaggerBATService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -86,7 +86,7 @@ public AutoRestSwaggerBATService(HttpClientHandler rootHandler, params Delegatin /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -104,10 +104,10 @@ public AutoRestSwaggerBATService(Uri baseUri, params DelegatingHandler[] handler /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { 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 8861a350c0..b96142f7ab 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModel.cs @@ -53,7 +53,7 @@ public EnumModel(AutoRestSwaggerBATService client) /// 'blue_color'. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -176,7 +176,7 @@ public EnumModel(AutoRestSwaggerBATService client) /// Possible values include: 'red color', 'green-color', 'blue_color' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/IAutoRestSwaggerBATService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/IAutoRestSwaggerBATService.cs index 7cc9a64e82..b0d64e4f70 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/IAutoRestSwaggerBATService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/IAutoRestSwaggerBATService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestSwaggerBATService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/IEnumModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/IEnumModel.cs index fb06179551..5731d64bd5 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/IEnumModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/IEnumModel.cs @@ -26,7 +26,7 @@ public partial interface IEnumModel /// 'green-color', 'blue_color'. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -40,7 +40,7 @@ public partial interface IEnumModel /// Possible values include: 'red color', 'green-color', 'blue_color' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/IStringModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/IStringModel.cs index e1823d0463..06e72f5a48 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/IStringModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/IStringModel.cs @@ -25,7 +25,7 @@ public partial interface IStringModel /// Get null string value value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -38,7 +38,7 @@ public partial interface IStringModel /// Possible values include: '' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -48,7 +48,7 @@ public partial interface IStringModel /// Get empty string value value '' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -61,7 +61,7 @@ public partial interface IStringModel /// Possible values include: '' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -73,7 +73,7 @@ public partial interface IStringModel /// ' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -90,7 +90,7 @@ public partial interface IStringModel /// ' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -103,7 +103,7 @@ public partial interface IStringModel /// country<tab><space><space>' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -120,7 +120,7 @@ public partial interface IStringModel /// come to the aid of their country ' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -130,7 +130,7 @@ public partial interface IStringModel /// Get String value when no string value is sent in response payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -140,7 +140,7 @@ public partial interface IStringModel /// Get value that is base64 encoded /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -150,7 +150,7 @@ public partial interface IStringModel /// Get value that is base64url encoded /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -162,7 +162,7 @@ public partial interface IStringModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -172,7 +172,7 @@ public partial interface IStringModel /// Get null value that is expected to be base64url encoded /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Colors.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Colors.cs deleted file mode 100644 index b61db9d4a2..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Colors.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyString.Models -{ - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime.Serialization; - - /// - /// Defines values for Colors. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum Colors - { - [EnumMember(Value = "red color")] - Redcolor, - [EnumMember(Value = "green-color")] - GreenColor, - [EnumMember(Value = "blue_color")] - BlueColor - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Error.cs deleted file mode 100644 index d7058c412a..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyString.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/ErrorException.cs deleted file mode 100644 index 7cc4ee3563..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsBodyString.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/StringModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/StringModel.cs index e32308ac6f..90740ac5ef 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/StringModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/StringModel.cs @@ -52,7 +52,7 @@ public StringModel(AutoRestSwaggerBATService client) /// Get null string value value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -174,7 +174,7 @@ public StringModel(AutoRestSwaggerBATService client) /// Possible values include: '' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -282,7 +282,7 @@ public StringModel(AutoRestSwaggerBATService client) /// Get empty string value value '' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -404,7 +404,7 @@ public StringModel(AutoRestSwaggerBATService client) /// Possible values include: '' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -517,7 +517,7 @@ public StringModel(AutoRestSwaggerBATService client) /// '啊齄丂狛狜隣郎隣兀﨩ˊ▇█〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€ ' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -641,7 +641,7 @@ public StringModel(AutoRestSwaggerBATService client) /// '啊齄丂狛狜隣郎隣兀﨩ˊ▇█〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€ ' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -755,7 +755,7 @@ public StringModel(AutoRestSwaggerBATService client) /// come to the aid of their country<tab><space><space>' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -880,7 +880,7 @@ public StringModel(AutoRestSwaggerBATService client) /// the aid of their country ' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -992,7 +992,7 @@ public StringModel(AutoRestSwaggerBATService client) /// Get String value when no string value is sent in response payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1111,7 +1111,7 @@ public StringModel(AutoRestSwaggerBATService client) /// Get value that is base64 encoded /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1230,7 +1230,7 @@ public StringModel(AutoRestSwaggerBATService client) /// Get value that is base64url encoded /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1351,7 +1351,7 @@ public StringModel(AutoRestSwaggerBATService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1463,7 +1463,7 @@ public StringModel(AutoRestSwaggerBATService client) /// Get null value that is expected to be base64url encoded /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. 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 22ff99e128..883b55a19c 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModel.cs @@ -52,7 +52,7 @@ public BoolModel(CompositeBoolInt client) /// Get true Boolean value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -173,7 +173,7 @@ public BoolModel(CompositeBoolInt client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -281,7 +281,7 @@ public BoolModel(CompositeBoolInt client) /// Get false Boolean value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -402,7 +402,7 @@ public BoolModel(CompositeBoolInt client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -510,7 +510,7 @@ public BoolModel(CompositeBoolInt client) /// Get null Boolean value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -629,7 +629,7 @@ public BoolModel(CompositeBoolInt client) /// Get invalid Boolean value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/CompositeBoolInt.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/CompositeBoolInt.cs index 72bd169c41..f6c5f8e137 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/CompositeBoolInt.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/CompositeBoolInt.cs @@ -36,14 +36,14 @@ public partial class CompositeBoolInt : ServiceClient, ICompos public Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IBoolModel. @@ -59,7 +59,7 @@ public partial class CompositeBoolInt : ServiceClient, ICompos /// Initializes a new instance of the CompositeBoolInt class. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public CompositeBoolInt(params DelegatingHandler[] handlers) : base(handlers) { @@ -70,10 +70,10 @@ public CompositeBoolInt(params DelegatingHandler[] handlers) : base(handlers) /// Initializes a new instance of the CompositeBoolInt class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public CompositeBoolInt(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -87,7 +87,7 @@ public CompositeBoolInt(HttpClientHandler rootHandler, params DelegatingHandler[ /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public CompositeBoolInt(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -105,10 +105,10 @@ public CompositeBoolInt(Uri baseUri, params DelegatingHandler[] handlers) : this /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public CompositeBoolInt(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IBoolModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IBoolModel.cs index 3f71b4fdbb..0fba6f8cd9 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IBoolModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IBoolModel.cs @@ -25,7 +25,7 @@ public partial interface IBoolModel /// Get true Boolean value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -37,7 +37,7 @@ public partial interface IBoolModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -47,7 +47,7 @@ public partial interface IBoolModel /// Get false Boolean value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -59,7 +59,7 @@ public partial interface IBoolModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -69,7 +69,7 @@ public partial interface IBoolModel /// Get null Boolean value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -79,7 +79,7 @@ public partial interface IBoolModel /// Get invalid Boolean value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/ICompositeBoolInt.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/ICompositeBoolInt.cs index a043a39aff..deb3d6ac1e 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/ICompositeBoolInt.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/ICompositeBoolInt.cs @@ -29,12 +29,12 @@ public partial interface ICompositeBoolInt : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IIntModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IIntModel.cs index d0b5184786..56c0cf4d65 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IIntModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IIntModel.cs @@ -25,7 +25,7 @@ public partial interface IIntModel /// Get null Int value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IIntModel /// Get invalid Int value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IIntModel /// Get overflow Int32 value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -55,7 +55,7 @@ public partial interface IIntModel /// Get underflow Int32 value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -65,7 +65,7 @@ public partial interface IIntModel /// Get overflow Int64 value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -75,7 +75,7 @@ public partial interface IIntModel /// Get underflow Int64 value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -87,7 +87,7 @@ public partial interface IIntModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -99,7 +99,7 @@ public partial interface IIntModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -111,7 +111,7 @@ public partial interface IIntModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -123,7 +123,7 @@ public partial interface IIntModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -133,7 +133,7 @@ public partial interface IIntModel /// Get datetime encoded as Unix time value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -145,7 +145,7 @@ public partial interface IIntModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -155,7 +155,7 @@ public partial interface IIntModel /// Get invalid Unix time value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -165,7 +165,7 @@ public partial interface IIntModel /// Get null Unix time value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. 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 2047fd8608..9a26bd9f51 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModel.cs @@ -52,7 +52,7 @@ public IntModel(CompositeBoolInt client) /// Get null Int value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -171,7 +171,7 @@ public IntModel(CompositeBoolInt client) /// Get invalid Int value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -290,7 +290,7 @@ public IntModel(CompositeBoolInt client) /// Get overflow Int32 value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -409,7 +409,7 @@ public IntModel(CompositeBoolInt client) /// Get underflow Int32 value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -528,7 +528,7 @@ public IntModel(CompositeBoolInt client) /// Get overflow Int64 value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -647,7 +647,7 @@ public IntModel(CompositeBoolInt client) /// Get underflow Int64 value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -768,7 +768,7 @@ public IntModel(CompositeBoolInt client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -878,7 +878,7 @@ public IntModel(CompositeBoolInt client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -988,7 +988,7 @@ public IntModel(CompositeBoolInt client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1098,7 +1098,7 @@ public IntModel(CompositeBoolInt client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1206,7 +1206,7 @@ public IntModel(CompositeBoolInt client) /// Get datetime encoded as Unix time value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1327,7 +1327,7 @@ public IntModel(CompositeBoolInt client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1435,7 +1435,7 @@ public IntModel(CompositeBoolInt client) /// Get invalid Unix time value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1554,7 +1554,7 @@ public IntModel(CompositeBoolInt client) /// Get null Unix time value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/Error.cs deleted file mode 100644 index a958d37583..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsCompositeBoolIntClient.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/ErrorException.cs deleted file mode 100644 index a3ca0017a6..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsCompositeBoolIntClient.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs index 592641848d..617edf671b 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs @@ -35,14 +35,14 @@ public partial class AutoRestParameterizedHostTestClient : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// A string value that is used as a global part of the parameterized host @@ -58,7 +58,7 @@ public partial class AutoRestParameterizedHostTestClient : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterizedHostTestClient(params DelegatingHandler[] handlers) : base(handlers) { @@ -69,10 +69,10 @@ public AutoRestParameterizedHostTestClient(params DelegatingHandler[] handlers) /// Initializes a new instance of the AutoRestParameterizedHostTestClient class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterizedHostTestClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs index 3af1c6af71..03e39e3424 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs @@ -27,12 +27,12 @@ public partial interface IAutoRestParameterizedHostTestClient : IDisposable /// /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IPaths.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IPaths.cs index a593192f4e..eb8cdc5eef 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IPaths.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IPaths.cs @@ -28,7 +28,7 @@ public partial interface IPaths /// Account Name /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs deleted file mode 100644 index d5cb68252c..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsCustomBaseUri.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs deleted file mode 100644 index 36c220ba33..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsCustomBaseUri.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Paths.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Paths.cs index af98a8354c..aeb95d99a2 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Paths.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Paths.cs @@ -55,7 +55,7 @@ public Paths(AutoRestParameterizedHostTestClient client) /// Account Name /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/AutoRestParameterizedCustomHostTestClient.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/AutoRestParameterizedCustomHostTestClient.cs index e680cbe6a8..5d03695244 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/AutoRestParameterizedCustomHostTestClient.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/AutoRestParameterizedCustomHostTestClient.cs @@ -35,14 +35,14 @@ public partial class AutoRestParameterizedCustomHostTestClient : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// The subscription id with value 'test12'. @@ -64,7 +64,7 @@ public partial class AutoRestParameterizedCustomHostTestClient : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterizedCustomHostTestClient(params DelegatingHandler[] handlers) : base(handlers) { @@ -75,10 +75,10 @@ public AutoRestParameterizedCustomHostTestClient(params DelegatingHandler[] hand /// Initializes a new instance of the AutoRestParameterizedCustomHostTestClient class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterizedCustomHostTestClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IAutoRestParameterizedCustomHostTestClient.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IAutoRestParameterizedCustomHostTestClient.cs index 87db999d81..5896e263dc 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IAutoRestParameterizedCustomHostTestClient.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IAutoRestParameterizedCustomHostTestClient.cs @@ -27,12 +27,12 @@ public partial interface IAutoRestParameterizedCustomHostTestClient : IDisposabl /// /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IPaths.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IPaths.cs index a117b914e7..8ef7ac16d8 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IPaths.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IPaths.cs @@ -37,7 +37,7 @@ public partial interface IPaths /// The key version. Default value 'v1'. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/Error.cs deleted file mode 100644 index 82a4873e61..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsCustomBaseUriMoreOptions.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/ErrorException.cs deleted file mode 100644 index e3ab1c0a08..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsCustomBaseUriMoreOptions.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Paths.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Paths.cs index a8599cf083..fb9e3a51c7 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Paths.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Paths.cs @@ -64,7 +64,7 @@ public Paths(AutoRestParameterizedCustomHostTestClient client) /// The key version. Default value 'v1'. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/AutoRestSwaggerBATHeaderService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/AutoRestSwaggerBATHeaderService.cs index bca730532f..994a743bf1 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/AutoRestSwaggerBATHeaderService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/AutoRestSwaggerBATHeaderService.cs @@ -35,14 +35,14 @@ public partial class AutoRestSwaggerBATHeaderService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IHeader. @@ -53,7 +53,7 @@ public partial class AutoRestSwaggerBATHeaderService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATHeaderService(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestSwaggerBATHeaderService(params DelegatingHandler[] handlers) : ba /// Initializes a new instance of the AutoRestSwaggerBATHeaderService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATHeaderService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestSwaggerBATHeaderService(HttpClientHandler rootHandler, params Del /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATHeaderService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestSwaggerBATHeaderService(Uri baseUri, params DelegatingHandler[] h /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestSwaggerBATHeaderService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Header.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Header.cs index 712aedcc51..ea10869809 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Header.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Header.cs @@ -55,7 +55,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header value "User-Agent": "overwrite" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -169,7 +169,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Get a response with header value "User-Agent": "overwrite" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -286,7 +286,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header value "Content-Type": "text/html" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -400,7 +400,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Get a response with header value "Content-Type": "text/html" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -521,7 +521,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values 1 or -2 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -644,7 +644,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "scenario": "positive" or "negative" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -778,7 +778,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values 105 or -2 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -901,7 +901,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "scenario": "positive" or "negative" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1035,7 +1035,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values 0.07 or -3.0 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1158,7 +1158,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "scenario": "positive" or "negative" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1292,7 +1292,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values 7e120 or -3.0 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1415,7 +1415,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "scenario": "positive" or "negative" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1549,7 +1549,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values true or false /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1672,7 +1672,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "scenario": "true" or "false" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1809,7 +1809,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// lazy dog" or null or "" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1937,7 +1937,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// "empty" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2071,7 +2071,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "2010-01-01" or "0001-01-01" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2194,7 +2194,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "scenario": "valid" or "min" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2330,7 +2330,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// "0001-01-01T00:00:00Z" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2454,7 +2454,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "scenario": "valid" or "min" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2590,7 +2590,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// "Mon, 01 Jan 0001 00:00:00 GMT" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2717,7 +2717,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "scenario": "valid" or "min" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2851,7 +2851,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "P123DT22H14M12.011S" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2974,7 +2974,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "scenario": "valid" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3108,7 +3108,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "啊齄丂狛狜隣郎隣兀﨩" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3238,7 +3238,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// Send a post request with header values "scenario": "valid" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3374,7 +3374,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// 'White', 'black', 'GREY' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3501,7 +3501,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// "empty" /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3629,7 +3629,7 @@ public Header(AutoRestSwaggerBATHeaderService client) /// header of the request /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/IAutoRestSwaggerBATHeaderService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/IAutoRestSwaggerBATHeaderService.cs index 49359e1cc7..47c1875080 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/IAutoRestSwaggerBATHeaderService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/IAutoRestSwaggerBATHeaderService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestSwaggerBATHeaderService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/IHeader.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/IHeader.cs index af69174947..0b0b2fcfaa 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/IHeader.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/IHeader.cs @@ -28,7 +28,7 @@ public partial interface IHeader /// Send a post request with header value "User-Agent": "overwrite" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -38,7 +38,7 @@ public partial interface IHeader /// Get a response with header value "User-Agent": "overwrite" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -51,7 +51,7 @@ public partial interface IHeader /// Send a post request with header value "Content-Type": "text/html" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -61,7 +61,7 @@ public partial interface IHeader /// Get a response with header value "Content-Type": "text/html" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -79,7 +79,7 @@ public partial interface IHeader /// Send a post request with header values 1 or -2 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -93,7 +93,7 @@ public partial interface IHeader /// "negative" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -111,7 +111,7 @@ public partial interface IHeader /// Send a post request with header values 105 or -2 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -125,7 +125,7 @@ public partial interface IHeader /// "negative" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -143,7 +143,7 @@ public partial interface IHeader /// Send a post request with header values 0.07 or -3.0 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -157,7 +157,7 @@ public partial interface IHeader /// "negative" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -175,7 +175,7 @@ public partial interface IHeader /// Send a post request with header values 7e120 or -3.0 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -189,7 +189,7 @@ public partial interface IHeader /// "negative" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -207,7 +207,7 @@ public partial interface IHeader /// Send a post request with header values true or false /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -221,7 +221,7 @@ public partial interface IHeader /// "false" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -242,7 +242,7 @@ public partial interface IHeader /// over the lazy dog" or null or "" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -257,7 +257,7 @@ public partial interface IHeader /// "null" or "empty" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -274,7 +274,7 @@ public partial interface IHeader /// Send a post request with header values "2010-01-01" or "0001-01-01" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -287,7 +287,7 @@ public partial interface IHeader /// Send a post request with header values "scenario": "valid" or "min" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -306,7 +306,7 @@ public partial interface IHeader /// "0001-01-01T00:00:00Z" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -320,7 +320,7 @@ public partial interface IHeader /// Send a post request with header values "scenario": "valid" or "min" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -339,7 +339,7 @@ public partial interface IHeader /// GMT" or "Mon, 01 Jan 0001 00:00:00 GMT" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -353,7 +353,7 @@ public partial interface IHeader /// Send a post request with header values "scenario": "valid" or "min" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -370,7 +370,7 @@ public partial interface IHeader /// Send a post request with header values "P123DT22H14M12.011S" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -383,7 +383,7 @@ public partial interface IHeader /// Send a post request with header values "scenario": "valid" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -400,7 +400,7 @@ public partial interface IHeader /// Send a post request with header values "啊齄丂狛狜隣郎隣兀﨩" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -413,7 +413,7 @@ public partial interface IHeader /// Send a post request with header values "scenario": "valid" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -432,7 +432,7 @@ public partial interface IHeader /// include: 'White', 'black', 'GREY' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -446,7 +446,7 @@ public partial interface IHeader /// "null" or "empty" /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -457,7 +457,7 @@ public partial interface IHeader /// in the header of the request /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/Error.cs deleted file mode 100644 index c45347a0ff..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/ErrorException.cs deleted file mode 100644 index c2fac7576e..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/GreyscaleColors.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/GreyscaleColors.cs deleted file mode 100644 index dafdc0d6ce..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/GreyscaleColors.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime.Serialization; - - /// - /// Defines values for GreyscaleColors. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum GreyscaleColors - { - [EnumMember(Value = "White")] - White, - [EnumMember(Value = "black")] - Black, - [EnumMember(Value = "GREY")] - GREY - } -} 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 deleted file mode 100644 index 54bb390e7c..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseBoolHeaders.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseBool operation. - /// - public partial class HeaderResponseBoolHeaders - { - /// - /// Initializes a new instance of the HeaderResponseBoolHeaders class. - /// - public HeaderResponseBoolHeaders() { } - - /// - /// Initializes a new instance of the HeaderResponseBoolHeaders class. - /// - public HeaderResponseBoolHeaders(bool? value = default(bool?)) - { - Value = value; - } - - /// - /// 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 deleted file mode 100644 index 1119ed4d03..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseByteHeaders.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseByte operation. - /// - public partial class HeaderResponseByteHeaders - { - /// - /// Initializes a new instance of the HeaderResponseByteHeaders class. - /// - public HeaderResponseByteHeaders() { } - - /// - /// Initializes a new instance of the HeaderResponseByteHeaders class. - /// - public HeaderResponseByteHeaders(byte[] value = default(byte[])) - { - Value = value; - } - - /// - /// 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 deleted file mode 100644 index 0cb1bd745f..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDateHeaders.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseDate operation. - /// - public partial class HeaderResponseDateHeaders - { - /// - /// Initializes a new instance of the HeaderResponseDateHeaders class. - /// - public HeaderResponseDateHeaders() { } - - /// - /// Initializes a new instance of the HeaderResponseDateHeaders class. - /// - public HeaderResponseDateHeaders(DateTime? value = default(DateTime?)) - { - Value = value; - } - - /// - /// response with header values "2010-01-01" or "0001-01-01" - /// - [JsonConverter(typeof(DateJsonConverter))] - [JsonProperty(PropertyName = "value")] - public DateTime? Value { get; set; } - - } -} 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 deleted file mode 100644 index 8215b0ae1c..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeHeaders.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseDatetime operation. - /// - public partial class HeaderResponseDatetimeHeaders - { - /// - /// Initializes a new instance of the HeaderResponseDatetimeHeaders - /// class. - /// - public HeaderResponseDatetimeHeaders() { } - - /// - /// Initializes a new instance of the HeaderResponseDatetimeHeaders - /// class. - /// - public HeaderResponseDatetimeHeaders(DateTime? value = default(DateTime?)) - { - Value = value; - } - - /// - /// response with header values "2010-01-01T12:34:56Z" or - /// "0001-01-01T00:00:00Z" - /// - [JsonProperty(PropertyName = "value")] - public DateTime? Value { get; set; } - - } -} 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 deleted file mode 100644 index 124f599f9b..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeRfc1123Headers.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseDatetimeRfc1123 operation. - /// - public partial class HeaderResponseDatetimeRfc1123Headers - { - /// - /// Initializes a new instance of the - /// HeaderResponseDatetimeRfc1123Headers class. - /// - public HeaderResponseDatetimeRfc1123Headers() { } - - /// - /// Initializes a new instance of the - /// HeaderResponseDatetimeRfc1123Headers class. - /// - public HeaderResponseDatetimeRfc1123Headers(DateTime? value = default(DateTime?)) - { - Value = value; - } - - /// - /// 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")] - public DateTime? Value { get; set; } - - } -} 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 deleted file mode 100644 index 104620a950..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDoubleHeaders.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseDouble operation. - /// - public partial class HeaderResponseDoubleHeaders - { - /// - /// Initializes a new instance of the HeaderResponseDoubleHeaders - /// class. - /// - public HeaderResponseDoubleHeaders() { } - - /// - /// Initializes a new instance of the HeaderResponseDoubleHeaders - /// class. - /// - public HeaderResponseDoubleHeaders(double? value = default(double?)) - { - Value = value; - } - - /// - /// 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 deleted file mode 100644 index 71f279990a..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDurationHeaders.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseDuration operation. - /// - public partial class HeaderResponseDurationHeaders - { - /// - /// Initializes a new instance of the HeaderResponseDurationHeaders - /// class. - /// - public HeaderResponseDurationHeaders() { } - - /// - /// Initializes a new instance of the HeaderResponseDurationHeaders - /// class. - /// - public HeaderResponseDurationHeaders(TimeSpan? value = default(TimeSpan?)) - { - Value = value; - } - - /// - /// 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 deleted file mode 100644 index 06092074d5..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseEnumHeaders.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseEnum operation. - /// - public partial class HeaderResponseEnumHeaders - { - /// - /// Initializes a new instance of the HeaderResponseEnumHeaders class. - /// - public HeaderResponseEnumHeaders() { } - - /// - /// Initializes a new instance of the HeaderResponseEnumHeaders class. - /// - public HeaderResponseEnumHeaders(GreyscaleColors? value = default(GreyscaleColors?)) - { - Value = value; - } - - /// - /// 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 deleted file mode 100644 index 344136218e..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseExistingKeyHeaders.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseExistingKey operation. - /// - public partial class HeaderResponseExistingKeyHeaders - { - /// - /// Initializes a new instance of the HeaderResponseExistingKeyHeaders - /// class. - /// - public HeaderResponseExistingKeyHeaders() { } - - /// - /// Initializes a new instance of the HeaderResponseExistingKeyHeaders - /// class. - /// - public HeaderResponseExistingKeyHeaders(string userAgent = default(string)) - { - UserAgent = userAgent; - } - - /// - /// 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 deleted file mode 100644 index 987718bad9..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseFloatHeaders.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseFloat operation. - /// - public partial class HeaderResponseFloatHeaders - { - /// - /// Initializes a new instance of the HeaderResponseFloatHeaders class. - /// - public HeaderResponseFloatHeaders() { } - - /// - /// Initializes a new instance of the HeaderResponseFloatHeaders class. - /// - public HeaderResponseFloatHeaders(double? value = default(double?)) - { - Value = value; - } - - /// - /// 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 deleted file mode 100644 index 28d60394d0..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseIntegerHeaders.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseInteger operation. - /// - public partial class HeaderResponseIntegerHeaders - { - /// - /// Initializes a new instance of the HeaderResponseIntegerHeaders - /// class. - /// - public HeaderResponseIntegerHeaders() { } - - /// - /// Initializes a new instance of the HeaderResponseIntegerHeaders - /// class. - /// - public HeaderResponseIntegerHeaders(int? value = default(int?)) - { - Value = value; - } - - /// - /// 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 deleted file mode 100644 index cf9efd1fe8..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseLongHeaders.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseLong operation. - /// - public partial class HeaderResponseLongHeaders - { - /// - /// Initializes a new instance of the HeaderResponseLongHeaders class. - /// - public HeaderResponseLongHeaders() { } - - /// - /// Initializes a new instance of the HeaderResponseLongHeaders class. - /// - public HeaderResponseLongHeaders(long? value = default(long?)) - { - Value = value; - } - - /// - /// 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 deleted file mode 100644 index abb1464ad4..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseProtectedKeyHeaders.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseProtectedKey operation. - /// - public partial class HeaderResponseProtectedKeyHeaders - { - /// - /// Initializes a new instance of the - /// HeaderResponseProtectedKeyHeaders class. - /// - public HeaderResponseProtectedKeyHeaders() { } - - /// - /// Initializes a new instance of the - /// HeaderResponseProtectedKeyHeaders class. - /// - public HeaderResponseProtectedKeyHeaders(string contentType = default(string)) - { - ContentType = contentType; - } - - /// - /// 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 deleted file mode 100644 index 7184a38f5c..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseStringHeaders.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHeader.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for responseString operation. - /// - public partial class HeaderResponseStringHeaders - { - /// - /// Initializes a new instance of the HeaderResponseStringHeaders - /// class. - /// - public HeaderResponseStringHeaders() { } - - /// - /// Initializes a new instance of the HeaderResponseStringHeaders - /// class. - /// - public HeaderResponseStringHeaders(string value = default(string)) - { - Value = value; - } - - /// - /// 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/AutoRestHttpInfrastructureTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/AutoRestHttpInfrastructureTestService.cs index 12eea99614..bbb6b4a4e3 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/AutoRestHttpInfrastructureTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/AutoRestHttpInfrastructureTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestHttpInfrastructureTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IHttpFailure. @@ -83,7 +83,7 @@ public partial class AutoRestHttpInfrastructureTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestHttpInfrastructureTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -94,10 +94,10 @@ public AutoRestHttpInfrastructureTestService(params DelegatingHandler[] handlers /// Initializes a new instance of the AutoRestHttpInfrastructureTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestHttpInfrastructureTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -111,7 +111,7 @@ public AutoRestHttpInfrastructureTestService(HttpClientHandler rootHandler, para /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestHttpInfrastructureTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -129,10 +129,10 @@ public AutoRestHttpInfrastructureTestService(Uri baseUri, params DelegatingHandl /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestHttpInfrastructureTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpClientFailure.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpClientFailure.cs index 3df1107bea..f08247f807 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpClientFailure.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpClientFailure.cs @@ -52,7 +52,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Return 400 status code - should be represented in the client as an error /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -167,7 +167,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Return 400 status code - should be represented in the client as an error /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -285,7 +285,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -410,7 +410,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -535,7 +535,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -660,7 +660,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -782,7 +782,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Return 401 status code - should be represented in the client as an error /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -897,7 +897,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Return 402 status code - should be represented in the client as an error /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1012,7 +1012,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Return 403 status code - should be represented in the client as an error /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1130,7 +1130,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1255,7 +1255,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1380,7 +1380,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1505,7 +1505,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1630,7 +1630,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1752,7 +1752,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Return 410 status code - should be represented in the client as an error /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1867,7 +1867,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Return 411 status code - should be represented in the client as an error /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1982,7 +1982,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Return 412 status code - should be represented in the client as an error /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2100,7 +2100,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2225,7 +2225,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2350,7 +2350,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2472,7 +2472,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Return 416 status code - should be represented in the client as an error /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2590,7 +2590,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2712,7 +2712,7 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) /// Return 429 status code - should be represented in the client as an error /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpFailure.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpFailure.cs index 0aa6491bae..c2ac7e87bb 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpFailure.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpFailure.cs @@ -52,7 +52,7 @@ public HttpFailure(AutoRestHttpInfrastructureTestService client) /// Get empty error form server /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -171,7 +171,7 @@ public HttpFailure(AutoRestHttpInfrastructureTestService client) /// Get empty error form server /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpRedirects.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpRedirects.cs index 01747fbf1d..470bd2be6e 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpRedirects.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpRedirects.cs @@ -52,7 +52,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Return 300 status code and redirect to /http/success/200 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -166,7 +166,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Return 300 status code and redirect to /http/success/200 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -298,7 +298,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Return 301 status code and redirect to /http/success/200 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -412,7 +412,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Return 301 status code and redirect to /http/success/200 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -531,7 +531,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -652,7 +652,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Return 302 status code and redirect to /http/success/200 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -766,7 +766,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Return 302 status code and redirect to /http/success/200 /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -885,7 +885,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1011,7 +1011,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1132,7 +1132,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Redirect with 307, resulting in a 200 success /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1246,7 +1246,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Redirect get with 307, resulting in a 200 success /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1363,7 +1363,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1487,7 +1487,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1611,7 +1611,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1735,7 +1735,7 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpRetry.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpRetry.cs index 6fe19ef0d1..3785d126d2 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpRetry.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpRetry.cs @@ -52,7 +52,7 @@ public HttpRetry(AutoRestHttpInfrastructureTestService client) /// Return 408 status code, then 200 after retry /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -156,7 +156,7 @@ public HttpRetry(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -267,7 +267,7 @@ public HttpRetry(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -375,7 +375,7 @@ public HttpRetry(AutoRestHttpInfrastructureTestService client) /// Return 502 status code, then 200 after retry /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -479,7 +479,7 @@ public HttpRetry(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -590,7 +590,7 @@ public HttpRetry(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -701,7 +701,7 @@ public HttpRetry(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -812,7 +812,7 @@ public HttpRetry(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpServerFailure.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpServerFailure.cs index 425c90bf3f..f1edfe4490 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpServerFailure.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpServerFailure.cs @@ -52,7 +52,7 @@ public HttpServerFailure(AutoRestHttpInfrastructureTestService client) /// Return 501 status code - should be represented in the client as an error /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -167,7 +167,7 @@ public HttpServerFailure(AutoRestHttpInfrastructureTestService client) /// Return 501 status code - should be represented in the client as an error /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -285,7 +285,7 @@ public HttpServerFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -410,7 +410,7 @@ public HttpServerFailure(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpSuccess.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpSuccess.cs index 9cef952542..826fec2055 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpSuccess.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/HttpSuccess.cs @@ -52,7 +52,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Return 200 status code if successful /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -153,7 +153,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Get 200 success /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -275,7 +275,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -386,7 +386,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -497,7 +497,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -608,7 +608,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -719,7 +719,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -830,7 +830,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -941,7 +941,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1052,7 +1052,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1163,7 +1163,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1274,7 +1274,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1382,7 +1382,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Return 204 status code if successful /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1486,7 +1486,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1597,7 +1597,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1708,7 +1708,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1819,7 +1819,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Simple boolean value true /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1927,7 +1927,7 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) /// Return 404 status code /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IAutoRestHttpInfrastructureTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IAutoRestHttpInfrastructureTestService.cs index ac99b46247..eebbe87d7f 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IAutoRestHttpInfrastructureTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IAutoRestHttpInfrastructureTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestHttpInfrastructureTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpClientFailure.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpClientFailure.cs index 211773c07b..ff3e692cce 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpClientFailure.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpClientFailure.cs @@ -26,7 +26,7 @@ public partial interface IHttpClientFailure /// error /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -37,7 +37,7 @@ public partial interface IHttpClientFailure /// error /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -51,7 +51,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -65,7 +65,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -79,7 +79,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -93,7 +93,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -104,7 +104,7 @@ public partial interface IHttpClientFailure /// error /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -115,7 +115,7 @@ public partial interface IHttpClientFailure /// error /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -126,7 +126,7 @@ public partial interface IHttpClientFailure /// error /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -140,7 +140,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -154,7 +154,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -168,7 +168,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -182,7 +182,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -196,7 +196,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -207,7 +207,7 @@ public partial interface IHttpClientFailure /// error /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -218,7 +218,7 @@ public partial interface IHttpClientFailure /// error /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -229,7 +229,7 @@ public partial interface IHttpClientFailure /// error /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -243,7 +243,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -257,7 +257,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -271,7 +271,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -282,7 +282,7 @@ public partial interface IHttpClientFailure /// error /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -296,7 +296,7 @@ public partial interface IHttpClientFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -307,7 +307,7 @@ public partial interface IHttpClientFailure /// error /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpFailure.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpFailure.cs index 119abe0130..426e14f627 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpFailure.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpFailure.cs @@ -25,7 +25,7 @@ public partial interface IHttpFailure /// Get empty error form server /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IHttpFailure /// Get empty error form server /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRedirects.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRedirects.cs index 7ecbf15464..479c56a7f1 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRedirects.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRedirects.cs @@ -25,7 +25,7 @@ public partial interface IHttpRedirects /// Return 300 status code and redirect to /http/success/200 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IHttpRedirects /// Return 300 status code and redirect to /http/success/200 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IHttpRedirects /// Return 301 status code and redirect to /http/success/200 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -55,7 +55,7 @@ public partial interface IHttpRedirects /// Return 301 status code and redirect to /http/success/200 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -70,7 +70,7 @@ public partial interface IHttpRedirects /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -80,7 +80,7 @@ public partial interface IHttpRedirects /// Return 302 status code and redirect to /http/success/200 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -90,7 +90,7 @@ public partial interface IHttpRedirects /// Return 302 status code and redirect to /http/success/200 /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -105,7 +105,7 @@ public partial interface IHttpRedirects /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -120,7 +120,7 @@ public partial interface IHttpRedirects /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -130,7 +130,7 @@ public partial interface IHttpRedirects /// Redirect with 307, resulting in a 200 success /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -140,7 +140,7 @@ public partial interface IHttpRedirects /// Redirect get with 307, resulting in a 200 success /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -153,7 +153,7 @@ public partial interface IHttpRedirects /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -166,7 +166,7 @@ public partial interface IHttpRedirects /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -179,7 +179,7 @@ public partial interface IHttpRedirects /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -192,7 +192,7 @@ public partial interface IHttpRedirects /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRetry.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRetry.cs index 08ddbe29b8..54b0f8a0b7 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRetry.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRetry.cs @@ -25,7 +25,7 @@ public partial interface IHttpRetry /// Return 408 status code, then 200 after retry /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -38,7 +38,7 @@ public partial interface IHttpRetry /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -51,7 +51,7 @@ public partial interface IHttpRetry /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -61,7 +61,7 @@ public partial interface IHttpRetry /// Return 502 status code, then 200 after retry /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -74,7 +74,7 @@ public partial interface IHttpRetry /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -87,7 +87,7 @@ public partial interface IHttpRetry /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -100,7 +100,7 @@ public partial interface IHttpRetry /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -113,7 +113,7 @@ public partial interface IHttpRetry /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpServerFailure.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpServerFailure.cs index 161338f312..2eb12a3405 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpServerFailure.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpServerFailure.cs @@ -26,7 +26,7 @@ public partial interface IHttpServerFailure /// error /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -37,7 +37,7 @@ public partial interface IHttpServerFailure /// error /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -51,7 +51,7 @@ public partial interface IHttpServerFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -65,7 +65,7 @@ public partial interface IHttpServerFailure /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpSuccess.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpSuccess.cs index ed593fd2e5..96b7342d02 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpSuccess.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IHttpSuccess.cs @@ -25,7 +25,7 @@ public partial interface IHttpSuccess /// Return 200 status code if successful /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IHttpSuccess /// Get 200 success /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -48,7 +48,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -61,7 +61,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -74,7 +74,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -87,7 +87,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -100,7 +100,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -113,7 +113,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -126,7 +126,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -139,7 +139,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -152,7 +152,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -165,7 +165,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -175,7 +175,7 @@ public partial interface IHttpSuccess /// Return 204 status code if successful /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -188,7 +188,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -201,7 +201,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -214,7 +214,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -227,7 +227,7 @@ public partial interface IHttpSuccess /// Simple boolean value true /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -237,7 +237,7 @@ public partial interface IHttpSuccess /// Return 404 status code /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IMultipleResponses.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IMultipleResponses.cs index 70990d4ce4..c5e4c57ca0 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IMultipleResponses.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/IMultipleResponses.cs @@ -25,7 +25,7 @@ public partial interface IMultipleResponses /// Send a 200 response with valid payload: {'statusCode': '200'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IMultipleResponses /// Send a 204 response with no payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IMultipleResponses /// Send a 201 response with valid payload: {'statusCode': '201'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -55,7 +55,7 @@ public partial interface IMultipleResponses /// Send a 202 response with no payload: /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -66,7 +66,7 @@ public partial interface IMultipleResponses /// 'message': 'client error'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -76,7 +76,7 @@ public partial interface IMultipleResponses /// Send a 200 response with valid payload: {'statusCode': '200'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -87,7 +87,7 @@ public partial interface IMultipleResponses /// 'textStatusCode': 'Created'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -98,7 +98,7 @@ public partial interface IMultipleResponses /// 'client error'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -108,7 +108,7 @@ public partial interface IMultipleResponses /// Send a 200 response with valid payload: {'statusCode': '200'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -118,7 +118,7 @@ public partial interface IMultipleResponses /// Send a 200 response with valid payload: {'httpCode': '201'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -128,7 +128,7 @@ public partial interface IMultipleResponses /// Send a 200 response with valid payload: {'httpStatusCode': '404'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -139,7 +139,7 @@ public partial interface IMultipleResponses /// 'client error'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -149,7 +149,7 @@ public partial interface IMultipleResponses /// Send a 202 response with no payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -159,7 +159,7 @@ public partial interface IMultipleResponses /// Send a 204 response with no payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -170,7 +170,7 @@ public partial interface IMultipleResponses /// 'client error'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -181,7 +181,7 @@ public partial interface IMultipleResponses /// 'value'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -191,7 +191,7 @@ public partial interface IMultipleResponses /// Send a 204 response with no payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -201,7 +201,7 @@ public partial interface IMultipleResponses /// Send a 400 response with no payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -212,7 +212,7 @@ public partial interface IMultipleResponses /// 'value'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -222,7 +222,7 @@ public partial interface IMultipleResponses /// Send a 200 response with valid payload: {'statusCode': '200'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -232,7 +232,7 @@ public partial interface IMultipleResponses /// Send a 200 response with no payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -242,7 +242,7 @@ public partial interface IMultipleResponses /// Send a 400 response with valid payload: {'statusCode': '400'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -252,7 +252,7 @@ public partial interface IMultipleResponses /// Send a 400 response with no payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -262,7 +262,7 @@ public partial interface IMultipleResponses /// Send a 200 response with invalid payload: {'statusCode': '200'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -272,7 +272,7 @@ public partial interface IMultipleResponses /// Send a 200 response with no payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -282,7 +282,7 @@ public partial interface IMultipleResponses /// Send a 400 response with valid payload: {'statusCode': '400'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -292,7 +292,7 @@ public partial interface IMultipleResponses /// Send a 400 response with no payload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -303,7 +303,7 @@ public partial interface IMultipleResponses /// client should return a null object of thde type for model A /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -313,7 +313,7 @@ public partial interface IMultipleResponses /// Send a 200 response with payload {'statusCode': '200'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -324,7 +324,7 @@ public partial interface IMultipleResponses /// '200'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -335,7 +335,7 @@ public partial interface IMultipleResponses /// error with no error model /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -345,7 +345,7 @@ public partial interface IMultipleResponses /// Send a 200 response with payload {'statusCode': '400'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -356,7 +356,7 @@ public partial interface IMultipleResponses /// '400'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -366,7 +366,7 @@ public partial interface IMultipleResponses /// Send a 202 response with payload {'statusCode': '202'} /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/A.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/A.cs deleted file mode 100644 index 9e193a406e..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/A.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class A - { - /// - /// Initializes a new instance of the A class. - /// - public A() { } - - /// - /// Initializes a new instance of the A class. - /// - public A(string statusCode = default(string)) - { - StatusCode = statusCode; - } - - /// - /// - [JsonProperty(PropertyName = "statusCode")] - public string StatusCode { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/B.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/B.cs deleted file mode 100644 index 3177ffa857..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/B.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class B : A - { - /// - /// Initializes a new instance of the B class. - /// - public B() { } - - /// - /// Initializes a new instance of the B class. - /// - public B(string statusCode = default(string), string textStatusCode = default(string)) - : base(statusCode) - { - TextStatusCode = textStatusCode; - } - - /// - /// - [JsonProperty(PropertyName = "textStatusCode")] - public string TextStatusCode { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/C.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/C.cs deleted file mode 100644 index 62673b3dd2..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/C.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class C - { - /// - /// Initializes a new instance of the C class. - /// - public C() { } - - /// - /// Initializes a new instance of the C class. - /// - public C(string httpCode = default(string)) - { - HttpCode = httpCode; - } - - /// - /// - [JsonProperty(PropertyName = "httpCode")] - public string HttpCode { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/D.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/D.cs deleted file mode 100644 index 99ae399f6d..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/D.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class D - { - /// - /// Initializes a new instance of the D class. - /// - public D() { } - - /// - /// Initializes a new instance of the D class. - /// - public D(string httpStatusCode = default(string)) - { - HttpStatusCode = httpStatusCode; - } - - /// - /// - [JsonProperty(PropertyName = "httpStatusCode")] - public string HttpStatusCode { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/Error.cs deleted file mode 100644 index 6a712b92a7..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/ErrorException.cs deleted file mode 100644 index 276401c1d7..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} 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 deleted file mode 100644 index cbf7865f27..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsDelete307Headers.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for delete307 operation. - /// - public partial class HttpRedirectsDelete307Headers - { - /// - /// Initializes a new instance of the HttpRedirectsDelete307Headers - /// class. - /// - public HttpRedirectsDelete307Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsDelete307Headers - /// class. - /// - public HttpRedirectsDelete307Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index d14c5fc870..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet300Headers.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for get300 operation. - /// - public partial class HttpRedirectsGet300Headers - { - /// - /// Initializes a new instance of the HttpRedirectsGet300Headers class. - /// - public HttpRedirectsGet300Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsGet300Headers class. - /// - public HttpRedirectsGet300Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index 70432eae09..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet301Headers.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for get301 operation. - /// - public partial class HttpRedirectsGet301Headers - { - /// - /// Initializes a new instance of the HttpRedirectsGet301Headers class. - /// - public HttpRedirectsGet301Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsGet301Headers class. - /// - public HttpRedirectsGet301Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index 22bc242974..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet302Headers.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for get302 operation. - /// - public partial class HttpRedirectsGet302Headers - { - /// - /// Initializes a new instance of the HttpRedirectsGet302Headers class. - /// - public HttpRedirectsGet302Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsGet302Headers class. - /// - public HttpRedirectsGet302Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index 7eb98fab6b..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet307Headers.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for get307 operation. - /// - public partial class HttpRedirectsGet307Headers - { - /// - /// Initializes a new instance of the HttpRedirectsGet307Headers class. - /// - public HttpRedirectsGet307Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsGet307Headers class. - /// - public HttpRedirectsGet307Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index 5f32659b21..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead300Headers.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for head300 operation. - /// - public partial class HttpRedirectsHead300Headers - { - /// - /// Initializes a new instance of the HttpRedirectsHead300Headers - /// class. - /// - public HttpRedirectsHead300Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsHead300Headers - /// class. - /// - public HttpRedirectsHead300Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index af9b0310e5..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead301Headers.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for head301 operation. - /// - public partial class HttpRedirectsHead301Headers - { - /// - /// Initializes a new instance of the HttpRedirectsHead301Headers - /// class. - /// - public HttpRedirectsHead301Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsHead301Headers - /// class. - /// - public HttpRedirectsHead301Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index 2f1ed670c4..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead302Headers.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for head302 operation. - /// - public partial class HttpRedirectsHead302Headers - { - /// - /// Initializes a new instance of the HttpRedirectsHead302Headers - /// class. - /// - public HttpRedirectsHead302Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsHead302Headers - /// class. - /// - public HttpRedirectsHead302Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index b1ad99069c..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead307Headers.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for head307 operation. - /// - public partial class HttpRedirectsHead307Headers - { - /// - /// Initializes a new instance of the HttpRedirectsHead307Headers - /// class. - /// - public HttpRedirectsHead307Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsHead307Headers - /// class. - /// - public HttpRedirectsHead307Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index 5dfe6e3e52..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch302Headers.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for patch302 operation. - /// - public partial class HttpRedirectsPatch302Headers - { - /// - /// Initializes a new instance of the HttpRedirectsPatch302Headers - /// class. - /// - public HttpRedirectsPatch302Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsPatch302Headers - /// class. - /// - public HttpRedirectsPatch302Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index 19973f88ef..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch307Headers.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for patch307 operation. - /// - public partial class HttpRedirectsPatch307Headers - { - /// - /// Initializes a new instance of the HttpRedirectsPatch307Headers - /// class. - /// - public HttpRedirectsPatch307Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsPatch307Headers - /// class. - /// - public HttpRedirectsPatch307Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index 8036c76d97..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost303Headers.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for post303 operation. - /// - public partial class HttpRedirectsPost303Headers - { - /// - /// Initializes a new instance of the HttpRedirectsPost303Headers - /// class. - /// - public HttpRedirectsPost303Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsPost303Headers - /// class. - /// - public HttpRedirectsPost303Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index 59c68c116b..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost307Headers.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for post307 operation. - /// - public partial class HttpRedirectsPost307Headers - { - /// - /// Initializes a new instance of the HttpRedirectsPost307Headers - /// class. - /// - public HttpRedirectsPost307Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsPost307Headers - /// class. - /// - public HttpRedirectsPost307Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index e48732af63..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut301Headers.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for put301 operation. - /// - public partial class HttpRedirectsPut301Headers - { - /// - /// Initializes a new instance of the HttpRedirectsPut301Headers class. - /// - public HttpRedirectsPut301Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsPut301Headers class. - /// - public HttpRedirectsPut301Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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 deleted file mode 100644 index f3148bff9a..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut307Headers.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for put307 operation. - /// - public partial class HttpRedirectsPut307Headers - { - /// - /// Initializes a new instance of the HttpRedirectsPut307Headers class. - /// - public HttpRedirectsPut307Headers() { } - - /// - /// Initializes a new instance of the HttpRedirectsPut307Headers class. - /// - public HttpRedirectsPut307Headers(string location = default(string)) - { - Location = location; - } - - /// - /// 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/MyException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/MyException.cs deleted file mode 100644 index c8e557c9ea..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/MyException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsHttp.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with A information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class MyException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public A Body { get; set; } - - /// - /// Initializes a new instance of the MyException class. - /// - public MyException() - { - } - - /// - /// Initializes a new instance of the MyException class. - /// - /// The exception message. - public MyException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the MyException class. - /// - /// The exception message. - /// Inner exception. - public MyException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the MyException class. - /// - /// Serialization info. - /// Streaming context. - protected MyException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/MultipleResponses.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/MultipleResponses.cs index e00b6bc053..84c2fb96be 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/MultipleResponses.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/MultipleResponses.cs @@ -52,7 +52,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with valid payload: {'statusCode': '200'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -171,7 +171,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 204 response with no payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -290,7 +290,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 201 response with valid payload: {'statusCode': '201'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -409,7 +409,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 202 response with no payload: /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -529,7 +529,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// 'client error'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -648,7 +648,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with valid payload: {'statusCode': '200'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -786,7 +786,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// 'textStatusCode': 'Created'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -924,7 +924,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// error'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1061,7 +1061,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with valid payload: {'statusCode': '200'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1216,7 +1216,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with valid payload: {'httpCode': '201'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1371,7 +1371,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with valid payload: {'httpStatusCode': '404'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1527,7 +1527,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// error'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1682,7 +1682,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 202 response with no payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1783,7 +1783,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 204 response with no payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1885,7 +1885,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// error'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1986,7 +1986,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 202 response with an unexpected payload {'property': 'value'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2075,7 +2075,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 204 response with no payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2164,7 +2164,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 400 response with no payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2253,7 +2253,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 400 response with an unexpected payload {'property': 'value'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2342,7 +2342,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with valid payload: {'statusCode': '200'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2457,7 +2457,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with no payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2572,7 +2572,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 400 response with valid payload: {'statusCode': '400'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2687,7 +2687,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 400 response with no payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2802,7 +2802,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with invalid payload: {'statusCode': '200'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2891,7 +2891,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with no payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2980,7 +2980,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 400 response with valid payload: {'statusCode': '400'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3069,7 +3069,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 400 response with no payload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3159,7 +3159,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// should return a null object of thde type for model A /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3266,7 +3266,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with payload {'statusCode': '200'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3373,7 +3373,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with invalid payload {'statusCodeInvalid': '200'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3481,7 +3481,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// with no error model /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3588,7 +3588,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with payload {'statusCode': '400'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3695,7 +3695,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 200 response with invalid payload {'statusCodeInvalid': '400'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3802,7 +3802,7 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) /// Send a 202 response with payload {'statusCode': '202'} /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/AutoRestResourceFlatteningTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/AutoRestResourceFlatteningTestService.cs index 507c54acd1..1d3c6d25c4 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/AutoRestResourceFlatteningTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/AutoRestResourceFlatteningTestService.cs @@ -35,20 +35,20 @@ public partial class AutoRestResourceFlatteningTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Initializes a new instance of the AutoRestResourceFlatteningTestService class. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestResourceFlatteningTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -59,10 +59,10 @@ public AutoRestResourceFlatteningTestService(params DelegatingHandler[] handlers /// Initializes a new instance of the AutoRestResourceFlatteningTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestResourceFlatteningTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -76,7 +76,7 @@ public AutoRestResourceFlatteningTestService(HttpClientHandler rootHandler, para /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestResourceFlatteningTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -94,10 +94,10 @@ public AutoRestResourceFlatteningTestService(Uri baseUri, params DelegatingHandl /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestResourceFlatteningTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -154,7 +154,7 @@ private void Initialize() /// External Resource as an Array to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -262,7 +262,7 @@ private void Initialize() /// Get External Resource as an Array /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -384,7 +384,7 @@ private void Initialize() /// External Resource as a Dictionary to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -492,7 +492,7 @@ private void Initialize() /// Get External Resource as a Dictionary /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -614,7 +614,7 @@ private void Initialize() /// External Resource as a ResourceCollection to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -722,7 +722,7 @@ private void Initialize() /// Get External Resource as a ResourceCollection /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -844,7 +844,7 @@ private void Initialize() /// Simple body product to put /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -991,7 +991,7 @@ private void Initialize() /// URL value. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1138,7 +1138,7 @@ private void Initialize() /// Additional parameters for the operation /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/IAutoRestResourceFlatteningTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/IAutoRestResourceFlatteningTestService.cs index e7cdeadf98..4b5df93ba6 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/IAutoRestResourceFlatteningTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/IAutoRestResourceFlatteningTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -45,7 +45,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// External Resource as an Array to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -56,7 +56,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// Get External Resource as an Array /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -70,7 +70,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// External Resource as a Dictionary to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -81,7 +81,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// Get External Resource as a Dictionary /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -95,7 +95,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// External Resource as a ResourceCollection to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -106,7 +106,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// Get External Resource as a ResourceCollection /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -120,7 +120,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// Simple body product to put /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -149,7 +149,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// URL value. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -163,7 +163,7 @@ public partial interface IAutoRestResourceFlatteningTestService : IDisposable /// Additional parameters for the operation /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. 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 deleted file mode 100644 index 40511ce7b4..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/BaseProduct.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsModelFlattening.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// The product documentation. - /// - public partial class BaseProduct - { - /// - /// Initializes a new instance of the BaseProduct class. - /// - public BaseProduct() { } - - /// - /// Initializes a new instance of the BaseProduct class. - /// - public BaseProduct(string productId, string description = default(string)) - { - ProductId = productId; - Description = description; - } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "base_product_description")] - public string Description { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (ProductId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ProductId"); - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Error.cs deleted file mode 100644 index 557762b0c0..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Error.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsModelFlattening.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string), Error parentError = default(Error)) - { - Status = status; - Message = message; - ParentError = parentError; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// - [JsonProperty(PropertyName = "parentError")] - public Error ParentError { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ErrorException.cs deleted file mode 100644 index 5d1edcbaa0..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsModelFlattening.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} 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 deleted file mode 100644 index db9785813c..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenParameterGroup.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsModelFlattening.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Additional parameters for the putSimpleProductWithGrouping operation. - /// - [JsonTransformation] - public partial class FlattenParameterGroup - { - /// - /// Initializes a new instance of the FlattenParameterGroup class. - /// - public FlattenParameterGroup() { } - - /// - /// Initializes a new instance of the FlattenParameterGroup class. - /// - public FlattenParameterGroup(string name, string productId, string maxProductDisplayName, string description = default(string), string genericValue = default(string), string odatavalue = default(string)) - { - Name = name; - ProductId = productId; - Description = description; - MaxProductDisplayName = maxProductDisplayName; - GenericValue = genericValue; - Odatavalue = odatavalue; - } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "")] - public string ProductId { get; set; } - - /// - /// Description of product. - /// - [JsonProperty(PropertyName = "")] - public string Description { get; set; } - - /// - /// Display name of product. - /// - [JsonProperty(PropertyName = "")] - public string MaxProductDisplayName { get; set; } - - /// - /// Generic URL value. - /// - [JsonProperty(PropertyName = "")] - public string GenericValue { get; set; } - - /// - /// URL value. - /// - [JsonProperty(PropertyName = "")] - public string Odatavalue { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (ProductId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ProductId"); - } - if (MaxProductDisplayName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MaxProductDisplayName"); - } - } - } -} 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 deleted file mode 100644 index 9c7cb37c74..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenedProduct.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsModelFlattening.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - [JsonTransformation] - public partial class FlattenedProduct : Resource - { - /// - /// Initializes a new instance of the FlattenedProduct class. - /// - public FlattenedProduct() { } - - /// - /// Initializes a new instance of the FlattenedProduct class. - /// - public FlattenedProduct(string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string name = default(string), string pname = default(string), string flattenedProductType = default(string), string provisioningStateValues = default(string), string provisioningState = default(string)) - : base(id, type, tags, location, name) - { - Pname = pname; - FlattenedProductType = flattenedProductType; - ProvisioningStateValues = provisioningStateValues; - ProvisioningState = provisioningState; - } - - /// - /// - [JsonProperty(PropertyName = "properties.pname")] - public string Pname { get; set; } - - /// - /// - [JsonProperty(PropertyName = "properties.type")] - public string FlattenedProductType { get; set; } - - /// - /// Possible values include: 'Succeeded', 'Failed', 'canceled', - /// 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', - /// 'Deleting', 'Deleted', 'OK' - /// - [JsonProperty(PropertyName = "properties.provisioningStateValues")] - public string ProvisioningStateValues { get; private set; } - - /// - /// - [JsonProperty(PropertyName = "properties.provisioningState")] - public string ProvisioningState { get; set; } - - } -} 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 deleted file mode 100644 index 309028eb12..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/GenericUrl.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsModelFlattening.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// The Generic URL. - /// - public partial class GenericUrl - { - /// - /// Initializes a new instance of the GenericUrl class. - /// - public GenericUrl() { } - - /// - /// Initializes a new instance of the GenericUrl class. - /// - public GenericUrl(string genericValue = default(string)) - { - GenericValue = genericValue; - } - - /// - /// 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 deleted file mode 100644 index a43c4e5d5a..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Resource.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsModelFlattening.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Resource - { - /// - /// Initializes a new instance of the Resource class. - /// - public Resource() { } - - /// - /// Initializes a new instance of the Resource class. - /// - public Resource(string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string name = default(string)) - { - Id = id; - Type = type; - Tags = tags; - Location = location; - Name = name; - } - - /// - /// Resource Id - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; private set; } - - /// - /// Resource Type - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } - - /// - /// - [JsonProperty(PropertyName = "tags")] - public IDictionary Tags { get; set; } - - /// - /// Resource Location - /// - [JsonProperty(PropertyName = "location")] - public string Location { get; set; } - - /// - /// Resource Name - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; private set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ResourceCollection.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ResourceCollection.cs deleted file mode 100644 index 33cf29ab4f..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ResourceCollection.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsModelFlattening.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class ResourceCollection - { - /// - /// Initializes a new instance of the ResourceCollection class. - /// - public ResourceCollection() { } - - /// - /// Initializes a new instance of the ResourceCollection class. - /// - public ResourceCollection(FlattenedProduct productresource = default(FlattenedProduct), IList arrayofresources = default(IList), IDictionary dictionaryofresources = default(IDictionary)) - { - Productresource = productresource; - Arrayofresources = arrayofresources; - Dictionaryofresources = dictionaryofresources; - } - - /// - /// - [JsonProperty(PropertyName = "productresource")] - public FlattenedProduct Productresource { get; set; } - - /// - /// - [JsonProperty(PropertyName = "arrayofresources")] - public IList Arrayofresources { get; set; } - - /// - /// - [JsonProperty(PropertyName = "dictionaryofresources")] - public IDictionary Dictionaryofresources { get; 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 deleted file mode 100644 index 5ee2fa897a..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/SimpleProduct.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsModelFlattening.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// The product documentation. - /// - [JsonTransformation] - public partial class SimpleProduct : BaseProduct - { - /// - /// Initializes a new instance of the SimpleProduct class. - /// - public SimpleProduct() { } - - /// - /// Initializes a new instance of the SimpleProduct class. - /// - public SimpleProduct(string productId, string maxProductDisplayName, string description = default(string), string genericValue = default(string), string odatavalue = default(string)) - : base(productId, description) - { - MaxProductDisplayName = maxProductDisplayName; - GenericValue = genericValue; - Odatavalue = odatavalue; - } - /// - /// Static constructor for SimpleProduct class. - /// - static SimpleProduct() - { - Capacity = "Large"; - } - - /// - /// Display name of product. - /// - [JsonProperty(PropertyName = "details.max_product_display_name")] - public string MaxProductDisplayName { get; set; } - - /// - /// Generic URL value. - /// - [JsonProperty(PropertyName = "details.max_product_image.generic_value")] - public string GenericValue { get; set; } - - /// - /// URL value. - /// - [JsonProperty(PropertyName = "details.max_product_image.@odata\\.value")] - public string Odatavalue { get; set; } - - /// - /// Capacity of product. For example, 4 people. - /// - [JsonProperty(PropertyName = "details.max_product_capacity")] - public static string Capacity { get; private set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public override void Validate() - { - base.Validate(); - if (MaxProductDisplayName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "MaxProductDisplayName"); - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AutoRestParameterFlattening.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AutoRestParameterFlattening.cs index c4dbe12dfc..724519a3ed 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AutoRestParameterFlattening.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AutoRestParameterFlattening.cs @@ -35,14 +35,14 @@ public partial class AutoRestParameterFlattening : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IAvailabilitySets. @@ -53,7 +53,7 @@ public partial class AutoRestParameterFlattening : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterFlattening(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ public AutoRestParameterFlattening(params DelegatingHandler[] handlers) : base(h /// Initializes a new instance of the AutoRestParameterFlattening class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterFlattening(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ public AutoRestParameterFlattening(HttpClientHandler rootHandler, params Delegat /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterFlattening(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ public AutoRestParameterFlattening(Uri baseUri, params DelegatingHandler[] handl /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestParameterFlattening(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AvailabilitySets.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AvailabilitySets.cs index 1195633781..d4bbcf4b1b 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AvailabilitySets.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AvailabilitySets.cs @@ -60,7 +60,7 @@ public AvailabilitySets(AutoRestParameterFlattening client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAutoRestParameterFlattening.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAutoRestParameterFlattening.cs index 176ed3c2d7..5528fb806c 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAutoRestParameterFlattening.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAutoRestParameterFlattening.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestParameterFlattening : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAvailabilitySets.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAvailabilitySets.cs index 60153c9d7e..42d72a9acc 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAvailabilitySets.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAvailabilitySets.cs @@ -33,7 +33,7 @@ public partial interface IAvailabilitySets /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/Models/AvailabilitySetUpdateParameters.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/Models/AvailabilitySetUpdateParameters.cs deleted file mode 100644 index d8568b9039..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/Models/AvailabilitySetUpdateParameters.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsParameterFlattening.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class AvailabilitySetUpdateParameters - { - /// - /// Initializes a new instance of the AvailabilitySetUpdateParameters - /// class. - /// - public AvailabilitySetUpdateParameters() { } - - /// - /// Initializes a new instance of the AvailabilitySetUpdateParameters - /// class. - /// - public AvailabilitySetUpdateParameters(IDictionary tags) - { - Tags = tags; - } - - /// - /// - [JsonProperty(PropertyName = "tags")] - public IDictionary Tags { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (Tags == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Tags"); - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/AutoRestReportService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/AutoRestReportService.cs index d111bdb5dc..d23985448f 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/AutoRestReportService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/AutoRestReportService.cs @@ -35,20 +35,20 @@ public partial class AutoRestReportService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Initializes a new instance of the AutoRestReportService class. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestReportService(params DelegatingHandler[] handlers) : base(handlers) { @@ -59,10 +59,10 @@ public AutoRestReportService(params DelegatingHandler[] handlers) : base(handler /// Initializes a new instance of the AutoRestReportService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestReportService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -76,7 +76,7 @@ public AutoRestReportService(HttpClientHandler rootHandler, params DelegatingHan /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestReportService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -94,10 +94,10 @@ public AutoRestReportService(Uri baseUri, params DelegatingHandler[] handlers) : /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestReportService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -149,7 +149,7 @@ private void Initialize() /// Get test coverage report /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/IAutoRestReportService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/IAutoRestReportService.cs index bb12b43278..0b36835e08 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/IAutoRestReportService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/IAutoRestReportService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestReportService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -42,7 +42,7 @@ public partial interface IAutoRestReportService : IDisposable /// Get test coverage report /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/Error.cs deleted file mode 100644 index 4d97a761c0..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsReport.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/ErrorException.cs deleted file mode 100644 index 226d74461b..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsReport.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/AutoRestRequiredOptionalTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/AutoRestRequiredOptionalTestService.cs index 0ef0cd9fcd..a745a1a82c 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/AutoRestRequiredOptionalTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/AutoRestRequiredOptionalTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestRequiredOptionalTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// number of items to skip @@ -73,7 +73,7 @@ public partial class AutoRestRequiredOptionalTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestRequiredOptionalTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -84,10 +84,10 @@ public AutoRestRequiredOptionalTestService(params DelegatingHandler[] handlers) /// Initializes a new instance of the AutoRestRequiredOptionalTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestRequiredOptionalTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -101,7 +101,7 @@ public AutoRestRequiredOptionalTestService(HttpClientHandler rootHandler, params /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestRequiredOptionalTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -119,10 +119,10 @@ public AutoRestRequiredOptionalTestService(Uri baseUri, params DelegatingHandler /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestRequiredOptionalTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { 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 f0e42c1bf7..10b871d6e3 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModel.cs @@ -55,7 +55,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -179,7 +179,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -291,7 +291,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -418,7 +418,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -532,7 +532,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -656,7 +656,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -769,7 +769,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -897,7 +897,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1009,7 +1009,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1143,7 +1143,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1260,7 +1260,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1391,7 +1391,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1504,7 +1504,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1636,7 +1636,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1752,7 +1752,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1890,7 +1890,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2011,7 +2011,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2139,7 +2139,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2251,7 +2251,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2385,7 +2385,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2502,7 +2502,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2633,7 +2633,7 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IAutoRestRequiredOptionalTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IAutoRestRequiredOptionalTestService.cs index 69f65dd0f8..fb6088f1c7 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IAutoRestRequiredOptionalTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IAutoRestRequiredOptionalTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestRequiredOptionalTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IExplicitModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IExplicitModel.cs index e7d09a397f..be35abdd2e 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IExplicitModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IExplicitModel.cs @@ -28,7 +28,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -40,7 +40,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -54,7 +54,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -67,7 +67,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -81,7 +81,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -94,7 +94,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -107,7 +107,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -119,7 +119,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -133,7 +133,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -146,7 +146,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -160,7 +160,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -173,7 +173,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -186,7 +186,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -198,7 +198,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -212,7 +212,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -225,7 +225,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -238,7 +238,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -250,7 +250,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -264,7 +264,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -277,7 +277,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -291,7 +291,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -304,7 +304,7 @@ public partial interface IExplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IImplicitModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IImplicitModel.cs index 0ecf99cdf3..80d99970e4 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IImplicitModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IImplicitModel.cs @@ -27,7 +27,7 @@ public partial interface IImplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -39,7 +39,7 @@ public partial interface IImplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -51,7 +51,7 @@ public partial interface IImplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -63,7 +63,7 @@ public partial interface IImplicitModel /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -73,7 +73,7 @@ public partial interface IImplicitModel /// Test implicitly required path parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -83,7 +83,7 @@ public partial interface IImplicitModel /// Test implicitly required query parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -93,7 +93,7 @@ public partial interface IImplicitModel /// Test implicitly optional query parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ImplicitModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ImplicitModel.cs index 52a2bd5e9c..8a14085002 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ImplicitModel.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ImplicitModel.cs @@ -54,7 +54,7 @@ public ImplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -177,7 +177,7 @@ public ImplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -290,7 +290,7 @@ public ImplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -402,7 +402,7 @@ public ImplicitModel(AutoRestRequiredOptionalTestService client) /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -510,7 +510,7 @@ public ImplicitModel(AutoRestRequiredOptionalTestService client) /// Test implicitly required path parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -630,7 +630,7 @@ public ImplicitModel(AutoRestRequiredOptionalTestService client) /// Test implicitly required query parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -758,7 +758,7 @@ public ImplicitModel(AutoRestRequiredOptionalTestService client) /// Test implicitly optional query parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayOptionalWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayOptionalWrapper.cs deleted file mode 100644 index 045db62662..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayOptionalWrapper.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsRequiredOptional.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class ArrayOptionalWrapper - { - /// - /// Initializes a new instance of the ArrayOptionalWrapper class. - /// - public ArrayOptionalWrapper() { } - - /// - /// Initializes a new instance of the ArrayOptionalWrapper class. - /// - public ArrayOptionalWrapper(IList value = default(IList)) - { - Value = value; - } - - /// - /// - [JsonProperty(PropertyName = "value")] - public IList Value { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayWrapper.cs deleted file mode 100644 index 101d3e588f..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayWrapper.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsRequiredOptional.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class ArrayWrapper - { - /// - /// Initializes a new instance of the ArrayWrapper class. - /// - public ArrayWrapper() { } - - /// - /// Initializes a new instance of the ArrayWrapper class. - /// - public ArrayWrapper(IList value) - { - Value = value; - } - - /// - /// - [JsonProperty(PropertyName = "value")] - public IList Value { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (Value == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Value"); - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassOptionalWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassOptionalWrapper.cs deleted file mode 100644 index 32fef16702..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassOptionalWrapper.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsRequiredOptional.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class ClassOptionalWrapper - { - /// - /// Initializes a new instance of the ClassOptionalWrapper class. - /// - public ClassOptionalWrapper() { } - - /// - /// Initializes a new instance of the ClassOptionalWrapper class. - /// - public ClassOptionalWrapper(Product value = default(Product)) - { - Value = value; - } - - /// - /// - [JsonProperty(PropertyName = "value")] - public Product Value { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (this.Value != null) - { - this.Value.Validate(); - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassWrapper.cs deleted file mode 100644 index b68593278a..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassWrapper.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsRequiredOptional.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class ClassWrapper - { - /// - /// Initializes a new instance of the ClassWrapper class. - /// - public ClassWrapper() { } - - /// - /// Initializes a new instance of the ClassWrapper class. - /// - public ClassWrapper(Product value) - { - Value = value; - } - - /// - /// - [JsonProperty(PropertyName = "value")] - public Product Value { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (Value == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Value"); - } - if (this.Value != null) - { - this.Value.Validate(); - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Error.cs deleted file mode 100644 index 5bd977f352..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsRequiredOptional.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ErrorException.cs deleted file mode 100644 index fbdac38d5e..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsRequiredOptional.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntOptionalWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntOptionalWrapper.cs deleted file mode 100644 index 05d51f9608..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntOptionalWrapper.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsRequiredOptional.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class IntOptionalWrapper - { - /// - /// Initializes a new instance of the IntOptionalWrapper class. - /// - public IntOptionalWrapper() { } - - /// - /// Initializes a new instance of the IntOptionalWrapper class. - /// - public IntOptionalWrapper(int? value = default(int?)) - { - Value = value; - } - - /// - /// - [JsonProperty(PropertyName = "value")] - public int? Value { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs deleted file mode 100644 index 6a2e200ea4..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsRequiredOptional.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class IntWrapper - { - /// - /// Initializes a new instance of the IntWrapper class. - /// - public IntWrapper() { } - - /// - /// Initializes a new instance of the IntWrapper class. - /// - public IntWrapper(int value) - { - Value = value; - } - - /// - /// - [JsonProperty(PropertyName = "value")] - public int Value { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - //Nothing to validate - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Product.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Product.cs deleted file mode 100644 index 8388def167..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Product.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsRequiredOptional.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Product - { - /// - /// Initializes a new instance of the Product class. - /// - public Product() { } - - /// - /// Initializes a new instance of the Product class. - /// - public Product(int id, string name = default(string)) - { - Id = id; - Name = name; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public int Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - //Nothing to validate - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringOptionalWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringOptionalWrapper.cs deleted file mode 100644 index ff99ac0a58..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringOptionalWrapper.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsRequiredOptional.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class StringOptionalWrapper - { - /// - /// Initializes a new instance of the StringOptionalWrapper class. - /// - public StringOptionalWrapper() { } - - /// - /// Initializes a new instance of the StringOptionalWrapper class. - /// - public StringOptionalWrapper(string value = default(string)) - { - Value = value; - } - - /// - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringWrapper.cs deleted file mode 100644 index 1c0d966bd6..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringWrapper.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsRequiredOptional.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class StringWrapper - { - /// - /// Initializes a new instance of the StringWrapper class. - /// - public StringWrapper() { } - - /// - /// Initializes a new instance of the StringWrapper class. - /// - public StringWrapper(string value) - { - Value = value; - } - - /// - /// - [JsonProperty(PropertyName = "value")] - public string Value { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (Value == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Value"); - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/AutoRestUrlTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/AutoRestUrlTestService.cs index 3b0b79137a..edd5986efa 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/AutoRestUrlTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/AutoRestUrlTestService.cs @@ -35,14 +35,14 @@ public partial class AutoRestUrlTestService : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// A string value 'globalItemStringPath' that appears in the path @@ -73,7 +73,7 @@ public partial class AutoRestUrlTestService : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestUrlTestService(params DelegatingHandler[] handlers) : base(handlers) { @@ -84,10 +84,10 @@ public AutoRestUrlTestService(params DelegatingHandler[] handlers) : base(handle /// Initializes a new instance of the AutoRestUrlTestService class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestUrlTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -101,7 +101,7 @@ public AutoRestUrlTestService(HttpClientHandler rootHandler, params DelegatingHa /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestUrlTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -119,10 +119,10 @@ public AutoRestUrlTestService(Uri baseUri, params DelegatingHandler[] handlers) /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestUrlTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IAutoRestUrlTestService.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IAutoRestUrlTestService.cs index 05fefe2070..0c08e34bd7 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IAutoRestUrlTestService.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IAutoRestUrlTestService.cs @@ -28,12 +28,12 @@ public partial interface IAutoRestUrlTestService : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IPathItems.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IPathItems.cs index 80262fd87e..2560464cb1 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IPathItems.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IPathItems.cs @@ -43,7 +43,7 @@ public partial interface IPathItems /// parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -70,7 +70,7 @@ public partial interface IPathItems /// parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -96,7 +96,7 @@ public partial interface IPathItems /// parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -122,7 +122,7 @@ public partial interface IPathItems /// should contain value null /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IPaths.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IPaths.cs index d8f9e2c761..dc1270becf 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IPaths.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IPaths.cs @@ -25,7 +25,7 @@ public partial interface IPaths /// Get true Boolean value on path /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IPaths /// Get false Boolean value on path /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -45,7 +45,7 @@ public partial interface IPaths /// Get '1000000' integer value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -55,7 +55,7 @@ public partial interface IPaths /// Get '-1000000' integer value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -65,7 +65,7 @@ public partial interface IPaths /// Get '10000000000' 64 bit integer value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -75,7 +75,7 @@ public partial interface IPaths /// Get '-10000000000' 64 bit integer value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -85,7 +85,7 @@ public partial interface IPaths /// Get '1.034E+20' numeric value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -95,7 +95,7 @@ public partial interface IPaths /// Get '-1.034E-20' numeric value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -105,7 +105,7 @@ public partial interface IPaths /// Get '9999999.999' numeric value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -115,7 +115,7 @@ public partial interface IPaths /// Get '-9999999.999' numeric value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -125,7 +125,7 @@ public partial interface IPaths /// Get '啊齄丂狛狜隣郎隣兀﨩' multi-byte string value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -135,7 +135,7 @@ public partial interface IPaths /// Get 'begin!*'();:@ &=+$,/?#[]end /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -145,7 +145,7 @@ public partial interface IPaths /// Get '' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -158,7 +158,7 @@ public partial interface IPaths /// null string value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -172,7 +172,7 @@ public partial interface IPaths /// color', 'blue color' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -187,7 +187,7 @@ public partial interface IPaths /// 'green color', 'blue color' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -200,7 +200,7 @@ public partial interface IPaths /// '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte array /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -210,7 +210,7 @@ public partial interface IPaths /// Get '' as byte array /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -223,7 +223,7 @@ public partial interface IPaths /// null as byte array (should throw) /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -233,7 +233,7 @@ public partial interface IPaths /// Get '2012-01-01' as date /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -247,7 +247,7 @@ public partial interface IPaths /// null as date (should throw) /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -257,7 +257,7 @@ public partial interface IPaths /// Get '2012-01-01T01:01:01Z' as date-time /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -271,7 +271,7 @@ public partial interface IPaths /// null as date-time /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -284,7 +284,7 @@ public partial interface IPaths /// base64url encoded value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -299,7 +299,7 @@ public partial interface IPaths /// &=+$,/?#[]end' , null, ''] using the csv-array format /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -312,7 +312,7 @@ public partial interface IPaths /// Unix time encoded value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IQueries.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IQueries.cs index 7799e14a37..3123e489ee 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IQueries.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/IQueries.cs @@ -25,7 +25,7 @@ public partial interface IQueries /// Get true Boolean value on path /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -35,7 +35,7 @@ public partial interface IQueries /// Get false Boolean value on path /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -48,7 +48,7 @@ public partial interface IQueries /// null boolean value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -58,7 +58,7 @@ public partial interface IQueries /// Get '1000000' integer value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -68,7 +68,7 @@ public partial interface IQueries /// Get '-1000000' integer value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -81,7 +81,7 @@ public partial interface IQueries /// null integer value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -91,7 +91,7 @@ public partial interface IQueries /// Get '10000000000' 64 bit integer value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -101,7 +101,7 @@ public partial interface IQueries /// Get '-10000000000' 64 bit integer value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -114,7 +114,7 @@ public partial interface IQueries /// null 64 bit integer value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -124,7 +124,7 @@ public partial interface IQueries /// Get '1.034E+20' numeric value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -134,7 +134,7 @@ public partial interface IQueries /// Get '-1.034E-20' numeric value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -147,7 +147,7 @@ public partial interface IQueries /// null numeric value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -157,7 +157,7 @@ public partial interface IQueries /// Get '9999999.999' numeric value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -167,7 +167,7 @@ public partial interface IQueries /// Get '-9999999.999' numeric value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -180,7 +180,7 @@ public partial interface IQueries /// null numeric value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -190,7 +190,7 @@ public partial interface IQueries /// Get '啊齄丂狛狜隣郎隣兀﨩' multi-byte string value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -200,7 +200,7 @@ public partial interface IQueries /// Get 'begin!*'();:@ &=+$,/?#[]end /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -210,7 +210,7 @@ public partial interface IQueries /// Get '' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -223,7 +223,7 @@ public partial interface IQueries /// null string value /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -237,7 +237,7 @@ public partial interface IQueries /// 'green color', 'blue color' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -251,7 +251,7 @@ public partial interface IQueries /// color', 'blue color' /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -264,7 +264,7 @@ public partial interface IQueries /// '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte array /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -274,7 +274,7 @@ public partial interface IQueries /// Get '' as byte array /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -287,7 +287,7 @@ public partial interface IQueries /// null as byte array (no query parameters in uri) /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -297,7 +297,7 @@ public partial interface IQueries /// Get '2012-01-01' as date /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -310,7 +310,7 @@ public partial interface IQueries /// null as date (no query parameters in uri) /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -320,7 +320,7 @@ public partial interface IQueries /// Get '2012-01-01T01:01:01Z' as date-time /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -333,7 +333,7 @@ public partial interface IQueries /// null as date-time (no query parameters) /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -348,7 +348,7 @@ public partial interface IQueries /// &=+$,/?#[]end' , null, ''] using the csv-array format /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -361,7 +361,7 @@ public partial interface IQueries /// a null array of string using the csv-array format /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -374,7 +374,7 @@ public partial interface IQueries /// an empty array [] of string using the csv-array format /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -389,7 +389,7 @@ public partial interface IQueries /// &=+$,/?#[]end' , null, ''] using the ssv-array format /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -404,7 +404,7 @@ public partial interface IQueries /// &=+$,/?#[]end' , null, ''] using the tsv-array format /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -419,7 +419,7 @@ public partial interface IQueries /// &=+$,/?#[]end' , null, ''] using the pipes-array format /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/Error.cs deleted file mode 100644 index caeedd965d..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/Error.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsUrl.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? status = default(int?), string message = default(string)) - { - Status = status; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "status")] - public int? Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/ErrorException.cs deleted file mode 100644 index 9c3eea8c70..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsUrl.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/UriColor.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/UriColor.cs deleted file mode 100644 index 2cd37ee6c9..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/UriColor.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsUrl.Models -{ - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime.Serialization; - - /// - /// Defines values for UriColor. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum UriColor - { - [EnumMember(Value = "red color")] - Redcolor, - [EnumMember(Value = "green color")] - Greencolor, - [EnumMember(Value = "blue color")] - Bluecolor - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/PathItems.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/PathItems.cs index 1aa9ea7ec4..4e7ff16967 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/PathItems.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/PathItems.cs @@ -68,7 +68,7 @@ public PathItems(AutoRestUrlTestService client) /// A string value 'pathItemStringQuery' that appears as a query parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -221,7 +221,7 @@ public PathItems(AutoRestUrlTestService client) /// A string value 'pathItemStringQuery' that appears as a query parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -373,7 +373,7 @@ public PathItems(AutoRestUrlTestService client) /// A string value 'pathItemStringQuery' that appears as a query parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -525,7 +525,7 @@ public PathItems(AutoRestUrlTestService client) /// should contain value null /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Paths.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Paths.cs index 3892f728ba..bb902cdd1e 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Paths.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Paths.cs @@ -52,7 +52,7 @@ public Paths(AutoRestUrlTestService client) /// Get true Boolean value on path /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -156,7 +156,7 @@ public Paths(AutoRestUrlTestService client) /// Get false Boolean value on path /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -260,7 +260,7 @@ public Paths(AutoRestUrlTestService client) /// Get '1000000' integer value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -364,7 +364,7 @@ public Paths(AutoRestUrlTestService client) /// Get '-1000000' integer value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -468,7 +468,7 @@ public Paths(AutoRestUrlTestService client) /// Get '10000000000' 64 bit integer value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -572,7 +572,7 @@ public Paths(AutoRestUrlTestService client) /// Get '-10000000000' 64 bit integer value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -676,7 +676,7 @@ public Paths(AutoRestUrlTestService client) /// Get '1.034E+20' numeric value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -780,7 +780,7 @@ public Paths(AutoRestUrlTestService client) /// Get '-1.034E-20' numeric value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -884,7 +884,7 @@ public Paths(AutoRestUrlTestService client) /// Get '9999999.999' numeric value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -988,7 +988,7 @@ public Paths(AutoRestUrlTestService client) /// Get '-9999999.999' numeric value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1092,7 +1092,7 @@ public Paths(AutoRestUrlTestService client) /// Get '啊齄丂狛狜隣郎隣兀﨩' multi-byte string value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1196,7 +1196,7 @@ public Paths(AutoRestUrlTestService client) /// Get 'begin!*'();:@ &=+$,/?#[]end /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1300,7 +1300,7 @@ public Paths(AutoRestUrlTestService client) /// Get '' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1407,7 +1407,7 @@ public Paths(AutoRestUrlTestService client) /// null string value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1518,7 +1518,7 @@ public Paths(AutoRestUrlTestService client) /// 'blue color' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1625,7 +1625,7 @@ public Paths(AutoRestUrlTestService client) /// color', 'blue color' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1731,7 +1731,7 @@ public Paths(AutoRestUrlTestService client) /// '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte array /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1838,7 +1838,7 @@ public Paths(AutoRestUrlTestService client) /// Get '' as byte array /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1945,7 +1945,7 @@ public Paths(AutoRestUrlTestService client) /// null as byte array (should throw) /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2052,7 +2052,7 @@ public Paths(AutoRestUrlTestService client) /// Get '2012-01-01' as date /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2160,7 +2160,7 @@ public Paths(AutoRestUrlTestService client) /// null as date (should throw) /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2263,7 +2263,7 @@ public Paths(AutoRestUrlTestService client) /// Get '2012-01-01T01:01:01Z' as date-time /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2371,7 +2371,7 @@ public Paths(AutoRestUrlTestService client) /// null as date-time /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2477,7 +2477,7 @@ public Paths(AutoRestUrlTestService client) /// base64url encoded value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2589,7 +2589,7 @@ public Paths(AutoRestUrlTestService client) /// null, ''] using the csv-array format /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2699,7 +2699,7 @@ public Paths(AutoRestUrlTestService client) /// Unix time encoded value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Queries.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Queries.cs index 67b122ad69..29a7e75dad 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Queries.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Queries.cs @@ -52,7 +52,7 @@ public Queries(AutoRestUrlTestService client) /// Get true Boolean value on path /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -161,7 +161,7 @@ public Queries(AutoRestUrlTestService client) /// Get false Boolean value on path /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -273,7 +273,7 @@ public Queries(AutoRestUrlTestService client) /// null boolean value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -384,7 +384,7 @@ public Queries(AutoRestUrlTestService client) /// Get '1000000' integer value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -493,7 +493,7 @@ public Queries(AutoRestUrlTestService client) /// Get '-1000000' integer value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -605,7 +605,7 @@ public Queries(AutoRestUrlTestService client) /// null integer value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -716,7 +716,7 @@ public Queries(AutoRestUrlTestService client) /// Get '10000000000' 64 bit integer value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -825,7 +825,7 @@ public Queries(AutoRestUrlTestService client) /// Get '-10000000000' 64 bit integer value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -937,7 +937,7 @@ public Queries(AutoRestUrlTestService client) /// null 64 bit integer value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1048,7 +1048,7 @@ public Queries(AutoRestUrlTestService client) /// Get '1.034E+20' numeric value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1157,7 +1157,7 @@ public Queries(AutoRestUrlTestService client) /// Get '-1.034E-20' numeric value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1269,7 +1269,7 @@ public Queries(AutoRestUrlTestService client) /// null numeric value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1380,7 +1380,7 @@ public Queries(AutoRestUrlTestService client) /// Get '9999999.999' numeric value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1489,7 +1489,7 @@ public Queries(AutoRestUrlTestService client) /// Get '-9999999.999' numeric value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1601,7 +1601,7 @@ public Queries(AutoRestUrlTestService client) /// null numeric value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1712,7 +1712,7 @@ public Queries(AutoRestUrlTestService client) /// Get '啊齄丂狛狜隣郎隣兀﨩' multi-byte string value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1824,7 +1824,7 @@ public Queries(AutoRestUrlTestService client) /// Get 'begin!*'();:@ &=+$,/?#[]end /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1936,7 +1936,7 @@ public Queries(AutoRestUrlTestService client) /// Get '' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2051,7 +2051,7 @@ public Queries(AutoRestUrlTestService client) /// null string value /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2166,7 +2166,7 @@ public Queries(AutoRestUrlTestService client) /// color', 'blue color' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2281,7 +2281,7 @@ public Queries(AutoRestUrlTestService client) /// 'blue color' /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2395,7 +2395,7 @@ public Queries(AutoRestUrlTestService client) /// '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte array /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2506,7 +2506,7 @@ public Queries(AutoRestUrlTestService client) /// Get '' as byte array /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2621,7 +2621,7 @@ public Queries(AutoRestUrlTestService client) /// null as byte array (no query parameters in uri) /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2732,7 +2732,7 @@ public Queries(AutoRestUrlTestService client) /// Get '2012-01-01' as date /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2844,7 +2844,7 @@ public Queries(AutoRestUrlTestService client) /// null as date (no query parameters in uri) /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2955,7 +2955,7 @@ public Queries(AutoRestUrlTestService client) /// Get '2012-01-01T01:01:01Z' as date-time /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3067,7 +3067,7 @@ public Queries(AutoRestUrlTestService client) /// null as date-time (no query parameters) /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3183,7 +3183,7 @@ public Queries(AutoRestUrlTestService client) /// null, ''] using the csv-array format /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3297,7 +3297,7 @@ public Queries(AutoRestUrlTestService client) /// a null array of string using the csv-array format /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3411,7 +3411,7 @@ public Queries(AutoRestUrlTestService client) /// an empty array [] of string using the csv-array format /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3527,7 +3527,7 @@ public Queries(AutoRestUrlTestService client) /// null, ''] using the ssv-array format /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3643,7 +3643,7 @@ public Queries(AutoRestUrlTestService client) /// null, ''] using the tsv-array format /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -3759,7 +3759,7 @@ public Queries(AutoRestUrlTestService client) /// null, ''] using the pipes-array format /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/AutoRestValidationTest.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/AutoRestValidationTest.cs index 73459ebb73..7c5ea21a9e 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/AutoRestValidationTest.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/AutoRestValidationTest.cs @@ -36,14 +36,14 @@ public partial class AutoRestValidationTest : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Subscription ID. @@ -59,7 +59,7 @@ public partial class AutoRestValidationTest : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestValidationTest(params DelegatingHandler[] handlers) : base(handlers) { @@ -70,10 +70,10 @@ public AutoRestValidationTest(params DelegatingHandler[] handlers) : base(handle /// Initializes a new instance of the AutoRestValidationTest class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestValidationTest(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -87,7 +87,7 @@ public AutoRestValidationTest(HttpClientHandler rootHandler, params DelegatingHa /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestValidationTest(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -105,10 +105,10 @@ public AutoRestValidationTest(Uri baseUri, params DelegatingHandler[] handlers) /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public AutoRestValidationTest(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -166,7 +166,7 @@ private void Initialize() /// Required int multiple of 10 from 100 to 1000. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -353,7 +353,7 @@ private void Initialize() /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -540,7 +540,7 @@ private void Initialize() } /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -631,7 +631,7 @@ private void Initialize() /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/IAutoRestValidationTest.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/IAutoRestValidationTest.cs index 5a0622eff8..3e9cf168d1 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/IAutoRestValidationTest.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/IAutoRestValidationTest.cs @@ -29,12 +29,12 @@ public partial interface IAutoRestValidationTest : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -59,7 +59,7 @@ public partial interface IAutoRestValidationTest : IDisposable /// Required int multiple of 10 from 100 to 1000. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -78,7 +78,7 @@ public partial interface IAutoRestValidationTest : IDisposable /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -86,7 +86,7 @@ public partial interface IAutoRestValidationTest : IDisposable Task> ValidationOfBodyWithHttpMessagesAsync(string resourceGroupName, int id, Product body = default(Product), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -96,7 +96,7 @@ public partial interface IAutoRestValidationTest : IDisposable /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. 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 deleted file mode 100644 index 07e06b7a22..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ChildProduct.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsValidation.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// The product documentation. - /// - public partial class ChildProduct - { - /// - /// Initializes a new instance of the ChildProduct class. - /// - public ChildProduct() { } - - /// - /// Initializes a new instance of the ChildProduct class. - /// - public ChildProduct(int? count = default(int?)) - { - Count = count; - } - /// - /// Static constructor for ChildProduct class. - /// - static ChildProduct() - { - ConstProperty = "constant"; - } - - /// - /// Count - /// - [JsonProperty(PropertyName = "count")] - public int? Count { get; set; } - - /// - /// Constant string - /// - [JsonProperty(PropertyName = "constProperty")] - public static string ConstProperty { get; private set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ConstantProduct.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ConstantProduct.cs deleted file mode 100644 index e706192af7..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ConstantProduct.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsValidation.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// The product documentation. - /// - public partial class ConstantProduct - { - /// - /// Initializes a new instance of the ConstantProduct class. - /// - public ConstantProduct() { } - - /// - /// Static constructor for ConstantProduct class. - /// - static ConstantProduct() - { - ConstProperty = "constant"; - ConstProperty2 = "constant2"; - } - - /// - /// Constant string - /// - [JsonProperty(PropertyName = "constProperty")] - public static string ConstProperty { get; private set; } - - /// - /// Constant string2 - /// - [JsonProperty(PropertyName = "constProperty2")] - public static string ConstProperty2 { get; private set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/EnumConst.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/EnumConst.cs deleted file mode 100644 index 5a54b667af..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/EnumConst.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsValidation.Models -{ - using Newtonsoft.Json; - using Newtonsoft.Json.Converters; - using System.Runtime.Serialization; - - /// - /// Defines values for EnumConst. - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum EnumConst - { - [EnumMember(Value = "constant_string_as_enum")] - ConstantStringAsEnum - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Error.cs deleted file mode 100644 index 41e0a089bf..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Error.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsValidation.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? code = default(int?), string message = default(string), string fields = default(string)) - { - Code = code; - Message = message; - Fields = fields; - } - - /// - /// - [JsonProperty(PropertyName = "code")] - public int? Code { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// - [JsonProperty(PropertyName = "fields")] - public string Fields { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ErrorException.cs deleted file mode 100644 index 1a14ee36a3..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsValidation.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} 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 deleted file mode 100644 index 09addd8369..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Product.cs +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.AcceptanceTestsValidation.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// The product documentation. - /// - public partial class Product - { - /// - /// Initializes a new instance of the Product class. - /// - public Product() - { - Child = new ChildProduct(); - } - - /// - /// Initializes a new instance of the Product class. - /// - public Product(ChildProduct child, IList displayNames = default(IList), int? capacity = default(int?), string image = default(string), EnumConst? constStringAsEnum = default(EnumConst?)) - { - Child = new ChildProduct(); - DisplayNames = displayNames; - Capacity = capacity; - Image = image; - Child = child; - ConstStringAsEnum = constStringAsEnum; - } - /// - /// Static constructor for Product class. - /// - static Product() - { - ConstChild = new ConstantProduct(); - ConstInt = 0; - ConstString = "constant"; - } - - /// - /// 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. - /// - [JsonProperty(PropertyName = "capacity")] - public int? Capacity { get; set; } - - /// - /// Image URL representing the product. - /// - [JsonProperty(PropertyName = "image")] - public string Image { get; set; } - - /// - /// - [JsonProperty(PropertyName = "child")] - public ChildProduct Child { get; set; } - - /// - /// Constant string as Enum. Possible values include: - /// 'constant_string_as_enum' - /// - [JsonProperty(PropertyName = "constStringAsEnum")] - public EnumConst? ConstStringAsEnum { get; set; } - - /// - /// - [JsonProperty(PropertyName = "constChild")] - public static ConstantProduct ConstChild { get; private set; } - - /// - /// Constant int - /// - [JsonProperty(PropertyName = "constInt")] - public static int ConstInt { get; private set; } - - /// - /// Constant string - /// - [JsonProperty(PropertyName = "constString")] - public static string ConstString { get; private set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (Child == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Child"); - } - if (this.DisplayNames != null) - { - if (this.DisplayNames.Count > 6) - { - throw new ValidationException(ValidationRules.MaxItems, "DisplayNames", 6); - } - if (this.DisplayNames.Count < 0) - { - throw new ValidationException(ValidationRules.MinItems, "DisplayNames", 0); - } - if (this.DisplayNames.Count != this.DisplayNames.Distinct().Count()) - { - throw new ValidationException(ValidationRules.UniqueItems, "DisplayNames"); - } - } - if (this.Capacity >= 100) - { - throw new ValidationException(ValidationRules.ExclusiveMaximum, "Capacity", 100); - } - if (this.Capacity <= 0) - { - throw new ValidationException(ValidationRules.ExclusiveMinimum, "Capacity", 0); - } - if (this.Image != null) - { - if (!System.Text.RegularExpressions.Regex.IsMatch(this.Image, "http://\\w+")) - { - throw new ValidationException(ValidationRules.Pattern, "Image", "http://\\w+"); - } - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/ISwaggerDateTimeOffsetClient.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/ISwaggerDateTimeOffsetClient.cs index 6bb53a8452..9681292bbd 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/ISwaggerDateTimeOffsetClient.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/ISwaggerDateTimeOffsetClient.cs @@ -28,12 +28,12 @@ public partial interface ISwaggerDateTimeOffsetClient : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -48,7 +48,7 @@ public partial interface ISwaggerDateTimeOffsetClient : IDisposable /// The only parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -65,7 +65,7 @@ public partial interface ISwaggerDateTimeOffsetClient : IDisposable /// The only parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -82,7 +82,7 @@ public partial interface ISwaggerDateTimeOffsetClient : IDisposable /// The only parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -99,7 +99,7 @@ public partial interface ISwaggerDateTimeOffsetClient : IDisposable /// The only parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Error.cs deleted file mode 100644 index 861759a25c..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Error.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.DateTimeOffset.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? code = default(int?), string message = default(string), string fields = default(string)) - { - Code = code; - Message = message; - Fields = fields; - } - - /// - /// - [JsonProperty(PropertyName = "code")] - public int? Code { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// - [JsonProperty(PropertyName = "fields")] - public string Fields { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/ErrorException.cs deleted file mode 100644 index 74a3a68a5d..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.DateTimeOffset.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Product.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Product.cs deleted file mode 100644 index c916637c46..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Product.cs +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.DateTimeOffset.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Product - { - /// - /// Initializes a new instance of the Product class. - /// - public Product() { } - - /// - /// Initializes a new instance of the Product class. - /// - public Product(DateTime? date = default(DateTime?), DateTimeOffset? dateTime = default(DateTimeOffset?), IList dateArray = default(IList), IList dateTimeArray = default(IList)) - { - Date = date; - DateTime = dateTime; - DateArray = dateArray; - DateTimeArray = dateTimeArray; - } - - /// - /// - [JsonConverter(typeof(DateJsonConverter))] - [JsonProperty(PropertyName = "date")] - public DateTime? Date { get; set; } - - /// - /// - [JsonProperty(PropertyName = "dateTime")] - public DateTimeOffset? DateTime { get; set; } - - /// - /// - [JsonProperty(PropertyName = "dateArray")] - public IList DateArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "dateTimeArray")] - public IList DateTimeArray { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/SwaggerDateTimeOffsetClient.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/SwaggerDateTimeOffsetClient.cs index 3bd502e2cd..cd699276cb 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/SwaggerDateTimeOffsetClient.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/SwaggerDateTimeOffsetClient.cs @@ -35,20 +35,20 @@ public partial class SwaggerDateTimeOffsetClient : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Initializes a new instance of the SwaggerDateTimeOffsetClient class. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerDateTimeOffsetClient(params DelegatingHandler[] handlers) : base(handlers) { @@ -59,10 +59,10 @@ public SwaggerDateTimeOffsetClient(params DelegatingHandler[] handlers) : base(h /// Initializes a new instance of the SwaggerDateTimeOffsetClient class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerDateTimeOffsetClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -76,7 +76,7 @@ public SwaggerDateTimeOffsetClient(HttpClientHandler rootHandler, params Delegat /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerDateTimeOffsetClient(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -94,10 +94,10 @@ public SwaggerDateTimeOffsetClient(Uri baseUri, params DelegatingHandler[] handl /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerDateTimeOffsetClient(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -155,7 +155,7 @@ private void Initialize() /// The only parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -296,7 +296,7 @@ private void Initialize() /// The only parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -437,7 +437,7 @@ private void Initialize() /// The only parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -578,7 +578,7 @@ private void Initialize() /// The only parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/IInternalClient.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/IInternalClient.cs index 8695938de2..c0ff0c333d 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/IInternalClient.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/IInternalClient.cs @@ -28,12 +28,12 @@ public partial interface IInternalClient : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/IPets.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/IPets.cs index 46d3f9aa03..a0841a2cf3 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/IPets.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/IPets.cs @@ -24,7 +24,7 @@ public partial interface IPets /// Gets a pet from the store /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/InternalClient.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/InternalClient.cs index b48d44a80b..0e423553f5 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/InternalClient.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/InternalClient.cs @@ -35,14 +35,14 @@ public partial class InternalClient : ServiceClient, IInternalCl public Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets the IPets. @@ -53,7 +53,7 @@ public partial class InternalClient : ServiceClient, IInternalCl /// Initializes a new instance of the InternalClient class. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// internal InternalClient(params DelegatingHandler[] handlers) : base(handlers) { @@ -64,10 +64,10 @@ internal InternalClient(params DelegatingHandler[] handlers) : base(handlers) /// Initializes a new instance of the InternalClient class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// internal InternalClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -81,7 +81,7 @@ internal InternalClient(HttpClientHandler rootHandler, params DelegatingHandler[ /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// internal InternalClient(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -99,10 +99,10 @@ internal InternalClient(Uri baseUri, params DelegatingHandler[] handlers) : this /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// internal InternalClient(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/Pets.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/Pets.cs index c546970f24..cbb839c65a 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/Pets.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Internal.Ctors/Pets.cs @@ -51,7 +51,7 @@ public Pets(InternalClient client) /// Gets a pet from the store /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/IPolymorphicAnimalStore.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/IPolymorphicAnimalStore.cs index 3d46b8b699..6105a00382 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/IPolymorphicAnimalStore.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/IPolymorphicAnimalStore.cs @@ -28,12 +28,12 @@ public partial interface IPolymorphicAnimalStore : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -49,7 +49,7 @@ public partial interface IPolymorphicAnimalStore : IDisposable /// An Animal /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. 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 f473ba11c0..ff20c9b534 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 d789e963ce..1504a55114 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 9afcdd57e4..b815f2c67c 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 ef0ad5d1d7..0572ac24c4 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/Error2.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2.cs deleted file mode 100644 index 4bbd1be917..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.MirrorPolymorphic.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error2 - { - /// - /// Initializes a new instance of the Error2 class. - /// - public Error2() { } - - /// - /// Initializes a new instance of the Error2 class. - /// - public Error2(int? code = default(int?), string message = default(string), string fields = default(string)) - { - Code = code; - Message = message; - Fields = fields; - } - - /// - /// - [JsonProperty(PropertyName = "code")] - public int? Code { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// - [JsonProperty(PropertyName = "fields")] - public string Fields { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2Exception.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2Exception.cs deleted file mode 100644 index 36adb6b180..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2Exception.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.MirrorPolymorphic.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error2 information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class Error2Exception : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error2 Body { get; set; } - - /// - /// Initializes a new instance of the Error2Exception class. - /// - public Error2Exception() - { - } - - /// - /// Initializes a new instance of the Error2Exception class. - /// - /// The exception message. - public Error2Exception(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the Error2Exception class. - /// - /// The exception message. - /// Inner exception. - public Error2Exception(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the Error2Exception class. - /// - /// Serialization info. - /// Streaming context. - protected Error2Exception(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} 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 d8f3b45767..5d175e8080 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 7bfdbd5770..144bf30861 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 fc5c99d0ee..26ff193a73 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 17ba85a178..fbaf9b7ecd 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.Polymorphic/PolymorphicAnimalStore.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/PolymorphicAnimalStore.cs index 86bf0ccd56..877b69098b 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/PolymorphicAnimalStore.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/PolymorphicAnimalStore.cs @@ -35,20 +35,20 @@ public partial class PolymorphicAnimalStore : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Initializes a new instance of the PolymorphicAnimalStore class. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public PolymorphicAnimalStore(params DelegatingHandler[] handlers) : base(handlers) { @@ -59,10 +59,10 @@ public PolymorphicAnimalStore(params DelegatingHandler[] handlers) : base(handle /// Initializes a new instance of the PolymorphicAnimalStore class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public PolymorphicAnimalStore(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -76,7 +76,7 @@ public PolymorphicAnimalStore(HttpClientHandler rootHandler, params DelegatingHa /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public PolymorphicAnimalStore(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -94,10 +94,10 @@ public PolymorphicAnimalStore(Uri baseUri, params DelegatingHandler[] handlers) /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public PolymorphicAnimalStore(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -158,7 +158,7 @@ private void Initialize() /// An Animal /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/ISwaggerDataTypesClient.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/ISwaggerDataTypesClient.cs index 350f2d5fb6..a10182890d 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/ISwaggerDataTypesClient.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/ISwaggerDataTypesClient.cs @@ -28,12 +28,12 @@ public partial interface ISwaggerDataTypesClient : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -48,7 +48,7 @@ public partial interface ISwaggerDataTypesClient : IDisposable /// The only parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -65,7 +65,7 @@ public partial interface ISwaggerDataTypesClient : IDisposable /// The only parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -82,7 +82,7 @@ public partial interface ISwaggerDataTypesClient : IDisposable /// The only parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -99,7 +99,7 @@ public partial interface ISwaggerDataTypesClient : IDisposable /// The only parameter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Error.cs deleted file mode 100644 index 951c634f80..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Error.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.MirrorPrimitives.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? code = default(int?), string message = default(string), string fields = default(string)) - { - Code = code; - Message = message; - Fields = fields; - } - - /// - /// - [JsonProperty(PropertyName = "code")] - public int? Code { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// - [JsonProperty(PropertyName = "fields")] - public string Fields { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/ErrorException.cs deleted file mode 100644 index e343e02354..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.MirrorPrimitives.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} 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 deleted file mode 100644 index d2ea149e26..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Product.cs +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.MirrorPrimitives.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Product - { - /// - /// Initializes a new instance of the Product class. - /// - public Product() { } - - /// - /// Initializes a new instance of the Product class. - /// - public Product(int? integer = default(int?), int? intProperty = default(int?), long? longProperty = default(long?), double? number = default(double?), double? floatProperty = default(double?), double? doubleProperty = default(double?), byte[] byteProperty = default(byte[]), string stringProperty = default(string), byte[] base64url = default(byte[]), Guid? uuid = default(Guid?), string enumProperty = default(string), bool? boolean = default(bool?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), IList integerArray = default(IList), IList intArray = default(IList), IList longArray = default(IList), IList numberArray = default(IList), IList floatArray = default(IList), IList doubleArray = default(IList), IList byteArray = default(IList), IList booleanArray = default(IList), IList stringArray = default(IList), IList base64urlArray = default(IList), IList dateArray = default(IList), IList dateTimeArray = default(IList), IList uuidArray = default(IList)) - { - Integer = integer; - IntProperty = intProperty; - LongProperty = longProperty; - Number = number; - FloatProperty = floatProperty; - DoubleProperty = doubleProperty; - ByteProperty = byteProperty; - StringProperty = stringProperty; - Base64url = base64url; - Uuid = uuid; - EnumProperty = enumProperty; - Boolean = boolean; - Date = date; - DateTime = dateTime; - IntegerArray = integerArray; - IntArray = intArray; - LongArray = longArray; - NumberArray = numberArray; - FloatArray = floatArray; - DoubleArray = doubleArray; - ByteArray = byteArray; - BooleanArray = booleanArray; - StringArray = stringArray; - Base64urlArray = base64urlArray; - DateArray = dateArray; - DateTimeArray = dateTimeArray; - UuidArray = uuidArray; - } - - /// - /// - [JsonProperty(PropertyName = "integer")] - public int? Integer { get; set; } - - /// - /// - [JsonProperty(PropertyName = "int")] - public int? IntProperty { get; set; } - - /// - /// - [JsonProperty(PropertyName = "long")] - public long? LongProperty { get; set; } - - /// - /// - [JsonProperty(PropertyName = "number")] - public double? Number { get; set; } - - /// - /// - [JsonProperty(PropertyName = "float")] - public double? FloatProperty { get; set; } - - /// - /// - [JsonProperty(PropertyName = "double")] - public double? DoubleProperty { get; set; } - - /// - /// - [JsonProperty(PropertyName = "byte")] - public byte[] ByteProperty { get; set; } - - /// - /// - [JsonProperty(PropertyName = "string")] - public string StringProperty { get; set; } - - /// - /// - [JsonConverter(typeof(Base64UrlJsonConverter))] - [JsonProperty(PropertyName = "base64url")] - public byte[] Base64url { get; set; } - - /// - /// - [JsonProperty(PropertyName = "uuid")] - public Guid? Uuid { get; set; } - - /// - /// Possible values include: 'red', 'blue', 'green' - /// - [JsonProperty(PropertyName = "enum")] - public string EnumProperty { get; set; } - - /// - /// - [JsonProperty(PropertyName = "boolean")] - public bool? Boolean { get; set; } - - /// - /// - [JsonConverter(typeof(DateJsonConverter))] - [JsonProperty(PropertyName = "date")] - public DateTime? Date { get; set; } - - /// - /// - [JsonProperty(PropertyName = "dateTime")] - public DateTime? DateTime { get; set; } - - /// - /// - [JsonProperty(PropertyName = "integerArray")] - public IList IntegerArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "intArray")] - public IList IntArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "longArray")] - public IList LongArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "numberArray")] - public IList NumberArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "floatArray")] - public IList FloatArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "doubleArray")] - public IList DoubleArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "byteArray")] - public IList ByteArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "booleanArray")] - public IList BooleanArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "stringArray")] - public IList StringArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "base64urlArray")] - public IList Base64urlArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "dateArray")] - public IList DateArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "dateTimeArray")] - public IList DateTimeArray { get; set; } - - /// - /// - [JsonProperty(PropertyName = "uuidArray")] - public IList UuidArray { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/SwaggerDataTypesClient.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/SwaggerDataTypesClient.cs index bc41c9c9bd..ab0b2fc88e 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/SwaggerDataTypesClient.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/SwaggerDataTypesClient.cs @@ -35,20 +35,20 @@ public partial class SwaggerDataTypesClient : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Initializes a new instance of the SwaggerDataTypesClient class. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerDataTypesClient(params DelegatingHandler[] handlers) : base(handlers) { @@ -59,10 +59,10 @@ public SwaggerDataTypesClient(params DelegatingHandler[] handlers) : base(handle /// Initializes a new instance of the SwaggerDataTypesClient class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerDataTypesClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -76,7 +76,7 @@ public SwaggerDataTypesClient(HttpClientHandler rootHandler, params DelegatingHa /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerDataTypesClient(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -94,10 +94,10 @@ public SwaggerDataTypesClient(Uri baseUri, params DelegatingHandler[] handlers) /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerDataTypesClient(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -155,7 +155,7 @@ private void Initialize() /// The only parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -296,7 +296,7 @@ private void Initialize() /// The only parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -437,7 +437,7 @@ private void Initialize() /// The only parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -578,7 +578,7 @@ private void Initialize() /// The only parameter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/IRecursiveTypesAPI.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/IRecursiveTypesAPI.cs index 482343fc2b..9c2bdb2e33 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/IRecursiveTypesAPI.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/IRecursiveTypesAPI.cs @@ -28,12 +28,12 @@ public partial interface IRecursiveTypesAPI : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -58,7 +58,7 @@ public partial interface IRecursiveTypesAPI : IDisposable /// API body mody. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs deleted file mode 100644 index 9107ee0103..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.MirrorRecursiveTypes.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Error - { - /// - /// Initializes a new instance of the Error class. - /// - public Error() { } - - /// - /// Initializes a new instance of the Error class. - /// - public Error(int? code = default(int?), string message = default(string), string fields = default(string)) - { - Code = code; - Message = message; - Fields = fields; - } - - /// - /// - [JsonProperty(PropertyName = "code")] - public int? Code { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// - [JsonProperty(PropertyName = "fields")] - public string Fields { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/ErrorException.cs deleted file mode 100644 index 7dbb2d5930..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/ErrorException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.MirrorRecursiveTypes.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with Error information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public Error Body { get; set; } - - /// - /// Initializes a new instance of the ErrorException class. - /// - public ErrorException() - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - public ErrorException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorException class. - /// - /// The exception message. - /// Inner exception. - public ErrorException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} 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 deleted file mode 100644 index 3757ada79d..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Product.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.MirrorRecursiveTypes.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Product - { - /// - /// Initializes a new instance of the Product class. - /// - public Product() { } - - /// - /// Initializes a new instance of the Product class. - /// - public Product(string productId = default(string), Product parentProduct = default(Product), IList innerProducts = default(IList)) - { - ProductId = productId; - ParentProduct = parentProduct; - InnerProducts = innerProducts; - } - - /// - /// 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; } - - /// - /// - [JsonProperty(PropertyName = "parentProduct")] - public Product ParentProduct { get; set; } - - /// - /// - [JsonProperty(PropertyName = "innerProducts")] - public IList InnerProducts { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/RecursiveTypesAPI.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/RecursiveTypesAPI.cs index ae58814c3b..c8597f81e1 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/RecursiveTypesAPI.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/RecursiveTypesAPI.cs @@ -35,20 +35,20 @@ public partial class RecursiveTypesAPI : ServiceClient, IRecu public Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Initializes a new instance of the RecursiveTypesAPI class. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public RecursiveTypesAPI(params DelegatingHandler[] handlers) : base(handlers) { @@ -59,10 +59,10 @@ public RecursiveTypesAPI(params DelegatingHandler[] handlers) : base(handlers) /// Initializes a new instance of the RecursiveTypesAPI class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public RecursiveTypesAPI(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -76,7 +76,7 @@ public RecursiveTypesAPI(HttpClientHandler rootHandler, params DelegatingHandler /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public RecursiveTypesAPI(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -94,10 +94,10 @@ public RecursiveTypesAPI(Uri baseUri, params DelegatingHandler[] handlers) : thi /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public RecursiveTypesAPI(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -165,7 +165,7 @@ private void Initialize() /// API body mody. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/ISequenceRequestResponseTest.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/ISequenceRequestResponseTest.cs index 81cd8a2a59..daaa391a80 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/ISequenceRequestResponseTest.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/ISequenceRequestResponseTest.cs @@ -29,12 +29,12 @@ public partial interface ISequenceRequestResponseTest : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -46,7 +46,7 @@ public partial interface ISequenceRequestResponseTest : IDisposable /// Pets to add to the store /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -60,7 +60,7 @@ public partial interface ISequenceRequestResponseTest : IDisposable /// Pet style to add to the store /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -74,7 +74,7 @@ public partial interface ISequenceRequestResponseTest : IDisposable /// Pet style to add to the store /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModel.cs deleted file mode 100644 index cf2f11b1b6..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModel.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.MirrorSequences.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class ErrorModel - { - /// - /// Initializes a new instance of the ErrorModel class. - /// - public ErrorModel() { } - - /// - /// Initializes a new instance of the ErrorModel class. - /// - public ErrorModel(int code, string message) - { - Code = code; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "code")] - public int Code { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (Message == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Message"); - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModelException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModelException.cs deleted file mode 100644 index 4d3757c688..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModelException.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.MirrorSequences.Models -{ - using Microsoft.Rest; - using System; - using System.Net.Http; - using System.Runtime.Serialization; -#if !PORTABLE && !DNXCORE50 - using System.Security.Permissions; -#endif - - /// - /// Exception thrown for an invalid response with ErrorModel information. - /// -#if !PORTABLE && !DNXCORE50 - [Serializable] -#endif - public class ErrorModelException : RestException - { - /// - /// Gets information about the associated HTTP request. - /// - public HttpRequestMessageWrapper Request { get; set; } - - /// - /// Gets information about the associated HTTP response. - /// - public HttpResponseMessageWrapper Response { get; set; } - - /// - /// Gets or sets the body object. - /// - public ErrorModel Body { get; set; } - - /// - /// Initializes a new instance of the ErrorModelException class. - /// - public ErrorModelException() - { - } - - /// - /// Initializes a new instance of the ErrorModelException class. - /// - /// The exception message. - public ErrorModelException(string message) - : this(message, null) - { - } - - /// - /// Initializes a new instance of the ErrorModelException class. - /// - /// The exception message. - /// Inner exception. - public ErrorModelException(string message, Exception innerException) - : base(message, innerException) - { - } - -#if !PORTABLE && !DNXCORE50 - /// - /// Initializes a new instance of the ErrorModelException class. - /// - /// Serialization info. - /// Streaming context. - protected ErrorModelException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - /// - /// Serializes content of the exception. - /// - /// Serialization info. - /// Streaming context. - [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - if (info == null) - { - throw new ArgumentNullException("info"); - } - - info.AddValue("Request", Request); - info.AddValue("Response", Response); - info.AddValue("Body", Body); - } -#endif - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/Pet.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/Pet.cs deleted file mode 100644 index 57c799ff0d..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/Pet.cs +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.MirrorSequences.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Pet - { - /// - /// Initializes a new instance of the Pet class. - /// - public Pet() { } - - /// - /// Initializes a new instance of the Pet class. - /// - public Pet(long id, string name, IList styles = default(IList), string tag = default(string)) - { - Id = id; - Name = name; - Styles = styles; - Tag = tag; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public long Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// - [JsonProperty(PropertyName = "styles")] - public IList Styles { get; set; } - - /// - /// - [JsonProperty(PropertyName = "tag")] - public string Tag { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (this.Styles != null) - { - foreach (var element in this.Styles) - { - if (element != null) - { - element.Validate(); - } - } - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/PetStyle.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/PetStyle.cs deleted file mode 100644 index 141e7cfcb8..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/PetStyle.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.MirrorSequences.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class PetStyle - { - /// - /// Initializes a new instance of the PetStyle class. - /// - public PetStyle() { } - - /// - /// Initializes a new instance of the PetStyle class. - /// - public PetStyle(string name) - { - Name = name; - } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/SequenceRequestResponseTest.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/SequenceRequestResponseTest.cs index 8548cb8d72..932ae3d30c 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/SequenceRequestResponseTest.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/SequenceRequestResponseTest.cs @@ -36,20 +36,20 @@ public partial class SequenceRequestResponseTest : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Initializes a new instance of the SequenceRequestResponseTest class. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SequenceRequestResponseTest(params DelegatingHandler[] handlers) : base(handlers) { @@ -60,10 +60,10 @@ public SequenceRequestResponseTest(params DelegatingHandler[] handlers) : base(h /// Initializes a new instance of the SequenceRequestResponseTest class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SequenceRequestResponseTest(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -77,7 +77,7 @@ public SequenceRequestResponseTest(HttpClientHandler rootHandler, params Delegat /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SequenceRequestResponseTest(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -95,10 +95,10 @@ public SequenceRequestResponseTest(Uri baseUri, params DelegatingHandler[] handl /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SequenceRequestResponseTest(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -153,7 +153,7 @@ private void Initialize() /// Pets to add to the store /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -296,7 +296,7 @@ private void Initialize() /// Pet style to add to the store /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -429,7 +429,7 @@ private void Initialize() /// Pet style to add to the store /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/ISwaggerPetstoreV2.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/ISwaggerPetstoreV2.cs index 3eba2b46d8..b8775ad115 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/ISwaggerPetstoreV2.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/ISwaggerPetstoreV2.cs @@ -32,12 +32,12 @@ public partial interface ISwaggerPetstoreV2 : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -55,7 +55,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// Pet object that needs to be added to the store /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -69,7 +69,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// Pet object that needs to be added to the store /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -84,7 +84,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// Status values that need to be considered for filter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -100,7 +100,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// Tags to filter by /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -115,7 +115,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// Id of pet to return /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -138,7 +138,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// Updated status of the pet /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -154,7 +154,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -166,7 +166,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// /// Returns a map of status codes to quantities /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -180,7 +180,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// order placed for purchasing the pet /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -196,7 +196,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// Id of pet that needs to be fetched /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -212,7 +212,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// Id of the order that needs to be deleted /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -227,7 +227,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// Created user object /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -241,7 +241,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// List of user object /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -255,7 +255,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// List of user object /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -272,7 +272,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// The password for login in clear text /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -283,7 +283,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// Logs out current logged in user session /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -297,7 +297,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// The name that needs to be fetched. Use user1 for testing. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -315,7 +315,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// Updated user object /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -330,7 +330,7 @@ public partial interface ISwaggerPetstoreV2 : IDisposable /// The name that needs to be deleted /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/ApiResponse.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/ApiResponse.cs deleted file mode 100644 index e4b8fb86ef..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/ApiResponse.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.PetstoreV2.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class ApiResponse - { - /// - /// Initializes a new instance of the ApiResponse class. - /// - public ApiResponse() { } - - /// - /// Initializes a new instance of the ApiResponse class. - /// - public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) - { - Code = code; - Type = type; - Message = message; - } - - /// - /// - [JsonProperty(PropertyName = "code")] - public int? Code { get; set; } - - /// - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; set; } - - /// - /// - [JsonProperty(PropertyName = "message")] - public string Message { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Category.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Category.cs deleted file mode 100644 index 59b8eb6fec..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Category.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.PetstoreV2.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Category - { - /// - /// Initializes a new instance of the Category class. - /// - public Category() { } - - /// - /// Initializes a new instance of the Category class. - /// - public Category(long? id = default(long?), string name = default(string)) - { - Id = id; - Name = name; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { 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 deleted file mode 100644 index 1402f6a440..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/LoginUserHeaders.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.PetstoreV2.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - /// - /// Defines headers for loginUser operation. - /// - public partial class LoginUserHeaders - { - /// - /// Initializes a new instance of the LoginUserHeaders class. - /// - public LoginUserHeaders() { } - - /// - /// Initializes a new instance of the LoginUserHeaders class. - /// - public LoginUserHeaders(int? xRateLimit = default(int?), DateTime? xExpiresAfter = default(DateTime?)) - { - XRateLimit = xRateLimit; - XExpiresAfter = xExpiresAfter; - } - - /// - /// calls per hour allowed by the user - /// - [JsonProperty(PropertyName = "X-Rate-Limit")] - public int? XRateLimit { get; set; } - - /// - /// 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 deleted file mode 100644 index c4823360b9..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Order.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.PetstoreV2.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Order - { - /// - /// Initializes a new instance of the Order class. - /// - public Order() { } - - /// - /// Initializes a new instance of the Order class. - /// - public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), string status = default(string), bool? complete = default(bool?)) - { - Id = id; - PetId = petId; - Quantity = quantity; - ShipDate = shipDate; - Status = status; - Complete = complete; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "petId")] - public long? PetId { get; set; } - - /// - /// - [JsonProperty(PropertyName = "quantity")] - public int? Quantity { get; set; } - - /// - /// - [JsonProperty(PropertyName = "shipDate")] - public DateTime? ShipDate { get; set; } - - /// - /// Order Status. Possible values include: 'placed', 'approved', - /// 'delivered' - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "complete")] - public bool? Complete { 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 deleted file mode 100644 index 5cf3bf8267..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Pet.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.PetstoreV2.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Pet - { - /// - /// Initializes a new instance of the Pet class. - /// - public Pet() { } - - /// - /// Initializes a new instance of the Pet class. - /// - public Pet(string name, IList photoUrls, long? id = default(long?), Category category = default(Category), IList tags = default(IList), byte[] sByteProperty = default(byte[]), DateTime? birthday = default(DateTime?), IDictionary dictionary = default(IDictionary), string status = default(string)) - { - Id = id; - Category = category; - Name = name; - PhotoUrls = photoUrls; - Tags = tags; - SByteProperty = sByteProperty; - Birthday = birthday; - Dictionary = dictionary; - Status = status; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "category")] - public Category Category { get; set; } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - /// - /// - [JsonProperty(PropertyName = "photoUrls")] - public IList PhotoUrls { get; set; } - - /// - /// - [JsonProperty(PropertyName = "tags")] - public IList Tags { get; set; } - - /// - /// - [JsonProperty(PropertyName = "sByte")] - public byte[] SByteProperty { get; set; } - - /// - /// - [JsonProperty(PropertyName = "birthday")] - public DateTime? Birthday { get; set; } - - /// - /// - [JsonProperty(PropertyName = "dictionary")] - public IDictionary Dictionary { get; set; } - - /// - /// pet status in the store. Possible values include: 'available', - /// 'pending', 'sold' - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// Validate the object. Throws ValidationException if validation fails. - /// - public virtual void Validate() - { - if (Name == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "Name"); - } - if (PhotoUrls == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "PhotoUrls"); - } - } - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Tag.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Tag.cs deleted file mode 100644 index a623b6c290..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Tag.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.PetstoreV2.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class Tag - { - /// - /// Initializes a new instance of the Tag class. - /// - public Tag() { } - - /// - /// Initializes a new instance of the Tag class. - /// - public Tag(long? id = default(long?), string name = default(string)) - { - Id = id; - Name = name; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "name")] - public string Name { 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 deleted file mode 100644 index 9e770d05cc..0000000000 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/User.cs +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. - -namespace Fixtures.PetstoreV2.Models -{ - using System; - using System.Linq; - using System.Collections.Generic; - using Newtonsoft.Json; - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - - public partial class User - { - /// - /// Initializes a new instance of the User class. - /// - public User() { } - - /// - /// Initializes a new instance of the User class. - /// - public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) - { - Id = id; - Username = username; - FirstName = firstName; - LastName = lastName; - Email = email; - Password = password; - Phone = phone; - UserStatus = userStatus; - } - - /// - /// - [JsonProperty(PropertyName = "id")] - public long? Id { get; set; } - - /// - /// - [JsonProperty(PropertyName = "username")] - public string Username { get; set; } - - /// - /// - [JsonProperty(PropertyName = "firstName")] - public string FirstName { get; set; } - - /// - /// - [JsonProperty(PropertyName = "lastName")] - public string LastName { get; set; } - - /// - /// - [JsonProperty(PropertyName = "email")] - public string Email { get; set; } - - /// - /// - [JsonProperty(PropertyName = "password")] - public string Password { get; set; } - - /// - /// - [JsonProperty(PropertyName = "phone")] - public string Phone { get; set; } - - /// - /// User Status - /// - [JsonProperty(PropertyName = "userStatus")] - public int? UserStatus { get; set; } - - } -} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/SwaggerPetstoreV2.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/SwaggerPetstoreV2.cs index 9245c2c40a..0940d4fa77 100644 --- a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/SwaggerPetstoreV2.cs +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/SwaggerPetstoreV2.cs @@ -39,14 +39,14 @@ public partial class SwaggerPetstoreV2 : ServiceClient, ISwag public Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Subscription credentials which uniquely identify client subscription. @@ -57,7 +57,7 @@ public partial class SwaggerPetstoreV2 : ServiceClient, ISwag /// Initializes a new instance of the SwaggerPetstoreV2 class. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected SwaggerPetstoreV2(params DelegatingHandler[] handlers) : base(handlers) { @@ -68,10 +68,10 @@ protected SwaggerPetstoreV2(params DelegatingHandler[] handlers) : base(handlers /// Initializes a new instance of the SwaggerPetstoreV2 class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected SwaggerPetstoreV2(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -85,7 +85,7 @@ protected SwaggerPetstoreV2(HttpClientHandler rootHandler, params DelegatingHand /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected SwaggerPetstoreV2(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -103,10 +103,10 @@ protected SwaggerPetstoreV2(Uri baseUri, params DelegatingHandler[] handlers) : /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected SwaggerPetstoreV2(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -124,7 +124,7 @@ protected SwaggerPetstoreV2(Uri baseUri, HttpClientHandler rootHandler, params D /// Required. Subscription credentials which uniquely identify client subscription. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerPetstoreV2(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -146,10 +146,10 @@ public SwaggerPetstoreV2(ServiceClientCredentials credentials, params Delegating /// Required. Subscription credentials which uniquely identify client subscription. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerPetstoreV2(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -174,7 +174,7 @@ public SwaggerPetstoreV2(ServiceClientCredentials credentials, HttpClientHandler /// Required. Subscription credentials which uniquely identify client subscription. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerPetstoreV2(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -204,10 +204,10 @@ public SwaggerPetstoreV2(Uri baseUri, ServiceClientCredentials credentials, para /// Required. Subscription credentials which uniquely identify client subscription. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerPetstoreV2(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -271,7 +271,7 @@ private void Initialize() /// Pet object that needs to be added to the store /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -402,7 +402,7 @@ private void Initialize() /// Pet object that needs to be added to the store /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -516,7 +516,7 @@ private void Initialize() /// Status values that need to be considered for filter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -648,7 +648,7 @@ private void Initialize() /// Tags to filter by /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -779,7 +779,7 @@ private void Initialize() /// Id of pet to return /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -906,7 +906,7 @@ private void Initialize() /// Updated status of the pet /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1041,7 +1041,7 @@ private void Initialize() /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1148,7 +1148,7 @@ private void Initialize() /// /// Returns a map of status codes to quantities /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1264,7 +1264,7 @@ private void Initialize() /// order placed for purchasing the pet /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1393,7 +1393,7 @@ private void Initialize() /// Id of pet that needs to be fetched /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1528,7 +1528,7 @@ private void Initialize() /// Id of the order that needs to be deleted /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1640,7 +1640,7 @@ private void Initialize() /// Created user object /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1749,7 +1749,7 @@ private void Initialize() /// List of user object /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1858,7 +1858,7 @@ private void Initialize() /// List of user object /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1970,7 +1970,7 @@ private void Initialize() /// The password for login in clear text /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2119,7 +2119,7 @@ private void Initialize() /// Logs out current logged in user session /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2217,7 +2217,7 @@ private void Initialize() /// The name that needs to be fetched. Use user1 for testing. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2343,7 +2343,7 @@ private void Initialize() /// Updated user object /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2459,7 +2459,7 @@ private void Initialize() /// The name that needs to be deleted /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/Samples/azure-storage/Azure.CSharp/IStorageAccountsOperations.cs b/Samples/azure-storage/Azure.CSharp/IStorageAccountsOperations.cs index 9befee3c73..f5cbebb63f 100644 --- a/Samples/azure-storage/Azure.CSharp/IStorageAccountsOperations.cs +++ b/Samples/azure-storage/Azure.CSharp/IStorageAccountsOperations.cs @@ -24,7 +24,7 @@ public partial interface IStorageAccountsOperations /// in length and use numbers and lower-case letters only. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -49,7 +49,7 @@ public partial interface IStorageAccountsOperations /// The parameters to provide for the created account. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -74,7 +74,7 @@ public partial interface IStorageAccountsOperations /// The parameters to provide for the created account. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -92,7 +92,7 @@ public partial interface IStorageAccountsOperations /// in length and use numbers and lower-case letters only. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -113,7 +113,7 @@ public partial interface IStorageAccountsOperations /// in length and use numbers and lower-case letters only. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -148,7 +148,7 @@ public partial interface IStorageAccountsOperations /// property can be changed at a time using this API. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -164,7 +164,7 @@ public partial interface IStorageAccountsOperations /// The name of the storage account. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -176,7 +176,7 @@ public partial interface IStorageAccountsOperations /// operation for this. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -191,7 +191,7 @@ public partial interface IStorageAccountsOperations /// The name of the resource group within the user's subscription. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -213,7 +213,7 @@ public partial interface IStorageAccountsOperations /// key2 for the default keys /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/Samples/azure-storage/Azure.CSharp/IStorageManagementClient.cs b/Samples/azure-storage/Azure.CSharp/IStorageManagementClient.cs index 52f85de2f5..02bf1fe1ee 100644 --- a/Samples/azure-storage/Azure.CSharp/IStorageManagementClient.cs +++ b/Samples/azure-storage/Azure.CSharp/IStorageManagementClient.cs @@ -22,12 +22,12 @@ public partial interface IStorageManagementClient : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } diff --git a/Samples/azure-storage/Azure.CSharp/IUsageOperations.cs b/Samples/azure-storage/Azure.CSharp/IUsageOperations.cs index 42737e1107..511ce2d940 100644 --- a/Samples/azure-storage/Azure.CSharp/IUsageOperations.cs +++ b/Samples/azure-storage/Azure.CSharp/IUsageOperations.cs @@ -20,7 +20,7 @@ public partial interface IUsageOperations /// the subscription. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/Samples/azure-storage/Azure.CSharp/StorageAccountsOperations.cs b/Samples/azure-storage/Azure.CSharp/StorageAccountsOperations.cs index 1b1c5f06a3..7f621b22ff 100644 --- a/Samples/azure-storage/Azure.CSharp/StorageAccountsOperations.cs +++ b/Samples/azure-storage/Azure.CSharp/StorageAccountsOperations.cs @@ -51,7 +51,7 @@ internal StorageAccountsOperations(StorageManagementClient client) /// use numbers and lower-case letters only. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -279,7 +279,7 @@ internal StorageAccountsOperations(StorageManagementClient client) /// The parameters to provide for the created account. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -489,7 +489,7 @@ internal StorageAccountsOperations(StorageManagementClient client) /// use numbers and lower-case letters only. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -655,7 +655,7 @@ internal StorageAccountsOperations(StorageManagementClient client) /// use numbers and lower-case letters only. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -865,7 +865,7 @@ internal StorageAccountsOperations(StorageManagementClient client) /// be changed at a time using this API. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1069,7 +1069,7 @@ internal StorageAccountsOperations(StorageManagementClient client) /// The name of the storage account. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1257,7 +1257,7 @@ internal StorageAccountsOperations(StorageManagementClient client) /// storage keys are not returned; use the ListKeys operation for this. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1426,7 +1426,7 @@ internal StorageAccountsOperations(StorageManagementClient client) /// The name of the resource group within the user's subscription. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1608,7 +1608,7 @@ internal StorageAccountsOperations(StorageManagementClient client) /// the default keys /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/Samples/azure-storage/Azure.CSharp/StorageManagementClient.cs b/Samples/azure-storage/Azure.CSharp/StorageManagementClient.cs index 76bbbd61b2..acd02a05ca 100644 --- a/Samples/azure-storage/Azure.CSharp/StorageManagementClient.cs +++ b/Samples/azure-storage/Azure.CSharp/StorageManagementClient.cs @@ -29,14 +29,14 @@ public partial class StorageManagementClient : ServiceClient - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Gets Azure subscription credentials. @@ -86,7 +86,7 @@ public partial class StorageManagementClient : ServiceClient /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected StorageManagementClient(params DelegatingHandler[] handlers) : base(handlers) { @@ -97,10 +97,10 @@ protected StorageManagementClient(params DelegatingHandler[] handlers) : base(ha /// Initializes a new instance of the StorageManagementClient class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected StorageManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -114,7 +114,7 @@ protected StorageManagementClient(HttpClientHandler rootHandler, params Delegati /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected StorageManagementClient(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -132,10 +132,10 @@ protected StorageManagementClient(Uri baseUri, params DelegatingHandler[] handle /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// protected StorageManagementClient(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -153,7 +153,7 @@ protected StorageManagementClient(Uri baseUri, HttpClientHandler rootHandler, pa /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public StorageManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -175,10 +175,10 @@ public StorageManagementClient(ServiceClientCredentials credentials, params Dele /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public StorageManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -203,7 +203,7 @@ public StorageManagementClient(ServiceClientCredentials credentials, HttpClientH /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public StorageManagementClient(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { @@ -233,10 +233,10 @@ public StorageManagementClient(Uri baseUri, ServiceClientCredentials credentials /// Required. Gets Azure subscription credentials. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public StorageManagementClient(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { diff --git a/Samples/azure-storage/Azure.CSharp/UsageOperations.cs b/Samples/azure-storage/Azure.CSharp/UsageOperations.cs index 723b8f0921..d63612dedd 100644 --- a/Samples/azure-storage/Azure.CSharp/UsageOperations.cs +++ b/Samples/azure-storage/Azure.CSharp/UsageOperations.cs @@ -47,7 +47,7 @@ internal UsageOperations(StorageManagementClient client) /// subscription. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. diff --git a/Samples/petstore/CSharp/ISwaggerPetstore.cs b/Samples/petstore/CSharp/ISwaggerPetstore.cs index 6b7ddcff84..604c7c4a2a 100644 --- a/Samples/petstore/CSharp/ISwaggerPetstore.cs +++ b/Samples/petstore/CSharp/ISwaggerPetstore.cs @@ -25,12 +25,12 @@ public partial interface ISwaggerPetstore : IDisposable Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// JsonSerializerSettings SerializationSettings { get; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// JsonSerializerSettings DeserializationSettings { get; } @@ -43,7 +43,7 @@ public partial interface ISwaggerPetstore : IDisposable /// Pet object in the form of byte array /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -57,7 +57,7 @@ public partial interface ISwaggerPetstore : IDisposable /// Pet object that needs to be added to the store /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -71,7 +71,7 @@ public partial interface ISwaggerPetstore : IDisposable /// Pet object that needs to be added to the store /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -86,7 +86,7 @@ public partial interface ISwaggerPetstore : IDisposable /// Status values that need to be considered for filter /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -102,7 +102,7 @@ public partial interface ISwaggerPetstore : IDisposable /// Tags to filter by /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -118,7 +118,7 @@ public partial interface ISwaggerPetstore : IDisposable /// ID of pet that needs to be fetched /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -134,7 +134,7 @@ public partial interface ISwaggerPetstore : IDisposable /// ID of pet that needs to be fetched /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -154,7 +154,7 @@ public partial interface ISwaggerPetstore : IDisposable /// Updated status of the pet /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -170,7 +170,7 @@ public partial interface ISwaggerPetstore : IDisposable /// /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -190,7 +190,7 @@ public partial interface ISwaggerPetstore : IDisposable /// file to upload /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -202,7 +202,7 @@ public partial interface ISwaggerPetstore : IDisposable /// /// Returns a map of status codes to quantities /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -216,7 +216,7 @@ public partial interface ISwaggerPetstore : IDisposable /// order placed for purchasing the pet /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -232,7 +232,7 @@ public partial interface ISwaggerPetstore : IDisposable /// ID of pet that needs to be fetched /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -248,7 +248,7 @@ public partial interface ISwaggerPetstore : IDisposable /// ID of the order that needs to be deleted /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -263,7 +263,7 @@ public partial interface ISwaggerPetstore : IDisposable /// Created user object /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -277,7 +277,7 @@ public partial interface ISwaggerPetstore : IDisposable /// List of user object /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -291,7 +291,7 @@ public partial interface ISwaggerPetstore : IDisposable /// List of user object /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -308,7 +308,7 @@ public partial interface ISwaggerPetstore : IDisposable /// The password for login in clear text /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -319,7 +319,7 @@ public partial interface ISwaggerPetstore : IDisposable /// Logs out current logged in user session /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -333,7 +333,7 @@ public partial interface ISwaggerPetstore : IDisposable /// The name that needs to be fetched. Use user1 for testing. /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -351,7 +351,7 @@ public partial interface ISwaggerPetstore : IDisposable /// Updated user object /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. @@ -366,7 +366,7 @@ public partial interface ISwaggerPetstore : IDisposable /// The name that needs to be deleted /// /// - /// The headers that will be added to request. + /// The headers that will be added to the request. /// /// /// The cancellation token. diff --git a/Samples/petstore/CSharp/SwaggerPetstore.cs b/Samples/petstore/CSharp/SwaggerPetstore.cs index 7d157b5563..b12f643214 100644 --- a/Samples/petstore/CSharp/SwaggerPetstore.cs +++ b/Samples/petstore/CSharp/SwaggerPetstore.cs @@ -32,20 +32,20 @@ public partial class SwaggerPetstore : ServiceClient, ISwaggerP public Uri BaseUri { get; set; } /// - /// Gets or sets json serialization settings. + /// Gets the JSON serialization settings. /// public JsonSerializerSettings SerializationSettings { get; private set; } /// - /// Gets or sets json deserialization settings. + /// Gets the JSON deserialization settings. /// - public JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Initializes a new instance of the SwaggerPetstore class. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerPetstore(params DelegatingHandler[] handlers) : base(handlers) { @@ -56,10 +56,10 @@ public SwaggerPetstore(params DelegatingHandler[] handlers) : base(handlers) /// Initializes a new instance of the SwaggerPetstore class. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerPetstore(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { @@ -73,7 +73,7 @@ public SwaggerPetstore(HttpClientHandler rootHandler, params DelegatingHandler[] /// Optional. The base URI of the service. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerPetstore(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { @@ -91,10 +91,10 @@ public SwaggerPetstore(Uri baseUri, params DelegatingHandler[] handlers) : this( /// Optional. The base URI of the service. /// /// - /// Optional. The http client handler used to handle http transport. + /// Optional. The HTTP client handler used to handle HTTP transport. /// /// - /// Optional. The delegating handlers to add to the http client pipeline. + /// Optional. The delegating handlers to add to the HTTP pipeline. /// public SwaggerPetstore(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { @@ -150,7 +150,7 @@ private void Initialize() /// Pet object in the form of byte array /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -249,7 +249,7 @@ private void Initialize() /// Pet object that needs to be added to the store /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -352,7 +352,7 @@ private void Initialize() /// Pet object that needs to be added to the store /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -456,7 +456,7 @@ private void Initialize() /// Status values that need to be considered for filter /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -578,7 +578,7 @@ private void Initialize() /// Tags to filter by /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -700,7 +700,7 @@ private void Initialize() /// ID of pet that needs to be fetched /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -814,7 +814,7 @@ private void Initialize() /// ID of pet that needs to be fetched /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -932,7 +932,7 @@ private void Initialize() /// Updated status of the pet /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1046,7 +1046,7 @@ private void Initialize() /// /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1155,7 +1155,7 @@ private void Initialize() /// file to upload /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1270,7 +1270,7 @@ private void Initialize() /// /// Returns a map of status codes to quantities /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1380,7 +1380,7 @@ private void Initialize() /// order placed for purchasing the pet /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1499,7 +1499,7 @@ private void Initialize() /// ID of pet that needs to be fetched /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1617,7 +1617,7 @@ private void Initialize() /// ID of the order that needs to be deleted /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1716,7 +1716,7 @@ private void Initialize() /// Created user object /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1815,7 +1815,7 @@ private void Initialize() /// List of user object /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -1914,7 +1914,7 @@ private void Initialize() /// List of user object /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2016,7 +2016,7 @@ private void Initialize() /// The password for login in clear text /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2138,7 +2138,7 @@ private void Initialize() /// Logs out current logged in user session /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2230,7 +2230,7 @@ private void Initialize() /// The name that needs to be fetched. Use user1 for testing. /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2350,7 +2350,7 @@ private void Initialize() /// Updated user object /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. @@ -2456,7 +2456,7 @@ private void Initialize() /// The name that needs to be deleted /// /// - /// Headers that will be added to request. + /// Headers that will be added to the request. /// /// /// The cancellation token. From 12881021e30416f8ec9eebc777bd5eb8c38a50a9 Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 2 May 2016 13:09:32 -0700 Subject: [PATCH 03/11] Edited to check null or empty property descriptions --- .../CSharp/CSharp/ClientModelExtensions.cs | 30 +++++++++++++++++++ .../CSharp/Templates/ModelTemplate.cshtml | 13 ++------ 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs index ae4d9f1115..71869be9cb 100644 --- a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs +++ b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs @@ -131,6 +131,36 @@ 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 + /// only acryonyms and article words. + /// + /// The given property documentation to format + /// + public static string GetFormattedPropertyDocumentation(PropertyTemplateModel property) + { + if (string.IsNullOrEmpty(property.Documentation)) + { + return property.Documentation.EscapeXmlComment(); + } + + string documentation = property.IsReadOnly ? "Gets " : "Gets or sets "; + + string firstWord = property.Documentation.Split(' ').First(); + if (firstWord.Length <= 1) + { + documentation += char.ToLower(property.Documentation[0]) + property.Documentation.Substring(1); + } + else + { + documentation += firstWord.ToUpper() == firstWord + ? property.Documentation + : char.ToLower(property.Documentation[0]) + 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/ModelTemplate.cshtml b/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml index 2f026c356e..8eb5cc65e4 100644 --- a/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml +++ b/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml @@ -2,6 +2,7 @@ @using Microsoft.Rest.Generator.ClientModel @using Microsoft.Rest.Generator.Utilities @using Microsoft.Rest.Generator +@using Microsoft.Rest.Generator.CSharp @inherits Microsoft.Rest.Generator.Template @Header("// ") @EmptyLine @@ -108,18 +109,8 @@ namespace @(Settings.Namespace).Models @EmptyLine @foreach (var property in Model.PropertyTemplateModels.Where(p => !p.IsConstant)) { - string firstWord = property.Documentation.Split(' ').First(); - string documentation = string.Empty; - if (firstWord.Length <= 1) - { - documentation = char.ToLower(property.Documentation[0]) + property.Documentation.Substring(1); - } - else - { - documentation = firstWord.ToUpper() == firstWord ? property.Documentation : char.ToLower(property.Documentation[0]) + property.Documentation.Substring(1); - } @:/// - @:@WrapComment("/// ", property.IsReadOnly ? "Gets " + documentation.EscapeXmlComment() : "Gets or sets " + documentation.EscapeXmlComment()) + @:@WrapComment("/// ", ClientModelExtensions.GetFormattedPropertyDocumentation(property)) @:/// if (property.Type.IsPrimaryType(KnownPrimaryType.Date)) { From dc30d8abe3cd96a6dc03b90be10b45e2b5ef5b53 Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 2 May 2016 13:41:34 -0700 Subject: [PATCH 04/11] Added regenerated tests with models --- .../AzureBodyDuration/Models/Error.cs | 46 ++++ .../Models/ErrorException.cs | 99 +++++++++ .../Models/ArrayWrapper.cs | 40 ++++ .../AzureCompositeModelClient/Models/Basic.cs | 54 +++++ .../Models/BooleanWrapper.cs | 46 ++++ .../Models/ByteWrapper.cs | 40 ++++ .../Models/CMYKColors.cs | 25 +++ .../AzureCompositeModelClient/Models/Cat.cs | 47 +++++ .../Models/Cookiecuttershark.cs | 43 ++++ .../Models/DateWrapper.cs | 48 +++++ .../Models/DatetimeWrapper.cs | 46 ++++ .../Models/Datetimerfc1123Wrapper.cs | 48 +++++ .../Models/DictionaryWrapper.cs | 40 ++++ .../AzureCompositeModelClient/Models/Dog.cs | 41 ++++ .../Models/DoubleWrapper.cs | 46 ++++ .../Models/DurationWrapper.cs | 40 ++++ .../AzureCompositeModelClient/Models/Error.cs | 46 ++++ .../Models/ErrorException.cs | 99 +++++++++ .../AzureCompositeModelClient/Models/Fish.cs | 68 ++++++ .../Models/FloatWrapper.cs | 46 ++++ .../Models/Goblinshark.cs | 49 +++++ .../Models/IntWrapper.cs | 46 ++++ .../Models/LongWrapper.cs | 46 ++++ .../AzureCompositeModelClient/Models/Pet.cs | 46 ++++ .../Models/ReadonlyObj.cs | 46 ++++ .../Models/Salmon.cs | 55 +++++ .../Models/Sawshark.cs | 49 +++++ .../AzureCompositeModelClient/Models/Shark.cs | 55 +++++ .../Models/Siamese.cs | 41 ++++ .../Models/StringWrapper.cs | 52 +++++ .../AzureParameterGrouping/Models/Error.cs | 46 ++++ .../Models/ErrorException.cs | 99 +++++++++ .../Models/FirstParameterGroup.cs | 50 +++++ ...ingPostMultiParamGroupsSecondParamGroup.cs | 52 +++++ ...ParameterGroupingPostOptionalParameters.cs | 52 +++++ ...ParameterGroupingPostRequiredParameters.cs | 75 +++++++ .../AzureReport/Models/Error.cs | 46 ++++ .../AzureReport/Models/ErrorException.cs | 99 +++++++++ .../AzureResource/Models/Error.cs | 46 ++++ .../AzureResource/Models/ErrorException.cs | 99 +++++++++ .../AzureResource/Models/FlattenedProduct.cs | 54 +++++ .../AzureResource/Models/Resource.cs | 68 ++++++ .../Models/ResourceCollection.cs | 52 +++++ .../AzureSpecials/Models/Error.cs | 52 +++++ .../AzureSpecials/Models/ErrorException.cs | 99 +++++++++ .../HeaderCustomNamedRequestIdHeaders.cs | 46 ++++ .../AzureSpecials/Models/OdataFilter.cs | 46 ++++ .../CustomBaseUri/Models/Error.cs | 46 ++++ .../CustomBaseUri/Models/ErrorException.cs | 99 +++++++++ .../LRORetrysDelete202Retry200Headers.cs | 55 +++++ ...eleteAsyncRelativeRetrySucceededHeaders.cs | 63 ++++++ ...visioning202Accepted200SucceededHeaders.cs | 56 +++++ .../Models/LRORetrysPost202Retry200Headers.cs | 55 +++++ ...sPostAsyncRelativeRetrySucceededHeaders.cs | 63 ++++++ ...ysPutAsyncRelativeRetrySucceededHeaders.cs | 63 ++++++ .../LROSADsDelete202NonRetry400Headers.cs | 55 +++++ ...OSADsDelete202RetryInvalidHeaderHeaders.cs | 55 +++++ ...OSADsDeleteAsyncRelativeRetry400Headers.cs | 63 ++++++ ...eAsyncRelativeRetryInvalidHeaderHeaders.cs | 63 ++++++ ...cRelativeRetryInvalidJsonPollingHeaders.cs | 64 ++++++ ...DeleteAsyncRelativeRetryNoStatusHeaders.cs | 63 ++++++ .../Models/LROSADsDeleteNonRetry400Headers.cs | 55 +++++ .../Models/LROSADsPost202NoLocationHeaders.cs | 54 +++++ .../LROSADsPost202NonRetry400Headers.cs | 55 +++++ ...LROSADsPost202RetryInvalidHeaderHeaders.cs | 55 +++++ ...LROSADsPostAsyncRelativeRetry400Headers.cs | 63 ++++++ ...tAsyncRelativeRetryInvalidHeaderHeaders.cs | 61 ++++++ ...cRelativeRetryInvalidJsonPollingHeaders.cs | 63 ++++++ ...sPostAsyncRelativeRetryNoPayloadHeaders.cs | 63 ++++++ .../Models/LROSADsPostNonRetry400Headers.cs | 55 +++++ .../LROSADsPutAsyncRelativeRetry400Headers.cs | 63 ++++++ ...tAsyncRelativeRetryInvalidHeaderHeaders.cs | 63 ++++++ ...cRelativeRetryInvalidJsonPollingHeaders.cs | 63 ++++++ ...ADsPutAsyncRelativeRetryNoStatusHeaders.cs | 63 ++++++ ...syncRelativeRetryNoStatusPayloadHeaders.cs | 63 ++++++ .../LROsCustomHeaderPost202Retry200Headers.cs | 55 +++++ ...tomHeaderPostAsyncRetrySucceededHeaders.cs | 63 ++++++ ...stomHeaderPutAsyncRetrySucceededHeaders.cs | 63 ++++++ .../Models/LROsDelete202NoRetry204Headers.cs | 55 +++++ .../Models/LROsDelete202Retry200Headers.cs | 55 +++++ .../LROsDeleteAsyncNoHeaderInRetryHeaders.cs | 47 +++++ .../LROsDeleteAsyncNoRetrySucceededHeaders.cs | 63 ++++++ .../LROsDeleteAsyncRetryFailedHeaders.cs | 63 ++++++ .../LROsDeleteAsyncRetrySucceededHeaders.cs | 63 ++++++ .../LROsDeleteAsyncRetrycanceledHeaders.cs | 63 ++++++ .../LROsDeleteNoHeaderInRetryHeaders.cs | 47 +++++ ...visioning202Accepted200SucceededHeaders.cs | 56 +++++ ...Provisioning202DeletingFailed200Headers.cs | 55 +++++ ...ovisioning202Deletingcanceled200Headers.cs | 55 +++++ .../Models/LROsPost202NoRetry204Headers.cs | 55 +++++ .../Lro/Models/LROsPost202Retry200Headers.cs | 53 +++++ .../LROsPostAsyncNoRetrySucceededHeaders.cs | 63 ++++++ .../Models/LROsPostAsyncRetryFailedHeaders.cs | 63 ++++++ .../LROsPostAsyncRetrySucceededHeaders.cs | 63 ++++++ .../LROsPostAsyncRetrycanceledHeaders.cs | 63 ++++++ .../LROsPutAsyncNoHeaderInRetryHeaders.cs | 45 ++++ .../LROsPutAsyncNoRetrySucceededHeaders.cs | 55 +++++ .../LROsPutAsyncNoRetrycanceledHeaders.cs | 55 +++++ .../Models/LROsPutAsyncRetryFailedHeaders.cs | 63 ++++++ .../LROsPutAsyncRetrySucceededHeaders.cs | 63 ++++++ .../Models/LROsPutNoHeaderInRetryHeaders.cs | 47 +++++ .../Lro/Models/OperationResult.cs | 49 +++++ .../Lro/Models/OperationResultError.cs | 48 +++++ .../AcceptanceTests/Lro/Models/Product.cs | 51 +++++ .../AcceptanceTests/Lro/Models/Resource.cs | 68 ++++++ .../AcceptanceTests/Lro/Models/Sku.cs | 46 ++++ .../AcceptanceTests/Lro/Models/SubProduct.cs | 51 +++++ .../AcceptanceTests/Lro/Models/SubResource.cs | 41 ++++ .../Paging/Models/OperationResult.cs | 43 ++++ .../AcceptanceTests/Paging/Models/Page.cs | 50 +++++ .../Models/PagingGetMultiplePagesOptions.cs | 55 +++++ ...ngGetMultiplePagesWithOffsetNextOptions.cs | 55 +++++ ...PagingGetMultiplePagesWithOffsetOptions.cs | 69 ++++++ .../AcceptanceTests/Paging/Models/Product.cs | 40 ++++ .../Paging/Models/ProductProperties.cs | 46 ++++ .../SubscriptionIdApiVersion/Models/Error.cs | 46 ++++ .../Models/ErrorException.cs | 99 +++++++++ .../AcceptanceTests/BodyArray/Models/Error.cs | 45 ++++ .../BodyArray/Models/ErrorException.cs | 99 +++++++++ .../BodyArray/Models/Product.cs | 45 ++++ .../BodyBoolean/Models/Error.cs | 45 ++++ .../BodyBoolean/Models/ErrorException.cs | 99 +++++++++ .../AcceptanceTests/BodyByte/Models/Error.cs | 45 ++++ .../BodyByte/Models/ErrorException.cs | 99 +++++++++ .../BodyComplex/Models/ArrayWrapper.cs | 39 ++++ .../BodyComplex/Models/Basic.cs | 53 +++++ .../BodyComplex/Models/BooleanWrapper.cs | 45 ++++ .../BodyComplex/Models/ByteWrapper.cs | 39 ++++ .../BodyComplex/Models/CMYKColors.cs | 25 +++ .../AcceptanceTests/BodyComplex/Models/Cat.cs | 46 ++++ .../BodyComplex/Models/Cookiecuttershark.cs | 42 ++++ .../BodyComplex/Models/DateWrapper.cs | 47 +++++ .../BodyComplex/Models/DatetimeWrapper.cs | 45 ++++ .../Models/Datetimerfc1123Wrapper.cs | 47 +++++ .../BodyComplex/Models/DictionaryWrapper.cs | 39 ++++ .../AcceptanceTests/BodyComplex/Models/Dog.cs | 40 ++++ .../BodyComplex/Models/DoubleWrapper.cs | 45 ++++ .../BodyComplex/Models/DurationWrapper.cs | 39 ++++ .../BodyComplex/Models/Error.cs | 45 ++++ .../BodyComplex/Models/ErrorException.cs | 99 +++++++++ .../BodyComplex/Models/Fish.cs | 67 ++++++ .../BodyComplex/Models/FloatWrapper.cs | 45 ++++ .../BodyComplex/Models/Goblinshark.cs | 48 +++++ .../BodyComplex/Models/IntWrapper.cs | 45 ++++ .../BodyComplex/Models/LongWrapper.cs | 45 ++++ .../AcceptanceTests/BodyComplex/Models/Pet.cs | 45 ++++ .../BodyComplex/Models/ReadonlyObj.cs | 45 ++++ .../BodyComplex/Models/Salmon.cs | 54 +++++ .../BodyComplex/Models/Sawshark.cs | 48 +++++ .../BodyComplex/Models/Shark.cs | 54 +++++ .../BodyComplex/Models/Siamese.cs | 40 ++++ .../BodyComplex/Models/StringWrapper.cs | 51 +++++ .../AcceptanceTests/BodyDate/Models/Error.cs | 45 ++++ .../BodyDate/Models/ErrorException.cs | 99 +++++++++ .../BodyDateTime/Models/Error.cs | 45 ++++ .../BodyDateTime/Models/ErrorException.cs | 99 +++++++++ .../BodyDateTimeRfc1123/Models/Error.cs | 45 ++++ .../Models/ErrorException.cs | 99 +++++++++ .../BodyDictionary/Models/Error.cs | 45 ++++ .../BodyDictionary/Models/ErrorException.cs | 99 +++++++++ .../BodyDictionary/Models/Widget.cs | 45 ++++ .../BodyDuration/Models/Error.cs | 45 ++++ .../BodyDuration/Models/ErrorException.cs | 99 +++++++++ .../AcceptanceTests/BodyFile/Models/Error.cs | 45 ++++ .../BodyFile/Models/ErrorException.cs | 99 +++++++++ .../BodyFormData/Models/Error.cs | 45 ++++ .../BodyFormData/Models/ErrorException.cs | 99 +++++++++ .../BodyInteger/Models/Error.cs | 45 ++++ .../BodyInteger/Models/ErrorException.cs | 99 +++++++++ .../BodyNumber/Models/Error.cs | 45 ++++ .../BodyNumber/Models/ErrorException.cs | 99 +++++++++ .../BodyString/Models/Colors.cs | 28 +++ .../BodyString/Models/Error.cs | 45 ++++ .../BodyString/Models/ErrorException.cs | 99 +++++++++ .../CompositeBoolIntClient/Models/Error.cs | 45 ++++ .../Models/ErrorException.cs | 99 +++++++++ .../CustomBaseUri/Models/Error.cs | 45 ++++ .../CustomBaseUri/Models/ErrorException.cs | 99 +++++++++ .../CustomBaseUriMoreOptions/Models/Error.cs | 45 ++++ .../Models/ErrorException.cs | 99 +++++++++ .../AcceptanceTests/Header/Models/Error.cs | 45 ++++ .../Header/Models/ErrorException.cs | 99 +++++++++ .../Header/Models/GreyscaleColors.cs | 28 +++ .../Models/HeaderResponseBoolHeaders.cs | 43 ++++ .../Models/HeaderResponseByteHeaders.cs | 43 ++++ .../Models/HeaderResponseDateHeaders.cs | 45 ++++ .../Models/HeaderResponseDatetimeHeaders.cs | 46 ++++ .../HeaderResponseDatetimeRfc1123Headers.cs | 47 +++++ .../Models/HeaderResponseDoubleHeaders.cs | 45 ++++ .../Models/HeaderResponseDurationHeaders.cs | 45 ++++ .../Models/HeaderResponseEnumHeaders.cs | 43 ++++ .../HeaderResponseExistingKeyHeaders.cs | 45 ++++ .../Models/HeaderResponseFloatHeaders.cs | 43 ++++ .../Models/HeaderResponseIntegerHeaders.cs | 45 ++++ .../Models/HeaderResponseLongHeaders.cs | 43 ++++ .../HeaderResponseProtectedKeyHeaders.cs | 45 ++++ .../Models/HeaderResponseStringHeaders.cs | 46 ++++ .../Expected/AcceptanceTests/Http/Models/A.cs | 39 ++++ .../Expected/AcceptanceTests/Http/Models/B.cs | 40 ++++ .../Expected/AcceptanceTests/Http/Models/C.cs | 39 ++++ .../Expected/AcceptanceTests/Http/Models/D.cs | 39 ++++ .../AcceptanceTests/Http/Models/Error.cs | 45 ++++ .../Http/Models/ErrorException.cs | 99 +++++++++ .../Models/HttpRedirectsDelete307Headers.cs | 45 ++++ .../Http/Models/HttpRedirectsGet300Headers.cs | 43 ++++ .../Http/Models/HttpRedirectsGet301Headers.cs | 43 ++++ .../Http/Models/HttpRedirectsGet302Headers.cs | 43 ++++ .../Http/Models/HttpRedirectsGet307Headers.cs | 43 ++++ .../Models/HttpRedirectsHead300Headers.cs | 45 ++++ .../Models/HttpRedirectsHead301Headers.cs | 45 ++++ .../Models/HttpRedirectsHead302Headers.cs | 45 ++++ .../Models/HttpRedirectsHead307Headers.cs | 45 ++++ .../Models/HttpRedirectsPatch302Headers.cs | 45 ++++ .../Models/HttpRedirectsPatch307Headers.cs | 45 ++++ .../Models/HttpRedirectsPost303Headers.cs | 45 ++++ .../Models/HttpRedirectsPost307Headers.cs | 45 ++++ .../Http/Models/HttpRedirectsPut301Headers.cs | 43 ++++ .../Http/Models/HttpRedirectsPut307Headers.cs | 43 ++++ .../Http/Models/MyException.cs | 99 +++++++++ .../ModelFlattening/Models/BaseProduct.cs | 63 ++++++ .../ModelFlattening/Models/Error.cs | 51 +++++ .../ModelFlattening/Models/ErrorException.cs | 99 +++++++++ .../Models/FlattenParameterGroup.cs | 100 +++++++++ .../Models/FlattenedProduct.cs | 62 ++++++ .../ModelFlattening/Models/GenericUrl.cs | 43 ++++ .../ModelFlattening/Models/Resource.cs | 67 ++++++ .../Models/ResourceCollection.cs | 51 +++++ .../ModelFlattening/Models/SimpleProduct.cs | 83 ++++++++ .../Models/AvailabilitySetUpdateParameters.cs | 51 +++++ .../AcceptanceTests/Report/Models/Error.cs | 45 ++++ .../Report/Models/ErrorException.cs | 99 +++++++++ .../Models/ArrayOptionalWrapper.cs | 39 ++++ .../RequiredOptional/Models/ArrayWrapper.cs | 49 +++++ .../Models/ClassOptionalWrapper.cs | 49 +++++ .../RequiredOptional/Models/ClassWrapper.cs | 53 +++++ .../RequiredOptional/Models/Error.cs | 45 ++++ .../RequiredOptional/Models/ErrorException.cs | 99 +++++++++ .../Models/IntOptionalWrapper.cs | 39 ++++ .../RequiredOptional/Models/IntWrapper.cs | 46 ++++ .../RequiredOptional/Models/Product.cs | 52 +++++ .../Models/StringOptionalWrapper.cs | 39 ++++ .../RequiredOptional/Models/StringWrapper.cs | 49 +++++ .../AcceptanceTests/Url/Models/Error.cs | 45 ++++ .../Url/Models/ErrorException.cs | 99 +++++++++ .../AcceptanceTests/Url/Models/UriColor.cs | 28 +++ .../Validation/Models/ChildProduct.cs | 56 +++++ .../Validation/Models/ConstantProduct.cs | 50 +++++ .../Validation/Models/EnumConst.cs | 24 +++ .../Validation/Models/Error.cs | 51 +++++ .../Validation/Models/ErrorException.cs | 99 +++++++++ .../Validation/Models/Product.cs | 142 +++++++++++++ .../Expected/DateTimeOffset/Models/Error.cs | 51 +++++ .../DateTimeOffset/Models/ErrorException.cs | 99 +++++++++ .../Expected/DateTimeOffset/Models/Product.cs | 58 +++++ .../Mirror.Polymorphic/Models/Error2.cs | 51 +++++ .../Models/Error2Exception.cs | 99 +++++++++ .../Mirror.Primitives/Models/Error.cs | 51 +++++ .../Models/ErrorException.cs | 99 +++++++++ .../Mirror.Primitives/Models/Product.cs | 198 ++++++++++++++++++ .../Mirror.RecursiveTypes/Models/Error.cs | 51 +++++ .../Models/ErrorException.cs | 99 +++++++++ .../Mirror.RecursiveTypes/Models/Product.cs | 55 +++++ .../Mirror.Sequences/Models/ErrorModel.cs | 55 +++++ .../Models/ErrorModelException.cs | 99 +++++++++ .../Expected/Mirror.Sequences/Models/Pet.cs | 77 +++++++ .../Mirror.Sequences/Models/PetStyle.cs | 49 +++++ .../Expected/PetstoreV2/Models/ApiResponse.cs | 51 +++++ .../Expected/PetstoreV2/Models/Category.cs | 45 ++++ .../PetstoreV2/Models/LoginUserHeaders.cs | 50 +++++ .../Expected/PetstoreV2/Models/Order.cs | 71 +++++++ .../Expected/PetstoreV2/Models/Pet.cs | 103 +++++++++ .../Expected/PetstoreV2/Models/Tag.cs | 45 ++++ .../Expected/PetstoreV2/Models/User.cs | 82 ++++++++ .../Lro/operations/lRORetrys.js | 16 +- .../AcceptanceTests/Lro/operations/lROSADs.js | 52 ++--- .../AcceptanceTests/Lro/operations/lROs.js | 74 +++---- .../Lro/operations/lROsCustomHeader.js | 10 +- .../operations/storageAccounts.js | 2 +- .../AzureBodyDuration/setup.py | 2 +- .../AzureParameterGrouping/setup.py | 2 +- .../AcceptanceTests/AzureReport/setup.py | 2 +- .../AcceptanceTests/AzureResource/setup.py | 2 +- .../AcceptanceTests/AzureSpecials/setup.py | 2 +- .../AcceptanceTests/CustomBaseUri/setup.py | 2 +- .../Expected/AcceptanceTests/Head/setup.py | 2 +- .../AcceptanceTests/HeadExceptions/setup.py | 2 +- .../Expected/AcceptanceTests/Lro/setup.py | 2 +- .../Expected/AcceptanceTests/Paging/setup.py | 2 +- .../StorageManagementClient/setup.py | 2 +- .../SubscriptionIdApiVersion/setup.py | 2 +- .../Models/CheckNameAvailabilityResult.cs | 17 +- .../Azure.CSharp/Models/CustomDomain.cs | 8 +- .../Azure.CSharp/Models/Endpoints.cs | 8 +- .../Azure.CSharp/Models/Resource.cs | 10 +- .../Models/StorageAccountCreateParameters.cs | 4 +- .../Azure.CSharp/Models/StorageAccountKeys.cs | 4 +- .../Models/StorageAccountProperties.cs | 64 +++--- ...torageAccountPropertiesCreateParameters.cs | 6 +- ...torageAccountPropertiesUpdateParameters.cs | 14 +- .../Models/StorageAccountUpdateParameters.cs | 2 +- .../Azure.CSharp/Models/Usage.cs | 15 +- .../Azure.CSharp/Models/UsageName.cs | 4 +- .../operations/storageAccounts.js | 2 +- Samples/azure-storage/Azure.Python/setup.py | 2 +- Samples/petstore/CSharp/Models/Order.cs | 4 +- Samples/petstore/CSharp/Models/Pet.cs | 4 +- Samples/petstore/CSharp/Models/User.cs | 2 +- .../Ruby/petstore/swagger_petstore.rb | 4 +- 308 files changed, 16012 insertions(+), 172 deletions(-) create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ArrayWrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Basic.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/BooleanWrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ByteWrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CMYKColors.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cat.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cookiecuttershark.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DateWrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DatetimeWrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Datetimerfc1123Wrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DictionaryWrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Dog.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DoubleWrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DurationWrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Fish.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/FloatWrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Goblinshark.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/IntWrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/LongWrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Pet.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ReadonlyObj.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Salmon.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Sawshark.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Shark.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Siamese.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/StringWrapper.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/FirstParameterGroup.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostOptionalParameters.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostRequiredParameters.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/FlattenedProduct.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Resource.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ResourceCollection.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/OdataFilter.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDelete202Retry200Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteAsyncRelativeRetrySucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteProvisioning202Accepted200SucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPost202Retry200Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPostAsyncRelativeRetrySucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPutAsyncRelativeRetrySucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202NonRetry400Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202RetryInvalidHeaderHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetry400Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteNonRetry400Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NoLocationHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NonRetry400Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202RetryInvalidHeaderHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetry400Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryNoPayloadHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostNonRetry400Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetry400Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPost202Retry200Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPostAsyncRetrySucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPutAsyncRetrySucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202NoRetry204Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202Retry200Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoHeaderInRetryHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoRetrySucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetryFailedHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrySucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrycanceledHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteNoHeaderInRetryHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Accepted200SucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202DeletingFailed200Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Deletingcanceled200Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202NoRetry204Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202Retry200Headers.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncNoRetrySucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetryFailedHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrySucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrycanceledHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoHeaderInRetryHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrySucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrycanceledHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetryFailedHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetrySucceededHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutNoHeaderInRetryHeaders.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResult.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResultError.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Product.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Resource.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Sku.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubProduct.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubResource.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/OperationResult.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Page.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesOptions.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetNextOptions.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetOptions.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Product.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/ProductProperties.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Product.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ArrayWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Basic.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/BooleanWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ByteWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/CMYKColors.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cat.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cookiecuttershark.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DateWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DatetimeWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Datetimerfc1123Wrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DictionaryWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Dog.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DoubleWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DurationWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Fish.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/FloatWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/IntWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/LongWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Pet.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ReadonlyObj.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Salmon.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Sawshark.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Shark.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Siamese.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/StringWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Colors.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/GreyscaleColors.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseBoolHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseByteHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDateHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeRfc1123Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDoubleHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDurationHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseEnumHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseExistingKeyHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseFloatHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseIntegerHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseLongHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseProtectedKeyHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseStringHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/A.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/B.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/C.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/D.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsDelete307Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet300Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet301Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet302Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet307Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead300Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead301Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead302Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead307Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch302Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch307Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost303Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost307Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut301Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut307Headers.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/MyException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/BaseProduct.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenParameterGroup.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenedProduct.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/GenericUrl.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Resource.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ResourceCollection.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/SimpleProduct.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/Models/AvailabilitySetUpdateParameters.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayOptionalWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassOptionalWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntOptionalWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Product.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringOptionalWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringWrapper.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/UriColor.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ChildProduct.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ConstantProduct.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/EnumConst.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Product.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Product.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2Exception.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Product.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/ErrorException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Product.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModel.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModelException.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/Pet.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/PetStyle.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/ApiResponse.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Category.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/LoginUserHeaders.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Order.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Pet.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Tag.cs create mode 100644 AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/User.cs diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/Error.cs new file mode 100644 index 0000000000..08f9bb52b0 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/Error.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureBodyDuration.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/ErrorException.cs new file mode 100644 index 0000000000..9842d37c70 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureBodyDuration.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ArrayWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ArrayWrapper.cs new file mode 100644 index 0000000000..aace336a55 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ArrayWrapper.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class ArrayWrapper + { + /// + /// Initializes a new instance of the ArrayWrapper class. + /// + public ArrayWrapper() { } + + /// + /// Initializes a new instance of the ArrayWrapper class. + /// + public ArrayWrapper(IList array = default(IList)) + { + Array = array; + } + + /// + /// + [JsonProperty(PropertyName = "array")] + public IList Array { get; set; } + + } +} 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 new file mode 100644 index 0000000000..a3f115e527 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Basic.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Basic + { + /// + /// Initializes a new instance of the Basic class. + /// + public Basic() { } + + /// + /// Initializes a new instance of the Basic class. + /// + public Basic(int? id = default(int?), string name = default(string), string color = default(string)) + { + Id = id; + Name = name; + Color = color; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public int? Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// 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/BooleanWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/BooleanWrapper.cs new file mode 100644 index 0000000000..707ddf3d4d --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/BooleanWrapper.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class BooleanWrapper + { + /// + /// Initializes a new instance of the BooleanWrapper class. + /// + public BooleanWrapper() { } + + /// + /// Initializes a new instance of the BooleanWrapper class. + /// + public BooleanWrapper(bool? fieldTrue = default(bool?), bool? fieldFalse = default(bool?)) + { + FieldTrue = fieldTrue; + FieldFalse = fieldFalse; + } + + /// + /// + [JsonProperty(PropertyName = "field_true")] + public bool? FieldTrue { get; set; } + + /// + /// + [JsonProperty(PropertyName = "field_false")] + public bool? FieldFalse { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ByteWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ByteWrapper.cs new file mode 100644 index 0000000000..6e0ec07831 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ByteWrapper.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class ByteWrapper + { + /// + /// Initializes a new instance of the ByteWrapper class. + /// + public ByteWrapper() { } + + /// + /// Initializes a new instance of the ByteWrapper class. + /// + public ByteWrapper(byte[] field = default(byte[])) + { + Field = field; + } + + /// + /// + [JsonProperty(PropertyName = "field")] + public byte[] Field { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CMYKColors.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CMYKColors.cs new file mode 100644 index 0000000000..8bb13c44f7 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CMYKColors.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime.Serialization; + + /// + /// Defines values for CMYKColors. + /// + public static class CMYKColors + { + public const string Cyan = "cyan"; + public const string Magenta = "Magenta"; + public const string YELLOW = "YELLOW"; + public const string BlacK = "blacK"; + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cat.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cat.cs new file mode 100644 index 0000000000..3418697257 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cat.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Cat : Pet + { + /// + /// Initializes a new instance of the Cat class. + /// + public Cat() { } + + /// + /// Initializes a new instance of the Cat class. + /// + public Cat(int? id = default(int?), string name = default(string), string color = default(string), IList hates = default(IList)) + : base(id, name) + { + Color = color; + Hates = hates; + } + + /// + /// + [JsonProperty(PropertyName = "color")] + public string Color { get; set; } + + /// + /// + [JsonProperty(PropertyName = "hates")] + public IList Hates { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cookiecuttershark.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cookiecuttershark.cs new file mode 100644 index 0000000000..f3d6a1e986 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cookiecuttershark.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + [JsonObject("cookiecuttershark")] + public partial class Cookiecuttershark : Shark + { + /// + /// Initializes a new instance of the Cookiecuttershark class. + /// + public Cookiecuttershark() { } + + /// + /// Initializes a new instance of the Cookiecuttershark class. + /// + public Cookiecuttershark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?)) + : base(length, birthday, species, siblings, age) + { + } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DateWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DateWrapper.cs new file mode 100644 index 0000000000..740332c80a --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DateWrapper.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class DateWrapper + { + /// + /// Initializes a new instance of the DateWrapper class. + /// + public DateWrapper() { } + + /// + /// Initializes a new instance of the DateWrapper class. + /// + public DateWrapper(DateTime? field = default(DateTime?), DateTime? leap = default(DateTime?)) + { + Field = field; + Leap = leap; + } + + /// + /// + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "field")] + public DateTime? Field { get; set; } + + /// + /// + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "leap")] + public DateTime? Leap { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DatetimeWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DatetimeWrapper.cs new file mode 100644 index 0000000000..a3b3cb8dc8 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DatetimeWrapper.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class DatetimeWrapper + { + /// + /// Initializes a new instance of the DatetimeWrapper class. + /// + public DatetimeWrapper() { } + + /// + /// Initializes a new instance of the DatetimeWrapper class. + /// + public DatetimeWrapper(DateTime? field = default(DateTime?), DateTime? now = default(DateTime?)) + { + Field = field; + Now = now; + } + + /// + /// + [JsonProperty(PropertyName = "field")] + public DateTime? Field { get; set; } + + /// + /// + [JsonProperty(PropertyName = "now")] + public DateTime? Now { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Datetimerfc1123Wrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Datetimerfc1123Wrapper.cs new file mode 100644 index 0000000000..b475f9c1e0 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Datetimerfc1123Wrapper.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Datetimerfc1123Wrapper + { + /// + /// Initializes a new instance of the Datetimerfc1123Wrapper class. + /// + public Datetimerfc1123Wrapper() { } + + /// + /// Initializes a new instance of the Datetimerfc1123Wrapper class. + /// + public Datetimerfc1123Wrapper(DateTime? field = default(DateTime?), DateTime? now = default(DateTime?)) + { + Field = field; + Now = now; + } + + /// + /// + [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] + [JsonProperty(PropertyName = "field")] + public DateTime? Field { get; set; } + + /// + /// + [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] + [JsonProperty(PropertyName = "now")] + public DateTime? Now { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DictionaryWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DictionaryWrapper.cs new file mode 100644 index 0000000000..368233d4c2 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DictionaryWrapper.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class DictionaryWrapper + { + /// + /// Initializes a new instance of the DictionaryWrapper class. + /// + public DictionaryWrapper() { } + + /// + /// Initializes a new instance of the DictionaryWrapper class. + /// + public DictionaryWrapper(IDictionary defaultProgram = default(IDictionary)) + { + DefaultProgram = defaultProgram; + } + + /// + /// + [JsonProperty(PropertyName = "defaultProgram")] + public IDictionary DefaultProgram { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Dog.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Dog.cs new file mode 100644 index 0000000000..d6ccb24348 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Dog.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Dog : Pet + { + /// + /// Initializes a new instance of the Dog class. + /// + public Dog() { } + + /// + /// Initializes a new instance of the Dog class. + /// + public Dog(int? id = default(int?), string name = default(string), string food = default(string)) + : base(id, name) + { + Food = food; + } + + /// + /// + [JsonProperty(PropertyName = "food")] + public string Food { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DoubleWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DoubleWrapper.cs new file mode 100644 index 0000000000..8e0551568f --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DoubleWrapper.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class DoubleWrapper + { + /// + /// Initializes a new instance of the DoubleWrapper class. + /// + public DoubleWrapper() { } + + /// + /// Initializes a new instance of the DoubleWrapper class. + /// + public DoubleWrapper(double? field1 = default(double?), double? field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose = default(double?)) + { + Field1 = field1; + Field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose = field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose; + } + + /// + /// + [JsonProperty(PropertyName = "field1")] + public double? Field1 { get; set; } + + /// + /// + [JsonProperty(PropertyName = "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose")] + public double? Field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DurationWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DurationWrapper.cs new file mode 100644 index 0000000000..798670e4cc --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DurationWrapper.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class DurationWrapper + { + /// + /// Initializes a new instance of the DurationWrapper class. + /// + public DurationWrapper() { } + + /// + /// Initializes a new instance of the DurationWrapper class. + /// + public DurationWrapper(TimeSpan? field = default(TimeSpan?)) + { + Field = field; + } + + /// + /// + [JsonProperty(PropertyName = "field")] + public TimeSpan? Field { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Error.cs new file mode 100644 index 0000000000..1c4eef9690 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Error.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ErrorException.cs new file mode 100644 index 0000000000..58d2cd0e7c --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Fish.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Fish.cs new file mode 100644 index 0000000000..a9fbaef026 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Fish.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Fish + { + /// + /// Initializes a new instance of the Fish class. + /// + public Fish() { } + + /// + /// Initializes a new instance of the Fish class. + /// + public Fish(double length, string species = default(string), IList siblings = default(IList)) + { + Species = species; + Length = length; + Siblings = siblings; + } + + /// + /// + [JsonProperty(PropertyName = "species")] + public string Species { get; set; } + + /// + /// + [JsonProperty(PropertyName = "length")] + public double Length { get; set; } + + /// + /// + [JsonProperty(PropertyName = "siblings")] + public IList Siblings { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (this.Siblings != null) + { + foreach (var element in this.Siblings) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/FloatWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/FloatWrapper.cs new file mode 100644 index 0000000000..59648ed8c5 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/FloatWrapper.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class FloatWrapper + { + /// + /// Initializes a new instance of the FloatWrapper class. + /// + public FloatWrapper() { } + + /// + /// Initializes a new instance of the FloatWrapper class. + /// + public FloatWrapper(double? field1 = default(double?), double? field2 = default(double?)) + { + Field1 = field1; + Field2 = field2; + } + + /// + /// + [JsonProperty(PropertyName = "field1")] + public double? Field1 { get; set; } + + /// + /// + [JsonProperty(PropertyName = "field2")] + public double? Field2 { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Goblinshark.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Goblinshark.cs new file mode 100644 index 0000000000..b7d197470e --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Goblinshark.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + [JsonObject("goblin")] + public partial class Goblinshark : Shark + { + /// + /// Initializes a new instance of the Goblinshark class. + /// + public Goblinshark() { } + + /// + /// Initializes a new instance of the Goblinshark class. + /// + public Goblinshark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?), int? jawsize = default(int?)) + : base(length, birthday, species, siblings, age) + { + Jawsize = jawsize; + } + + /// + /// + [JsonProperty(PropertyName = "jawsize")] + public int? Jawsize { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/IntWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/IntWrapper.cs new file mode 100644 index 0000000000..03c0a7f34a --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/IntWrapper.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class IntWrapper + { + /// + /// Initializes a new instance of the IntWrapper class. + /// + public IntWrapper() { } + + /// + /// Initializes a new instance of the IntWrapper class. + /// + public IntWrapper(int? field1 = default(int?), int? field2 = default(int?)) + { + Field1 = field1; + Field2 = field2; + } + + /// + /// + [JsonProperty(PropertyName = "field1")] + public int? Field1 { get; set; } + + /// + /// + [JsonProperty(PropertyName = "field2")] + public int? Field2 { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/LongWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/LongWrapper.cs new file mode 100644 index 0000000000..f3db3ab6fc --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/LongWrapper.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class LongWrapper + { + /// + /// Initializes a new instance of the LongWrapper class. + /// + public LongWrapper() { } + + /// + /// Initializes a new instance of the LongWrapper class. + /// + public LongWrapper(long? field1 = default(long?), long? field2 = default(long?)) + { + Field1 = field1; + Field2 = field2; + } + + /// + /// + [JsonProperty(PropertyName = "field1")] + public long? Field1 { get; set; } + + /// + /// + [JsonProperty(PropertyName = "field2")] + public long? Field2 { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Pet.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Pet.cs new file mode 100644 index 0000000000..8ef9a39505 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Pet.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Pet + { + /// + /// Initializes a new instance of the Pet class. + /// + public Pet() { } + + /// + /// Initializes a new instance of the Pet class. + /// + public Pet(int? id = default(int?), string name = default(string)) + { + Id = id; + Name = name; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public int? Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ReadonlyObj.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ReadonlyObj.cs new file mode 100644 index 0000000000..a8fcabd253 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ReadonlyObj.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class ReadonlyObj + { + /// + /// Initializes a new instance of the ReadonlyObj class. + /// + public ReadonlyObj() { } + + /// + /// Initializes a new instance of the ReadonlyObj class. + /// + public ReadonlyObj(string id = default(string), int? size = default(int?)) + { + Id = id; + Size = size; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// + [JsonProperty(PropertyName = "size")] + public int? Size { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Salmon.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Salmon.cs new file mode 100644 index 0000000000..9baebb4eef --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Salmon.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + [JsonObject("salmon")] + public partial class Salmon : Fish + { + /// + /// Initializes a new instance of the Salmon class. + /// + public Salmon() { } + + /// + /// Initializes a new instance of the Salmon class. + /// + public Salmon(double length, string species = default(string), IList siblings = default(IList), string location = default(string), bool? iswild = default(bool?)) + : base(length, species, siblings) + { + Location = location; + Iswild = iswild; + } + + /// + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// + [JsonProperty(PropertyName = "iswild")] + public bool? Iswild { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Sawshark.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Sawshark.cs new file mode 100644 index 0000000000..d5640692dc --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Sawshark.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + [JsonObject("sawshark")] + public partial class Sawshark : Shark + { + /// + /// Initializes a new instance of the Sawshark class. + /// + public Sawshark() { } + + /// + /// Initializes a new instance of the Sawshark class. + /// + public Sawshark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?), byte[] picture = default(byte[])) + : base(length, birthday, species, siblings, age) + { + Picture = picture; + } + + /// + /// + [JsonProperty(PropertyName = "picture")] + public byte[] Picture { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Shark.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Shark.cs new file mode 100644 index 0000000000..0339026294 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Shark.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + [JsonObject("shark")] + public partial class Shark : Fish + { + /// + /// Initializes a new instance of the Shark class. + /// + public Shark() { } + + /// + /// Initializes a new instance of the Shark class. + /// + public Shark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?)) + : base(length, species, siblings) + { + Age = age; + Birthday = birthday; + } + + /// + /// + [JsonProperty(PropertyName = "age")] + public int? Age { get; set; } + + /// + /// + [JsonProperty(PropertyName = "birthday")] + public DateTime Birthday { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Siamese.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Siamese.cs new file mode 100644 index 0000000000..6a49062d1c --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Siamese.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Siamese : Cat + { + /// + /// Initializes a new instance of the Siamese class. + /// + public Siamese() { } + + /// + /// Initializes a new instance of the Siamese class. + /// + public Siamese(int? id = default(int?), string name = default(string), string color = default(string), IList hates = default(IList), string breed = default(string)) + : base(id, name, color, hates) + { + Breed = breed; + } + + /// + /// + [JsonProperty(PropertyName = "breed")] + public string Breed { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/StringWrapper.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/StringWrapper.cs new file mode 100644 index 0000000000..e9e39f4b67 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/StringWrapper.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class StringWrapper + { + /// + /// Initializes a new instance of the StringWrapper class. + /// + public StringWrapper() { } + + /// + /// Initializes a new instance of the StringWrapper class. + /// + public StringWrapper(string field = default(string), string empty = default(string), string nullProperty = default(string)) + { + Field = field; + Empty = empty; + NullProperty = nullProperty; + } + + /// + /// + [JsonProperty(PropertyName = "field")] + public string Field { get; set; } + + /// + /// + [JsonProperty(PropertyName = "empty")] + public string Empty { get; set; } + + /// + /// + [JsonProperty(PropertyName = "null")] + public string NullProperty { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/Error.cs new file mode 100644 index 0000000000..d2e62d8909 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/Error.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ErrorException.cs new file mode 100644 index 0000000000..93d43525cd --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} 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 new file mode 100644 index 0000000000..07f3364978 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/FirstParameterGroup.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Additional parameters for the postMultiParamGroups operation. + /// + public partial class FirstParameterGroup + { + /// + /// Initializes a new instance of the FirstParameterGroup class. + /// + public FirstParameterGroup() { } + + /// + /// Initializes a new instance of the FirstParameterGroup class. + /// + public FirstParameterGroup(string headerOne = default(string), int? queryOne = default(int?)) + { + HeaderOne = headerOne; + QueryOne = queryOne; + } + + /// + /// + [JsonProperty(PropertyName = "")] + public string HeaderOne { get; set; } + + /// + /// 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 new file mode 100644 index 0000000000..65795f9c48 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Additional parameters for the postMultiParamGroups operation. + /// + public partial class ParameterGroupingPostMultiParamGroupsSecondParamGroup + { + /// + /// Initializes a new instance of the + /// ParameterGroupingPostMultiParamGroupsSecondParamGroup class. + /// + public ParameterGroupingPostMultiParamGroupsSecondParamGroup() { } + + /// + /// Initializes a new instance of the + /// ParameterGroupingPostMultiParamGroupsSecondParamGroup class. + /// + public ParameterGroupingPostMultiParamGroupsSecondParamGroup(string headerTwo = default(string), int? queryTwo = default(int?)) + { + HeaderTwo = headerTwo; + QueryTwo = queryTwo; + } + + /// + /// + [JsonProperty(PropertyName = "")] + public string HeaderTwo { get; set; } + + /// + /// 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 new file mode 100644 index 0000000000..e52168c7f9 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostOptionalParameters.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Additional parameters for the postOptional operation. + /// + public partial class ParameterGroupingPostOptionalParameters + { + /// + /// Initializes a new instance of the + /// ParameterGroupingPostOptionalParameters class. + /// + public ParameterGroupingPostOptionalParameters() { } + + /// + /// Initializes a new instance of the + /// ParameterGroupingPostOptionalParameters class. + /// + public ParameterGroupingPostOptionalParameters(string customHeader = default(string), int? query = default(int?)) + { + CustomHeader = customHeader; + Query = query; + } + + /// + /// + [JsonProperty(PropertyName = "")] + public string CustomHeader { get; set; } + + /// + /// 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 new file mode 100644 index 0000000000..2a68e8f4a2 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostRequiredParameters.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Additional parameters for the postRequired operation. + /// + public partial class ParameterGroupingPostRequiredParameters + { + /// + /// Initializes a new instance of the + /// ParameterGroupingPostRequiredParameters class. + /// + public ParameterGroupingPostRequiredParameters() { } + + /// + /// Initializes a new instance of the + /// ParameterGroupingPostRequiredParameters class. + /// + public ParameterGroupingPostRequiredParameters(int body, string path, string customHeader = default(string), int? query = default(int?)) + { + Body = body; + CustomHeader = customHeader; + Query = query; + Path = path; + } + + /// + /// + [JsonProperty(PropertyName = "")] + public int Body { get; set; } + + /// + /// + [JsonProperty(PropertyName = "")] + public string CustomHeader { get; set; } + + /// + /// Gets or sets query parameter with default + /// + [JsonProperty(PropertyName = "")] + public int? Query { get; set; } + + /// + /// Gets or sets path parameter + /// + [JsonProperty(PropertyName = "")] + public string Path { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (Path == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Path"); + } + } + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/Error.cs new file mode 100644 index 0000000000..2fbfb83e4c --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/Error.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureReport.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/ErrorException.cs new file mode 100644 index 0000000000..ebcce30a4c --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureReport/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureReport.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Error.cs new file mode 100644 index 0000000000..029dd2c207 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Error.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ErrorException.cs new file mode 100644 index 0000000000..4ba9b55b33 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/FlattenedProduct.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/FlattenedProduct.cs new file mode 100644 index 0000000000..8309b61244 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/FlattenedProduct.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + [JsonTransformation] + public partial class FlattenedProduct : Resource + { + /// + /// Initializes a new instance of the FlattenedProduct class. + /// + public FlattenedProduct() { } + + /// + /// Initializes a new instance of the FlattenedProduct class. + /// + public FlattenedProduct(string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string name = default(string), string pname = default(string), int? lsize = default(int?), string provisioningState = default(string)) + : base(id, type, tags, location, name) + { + Pname = pname; + Lsize = lsize; + ProvisioningState = provisioningState; + } + + /// + /// + [JsonProperty(PropertyName = "properties.pname")] + public string Pname { get; set; } + + /// + /// + [JsonProperty(PropertyName = "properties.lsize")] + public int? Lsize { get; set; } + + /// + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + } +} 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 new file mode 100644 index 0000000000..61d81a2722 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/Resource.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Resource : IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() { } + + /// + /// Initializes a new instance of the Resource class. + /// + public Resource(string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string name = default(string)) + { + Id = id; + Type = type; + Tags = tags; + Location = location; + Name = name; + } + + /// + /// Gets resource Id + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets resource Type + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets resource Location + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets resource Name + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ResourceCollection.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ResourceCollection.cs new file mode 100644 index 0000000000..4e644a557a --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureResource/Models/ResourceCollection.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class ResourceCollection + { + /// + /// Initializes a new instance of the ResourceCollection class. + /// + public ResourceCollection() { } + + /// + /// Initializes a new instance of the ResourceCollection class. + /// + public ResourceCollection(FlattenedProduct productresource = default(FlattenedProduct), IList arrayofresources = default(IList), IDictionary dictionaryofresources = default(IDictionary)) + { + Productresource = productresource; + Arrayofresources = arrayofresources; + Dictionaryofresources = dictionaryofresources; + } + + /// + /// + [JsonProperty(PropertyName = "productresource")] + public FlattenedProduct Productresource { get; set; } + + /// + /// + [JsonProperty(PropertyName = "arrayofresources")] + public IList Arrayofresources { get; set; } + + /// + /// + [JsonProperty(PropertyName = "dictionaryofresources")] + public IDictionary Dictionaryofresources { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/Error.cs new file mode 100644 index 0000000000..de85e0a28b --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/Error.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), int? constantId = default(int?), string message = default(string)) + { + Status = status; + ConstantId = constantId; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "constantId")] + public int? ConstantId { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/ErrorException.cs new file mode 100644 index 0000000000..fdd3f42f7e --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} 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 new file mode 100644 index 0000000000..4328e58dfa --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdHeaders.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for customNamedRequestId operation. + /// + public partial class HeaderCustomNamedRequestIdHeaders + { + /// + /// Initializes a new instance of the + /// HeaderCustomNamedRequestIdHeaders class. + /// + public HeaderCustomNamedRequestIdHeaders() { } + + /// + /// Initializes a new instance of the + /// HeaderCustomNamedRequestIdHeaders class. + /// + public HeaderCustomNamedRequestIdHeaders(string fooRequestId = default(string)) + { + FooRequestId = fooRequestId; + } + + /// + /// 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/AzureSpecials/Models/OdataFilter.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/OdataFilter.cs new file mode 100644 index 0000000000..2f2e3c2b51 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/AzureSpecials/Models/OdataFilter.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class OdataFilter + { + /// + /// Initializes a new instance of the OdataFilter class. + /// + public OdataFilter() { } + + /// + /// Initializes a new instance of the OdataFilter class. + /// + public OdataFilter(int? id = default(int?), string name = default(string)) + { + Id = id; + Name = name; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public int? Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs new file mode 100644 index 0000000000..2654d3647f --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsCustomBaseUri.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs new file mode 100644 index 0000000000..9f069157ee --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsCustomBaseUri.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} 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 new file mode 100644 index 0000000000..48c5638bc1 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDelete202Retry200Headers.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for delete202Retry200 operation. + /// + public partial class LRORetrysDelete202Retry200Headers + { + /// + /// Initializes a new instance of the + /// LRORetrysDelete202Retry200Headers class. + /// + public LRORetrysDelete202Retry200Headers() { } + + /// + /// Initializes a new instance of the + /// LRORetrysDelete202Retry200Headers class. + /// + public LRORetrysDelete202Retry200Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..095ed23b91 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteAsyncRelativeRetrySucceededHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteAsyncRelativeRetrySucceeded operation. + /// + public partial class LRORetrysDeleteAsyncRelativeRetrySucceededHeaders + { + /// + /// Initializes a new instance of the + /// LRORetrysDeleteAsyncRelativeRetrySucceededHeaders class. + /// + public LRORetrysDeleteAsyncRelativeRetrySucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LRORetrysDeleteAsyncRelativeRetrySucceededHeaders class. + /// + public LRORetrysDeleteAsyncRelativeRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..3c239e13c5 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteProvisioning202Accepted200SucceededHeaders.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteProvisioning202Accepted200Succeeded + /// operation. + /// + public partial class LRORetrysDeleteProvisioning202Accepted200SucceededHeaders + { + /// + /// Initializes a new instance of the + /// LRORetrysDeleteProvisioning202Accepted200SucceededHeaders class. + /// + public LRORetrysDeleteProvisioning202Accepted200SucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LRORetrysDeleteProvisioning202Accepted200SucceededHeaders class. + /// + public LRORetrysDeleteProvisioning202Accepted200SucceededHeaders(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..be801531b1 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPost202Retry200Headers.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for post202Retry200 operation. + /// + public partial class LRORetrysPost202Retry200Headers + { + /// + /// Initializes a new instance of the LRORetrysPost202Retry200Headers + /// class. + /// + public LRORetrysPost202Retry200Headers() { } + + /// + /// Initializes a new instance of the LRORetrysPost202Retry200Headers + /// class. + /// + public LRORetrysPost202Retry200Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..694c6f60c6 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPostAsyncRelativeRetrySucceededHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for postAsyncRelativeRetrySucceeded operation. + /// + public partial class LRORetrysPostAsyncRelativeRetrySucceededHeaders + { + /// + /// Initializes a new instance of the + /// LRORetrysPostAsyncRelativeRetrySucceededHeaders class. + /// + public LRORetrysPostAsyncRelativeRetrySucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LRORetrysPostAsyncRelativeRetrySucceededHeaders class. + /// + public LRORetrysPostAsyncRelativeRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..02693514b3 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPutAsyncRelativeRetrySucceededHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putAsyncRelativeRetrySucceeded operation. + /// + public partial class LRORetrysPutAsyncRelativeRetrySucceededHeaders + { + /// + /// Initializes a new instance of the + /// LRORetrysPutAsyncRelativeRetrySucceededHeaders class. + /// + public LRORetrysPutAsyncRelativeRetrySucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LRORetrysPutAsyncRelativeRetrySucceededHeaders class. + /// + public LRORetrysPutAsyncRelativeRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..116d6a7e5d --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202NonRetry400Headers.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for delete202NonRetry400 operation. + /// + public partial class LROSADsDelete202NonRetry400Headers + { + /// + /// Initializes a new instance of the + /// LROSADsDelete202NonRetry400Headers class. + /// + public LROSADsDelete202NonRetry400Headers() { } + + /// + /// Initializes a new instance of the + /// LROSADsDelete202NonRetry400Headers class. + /// + public LROSADsDelete202NonRetry400Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..727b012762 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202RetryInvalidHeaderHeaders.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for delete202RetryInvalidHeader operation. + /// + public partial class LROSADsDelete202RetryInvalidHeaderHeaders + { + /// + /// Initializes a new instance of the + /// LROSADsDelete202RetryInvalidHeaderHeaders class. + /// + public LROSADsDelete202RetryInvalidHeaderHeaders() { } + + /// + /// Initializes a new instance of the + /// LROSADsDelete202RetryInvalidHeaderHeaders class. + /// + public LROSADsDelete202RetryInvalidHeaderHeaders(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// Gets or sets location to poll for result status: will be set to + /// /foo + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// 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 new file mode 100644 index 0000000000..4c1ac5d129 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetry400Headers.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteAsyncRelativeRetry400 operation. + /// + public partial class LROSADsDeleteAsyncRelativeRetry400Headers + { + /// + /// Initializes a new instance of the + /// LROSADsDeleteAsyncRelativeRetry400Headers class. + /// + public LROSADsDeleteAsyncRelativeRetry400Headers() { } + + /// + /// Initializes a new instance of the + /// LROSADsDeleteAsyncRelativeRetry400Headers class. + /// + public LROSADsDeleteAsyncRelativeRetry400Headers(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..bcb53a47e9 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteAsyncRelativeRetryInvalidHeader operation. + /// + public partial class LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders + { + /// + /// Initializes a new instance of the + /// LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders class. + /// + public LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders() { } + + /// + /// Initializes a new instance of the + /// LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders class. + /// + public LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// Gets or sets location to poll for result status: will be set to + /// /foo + /// + [JsonProperty(PropertyName = "Azure-AsyncOperation")] + public string AzureAsyncOperation { get; set; } + + /// + /// Gets or sets location to poll for result status: will be set to + /// /foo + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// 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 new file mode 100644 index 0000000000..8c30a0a4f9 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteAsyncRelativeRetryInvalidJsonPolling + /// operation. + /// + public partial class LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders + { + /// + /// Initializes a new instance of the + /// LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders class. + /// + public LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders() { } + + /// + /// Initializes a new instance of the + /// LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders class. + /// + public LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..1a6afea508 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteAsyncRelativeRetryNoStatus operation. + /// + public partial class LROSADsDeleteAsyncRelativeRetryNoStatusHeaders + { + /// + /// Initializes a new instance of the + /// LROSADsDeleteAsyncRelativeRetryNoStatusHeaders class. + /// + public LROSADsDeleteAsyncRelativeRetryNoStatusHeaders() { } + + /// + /// Initializes a new instance of the + /// LROSADsDeleteAsyncRelativeRetryNoStatusHeaders class. + /// + public LROSADsDeleteAsyncRelativeRetryNoStatusHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..202e5b5d8b --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteNonRetry400Headers.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteNonRetry400 operation. + /// + public partial class LROSADsDeleteNonRetry400Headers + { + /// + /// Initializes a new instance of the LROSADsDeleteNonRetry400Headers + /// class. + /// + public LROSADsDeleteNonRetry400Headers() { } + + /// + /// Initializes a new instance of the LROSADsDeleteNonRetry400Headers + /// class. + /// + public LROSADsDeleteNonRetry400Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..275c476a53 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NoLocationHeaders.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for post202NoLocation operation. + /// + public partial class LROSADsPost202NoLocationHeaders + { + /// + /// Initializes a new instance of the LROSADsPost202NoLocationHeaders + /// class. + /// + public LROSADsPost202NoLocationHeaders() { } + + /// + /// Initializes a new instance of the LROSADsPost202NoLocationHeaders + /// class. + /// + public LROSADsPost202NoLocationHeaders(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// Gets or sets location to poll for result status: will not be set + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// 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 new file mode 100644 index 0000000000..448c6f2ed5 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NonRetry400Headers.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for post202NonRetry400 operation. + /// + public partial class LROSADsPost202NonRetry400Headers + { + /// + /// Initializes a new instance of the LROSADsPost202NonRetry400Headers + /// class. + /// + public LROSADsPost202NonRetry400Headers() { } + + /// + /// Initializes a new instance of the LROSADsPost202NonRetry400Headers + /// class. + /// + public LROSADsPost202NonRetry400Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..31373a1d5b --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202RetryInvalidHeaderHeaders.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for post202RetryInvalidHeader operation. + /// + public partial class LROSADsPost202RetryInvalidHeaderHeaders + { + /// + /// Initializes a new instance of the + /// LROSADsPost202RetryInvalidHeaderHeaders class. + /// + public LROSADsPost202RetryInvalidHeaderHeaders() { } + + /// + /// Initializes a new instance of the + /// LROSADsPost202RetryInvalidHeaderHeaders class. + /// + public LROSADsPost202RetryInvalidHeaderHeaders(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// Gets or sets location to poll for result status: will be set to + /// /foo + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// 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 new file mode 100644 index 0000000000..0c8e775eb0 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetry400Headers.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for postAsyncRelativeRetry400 operation. + /// + public partial class LROSADsPostAsyncRelativeRetry400Headers + { + /// + /// Initializes a new instance of the + /// LROSADsPostAsyncRelativeRetry400Headers class. + /// + public LROSADsPostAsyncRelativeRetry400Headers() { } + + /// + /// Initializes a new instance of the + /// LROSADsPostAsyncRelativeRetry400Headers class. + /// + public LROSADsPostAsyncRelativeRetry400Headers(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..8b4a8487a6 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for postAsyncRelativeRetryInvalidHeader operation. + /// + public partial class LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders + { + /// + /// Initializes a new instance of the + /// LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders class. + /// + public LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders() { } + + /// + /// Initializes a new instance of the + /// LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders class. + /// + public LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// Gets or sets location to poll for result status: will be set to foo + /// + [JsonProperty(PropertyName = "Azure-AsyncOperation")] + public string AzureAsyncOperation { get; set; } + + /// + /// Gets or sets location to poll for result status: will be set to foo + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// 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 new file mode 100644 index 0000000000..55f40ad33f --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for postAsyncRelativeRetryInvalidJsonPolling operation. + /// + public partial class LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders + { + /// + /// Initializes a new instance of the + /// LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders class. + /// + public LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders() { } + + /// + /// Initializes a new instance of the + /// LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders class. + /// + public LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..c5a6c9a6a4 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryNoPayloadHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for postAsyncRelativeRetryNoPayload operation. + /// + public partial class LROSADsPostAsyncRelativeRetryNoPayloadHeaders + { + /// + /// Initializes a new instance of the + /// LROSADsPostAsyncRelativeRetryNoPayloadHeaders class. + /// + public LROSADsPostAsyncRelativeRetryNoPayloadHeaders() { } + + /// + /// Initializes a new instance of the + /// LROSADsPostAsyncRelativeRetryNoPayloadHeaders class. + /// + public LROSADsPostAsyncRelativeRetryNoPayloadHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..a063b6ed3c --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostNonRetry400Headers.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for postNonRetry400 operation. + /// + public partial class LROSADsPostNonRetry400Headers + { + /// + /// Initializes a new instance of the LROSADsPostNonRetry400Headers + /// class. + /// + public LROSADsPostNonRetry400Headers() { } + + /// + /// Initializes a new instance of the LROSADsPostNonRetry400Headers + /// class. + /// + public LROSADsPostNonRetry400Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..a8fdaaf7b9 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetry400Headers.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putAsyncRelativeRetry400 operation. + /// + public partial class LROSADsPutAsyncRelativeRetry400Headers + { + /// + /// Initializes a new instance of the + /// LROSADsPutAsyncRelativeRetry400Headers class. + /// + public LROSADsPutAsyncRelativeRetry400Headers() { } + + /// + /// Initializes a new instance of the + /// LROSADsPutAsyncRelativeRetry400Headers class. + /// + public LROSADsPutAsyncRelativeRetry400Headers(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..730e2a89f7 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putAsyncRelativeRetryInvalidHeader operation. + /// + public partial class LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders + { + /// + /// Initializes a new instance of the + /// LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders class. + /// + public LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders() { } + + /// + /// Initializes a new instance of the + /// LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders class. + /// + public LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..0854ea59e1 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putAsyncRelativeRetryInvalidJsonPolling operation. + /// + public partial class LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders + { + /// + /// Initializes a new instance of the + /// LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders class. + /// + public LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders() { } + + /// + /// Initializes a new instance of the + /// LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders class. + /// + public LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..2d63d0682d --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putAsyncRelativeRetryNoStatus operation. + /// + public partial class LROSADsPutAsyncRelativeRetryNoStatusHeaders + { + /// + /// Initializes a new instance of the + /// LROSADsPutAsyncRelativeRetryNoStatusHeaders class. + /// + public LROSADsPutAsyncRelativeRetryNoStatusHeaders() { } + + /// + /// Initializes a new instance of the + /// LROSADsPutAsyncRelativeRetryNoStatusHeaders class. + /// + public LROSADsPutAsyncRelativeRetryNoStatusHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..5c75b72ec2 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putAsyncRelativeRetryNoStatusPayload operation. + /// + public partial class LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders + { + /// + /// Initializes a new instance of the + /// LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders class. + /// + public LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders() { } + + /// + /// Initializes a new instance of the + /// LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders class. + /// + public LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..ab928a1602 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPost202Retry200Headers.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for post202Retry200 operation. + /// + public partial class LROsCustomHeaderPost202Retry200Headers + { + /// + /// Initializes a new instance of the + /// LROsCustomHeaderPost202Retry200Headers class. + /// + public LROsCustomHeaderPost202Retry200Headers() { } + + /// + /// Initializes a new instance of the + /// LROsCustomHeaderPost202Retry200Headers class. + /// + public LROsCustomHeaderPost202Retry200Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..10a93dfb18 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPostAsyncRetrySucceededHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for postAsyncRetrySucceeded operation. + /// + public partial class LROsCustomHeaderPostAsyncRetrySucceededHeaders + { + /// + /// Initializes a new instance of the + /// LROsCustomHeaderPostAsyncRetrySucceededHeaders class. + /// + public LROsCustomHeaderPostAsyncRetrySucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsCustomHeaderPostAsyncRetrySucceededHeaders class. + /// + public LROsCustomHeaderPostAsyncRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..66cb66baec --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPutAsyncRetrySucceededHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putAsyncRetrySucceeded operation. + /// + public partial class LROsCustomHeaderPutAsyncRetrySucceededHeaders + { + /// + /// Initializes a new instance of the + /// LROsCustomHeaderPutAsyncRetrySucceededHeaders class. + /// + public LROsCustomHeaderPutAsyncRetrySucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsCustomHeaderPutAsyncRetrySucceededHeaders class. + /// + public LROsCustomHeaderPutAsyncRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..9c1043c99e --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202NoRetry204Headers.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for delete202NoRetry204 operation. + /// + public partial class LROsDelete202NoRetry204Headers + { + /// + /// Initializes a new instance of the LROsDelete202NoRetry204Headers + /// class. + /// + public LROsDelete202NoRetry204Headers() { } + + /// + /// Initializes a new instance of the LROsDelete202NoRetry204Headers + /// class. + /// + public LROsDelete202NoRetry204Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..53c58b72c1 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202Retry200Headers.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for delete202Retry200 operation. + /// + public partial class LROsDelete202Retry200Headers + { + /// + /// Initializes a new instance of the LROsDelete202Retry200Headers + /// class. + /// + public LROsDelete202Retry200Headers() { } + + /// + /// Initializes a new instance of the LROsDelete202Retry200Headers + /// class. + /// + public LROsDelete202Retry200Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..71283acb56 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoHeaderInRetryHeaders.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteAsyncNoHeaderInRetry operation. + /// + public partial class LROsDeleteAsyncNoHeaderInRetryHeaders + { + /// + /// Initializes a new instance of the + /// LROsDeleteAsyncNoHeaderInRetryHeaders class. + /// + public LROsDeleteAsyncNoHeaderInRetryHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsDeleteAsyncNoHeaderInRetryHeaders class. + /// + public LROsDeleteAsyncNoHeaderInRetryHeaders(string location = default(string)) + { + Location = location; + } + + /// + /// Gets or sets location to poll for result status: will be set to + /// /lro/put/noheader/202/204/operationresults + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} 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 new file mode 100644 index 0000000000..177d0dbd34 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoRetrySucceededHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteAsyncNoRetrySucceeded operation. + /// + public partial class LROsDeleteAsyncNoRetrySucceededHeaders + { + /// + /// Initializes a new instance of the + /// LROsDeleteAsyncNoRetrySucceededHeaders class. + /// + public LROsDeleteAsyncNoRetrySucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsDeleteAsyncNoRetrySucceededHeaders class. + /// + public LROsDeleteAsyncNoRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..8f3aebdc78 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetryFailedHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteAsyncRetryFailed operation. + /// + public partial class LROsDeleteAsyncRetryFailedHeaders + { + /// + /// Initializes a new instance of the + /// LROsDeleteAsyncRetryFailedHeaders class. + /// + public LROsDeleteAsyncRetryFailedHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsDeleteAsyncRetryFailedHeaders class. + /// + public LROsDeleteAsyncRetryFailedHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..acfd07ed5a --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrySucceededHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteAsyncRetrySucceeded operation. + /// + public partial class LROsDeleteAsyncRetrySucceededHeaders + { + /// + /// Initializes a new instance of the + /// LROsDeleteAsyncRetrySucceededHeaders class. + /// + public LROsDeleteAsyncRetrySucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsDeleteAsyncRetrySucceededHeaders class. + /// + public LROsDeleteAsyncRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..a5d86a7f1b --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrycanceledHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteAsyncRetrycanceled operation. + /// + public partial class LROsDeleteAsyncRetrycanceledHeaders + { + /// + /// Initializes a new instance of the + /// LROsDeleteAsyncRetrycanceledHeaders class. + /// + public LROsDeleteAsyncRetrycanceledHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsDeleteAsyncRetrycanceledHeaders class. + /// + public LROsDeleteAsyncRetrycanceledHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..7dc3e9b001 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteNoHeaderInRetryHeaders.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteNoHeaderInRetry operation. + /// + public partial class LROsDeleteNoHeaderInRetryHeaders + { + /// + /// Initializes a new instance of the LROsDeleteNoHeaderInRetryHeaders + /// class. + /// + public LROsDeleteNoHeaderInRetryHeaders() { } + + /// + /// Initializes a new instance of the LROsDeleteNoHeaderInRetryHeaders + /// class. + /// + public LROsDeleteNoHeaderInRetryHeaders(string location = default(string)) + { + Location = location; + } + + /// + /// Gets or sets location to poll for result status: will be set to + /// /lro/put/noheader/202/204/operationresults + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} 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 new file mode 100644 index 0000000000..9902e42b88 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Accepted200SucceededHeaders.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteProvisioning202Accepted200Succeeded + /// operation. + /// + public partial class LROsDeleteProvisioning202Accepted200SucceededHeaders + { + /// + /// Initializes a new instance of the + /// LROsDeleteProvisioning202Accepted200SucceededHeaders class. + /// + public LROsDeleteProvisioning202Accepted200SucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsDeleteProvisioning202Accepted200SucceededHeaders class. + /// + public LROsDeleteProvisioning202Accepted200SucceededHeaders(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..aacc2cc6d5 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202DeletingFailed200Headers.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteProvisioning202DeletingFailed200 operation. + /// + public partial class LROsDeleteProvisioning202DeletingFailed200Headers + { + /// + /// Initializes a new instance of the + /// LROsDeleteProvisioning202DeletingFailed200Headers class. + /// + public LROsDeleteProvisioning202DeletingFailed200Headers() { } + + /// + /// Initializes a new instance of the + /// LROsDeleteProvisioning202DeletingFailed200Headers class. + /// + public LROsDeleteProvisioning202DeletingFailed200Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..929ce76923 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Deletingcanceled200Headers.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for deleteProvisioning202Deletingcanceled200 operation. + /// + public partial class LROsDeleteProvisioning202Deletingcanceled200Headers + { + /// + /// Initializes a new instance of the + /// LROsDeleteProvisioning202Deletingcanceled200Headers class. + /// + public LROsDeleteProvisioning202Deletingcanceled200Headers() { } + + /// + /// Initializes a new instance of the + /// LROsDeleteProvisioning202Deletingcanceled200Headers class. + /// + public LROsDeleteProvisioning202Deletingcanceled200Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..2b1b350499 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202NoRetry204Headers.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for post202NoRetry204 operation. + /// + public partial class LROsPost202NoRetry204Headers + { + /// + /// Initializes a new instance of the LROsPost202NoRetry204Headers + /// class. + /// + public LROsPost202NoRetry204Headers() { } + + /// + /// Initializes a new instance of the LROsPost202NoRetry204Headers + /// class. + /// + public LROsPost202NoRetry204Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..ac65636a94 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202Retry200Headers.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for post202Retry200 operation. + /// + public partial class LROsPost202Retry200Headers + { + /// + /// Initializes a new instance of the LROsPost202Retry200Headers class. + /// + public LROsPost202Retry200Headers() { } + + /// + /// Initializes a new instance of the LROsPost202Retry200Headers class. + /// + public LROsPost202Retry200Headers(string location = default(string), int? retryAfter = default(int?)) + { + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..ecfca7fc20 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncNoRetrySucceededHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for postAsyncNoRetrySucceeded operation. + /// + public partial class LROsPostAsyncNoRetrySucceededHeaders + { + /// + /// Initializes a new instance of the + /// LROsPostAsyncNoRetrySucceededHeaders class. + /// + public LROsPostAsyncNoRetrySucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsPostAsyncNoRetrySucceededHeaders class. + /// + public LROsPostAsyncNoRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..075c922dee --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetryFailedHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for postAsyncRetryFailed operation. + /// + public partial class LROsPostAsyncRetryFailedHeaders + { + /// + /// Initializes a new instance of the LROsPostAsyncRetryFailedHeaders + /// class. + /// + public LROsPostAsyncRetryFailedHeaders() { } + + /// + /// Initializes a new instance of the LROsPostAsyncRetryFailedHeaders + /// class. + /// + public LROsPostAsyncRetryFailedHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..c5130f0ffe --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrySucceededHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for postAsyncRetrySucceeded operation. + /// + public partial class LROsPostAsyncRetrySucceededHeaders + { + /// + /// Initializes a new instance of the + /// LROsPostAsyncRetrySucceededHeaders class. + /// + public LROsPostAsyncRetrySucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsPostAsyncRetrySucceededHeaders class. + /// + public LROsPostAsyncRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..a55f69e473 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrycanceledHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for postAsyncRetrycanceled operation. + /// + public partial class LROsPostAsyncRetrycanceledHeaders + { + /// + /// Initializes a new instance of the + /// LROsPostAsyncRetrycanceledHeaders class. + /// + public LROsPostAsyncRetrycanceledHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsPostAsyncRetrycanceledHeaders class. + /// + public LROsPostAsyncRetrycanceledHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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/LROsPutAsyncNoHeaderInRetryHeaders.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoHeaderInRetryHeaders.cs new file mode 100644 index 0000000000..cc8968175a --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoHeaderInRetryHeaders.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putAsyncNoHeaderInRetry operation. + /// + public partial class LROsPutAsyncNoHeaderInRetryHeaders + { + /// + /// Initializes a new instance of the + /// LROsPutAsyncNoHeaderInRetryHeaders class. + /// + public LROsPutAsyncNoHeaderInRetryHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsPutAsyncNoHeaderInRetryHeaders class. + /// + public LROsPutAsyncNoHeaderInRetryHeaders(string azureAsyncOperation = default(string)) + { + AzureAsyncOperation = azureAsyncOperation; + } + + /// + /// + [JsonProperty(PropertyName = "Azure-AsyncOperation")] + public string AzureAsyncOperation { 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 new file mode 100644 index 0000000000..b33f4f7df5 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrySucceededHeaders.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putAsyncNoRetrySucceeded operation. + /// + public partial class LROsPutAsyncNoRetrySucceededHeaders + { + /// + /// Initializes a new instance of the + /// LROsPutAsyncNoRetrySucceededHeaders class. + /// + public LROsPutAsyncNoRetrySucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsPutAsyncNoRetrySucceededHeaders class. + /// + public LROsPutAsyncNoRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + } + + /// + /// 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; } + + /// + /// Gets or sets location to poll for result status: will be set to + /// /lro/putasync/noretry/succeeded/operationResults/200 + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} 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 new file mode 100644 index 0000000000..4c8bd61750 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrycanceledHeaders.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putAsyncNoRetrycanceled operation. + /// + public partial class LROsPutAsyncNoRetrycanceledHeaders + { + /// + /// Initializes a new instance of the + /// LROsPutAsyncNoRetrycanceledHeaders class. + /// + public LROsPutAsyncNoRetrycanceledHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsPutAsyncNoRetrycanceledHeaders class. + /// + public LROsPutAsyncNoRetrycanceledHeaders(string azureAsyncOperation = default(string), string location = default(string)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + } + + /// + /// 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; } + + /// + /// Gets or sets location to poll for result status: will be set to + /// /lro/putasync/noretry/canceled/operationResults/200 + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + } +} 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 new file mode 100644 index 0000000000..c840b00f06 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetryFailedHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putAsyncRetryFailed operation. + /// + public partial class LROsPutAsyncRetryFailedHeaders + { + /// + /// Initializes a new instance of the LROsPutAsyncRetryFailedHeaders + /// class. + /// + public LROsPutAsyncRetryFailedHeaders() { } + + /// + /// Initializes a new instance of the LROsPutAsyncRetryFailedHeaders + /// class. + /// + public LROsPutAsyncRetryFailedHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..b6b88a2238 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetrySucceededHeaders.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putAsyncRetrySucceeded operation. + /// + public partial class LROsPutAsyncRetrySucceededHeaders + { + /// + /// Initializes a new instance of the + /// LROsPutAsyncRetrySucceededHeaders class. + /// + public LROsPutAsyncRetrySucceededHeaders() { } + + /// + /// Initializes a new instance of the + /// LROsPutAsyncRetrySucceededHeaders class. + /// + public LROsPutAsyncRetrySucceededHeaders(string azureAsyncOperation = default(string), string location = default(string), int? retryAfter = default(int?)) + { + AzureAsyncOperation = azureAsyncOperation; + Location = location; + RetryAfter = retryAfter; + } + + /// + /// 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; } + + /// + /// 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; } + + /// + /// 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 new file mode 100644 index 0000000000..e0bbd41f30 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutNoHeaderInRetryHeaders.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Defines headers for putNoHeaderInRetry operation. + /// + public partial class LROsPutNoHeaderInRetryHeaders + { + /// + /// Initializes a new instance of the LROsPutNoHeaderInRetryHeaders + /// class. + /// + public LROsPutNoHeaderInRetryHeaders() { } + + /// + /// Initializes a new instance of the LROsPutNoHeaderInRetryHeaders + /// class. + /// + public LROsPutNoHeaderInRetryHeaders(string location = default(string)) + { + Location = location; + } + + /// + /// Gets or sets location to poll for result status: will be set to + /// /lro/putasync/noheader/202/200/operationResults + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + } +} 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 new file mode 100644 index 0000000000..ac96c78620 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResult.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class OperationResult + { + /// + /// Initializes a new instance of the OperationResult class. + /// + public OperationResult() { } + + /// + /// Initializes a new instance of the OperationResult class. + /// + public OperationResult(string status = default(string), OperationResultError error = default(OperationResultError)) + { + Status = status; + Error = error; + } + + /// + /// 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; } + + /// + /// + [JsonProperty(PropertyName = "error")] + public OperationResultError Error { 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 new file mode 100644 index 0000000000..879bd79f18 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/OperationResultError.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class OperationResultError + { + /// + /// Initializes a new instance of the OperationResultError class. + /// + public OperationResultError() { } + + /// + /// Initializes a new instance of the OperationResultError class. + /// + public OperationResultError(int? code = default(int?), string message = default(string)) + { + Code = code; + Message = message; + } + + /// + /// Gets or sets the error code for an operation failure + /// + [JsonProperty(PropertyName = "code")] + public int? Code { get; set; } + + /// + /// 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 new file mode 100644 index 0000000000..aa45a2ce75 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Product.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + [JsonTransformation] + public partial class Product : Resource + { + /// + /// Initializes a new instance of the Product class. + /// + public Product() { } + + /// + /// Initializes a new instance of the Product class. + /// + public Product(string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string name = default(string), string provisioningState = default(string), string provisioningStateValues = default(string)) + : base(id, type, tags, location, name) + { + ProvisioningState = provisioningState; + ProvisioningStateValues = provisioningStateValues; + } + + /// + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets possible values include: 'Succeeded', 'Failed', 'canceled', + /// 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', + /// 'Deleting', 'Deleted', 'OK' + /// + [JsonProperty(PropertyName = "properties.provisioningStateValues")] + public string ProvisioningStateValues { get; private set; } + + } +} 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 new file mode 100644 index 0000000000..ccedfcfae7 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Resource.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Resource : IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() { } + + /// + /// Initializes a new instance of the Resource class. + /// + public Resource(string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string name = default(string)) + { + Id = id; + Type = type; + Tags = tags; + Location = location; + Name = name; + } + + /// + /// Gets resource Id + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets resource Type + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets resource Location + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// 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/Sku.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Sku.cs new file mode 100644 index 0000000000..efccdba202 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/Sku.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Sku + { + /// + /// Initializes a new instance of the Sku class. + /// + public Sku() { } + + /// + /// Initializes a new instance of the Sku class. + /// + public Sku(string name = default(string), string id = default(string)) + { + Name = name; + Id = id; + } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; 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 new file mode 100644 index 0000000000..838d1be2a2 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubProduct.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + [JsonTransformation] + public partial class SubProduct : SubResource + { + /// + /// Initializes a new instance of the SubProduct class. + /// + public SubProduct() { } + + /// + /// Initializes a new instance of the SubProduct class. + /// + public SubProduct(string id = default(string), string provisioningState = default(string), string provisioningStateValues = default(string)) + : base(id) + { + ProvisioningState = provisioningState; + ProvisioningStateValues = provisioningStateValues; + } + + /// + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + /// + /// Gets possible values include: 'Succeeded', 'Failed', 'canceled', + /// 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', + /// 'Deleting', 'Deleted', 'OK' + /// + [JsonProperty(PropertyName = "properties.provisioningStateValues")] + public string ProvisioningStateValues { get; private set; } + + } +} 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 new file mode 100644 index 0000000000..55a46212df --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/Models/SubResource.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsLro.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class SubResource : IResource + { + /// + /// Initializes a new instance of the SubResource class. + /// + public SubResource() { } + + /// + /// Initializes a new instance of the SubResource class. + /// + public SubResource(string id = default(string)) + { + Id = 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 new file mode 100644 index 0000000000..69a3704652 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/OperationResult.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsPaging.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class OperationResult + { + /// + /// Initializes a new instance of the OperationResult class. + /// + public OperationResult() { } + + /// + /// Initializes a new instance of the OperationResult class. + /// + public OperationResult(string status = default(string)) + { + Status = status; + } + + /// + /// 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/Page.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Page.cs new file mode 100644 index 0000000000..d28a47e439 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Page.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsPaging.Models +{ + using System.Collections.Generic; + using System.Linq; + using Newtonsoft.Json; + using Microsoft.Rest.Azure; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("nextLink")] + public string NextPageLink { get; private set; } + + [JsonProperty("values")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return (Items == null) ? Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} 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 new file mode 100644 index 0000000000..91ac0c93b6 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesOptions.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsPaging.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Additional parameters for the getMultiplePages operation. + /// + public partial class PagingGetMultiplePagesOptions + { + /// + /// Initializes a new instance of the PagingGetMultiplePagesOptions + /// class. + /// + public PagingGetMultiplePagesOptions() { } + + /// + /// Initializes a new instance of the PagingGetMultiplePagesOptions + /// class. + /// + public PagingGetMultiplePagesOptions(int? maxresults = default(int?), int? timeout = default(int?)) + { + Maxresults = maxresults; + Timeout = timeout; + } + + /// + /// Gets or sets sets the maximum number of items to return in the + /// response. + /// + [JsonProperty(PropertyName = "")] + public int? Maxresults { get; set; } + + /// + /// 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 new file mode 100644 index 0000000000..13885d8129 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetNextOptions.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsPaging.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Additional parameters for the getMultiplePagesWithOffsetNext operation. + /// + public partial class PagingGetMultiplePagesWithOffsetNextOptions + { + /// + /// Initializes a new instance of the + /// PagingGetMultiplePagesWithOffsetNextOptions class. + /// + public PagingGetMultiplePagesWithOffsetNextOptions() { } + + /// + /// Initializes a new instance of the + /// PagingGetMultiplePagesWithOffsetNextOptions class. + /// + public PagingGetMultiplePagesWithOffsetNextOptions(int? maxresults = default(int?), int? timeout = default(int?)) + { + Maxresults = maxresults; + Timeout = timeout; + } + + /// + /// Gets or sets sets the maximum number of items to return in the + /// response. + /// + [JsonProperty(PropertyName = "")] + public int? Maxresults { get; set; } + + /// + /// 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 new file mode 100644 index 0000000000..ab3be96e51 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetOptions.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsPaging.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + /// + /// Additional parameters for the getMultiplePagesWithOffset operation. + /// + public partial class PagingGetMultiplePagesWithOffsetOptions + { + /// + /// Initializes a new instance of the + /// PagingGetMultiplePagesWithOffsetOptions class. + /// + public PagingGetMultiplePagesWithOffsetOptions() { } + + /// + /// Initializes a new instance of the + /// PagingGetMultiplePagesWithOffsetOptions class. + /// + public PagingGetMultiplePagesWithOffsetOptions(int offset, int? maxresults = default(int?), int? timeout = default(int?)) + { + Maxresults = maxresults; + Offset = offset; + Timeout = timeout; + } + + /// + /// Gets or sets sets the maximum number of items to return in the + /// response. + /// + [JsonProperty(PropertyName = "")] + public int? Maxresults { get; set; } + + /// + /// Gets or sets offset of return value + /// + [JsonProperty(PropertyName = "")] + public int Offset { get; set; } + + /// + /// 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; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Product.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Product.cs new file mode 100644 index 0000000000..767b045e83 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/Product.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsPaging.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Product + { + /// + /// Initializes a new instance of the Product class. + /// + public Product() { } + + /// + /// Initializes a new instance of the Product class. + /// + public Product(ProductProperties properties = default(ProductProperties)) + { + Properties = properties; + } + + /// + /// + [JsonProperty(PropertyName = "properties")] + public ProductProperties Properties { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/ProductProperties.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/ProductProperties.cs new file mode 100644 index 0000000000..375ec22d0b --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Paging/Models/ProductProperties.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsPaging.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class ProductProperties + { + /// + /// Initializes a new instance of the ProductProperties class. + /// + public ProductProperties() { } + + /// + /// Initializes a new instance of the ProductProperties class. + /// + public ProductProperties(int? id = default(int?), string name = default(string)) + { + Id = id; + Name = name; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public int? Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/Error.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/Error.cs new file mode 100644 index 0000000000..b73b1f6743 --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/Error.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsSubscriptionIdApiVersion.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Microsoft.Rest.Azure; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? code = default(int?), string message = default(string)) + { + Code = code; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "code")] + public int? Code { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/ErrorException.cs b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/ErrorException.cs new file mode 100644 index 0000000000..826ec5d3fd --- /dev/null +++ b/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.Azure.AcceptanceTestsSubscriptionIdApiVersion.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Error.cs new file mode 100644 index 0000000000..5f254e651e --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyArray.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/ErrorException.cs new file mode 100644 index 0000000000..b067ffb596 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyArray.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Product.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Product.cs new file mode 100644 index 0000000000..97cc8a55c7 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Product.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyArray.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Product + { + /// + /// Initializes a new instance of the Product class. + /// + public Product() { } + + /// + /// Initializes a new instance of the Product class. + /// + public Product(int? integer = default(int?), string stringProperty = default(string)) + { + Integer = integer; + StringProperty = stringProperty; + } + + /// + /// + [JsonProperty(PropertyName = "integer")] + public int? Integer { get; set; } + + /// + /// + [JsonProperty(PropertyName = "string")] + public string StringProperty { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/Error.cs new file mode 100644 index 0000000000..5ec7ad6410 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyBoolean.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/ErrorException.cs new file mode 100644 index 0000000000..15cddb927f --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyBoolean.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/Error.cs new file mode 100644 index 0000000000..7578266a66 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyByte.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/ErrorException.cs new file mode 100644 index 0000000000..e84c83b21c --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyByte.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ArrayWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ArrayWrapper.cs new file mode 100644 index 0000000000..b8f8910c9e --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ArrayWrapper.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class ArrayWrapper + { + /// + /// Initializes a new instance of the ArrayWrapper class. + /// + public ArrayWrapper() { } + + /// + /// Initializes a new instance of the ArrayWrapper class. + /// + public ArrayWrapper(IList array = default(IList)) + { + Array = array; + } + + /// + /// + [JsonProperty(PropertyName = "array")] + public IList Array { get; set; } + + } +} 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 new file mode 100644 index 0000000000..be0b404126 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Basic.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Basic + { + /// + /// Initializes a new instance of the Basic class. + /// + public Basic() { } + + /// + /// Initializes a new instance of the Basic class. + /// + public Basic(int? id = default(int?), string name = default(string), string color = default(string)) + { + Id = id; + Name = name; + Color = color; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public int? Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// 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/BodyComplex/Models/BooleanWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/BooleanWrapper.cs new file mode 100644 index 0000000000..90df28db35 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/BooleanWrapper.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class BooleanWrapper + { + /// + /// Initializes a new instance of the BooleanWrapper class. + /// + public BooleanWrapper() { } + + /// + /// Initializes a new instance of the BooleanWrapper class. + /// + public BooleanWrapper(bool? fieldTrue = default(bool?), bool? fieldFalse = default(bool?)) + { + FieldTrue = fieldTrue; + FieldFalse = fieldFalse; + } + + /// + /// + [JsonProperty(PropertyName = "field_true")] + public bool? FieldTrue { get; set; } + + /// + /// + [JsonProperty(PropertyName = "field_false")] + public bool? FieldFalse { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ByteWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ByteWrapper.cs new file mode 100644 index 0000000000..9cf44a4e42 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ByteWrapper.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class ByteWrapper + { + /// + /// Initializes a new instance of the ByteWrapper class. + /// + public ByteWrapper() { } + + /// + /// Initializes a new instance of the ByteWrapper class. + /// + public ByteWrapper(byte[] field = default(byte[])) + { + Field = field; + } + + /// + /// + [JsonProperty(PropertyName = "field")] + public byte[] Field { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/CMYKColors.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/CMYKColors.cs new file mode 100644 index 0000000000..f000525c53 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/CMYKColors.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime.Serialization; + + /// + /// Defines values for CMYKColors. + /// + public static class CMYKColors + { + public const string Cyan = "cyan"; + public const string Magenta = "Magenta"; + public const string YELLOW = "YELLOW"; + public const string BlacK = "blacK"; + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cat.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cat.cs new file mode 100644 index 0000000000..601a896d03 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cat.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Cat : Pet + { + /// + /// Initializes a new instance of the Cat class. + /// + public Cat() { } + + /// + /// Initializes a new instance of the Cat class. + /// + public Cat(int? id = default(int?), string name = default(string), string color = default(string), IList hates = default(IList)) + : base(id, name) + { + Color = color; + Hates = hates; + } + + /// + /// + [JsonProperty(PropertyName = "color")] + public string Color { get; set; } + + /// + /// + [JsonProperty(PropertyName = "hates")] + public IList Hates { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cookiecuttershark.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cookiecuttershark.cs new file mode 100644 index 0000000000..63afa24a3c --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cookiecuttershark.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + [JsonObject("cookiecuttershark")] + public partial class Cookiecuttershark : Shark + { + /// + /// Initializes a new instance of the Cookiecuttershark class. + /// + public Cookiecuttershark() { } + + /// + /// Initializes a new instance of the Cookiecuttershark class. + /// + public Cookiecuttershark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?)) + : base(length, birthday, species, siblings, age) + { + } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DateWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DateWrapper.cs new file mode 100644 index 0000000000..aa96f66baf --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DateWrapper.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class DateWrapper + { + /// + /// Initializes a new instance of the DateWrapper class. + /// + public DateWrapper() { } + + /// + /// Initializes a new instance of the DateWrapper class. + /// + public DateWrapper(DateTime? field = default(DateTime?), DateTime? leap = default(DateTime?)) + { + Field = field; + Leap = leap; + } + + /// + /// + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "field")] + public DateTime? Field { get; set; } + + /// + /// + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "leap")] + public DateTime? Leap { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DatetimeWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DatetimeWrapper.cs new file mode 100644 index 0000000000..f25ce19c3a --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DatetimeWrapper.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class DatetimeWrapper + { + /// + /// Initializes a new instance of the DatetimeWrapper class. + /// + public DatetimeWrapper() { } + + /// + /// Initializes a new instance of the DatetimeWrapper class. + /// + public DatetimeWrapper(DateTime? field = default(DateTime?), DateTime? now = default(DateTime?)) + { + Field = field; + Now = now; + } + + /// + /// + [JsonProperty(PropertyName = "field")] + public DateTime? Field { get; set; } + + /// + /// + [JsonProperty(PropertyName = "now")] + public DateTime? Now { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Datetimerfc1123Wrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Datetimerfc1123Wrapper.cs new file mode 100644 index 0000000000..65b9c24822 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Datetimerfc1123Wrapper.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Datetimerfc1123Wrapper + { + /// + /// Initializes a new instance of the Datetimerfc1123Wrapper class. + /// + public Datetimerfc1123Wrapper() { } + + /// + /// Initializes a new instance of the Datetimerfc1123Wrapper class. + /// + public Datetimerfc1123Wrapper(DateTime? field = default(DateTime?), DateTime? now = default(DateTime?)) + { + Field = field; + Now = now; + } + + /// + /// + [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] + [JsonProperty(PropertyName = "field")] + public DateTime? Field { get; set; } + + /// + /// + [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] + [JsonProperty(PropertyName = "now")] + public DateTime? Now { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DictionaryWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DictionaryWrapper.cs new file mode 100644 index 0000000000..56a0c0624e --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DictionaryWrapper.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class DictionaryWrapper + { + /// + /// Initializes a new instance of the DictionaryWrapper class. + /// + public DictionaryWrapper() { } + + /// + /// Initializes a new instance of the DictionaryWrapper class. + /// + public DictionaryWrapper(IDictionary defaultProgram = default(IDictionary)) + { + DefaultProgram = defaultProgram; + } + + /// + /// + [JsonProperty(PropertyName = "defaultProgram")] + public IDictionary DefaultProgram { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Dog.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Dog.cs new file mode 100644 index 0000000000..70159dab2d --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Dog.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Dog : Pet + { + /// + /// Initializes a new instance of the Dog class. + /// + public Dog() { } + + /// + /// Initializes a new instance of the Dog class. + /// + public Dog(int? id = default(int?), string name = default(string), string food = default(string)) + : base(id, name) + { + Food = food; + } + + /// + /// + [JsonProperty(PropertyName = "food")] + public string Food { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DoubleWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DoubleWrapper.cs new file mode 100644 index 0000000000..9903f11fcc --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DoubleWrapper.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class DoubleWrapper + { + /// + /// Initializes a new instance of the DoubleWrapper class. + /// + public DoubleWrapper() { } + + /// + /// Initializes a new instance of the DoubleWrapper class. + /// + public DoubleWrapper(double? field1 = default(double?), double? field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose = default(double?)) + { + Field1 = field1; + Field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose = field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose; + } + + /// + /// + [JsonProperty(PropertyName = "field1")] + public double? Field1 { get; set; } + + /// + /// + [JsonProperty(PropertyName = "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose")] + public double? Field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DurationWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DurationWrapper.cs new file mode 100644 index 0000000000..822db31553 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DurationWrapper.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class DurationWrapper + { + /// + /// Initializes a new instance of the DurationWrapper class. + /// + public DurationWrapper() { } + + /// + /// Initializes a new instance of the DurationWrapper class. + /// + public DurationWrapper(TimeSpan? field = default(TimeSpan?)) + { + Field = field; + } + + /// + /// + [JsonProperty(PropertyName = "field")] + public TimeSpan? Field { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Error.cs new file mode 100644 index 0000000000..514afda164 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ErrorException.cs new file mode 100644 index 0000000000..f334842b9b --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Fish.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Fish.cs new file mode 100644 index 0000000000..8738a13758 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Fish.cs @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Fish + { + /// + /// Initializes a new instance of the Fish class. + /// + public Fish() { } + + /// + /// Initializes a new instance of the Fish class. + /// + public Fish(double length, string species = default(string), IList siblings = default(IList)) + { + Species = species; + Length = length; + Siblings = siblings; + } + + /// + /// + [JsonProperty(PropertyName = "species")] + public string Species { get; set; } + + /// + /// + [JsonProperty(PropertyName = "length")] + public double Length { get; set; } + + /// + /// + [JsonProperty(PropertyName = "siblings")] + public IList Siblings { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (this.Siblings != null) + { + foreach (var element in this.Siblings) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/FloatWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/FloatWrapper.cs new file mode 100644 index 0000000000..b15a8a52f4 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/FloatWrapper.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class FloatWrapper + { + /// + /// Initializes a new instance of the FloatWrapper class. + /// + public FloatWrapper() { } + + /// + /// Initializes a new instance of the FloatWrapper class. + /// + public FloatWrapper(double? field1 = default(double?), double? field2 = default(double?)) + { + Field1 = field1; + Field2 = field2; + } + + /// + /// + [JsonProperty(PropertyName = "field1")] + public double? Field1 { get; set; } + + /// + /// + [JsonProperty(PropertyName = "field2")] + public double? Field2 { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs new file mode 100644 index 0000000000..e480a63cae --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + [JsonObject("goblin")] + public partial class Goblinshark : Shark + { + /// + /// Initializes a new instance of the Goblinshark class. + /// + public Goblinshark() { } + + /// + /// Initializes a new instance of the Goblinshark class. + /// + public Goblinshark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?), int? jawsize = default(int?)) + : base(length, birthday, species, siblings, age) + { + Jawsize = jawsize; + } + + /// + /// + [JsonProperty(PropertyName = "jawsize")] + public int? Jawsize { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/IntWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/IntWrapper.cs new file mode 100644 index 0000000000..c3161cad01 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/IntWrapper.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class IntWrapper + { + /// + /// Initializes a new instance of the IntWrapper class. + /// + public IntWrapper() { } + + /// + /// Initializes a new instance of the IntWrapper class. + /// + public IntWrapper(int? field1 = default(int?), int? field2 = default(int?)) + { + Field1 = field1; + Field2 = field2; + } + + /// + /// + [JsonProperty(PropertyName = "field1")] + public int? Field1 { get; set; } + + /// + /// + [JsonProperty(PropertyName = "field2")] + public int? Field2 { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/LongWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/LongWrapper.cs new file mode 100644 index 0000000000..71541e4c71 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/LongWrapper.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class LongWrapper + { + /// + /// Initializes a new instance of the LongWrapper class. + /// + public LongWrapper() { } + + /// + /// Initializes a new instance of the LongWrapper class. + /// + public LongWrapper(long? field1 = default(long?), long? field2 = default(long?)) + { + Field1 = field1; + Field2 = field2; + } + + /// + /// + [JsonProperty(PropertyName = "field1")] + public long? Field1 { get; set; } + + /// + /// + [JsonProperty(PropertyName = "field2")] + public long? Field2 { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Pet.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Pet.cs new file mode 100644 index 0000000000..ca12ebb78a --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Pet.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Pet + { + /// + /// Initializes a new instance of the Pet class. + /// + public Pet() { } + + /// + /// Initializes a new instance of the Pet class. + /// + public Pet(int? id = default(int?), string name = default(string)) + { + Id = id; + Name = name; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public int? Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ReadonlyObj.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ReadonlyObj.cs new file mode 100644 index 0000000000..93da6be2b5 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ReadonlyObj.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class ReadonlyObj + { + /// + /// Initializes a new instance of the ReadonlyObj class. + /// + public ReadonlyObj() { } + + /// + /// Initializes a new instance of the ReadonlyObj class. + /// + public ReadonlyObj(string id = default(string), int? size = default(int?)) + { + Id = id; + Size = size; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// + [JsonProperty(PropertyName = "size")] + public int? Size { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Salmon.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Salmon.cs new file mode 100644 index 0000000000..17bd884c05 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Salmon.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + [JsonObject("salmon")] + public partial class Salmon : Fish + { + /// + /// Initializes a new instance of the Salmon class. + /// + public Salmon() { } + + /// + /// Initializes a new instance of the Salmon class. + /// + public Salmon(double length, string species = default(string), IList siblings = default(IList), string location = default(string), bool? iswild = default(bool?)) + : base(length, species, siblings) + { + Location = location; + Iswild = iswild; + } + + /// + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// + [JsonProperty(PropertyName = "iswild")] + public bool? Iswild { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Sawshark.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Sawshark.cs new file mode 100644 index 0000000000..80cb14029c --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Sawshark.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + [JsonObject("sawshark")] + public partial class Sawshark : Shark + { + /// + /// Initializes a new instance of the Sawshark class. + /// + public Sawshark() { } + + /// + /// Initializes a new instance of the Sawshark class. + /// + public Sawshark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?), byte[] picture = default(byte[])) + : base(length, birthday, species, siblings, age) + { + Picture = picture; + } + + /// + /// + [JsonProperty(PropertyName = "picture")] + public byte[] Picture { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Shark.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Shark.cs new file mode 100644 index 0000000000..dedaa8f7b0 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Shark.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + [JsonObject("shark")] + public partial class Shark : Fish + { + /// + /// Initializes a new instance of the Shark class. + /// + public Shark() { } + + /// + /// Initializes a new instance of the Shark class. + /// + public Shark(double length, DateTime birthday, string species = default(string), IList siblings = default(IList), int? age = default(int?)) + : base(length, species, siblings) + { + Age = age; + Birthday = birthday; + } + + /// + /// + [JsonProperty(PropertyName = "age")] + public int? Age { get; set; } + + /// + /// + [JsonProperty(PropertyName = "birthday")] + public DateTime Birthday { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Siamese.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Siamese.cs new file mode 100644 index 0000000000..08f66d01c8 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Siamese.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Siamese : Cat + { + /// + /// Initializes a new instance of the Siamese class. + /// + public Siamese() { } + + /// + /// Initializes a new instance of the Siamese class. + /// + public Siamese(int? id = default(int?), string name = default(string), string color = default(string), IList hates = default(IList), string breed = default(string)) + : base(id, name, color, hates) + { + Breed = breed; + } + + /// + /// + [JsonProperty(PropertyName = "breed")] + public string Breed { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/StringWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/StringWrapper.cs new file mode 100644 index 0000000000..18640ccf60 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/StringWrapper.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyComplex.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class StringWrapper + { + /// + /// Initializes a new instance of the StringWrapper class. + /// + public StringWrapper() { } + + /// + /// Initializes a new instance of the StringWrapper class. + /// + public StringWrapper(string field = default(string), string empty = default(string), string nullProperty = default(string)) + { + Field = field; + Empty = empty; + NullProperty = nullProperty; + } + + /// + /// + [JsonProperty(PropertyName = "field")] + public string Field { get; set; } + + /// + /// + [JsonProperty(PropertyName = "empty")] + public string Empty { get; set; } + + /// + /// + [JsonProperty(PropertyName = "null")] + public string NullProperty { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/Error.cs new file mode 100644 index 0000000000..477d866f98 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyDate.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/ErrorException.cs new file mode 100644 index 0000000000..9e379980da --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyDate.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/Error.cs new file mode 100644 index 0000000000..7b13933619 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyDateTime.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/ErrorException.cs new file mode 100644 index 0000000000..ceeebe2fe5 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyDateTime.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/Error.cs new file mode 100644 index 0000000000..23e7a07a20 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyDateTimeRfc1123.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/ErrorException.cs new file mode 100644 index 0000000000..7dfe1036d0 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyDateTimeRfc1123.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Error.cs new file mode 100644 index 0000000000..b8cd26bd67 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyDictionary.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/ErrorException.cs new file mode 100644 index 0000000000..201f921d77 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyDictionary.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs new file mode 100644 index 0000000000..e4b382611d --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyDictionary.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Widget + { + /// + /// Initializes a new instance of the Widget class. + /// + public Widget() { } + + /// + /// Initializes a new instance of the Widget class. + /// + public Widget(int? integer = default(int?), string stringProperty = default(string)) + { + Integer = integer; + StringProperty = stringProperty; + } + + /// + /// + [JsonProperty(PropertyName = "integer")] + public int? Integer { get; set; } + + /// + /// + [JsonProperty(PropertyName = "string")] + public string StringProperty { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/Error.cs new file mode 100644 index 0000000000..52a0c19689 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyDuration.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/ErrorException.cs new file mode 100644 index 0000000000..231fbad828 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyDuration.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/Error.cs new file mode 100644 index 0000000000..faf666cd60 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyFile.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/ErrorException.cs new file mode 100644 index 0000000000..204e3b078d --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyFile.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/Error.cs new file mode 100644 index 0000000000..15121bfcc5 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyFormData.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/ErrorException.cs new file mode 100644 index 0000000000..6f3755c59c --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyFormData.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/Error.cs new file mode 100644 index 0000000000..cbcefbbe58 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyInteger.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/ErrorException.cs new file mode 100644 index 0000000000..5fb0256ac6 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyInteger.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/Error.cs new file mode 100644 index 0000000000..d2452a351d --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyNumber.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/ErrorException.cs new file mode 100644 index 0000000000..3dda25b781 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyNumber.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Colors.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Colors.cs new file mode 100644 index 0000000000..b61db9d4a2 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Colors.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyString.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime.Serialization; + + /// + /// Defines values for Colors. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum Colors + { + [EnumMember(Value = "red color")] + Redcolor, + [EnumMember(Value = "green-color")] + GreenColor, + [EnumMember(Value = "blue_color")] + BlueColor + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Error.cs new file mode 100644 index 0000000000..d7058c412a --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyString.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/ErrorException.cs new file mode 100644 index 0000000000..7cc4ee3563 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsBodyString.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/Error.cs new file mode 100644 index 0000000000..a958d37583 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsCompositeBoolIntClient.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/ErrorException.cs new file mode 100644 index 0000000000..a3ca0017a6 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsCompositeBoolIntClient.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs new file mode 100644 index 0000000000..d5cb68252c --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsCustomBaseUri.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs new file mode 100644 index 0000000000..36c220ba33 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsCustomBaseUri.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/Error.cs new file mode 100644 index 0000000000..82a4873e61 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsCustomBaseUriMoreOptions.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/ErrorException.cs new file mode 100644 index 0000000000..e3ab1c0a08 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsCustomBaseUriMoreOptions.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/Error.cs new file mode 100644 index 0000000000..c45347a0ff --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/ErrorException.cs new file mode 100644 index 0000000000..c2fac7576e --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/GreyscaleColors.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/GreyscaleColors.cs new file mode 100644 index 0000000000..dafdc0d6ce --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/GreyscaleColors.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime.Serialization; + + /// + /// Defines values for GreyscaleColors. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum GreyscaleColors + { + [EnumMember(Value = "White")] + White, + [EnumMember(Value = "black")] + Black, + [EnumMember(Value = "GREY")] + GREY + } +} 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 new file mode 100644 index 0000000000..3461139ace --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseBoolHeaders.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseBool operation. + /// + public partial class HeaderResponseBoolHeaders + { + /// + /// Initializes a new instance of the HeaderResponseBoolHeaders class. + /// + public HeaderResponseBoolHeaders() { } + + /// + /// Initializes a new instance of the HeaderResponseBoolHeaders class. + /// + public HeaderResponseBoolHeaders(bool? value = default(bool?)) + { + Value = value; + } + + /// + /// 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 new file mode 100644 index 0000000000..742bece921 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseByteHeaders.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseByte operation. + /// + public partial class HeaderResponseByteHeaders + { + /// + /// Initializes a new instance of the HeaderResponseByteHeaders class. + /// + public HeaderResponseByteHeaders() { } + + /// + /// Initializes a new instance of the HeaderResponseByteHeaders class. + /// + public HeaderResponseByteHeaders(byte[] value = default(byte[])) + { + Value = value; + } + + /// + /// 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 new file mode 100644 index 0000000000..e00cbc0955 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDateHeaders.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseDate operation. + /// + public partial class HeaderResponseDateHeaders + { + /// + /// Initializes a new instance of the HeaderResponseDateHeaders class. + /// + public HeaderResponseDateHeaders() { } + + /// + /// Initializes a new instance of the HeaderResponseDateHeaders class. + /// + public HeaderResponseDateHeaders(DateTime? value = default(DateTime?)) + { + Value = value; + } + + /// + /// Gets or sets response with header values "2010-01-01" or + /// "0001-01-01" + /// + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "value")] + public DateTime? Value { get; set; } + + } +} 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 new file mode 100644 index 0000000000..cffbd34216 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeHeaders.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseDatetime operation. + /// + public partial class HeaderResponseDatetimeHeaders + { + /// + /// Initializes a new instance of the HeaderResponseDatetimeHeaders + /// class. + /// + public HeaderResponseDatetimeHeaders() { } + + /// + /// Initializes a new instance of the HeaderResponseDatetimeHeaders + /// class. + /// + public HeaderResponseDatetimeHeaders(DateTime? value = default(DateTime?)) + { + Value = value; + } + + /// + /// Gets or sets response with header values "2010-01-01T12:34:56Z" or + /// "0001-01-01T00:00:00Z" + /// + [JsonProperty(PropertyName = "value")] + public DateTime? Value { get; set; } + + } +} 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 new file mode 100644 index 0000000000..f188e986ab --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeRfc1123Headers.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseDatetimeRfc1123 operation. + /// + public partial class HeaderResponseDatetimeRfc1123Headers + { + /// + /// Initializes a new instance of the + /// HeaderResponseDatetimeRfc1123Headers class. + /// + public HeaderResponseDatetimeRfc1123Headers() { } + + /// + /// Initializes a new instance of the + /// HeaderResponseDatetimeRfc1123Headers class. + /// + public HeaderResponseDatetimeRfc1123Headers(DateTime? value = default(DateTime?)) + { + Value = value; + } + + /// + /// 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")] + public DateTime? Value { get; set; } + + } +} 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 new file mode 100644 index 0000000000..e34f3b911d --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDoubleHeaders.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseDouble operation. + /// + public partial class HeaderResponseDoubleHeaders + { + /// + /// Initializes a new instance of the HeaderResponseDoubleHeaders + /// class. + /// + public HeaderResponseDoubleHeaders() { } + + /// + /// Initializes a new instance of the HeaderResponseDoubleHeaders + /// class. + /// + public HeaderResponseDoubleHeaders(double? value = default(double?)) + { + Value = value; + } + + /// + /// 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 new file mode 100644 index 0000000000..2795657f73 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDurationHeaders.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseDuration operation. + /// + public partial class HeaderResponseDurationHeaders + { + /// + /// Initializes a new instance of the HeaderResponseDurationHeaders + /// class. + /// + public HeaderResponseDurationHeaders() { } + + /// + /// Initializes a new instance of the HeaderResponseDurationHeaders + /// class. + /// + public HeaderResponseDurationHeaders(TimeSpan? value = default(TimeSpan?)) + { + Value = value; + } + + /// + /// 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 new file mode 100644 index 0000000000..f955fca276 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseEnumHeaders.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseEnum operation. + /// + public partial class HeaderResponseEnumHeaders + { + /// + /// Initializes a new instance of the HeaderResponseEnumHeaders class. + /// + public HeaderResponseEnumHeaders() { } + + /// + /// Initializes a new instance of the HeaderResponseEnumHeaders class. + /// + public HeaderResponseEnumHeaders(GreyscaleColors? value = default(GreyscaleColors?)) + { + Value = value; + } + + /// + /// 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 new file mode 100644 index 0000000000..42a5c1aeda --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseExistingKeyHeaders.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseExistingKey operation. + /// + public partial class HeaderResponseExistingKeyHeaders + { + /// + /// Initializes a new instance of the HeaderResponseExistingKeyHeaders + /// class. + /// + public HeaderResponseExistingKeyHeaders() { } + + /// + /// Initializes a new instance of the HeaderResponseExistingKeyHeaders + /// class. + /// + public HeaderResponseExistingKeyHeaders(string userAgent = default(string)) + { + UserAgent = userAgent; + } + + /// + /// 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 new file mode 100644 index 0000000000..6e5353a3fc --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseFloatHeaders.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseFloat operation. + /// + public partial class HeaderResponseFloatHeaders + { + /// + /// Initializes a new instance of the HeaderResponseFloatHeaders class. + /// + public HeaderResponseFloatHeaders() { } + + /// + /// Initializes a new instance of the HeaderResponseFloatHeaders class. + /// + public HeaderResponseFloatHeaders(double? value = default(double?)) + { + Value = value; + } + + /// + /// 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 new file mode 100644 index 0000000000..3ce8bd066a --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseIntegerHeaders.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseInteger operation. + /// + public partial class HeaderResponseIntegerHeaders + { + /// + /// Initializes a new instance of the HeaderResponseIntegerHeaders + /// class. + /// + public HeaderResponseIntegerHeaders() { } + + /// + /// Initializes a new instance of the HeaderResponseIntegerHeaders + /// class. + /// + public HeaderResponseIntegerHeaders(int? value = default(int?)) + { + Value = value; + } + + /// + /// 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 new file mode 100644 index 0000000000..6e15f2eecc --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseLongHeaders.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseLong operation. + /// + public partial class HeaderResponseLongHeaders + { + /// + /// Initializes a new instance of the HeaderResponseLongHeaders class. + /// + public HeaderResponseLongHeaders() { } + + /// + /// Initializes a new instance of the HeaderResponseLongHeaders class. + /// + public HeaderResponseLongHeaders(long? value = default(long?)) + { + Value = value; + } + + /// + /// 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 new file mode 100644 index 0000000000..7adbdf29be --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseProtectedKeyHeaders.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseProtectedKey operation. + /// + public partial class HeaderResponseProtectedKeyHeaders + { + /// + /// Initializes a new instance of the + /// HeaderResponseProtectedKeyHeaders class. + /// + public HeaderResponseProtectedKeyHeaders() { } + + /// + /// Initializes a new instance of the + /// HeaderResponseProtectedKeyHeaders class. + /// + public HeaderResponseProtectedKeyHeaders(string contentType = default(string)) + { + ContentType = contentType; + } + + /// + /// 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 new file mode 100644 index 0000000000..0744f2115b --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseStringHeaders.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHeader.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for responseString operation. + /// + public partial class HeaderResponseStringHeaders + { + /// + /// Initializes a new instance of the HeaderResponseStringHeaders + /// class. + /// + public HeaderResponseStringHeaders() { } + + /// + /// Initializes a new instance of the HeaderResponseStringHeaders + /// class. + /// + public HeaderResponseStringHeaders(string value = default(string)) + { + Value = value; + } + + /// + /// 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/A.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/A.cs new file mode 100644 index 0000000000..9e193a406e --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/A.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class A + { + /// + /// Initializes a new instance of the A class. + /// + public A() { } + + /// + /// Initializes a new instance of the A class. + /// + public A(string statusCode = default(string)) + { + StatusCode = statusCode; + } + + /// + /// + [JsonProperty(PropertyName = "statusCode")] + public string StatusCode { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/B.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/B.cs new file mode 100644 index 0000000000..3177ffa857 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/B.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class B : A + { + /// + /// Initializes a new instance of the B class. + /// + public B() { } + + /// + /// Initializes a new instance of the B class. + /// + public B(string statusCode = default(string), string textStatusCode = default(string)) + : base(statusCode) + { + TextStatusCode = textStatusCode; + } + + /// + /// + [JsonProperty(PropertyName = "textStatusCode")] + public string TextStatusCode { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/C.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/C.cs new file mode 100644 index 0000000000..62673b3dd2 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/C.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class C + { + /// + /// Initializes a new instance of the C class. + /// + public C() { } + + /// + /// Initializes a new instance of the C class. + /// + public C(string httpCode = default(string)) + { + HttpCode = httpCode; + } + + /// + /// + [JsonProperty(PropertyName = "httpCode")] + public string HttpCode { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/D.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/D.cs new file mode 100644 index 0000000000..99ae399f6d --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/D.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class D + { + /// + /// Initializes a new instance of the D class. + /// + public D() { } + + /// + /// Initializes a new instance of the D class. + /// + public D(string httpStatusCode = default(string)) + { + HttpStatusCode = httpStatusCode; + } + + /// + /// + [JsonProperty(PropertyName = "httpStatusCode")] + public string HttpStatusCode { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/Error.cs new file mode 100644 index 0000000000..6a712b92a7 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/ErrorException.cs new file mode 100644 index 0000000000..276401c1d7 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} 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 new file mode 100644 index 0000000000..999dd9f164 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsDelete307Headers.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for delete307 operation. + /// + public partial class HttpRedirectsDelete307Headers + { + /// + /// Initializes a new instance of the HttpRedirectsDelete307Headers + /// class. + /// + public HttpRedirectsDelete307Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsDelete307Headers + /// class. + /// + public HttpRedirectsDelete307Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..ad0dacb9d1 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet300Headers.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for get300 operation. + /// + public partial class HttpRedirectsGet300Headers + { + /// + /// Initializes a new instance of the HttpRedirectsGet300Headers class. + /// + public HttpRedirectsGet300Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsGet300Headers class. + /// + public HttpRedirectsGet300Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..2a543db397 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet301Headers.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for get301 operation. + /// + public partial class HttpRedirectsGet301Headers + { + /// + /// Initializes a new instance of the HttpRedirectsGet301Headers class. + /// + public HttpRedirectsGet301Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsGet301Headers class. + /// + public HttpRedirectsGet301Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..59b8579041 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet302Headers.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for get302 operation. + /// + public partial class HttpRedirectsGet302Headers + { + /// + /// Initializes a new instance of the HttpRedirectsGet302Headers class. + /// + public HttpRedirectsGet302Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsGet302Headers class. + /// + public HttpRedirectsGet302Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..73111e08f2 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet307Headers.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for get307 operation. + /// + public partial class HttpRedirectsGet307Headers + { + /// + /// Initializes a new instance of the HttpRedirectsGet307Headers class. + /// + public HttpRedirectsGet307Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsGet307Headers class. + /// + public HttpRedirectsGet307Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..3970436db8 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead300Headers.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for head300 operation. + /// + public partial class HttpRedirectsHead300Headers + { + /// + /// Initializes a new instance of the HttpRedirectsHead300Headers + /// class. + /// + public HttpRedirectsHead300Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsHead300Headers + /// class. + /// + public HttpRedirectsHead300Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..aed6cb6c51 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead301Headers.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for head301 operation. + /// + public partial class HttpRedirectsHead301Headers + { + /// + /// Initializes a new instance of the HttpRedirectsHead301Headers + /// class. + /// + public HttpRedirectsHead301Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsHead301Headers + /// class. + /// + public HttpRedirectsHead301Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..797193619a --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead302Headers.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for head302 operation. + /// + public partial class HttpRedirectsHead302Headers + { + /// + /// Initializes a new instance of the HttpRedirectsHead302Headers + /// class. + /// + public HttpRedirectsHead302Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsHead302Headers + /// class. + /// + public HttpRedirectsHead302Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..dd01aa2366 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead307Headers.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for head307 operation. + /// + public partial class HttpRedirectsHead307Headers + { + /// + /// Initializes a new instance of the HttpRedirectsHead307Headers + /// class. + /// + public HttpRedirectsHead307Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsHead307Headers + /// class. + /// + public HttpRedirectsHead307Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..8178b6f377 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch302Headers.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for patch302 operation. + /// + public partial class HttpRedirectsPatch302Headers + { + /// + /// Initializes a new instance of the HttpRedirectsPatch302Headers + /// class. + /// + public HttpRedirectsPatch302Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsPatch302Headers + /// class. + /// + public HttpRedirectsPatch302Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..d94f9c8ac7 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch307Headers.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for patch307 operation. + /// + public partial class HttpRedirectsPatch307Headers + { + /// + /// Initializes a new instance of the HttpRedirectsPatch307Headers + /// class. + /// + public HttpRedirectsPatch307Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsPatch307Headers + /// class. + /// + public HttpRedirectsPatch307Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..9f6ac78695 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost303Headers.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for post303 operation. + /// + public partial class HttpRedirectsPost303Headers + { + /// + /// Initializes a new instance of the HttpRedirectsPost303Headers + /// class. + /// + public HttpRedirectsPost303Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsPost303Headers + /// class. + /// + public HttpRedirectsPost303Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..3f6ee41fd2 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost307Headers.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for post307 operation. + /// + public partial class HttpRedirectsPost307Headers + { + /// + /// Initializes a new instance of the HttpRedirectsPost307Headers + /// class. + /// + public HttpRedirectsPost307Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsPost307Headers + /// class. + /// + public HttpRedirectsPost307Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..3eb3f2fe37 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut301Headers.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for put301 operation. + /// + public partial class HttpRedirectsPut301Headers + { + /// + /// Initializes a new instance of the HttpRedirectsPut301Headers class. + /// + public HttpRedirectsPut301Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsPut301Headers class. + /// + public HttpRedirectsPut301Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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 new file mode 100644 index 0000000000..a4cbbc843f --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut307Headers.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for put307 operation. + /// + public partial class HttpRedirectsPut307Headers + { + /// + /// Initializes a new instance of the HttpRedirectsPut307Headers class. + /// + public HttpRedirectsPut307Headers() { } + + /// + /// Initializes a new instance of the HttpRedirectsPut307Headers class. + /// + public HttpRedirectsPut307Headers(string location = default(string)) + { + Location = location; + } + + /// + /// 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/MyException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/MyException.cs new file mode 100644 index 0000000000..c8e557c9ea --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Http/Models/MyException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsHttp.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with A information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class MyException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public A Body { get; set; } + + /// + /// Initializes a new instance of the MyException class. + /// + public MyException() + { + } + + /// + /// Initializes a new instance of the MyException class. + /// + /// The exception message. + public MyException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the MyException class. + /// + /// The exception message. + /// Inner exception. + public MyException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the MyException class. + /// + /// Serialization info. + /// Streaming context. + protected MyException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} 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 new file mode 100644 index 0000000000..3615d58922 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/BaseProduct.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsModelFlattening.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// The product documentation. + /// + public partial class BaseProduct + { + /// + /// Initializes a new instance of the BaseProduct class. + /// + public BaseProduct() { } + + /// + /// Initializes a new instance of the BaseProduct class. + /// + public BaseProduct(string productId, string description = default(string)) + { + ProductId = productId; + Description = description; + } + + /// + /// 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; } + + /// + /// Gets or sets description of product. + /// + [JsonProperty(PropertyName = "base_product_description")] + public string Description { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (ProductId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ProductId"); + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Error.cs new file mode 100644 index 0000000000..557762b0c0 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Error.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsModelFlattening.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string), Error parentError = default(Error)) + { + Status = status; + Message = message; + ParentError = parentError; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// + [JsonProperty(PropertyName = "parentError")] + public Error ParentError { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ErrorException.cs new file mode 100644 index 0000000000..5d1edcbaa0 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsModelFlattening.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} 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 new file mode 100644 index 0000000000..fac4cd5c66 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenParameterGroup.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsModelFlattening.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Additional parameters for the putSimpleProductWithGrouping operation. + /// + [JsonTransformation] + public partial class FlattenParameterGroup + { + /// + /// Initializes a new instance of the FlattenParameterGroup class. + /// + public FlattenParameterGroup() { } + + /// + /// Initializes a new instance of the FlattenParameterGroup class. + /// + public FlattenParameterGroup(string name, string productId, string maxProductDisplayName, string description = default(string), string genericValue = default(string), string odatavalue = default(string)) + { + Name = name; + ProductId = productId; + Description = description; + MaxProductDisplayName = maxProductDisplayName; + GenericValue = genericValue; + Odatavalue = odatavalue; + } + + /// + /// Gets or sets product name with value 'groupproduct' + /// + [JsonProperty(PropertyName = "")] + public string Name { get; set; } + + /// + /// 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; } + + /// + /// Gets or sets description of product. + /// + [JsonProperty(PropertyName = "")] + public string Description { get; set; } + + /// + /// Gets or sets display name of product. + /// + [JsonProperty(PropertyName = "")] + public string MaxProductDisplayName { get; set; } + + /// + /// Gets or sets generic URL value. + /// + [JsonProperty(PropertyName = "")] + public string GenericValue { get; set; } + + /// + /// Gets or sets URL value. + /// + [JsonProperty(PropertyName = "")] + public string Odatavalue { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (ProductId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ProductId"); + } + if (MaxProductDisplayName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "MaxProductDisplayName"); + } + } + } +} 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 new file mode 100644 index 0000000000..415f53a6e3 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenedProduct.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsModelFlattening.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + [JsonTransformation] + public partial class FlattenedProduct : Resource + { + /// + /// Initializes a new instance of the FlattenedProduct class. + /// + public FlattenedProduct() { } + + /// + /// Initializes a new instance of the FlattenedProduct class. + /// + public FlattenedProduct(string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string name = default(string), string pname = default(string), string flattenedProductType = default(string), string provisioningStateValues = default(string), string provisioningState = default(string)) + : base(id, type, tags, location, name) + { + Pname = pname; + FlattenedProductType = flattenedProductType; + ProvisioningStateValues = provisioningStateValues; + ProvisioningState = provisioningState; + } + + /// + /// + [JsonProperty(PropertyName = "properties.pname")] + public string Pname { get; set; } + + /// + /// + [JsonProperty(PropertyName = "properties.type")] + public string FlattenedProductType { get; set; } + + /// + /// Gets possible values include: 'Succeeded', 'Failed', 'canceled', + /// 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', + /// 'Deleting', 'Deleted', 'OK' + /// + [JsonProperty(PropertyName = "properties.provisioningStateValues")] + public string ProvisioningStateValues { get; private set; } + + /// + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + } +} 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 new file mode 100644 index 0000000000..2022f0d0a0 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/GenericUrl.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsModelFlattening.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// The Generic URL. + /// + public partial class GenericUrl + { + /// + /// Initializes a new instance of the GenericUrl class. + /// + public GenericUrl() { } + + /// + /// Initializes a new instance of the GenericUrl class. + /// + public GenericUrl(string genericValue = default(string)) + { + GenericValue = genericValue; + } + + /// + /// 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 new file mode 100644 index 0000000000..5679632fe9 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Resource.cs @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsModelFlattening.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Resource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() { } + + /// + /// Initializes a new instance of the Resource class. + /// + public Resource(string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string name = default(string)) + { + Id = id; + Type = type; + Tags = tags; + Location = location; + Name = name; + } + + /// + /// Gets resource Id + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets resource Type + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets resource Location + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets resource Name + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ResourceCollection.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ResourceCollection.cs new file mode 100644 index 0000000000..33cf29ab4f --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ResourceCollection.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsModelFlattening.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class ResourceCollection + { + /// + /// Initializes a new instance of the ResourceCollection class. + /// + public ResourceCollection() { } + + /// + /// Initializes a new instance of the ResourceCollection class. + /// + public ResourceCollection(FlattenedProduct productresource = default(FlattenedProduct), IList arrayofresources = default(IList), IDictionary dictionaryofresources = default(IDictionary)) + { + Productresource = productresource; + Arrayofresources = arrayofresources; + Dictionaryofresources = dictionaryofresources; + } + + /// + /// + [JsonProperty(PropertyName = "productresource")] + public FlattenedProduct Productresource { get; set; } + + /// + /// + [JsonProperty(PropertyName = "arrayofresources")] + public IList Arrayofresources { get; set; } + + /// + /// + [JsonProperty(PropertyName = "dictionaryofresources")] + public IDictionary Dictionaryofresources { get; 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 new file mode 100644 index 0000000000..4ae8f66017 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/SimpleProduct.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsModelFlattening.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// The product documentation. + /// + [JsonTransformation] + public partial class SimpleProduct : BaseProduct + { + /// + /// Initializes a new instance of the SimpleProduct class. + /// + public SimpleProduct() { } + + /// + /// Initializes a new instance of the SimpleProduct class. + /// + public SimpleProduct(string productId, string maxProductDisplayName, string description = default(string), string genericValue = default(string), string odatavalue = default(string)) + : base(productId, description) + { + MaxProductDisplayName = maxProductDisplayName; + GenericValue = genericValue; + Odatavalue = odatavalue; + } + /// + /// Static constructor for SimpleProduct class. + /// + static SimpleProduct() + { + Capacity = "Large"; + } + + /// + /// Gets or sets display name of product. + /// + [JsonProperty(PropertyName = "details.max_product_display_name")] + public string MaxProductDisplayName { get; set; } + + /// + /// Gets or sets generic URL value. + /// + [JsonProperty(PropertyName = "details.max_product_image.generic_value")] + public string GenericValue { get; set; } + + /// + /// Gets or sets URL value. + /// + [JsonProperty(PropertyName = "details.max_product_image.@odata\\.value")] + public string Odatavalue { get; set; } + + /// + /// Capacity of product. For example, 4 people. + /// + [JsonProperty(PropertyName = "details.max_product_capacity")] + public static string Capacity { get; private set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public override void Validate() + { + base.Validate(); + if (MaxProductDisplayName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "MaxProductDisplayName"); + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/Models/AvailabilitySetUpdateParameters.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/Models/AvailabilitySetUpdateParameters.cs new file mode 100644 index 0000000000..d8568b9039 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/Models/AvailabilitySetUpdateParameters.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsParameterFlattening.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class AvailabilitySetUpdateParameters + { + /// + /// Initializes a new instance of the AvailabilitySetUpdateParameters + /// class. + /// + public AvailabilitySetUpdateParameters() { } + + /// + /// Initializes a new instance of the AvailabilitySetUpdateParameters + /// class. + /// + public AvailabilitySetUpdateParameters(IDictionary tags) + { + Tags = tags; + } + + /// + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (Tags == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Tags"); + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/Error.cs new file mode 100644 index 0000000000..4d97a761c0 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsReport.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/ErrorException.cs new file mode 100644 index 0000000000..226d74461b --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Report/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsReport.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayOptionalWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayOptionalWrapper.cs new file mode 100644 index 0000000000..045db62662 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayOptionalWrapper.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsRequiredOptional.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class ArrayOptionalWrapper + { + /// + /// Initializes a new instance of the ArrayOptionalWrapper class. + /// + public ArrayOptionalWrapper() { } + + /// + /// Initializes a new instance of the ArrayOptionalWrapper class. + /// + public ArrayOptionalWrapper(IList value = default(IList)) + { + Value = value; + } + + /// + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayWrapper.cs new file mode 100644 index 0000000000..101d3e588f --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayWrapper.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsRequiredOptional.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class ArrayWrapper + { + /// + /// Initializes a new instance of the ArrayWrapper class. + /// + public ArrayWrapper() { } + + /// + /// Initializes a new instance of the ArrayWrapper class. + /// + public ArrayWrapper(IList value) + { + Value = value; + } + + /// + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (Value == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Value"); + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassOptionalWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassOptionalWrapper.cs new file mode 100644 index 0000000000..32fef16702 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassOptionalWrapper.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsRequiredOptional.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class ClassOptionalWrapper + { + /// + /// Initializes a new instance of the ClassOptionalWrapper class. + /// + public ClassOptionalWrapper() { } + + /// + /// Initializes a new instance of the ClassOptionalWrapper class. + /// + public ClassOptionalWrapper(Product value = default(Product)) + { + Value = value; + } + + /// + /// + [JsonProperty(PropertyName = "value")] + public Product Value { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (this.Value != null) + { + this.Value.Validate(); + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassWrapper.cs new file mode 100644 index 0000000000..b68593278a --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassWrapper.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsRequiredOptional.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class ClassWrapper + { + /// + /// Initializes a new instance of the ClassWrapper class. + /// + public ClassWrapper() { } + + /// + /// Initializes a new instance of the ClassWrapper class. + /// + public ClassWrapper(Product value) + { + Value = value; + } + + /// + /// + [JsonProperty(PropertyName = "value")] + public Product Value { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (Value == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Value"); + } + if (this.Value != null) + { + this.Value.Validate(); + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Error.cs new file mode 100644 index 0000000000..5bd977f352 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsRequiredOptional.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ErrorException.cs new file mode 100644 index 0000000000..fbdac38d5e --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsRequiredOptional.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntOptionalWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntOptionalWrapper.cs new file mode 100644 index 0000000000..05d51f9608 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntOptionalWrapper.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsRequiredOptional.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class IntOptionalWrapper + { + /// + /// Initializes a new instance of the IntOptionalWrapper class. + /// + public IntOptionalWrapper() { } + + /// + /// Initializes a new instance of the IntOptionalWrapper class. + /// + public IntOptionalWrapper(int? value = default(int?)) + { + Value = value; + } + + /// + /// + [JsonProperty(PropertyName = "value")] + public int? Value { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs new file mode 100644 index 0000000000..6a2e200ea4 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsRequiredOptional.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class IntWrapper + { + /// + /// Initializes a new instance of the IntWrapper class. + /// + public IntWrapper() { } + + /// + /// Initializes a new instance of the IntWrapper class. + /// + public IntWrapper(int value) + { + Value = value; + } + + /// + /// + [JsonProperty(PropertyName = "value")] + public int Value { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Product.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Product.cs new file mode 100644 index 0000000000..8388def167 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Product.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsRequiredOptional.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Product + { + /// + /// Initializes a new instance of the Product class. + /// + public Product() { } + + /// + /// Initializes a new instance of the Product class. + /// + public Product(int id, string name = default(string)) + { + Id = id; + Name = name; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public int Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringOptionalWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringOptionalWrapper.cs new file mode 100644 index 0000000000..ff99ac0a58 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringOptionalWrapper.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsRequiredOptional.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class StringOptionalWrapper + { + /// + /// Initializes a new instance of the StringOptionalWrapper class. + /// + public StringOptionalWrapper() { } + + /// + /// Initializes a new instance of the StringOptionalWrapper class. + /// + public StringOptionalWrapper(string value = default(string)) + { + Value = value; + } + + /// + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringWrapper.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringWrapper.cs new file mode 100644 index 0000000000..1c0d966bd6 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringWrapper.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsRequiredOptional.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class StringWrapper + { + /// + /// Initializes a new instance of the StringWrapper class. + /// + public StringWrapper() { } + + /// + /// Initializes a new instance of the StringWrapper class. + /// + public StringWrapper(string value) + { + Value = value; + } + + /// + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (Value == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Value"); + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/Error.cs new file mode 100644 index 0000000000..caeedd965d --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/Error.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsUrl.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? status = default(int?), string message = default(string)) + { + Status = status; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "status")] + public int? Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/ErrorException.cs new file mode 100644 index 0000000000..9c3eea8c70 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsUrl.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/UriColor.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/UriColor.cs new file mode 100644 index 0000000000..2cd37ee6c9 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Url/Models/UriColor.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsUrl.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime.Serialization; + + /// + /// Defines values for UriColor. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum UriColor + { + [EnumMember(Value = "red color")] + Redcolor, + [EnumMember(Value = "green color")] + Greencolor, + [EnumMember(Value = "blue color")] + Bluecolor + } +} 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 new file mode 100644 index 0000000000..be68033371 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ChildProduct.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsValidation.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// The product documentation. + /// + public partial class ChildProduct + { + /// + /// Initializes a new instance of the ChildProduct class. + /// + public ChildProduct() { } + + /// + /// Initializes a new instance of the ChildProduct class. + /// + public ChildProduct(int? count = default(int?)) + { + Count = count; + } + /// + /// Static constructor for ChildProduct class. + /// + static ChildProduct() + { + ConstProperty = "constant"; + } + + /// + /// Gets or sets count + /// + [JsonProperty(PropertyName = "count")] + public int? Count { get; set; } + + /// + /// Constant string + /// + [JsonProperty(PropertyName = "constProperty")] + public static string ConstProperty { get; private set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ConstantProduct.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ConstantProduct.cs new file mode 100644 index 0000000000..e706192af7 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ConstantProduct.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsValidation.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// The product documentation. + /// + public partial class ConstantProduct + { + /// + /// Initializes a new instance of the ConstantProduct class. + /// + public ConstantProduct() { } + + /// + /// Static constructor for ConstantProduct class. + /// + static ConstantProduct() + { + ConstProperty = "constant"; + ConstProperty2 = "constant2"; + } + + /// + /// Constant string + /// + [JsonProperty(PropertyName = "constProperty")] + public static string ConstProperty { get; private set; } + + /// + /// Constant string2 + /// + [JsonProperty(PropertyName = "constProperty2")] + public static string ConstProperty2 { get; private set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/EnumConst.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/EnumConst.cs new file mode 100644 index 0000000000..5a54b667af --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/EnumConst.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsValidation.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime.Serialization; + + /// + /// Defines values for EnumConst. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum EnumConst + { + [EnumMember(Value = "constant_string_as_enum")] + ConstantStringAsEnum + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Error.cs new file mode 100644 index 0000000000..41e0a089bf --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Error.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsValidation.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? code = default(int?), string message = default(string), string fields = default(string)) + { + Code = code; + Message = message; + Fields = fields; + } + + /// + /// + [JsonProperty(PropertyName = "code")] + public int? Code { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// + [JsonProperty(PropertyName = "fields")] + public string Fields { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ErrorException.cs new file mode 100644 index 0000000000..1a14ee36a3 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsValidation.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} 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 new file mode 100644 index 0000000000..e434110c5d --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Product.cs @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.AcceptanceTestsValidation.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// The product documentation. + /// + public partial class Product + { + /// + /// Initializes a new instance of the Product class. + /// + public Product() + { + Child = new ChildProduct(); + } + + /// + /// Initializes a new instance of the Product class. + /// + public Product(ChildProduct child, IList displayNames = default(IList), int? capacity = default(int?), string image = default(string), EnumConst? constStringAsEnum = default(EnumConst?)) + { + Child = new ChildProduct(); + DisplayNames = displayNames; + Capacity = capacity; + Image = image; + Child = child; + ConstStringAsEnum = constStringAsEnum; + } + /// + /// Static constructor for Product class. + /// + static Product() + { + ConstChild = new ConstantProduct(); + ConstInt = 0; + ConstString = "constant"; + } + + /// + /// Gets or sets non required array of unique items from 0 to 6 + /// elements. + /// + [JsonProperty(PropertyName = "display_names")] + public IList DisplayNames { get; set; } + + /// + /// Gets or sets non required int betwen 0 and 100 exclusive. + /// + [JsonProperty(PropertyName = "capacity")] + public int? Capacity { get; set; } + + /// + /// Gets or sets image URL representing the product. + /// + [JsonProperty(PropertyName = "image")] + public string Image { get; set; } + + /// + /// + [JsonProperty(PropertyName = "child")] + public ChildProduct Child { get; set; } + + /// + /// Gets or sets constant string as Enum. Possible values include: + /// 'constant_string_as_enum' + /// + [JsonProperty(PropertyName = "constStringAsEnum")] + public EnumConst? ConstStringAsEnum { get; set; } + + /// + /// + [JsonProperty(PropertyName = "constChild")] + public static ConstantProduct ConstChild { get; private set; } + + /// + /// Constant int + /// + [JsonProperty(PropertyName = "constInt")] + public static int ConstInt { get; private set; } + + /// + /// Constant string + /// + [JsonProperty(PropertyName = "constString")] + public static string ConstString { get; private set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (Child == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Child"); + } + if (this.DisplayNames != null) + { + if (this.DisplayNames.Count > 6) + { + throw new ValidationException(ValidationRules.MaxItems, "DisplayNames", 6); + } + if (this.DisplayNames.Count < 0) + { + throw new ValidationException(ValidationRules.MinItems, "DisplayNames", 0); + } + if (this.DisplayNames.Count != this.DisplayNames.Distinct().Count()) + { + throw new ValidationException(ValidationRules.UniqueItems, "DisplayNames"); + } + } + if (this.Capacity >= 100) + { + throw new ValidationException(ValidationRules.ExclusiveMaximum, "Capacity", 100); + } + if (this.Capacity <= 0) + { + throw new ValidationException(ValidationRules.ExclusiveMinimum, "Capacity", 0); + } + if (this.Image != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(this.Image, "http://\\w+")) + { + throw new ValidationException(ValidationRules.Pattern, "Image", "http://\\w+"); + } + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Error.cs new file mode 100644 index 0000000000..861759a25c --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Error.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.DateTimeOffset.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? code = default(int?), string message = default(string), string fields = default(string)) + { + Code = code; + Message = message; + Fields = fields; + } + + /// + /// + [JsonProperty(PropertyName = "code")] + public int? Code { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// + [JsonProperty(PropertyName = "fields")] + public string Fields { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/ErrorException.cs new file mode 100644 index 0000000000..74a3a68a5d --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.DateTimeOffset.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Product.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Product.cs new file mode 100644 index 0000000000..c916637c46 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/DateTimeOffset/Models/Product.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.DateTimeOffset.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Product + { + /// + /// Initializes a new instance of the Product class. + /// + public Product() { } + + /// + /// Initializes a new instance of the Product class. + /// + public Product(DateTime? date = default(DateTime?), DateTimeOffset? dateTime = default(DateTimeOffset?), IList dateArray = default(IList), IList dateTimeArray = default(IList)) + { + Date = date; + DateTime = dateTime; + DateArray = dateArray; + DateTimeArray = dateTimeArray; + } + + /// + /// + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "date")] + public DateTime? Date { get; set; } + + /// + /// + [JsonProperty(PropertyName = "dateTime")] + public DateTimeOffset? DateTime { get; set; } + + /// + /// + [JsonProperty(PropertyName = "dateArray")] + public IList DateArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "dateTimeArray")] + public IList DateTimeArray { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2.cs new file mode 100644 index 0000000000..4bbd1be917 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.MirrorPolymorphic.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error2 + { + /// + /// Initializes a new instance of the Error2 class. + /// + public Error2() { } + + /// + /// Initializes a new instance of the Error2 class. + /// + public Error2(int? code = default(int?), string message = default(string), string fields = default(string)) + { + Code = code; + Message = message; + Fields = fields; + } + + /// + /// + [JsonProperty(PropertyName = "code")] + public int? Code { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// + [JsonProperty(PropertyName = "fields")] + public string Fields { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2Exception.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2Exception.cs new file mode 100644 index 0000000000..36adb6b180 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2Exception.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.MirrorPolymorphic.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error2 information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class Error2Exception : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error2 Body { get; set; } + + /// + /// Initializes a new instance of the Error2Exception class. + /// + public Error2Exception() + { + } + + /// + /// Initializes a new instance of the Error2Exception class. + /// + /// The exception message. + public Error2Exception(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the Error2Exception class. + /// + /// The exception message. + /// Inner exception. + public Error2Exception(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the Error2Exception class. + /// + /// Serialization info. + /// Streaming context. + protected Error2Exception(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Error.cs new file mode 100644 index 0000000000..951c634f80 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Error.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.MirrorPrimitives.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? code = default(int?), string message = default(string), string fields = default(string)) + { + Code = code; + Message = message; + Fields = fields; + } + + /// + /// + [JsonProperty(PropertyName = "code")] + public int? Code { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// + [JsonProperty(PropertyName = "fields")] + public string Fields { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/ErrorException.cs new file mode 100644 index 0000000000..e343e02354 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.MirrorPrimitives.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} 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 new file mode 100644 index 0000000000..fcb542d716 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Primitives/Models/Product.cs @@ -0,0 +1,198 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.MirrorPrimitives.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Product + { + /// + /// Initializes a new instance of the Product class. + /// + public Product() { } + + /// + /// Initializes a new instance of the Product class. + /// + public Product(int? integer = default(int?), int? intProperty = default(int?), long? longProperty = default(long?), double? number = default(double?), double? floatProperty = default(double?), double? doubleProperty = default(double?), byte[] byteProperty = default(byte[]), string stringProperty = default(string), byte[] base64url = default(byte[]), Guid? uuid = default(Guid?), string enumProperty = default(string), bool? boolean = default(bool?), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), IList integerArray = default(IList), IList intArray = default(IList), IList longArray = default(IList), IList numberArray = default(IList), IList floatArray = default(IList), IList doubleArray = default(IList), IList byteArray = default(IList), IList booleanArray = default(IList), IList stringArray = default(IList), IList base64urlArray = default(IList), IList dateArray = default(IList), IList dateTimeArray = default(IList), IList uuidArray = default(IList)) + { + Integer = integer; + IntProperty = intProperty; + LongProperty = longProperty; + Number = number; + FloatProperty = floatProperty; + DoubleProperty = doubleProperty; + ByteProperty = byteProperty; + StringProperty = stringProperty; + Base64url = base64url; + Uuid = uuid; + EnumProperty = enumProperty; + Boolean = boolean; + Date = date; + DateTime = dateTime; + IntegerArray = integerArray; + IntArray = intArray; + LongArray = longArray; + NumberArray = numberArray; + FloatArray = floatArray; + DoubleArray = doubleArray; + ByteArray = byteArray; + BooleanArray = booleanArray; + StringArray = stringArray; + Base64urlArray = base64urlArray; + DateArray = dateArray; + DateTimeArray = dateTimeArray; + UuidArray = uuidArray; + } + + /// + /// + [JsonProperty(PropertyName = "integer")] + public int? Integer { get; set; } + + /// + /// + [JsonProperty(PropertyName = "int")] + public int? IntProperty { get; set; } + + /// + /// + [JsonProperty(PropertyName = "long")] + public long? LongProperty { get; set; } + + /// + /// + [JsonProperty(PropertyName = "number")] + public double? Number { get; set; } + + /// + /// + [JsonProperty(PropertyName = "float")] + public double? FloatProperty { get; set; } + + /// + /// + [JsonProperty(PropertyName = "double")] + public double? DoubleProperty { get; set; } + + /// + /// + [JsonProperty(PropertyName = "byte")] + public byte[] ByteProperty { get; set; } + + /// + /// + [JsonProperty(PropertyName = "string")] + public string StringProperty { get; set; } + + /// + /// + [JsonConverter(typeof(Base64UrlJsonConverter))] + [JsonProperty(PropertyName = "base64url")] + public byte[] Base64url { get; set; } + + /// + /// + [JsonProperty(PropertyName = "uuid")] + public Guid? Uuid { get; set; } + + /// + /// Gets or sets possible values include: 'red', 'blue', 'green' + /// + [JsonProperty(PropertyName = "enum")] + public string EnumProperty { get; set; } + + /// + /// + [JsonProperty(PropertyName = "boolean")] + public bool? Boolean { get; set; } + + /// + /// + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "date")] + public DateTime? Date { get; set; } + + /// + /// + [JsonProperty(PropertyName = "dateTime")] + public DateTime? DateTime { get; set; } + + /// + /// + [JsonProperty(PropertyName = "integerArray")] + public IList IntegerArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "intArray")] + public IList IntArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "longArray")] + public IList LongArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "numberArray")] + public IList NumberArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "floatArray")] + public IList FloatArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "doubleArray")] + public IList DoubleArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "byteArray")] + public IList ByteArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "booleanArray")] + public IList BooleanArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "stringArray")] + public IList StringArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "base64urlArray")] + public IList Base64urlArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "dateArray")] + public IList DateArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "dateTimeArray")] + public IList DateTimeArray { get; set; } + + /// + /// + [JsonProperty(PropertyName = "uuidArray")] + public IList UuidArray { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs new file mode 100644 index 0000000000..9107ee0103 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.MirrorRecursiveTypes.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Error + { + /// + /// Initializes a new instance of the Error class. + /// + public Error() { } + + /// + /// Initializes a new instance of the Error class. + /// + public Error(int? code = default(int?), string message = default(string), string fields = default(string)) + { + Code = code; + Message = message; + Fields = fields; + } + + /// + /// + [JsonProperty(PropertyName = "code")] + public int? Code { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// + [JsonProperty(PropertyName = "fields")] + public string Fields { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/ErrorException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/ErrorException.cs new file mode 100644 index 0000000000..7dbb2d5930 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/ErrorException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.MirrorRecursiveTypes.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with Error information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public Error Body { get; set; } + + /// + /// Initializes a new instance of the ErrorException class. + /// + public ErrorException() + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + public ErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorException class. + /// + /// The exception message. + /// Inner exception. + public ErrorException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} 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 new file mode 100644 index 0000000000..5752acc51e --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Product.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.MirrorRecursiveTypes.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Product + { + /// + /// Initializes a new instance of the Product class. + /// + public Product() { } + + /// + /// Initializes a new instance of the Product class. + /// + public Product(string productId = default(string), Product parentProduct = default(Product), IList innerProducts = default(IList)) + { + ProductId = productId; + ParentProduct = parentProduct; + InnerProducts = innerProducts; + } + + /// + /// 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; } + + /// + /// + [JsonProperty(PropertyName = "parentProduct")] + public Product ParentProduct { get; set; } + + /// + /// + [JsonProperty(PropertyName = "innerProducts")] + public IList InnerProducts { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModel.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModel.cs new file mode 100644 index 0000000000..cf2f11b1b6 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModel.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.MirrorSequences.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class ErrorModel + { + /// + /// Initializes a new instance of the ErrorModel class. + /// + public ErrorModel() { } + + /// + /// Initializes a new instance of the ErrorModel class. + /// + public ErrorModel(int code, string message) + { + Code = code; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "code")] + public int Code { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (Message == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Message"); + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModelException.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModelException.cs new file mode 100644 index 0000000000..4d3757c688 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModelException.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.MirrorSequences.Models +{ + using Microsoft.Rest; + using System; + using System.Net.Http; + using System.Runtime.Serialization; +#if !PORTABLE && !DNXCORE50 + using System.Security.Permissions; +#endif + + /// + /// Exception thrown for an invalid response with ErrorModel information. + /// +#if !PORTABLE && !DNXCORE50 + [Serializable] +#endif + public class ErrorModelException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public ErrorModel Body { get; set; } + + /// + /// Initializes a new instance of the ErrorModelException class. + /// + public ErrorModelException() + { + } + + /// + /// Initializes a new instance of the ErrorModelException class. + /// + /// The exception message. + public ErrorModelException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorModelException class. + /// + /// The exception message. + /// Inner exception. + public ErrorModelException(string message, Exception innerException) + : base(message, innerException) + { + } + +#if !PORTABLE && !DNXCORE50 + /// + /// Initializes a new instance of the ErrorModelException class. + /// + /// Serialization info. + /// Streaming context. + protected ErrorModelException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + /// + /// Serializes content of the exception. + /// + /// Serialization info. + /// Streaming context. + [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + if (info == null) + { + throw new ArgumentNullException("info"); + } + + info.AddValue("Request", Request); + info.AddValue("Response", Response); + info.AddValue("Body", Body); + } +#endif + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/Pet.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/Pet.cs new file mode 100644 index 0000000000..57c799ff0d --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/Pet.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.MirrorSequences.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Pet + { + /// + /// Initializes a new instance of the Pet class. + /// + public Pet() { } + + /// + /// Initializes a new instance of the Pet class. + /// + public Pet(long id, string name, IList styles = default(IList), string tag = default(string)) + { + Id = id; + Name = name; + Styles = styles; + Tag = tag; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public long Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// + [JsonProperty(PropertyName = "styles")] + public IList Styles { get; set; } + + /// + /// + [JsonProperty(PropertyName = "tag")] + public string Tag { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (this.Styles != null) + { + foreach (var element in this.Styles) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/PetStyle.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/PetStyle.cs new file mode 100644 index 0000000000..141e7cfcb8 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/Mirror.Sequences/Models/PetStyle.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.MirrorSequences.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class PetStyle + { + /// + /// Initializes a new instance of the PetStyle class. + /// + public PetStyle() { } + + /// + /// Initializes a new instance of the PetStyle class. + /// + public PetStyle(string name) + { + Name = name; + } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/ApiResponse.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/ApiResponse.cs new file mode 100644 index 0000000000..e4b8fb86ef --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/ApiResponse.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.PetstoreV2.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class ApiResponse + { + /// + /// Initializes a new instance of the ApiResponse class. + /// + public ApiResponse() { } + + /// + /// Initializes a new instance of the ApiResponse class. + /// + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) + { + Code = code; + Type = type; + Message = message; + } + + /// + /// + [JsonProperty(PropertyName = "code")] + public int? Code { get; set; } + + /// + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Category.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Category.cs new file mode 100644 index 0000000000..59b8eb6fec --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Category.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.PetstoreV2.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Category + { + /// + /// Initializes a new instance of the Category class. + /// + public Category() { } + + /// + /// Initializes a new instance of the Category class. + /// + public Category(long? id = default(long?), string name = default(string)) + { + Id = id; + Name = name; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public long? Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { 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 new file mode 100644 index 0000000000..295f1137f2 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/LoginUserHeaders.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.PetstoreV2.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + /// + /// Defines headers for loginUser operation. + /// + public partial class LoginUserHeaders + { + /// + /// Initializes a new instance of the LoginUserHeaders class. + /// + public LoginUserHeaders() { } + + /// + /// Initializes a new instance of the LoginUserHeaders class. + /// + public LoginUserHeaders(int? xRateLimit = default(int?), DateTime? xExpiresAfter = default(DateTime?)) + { + XRateLimit = xRateLimit; + XExpiresAfter = xExpiresAfter; + } + + /// + /// Gets or sets calls per hour allowed by the user + /// + [JsonProperty(PropertyName = "X-Rate-Limit")] + public int? XRateLimit { get; set; } + + /// + /// 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 new file mode 100644 index 0000000000..fab6f61cc6 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Order.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.PetstoreV2.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Order + { + /// + /// Initializes a new instance of the Order class. + /// + public Order() { } + + /// + /// Initializes a new instance of the Order class. + /// + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), string status = default(string), bool? complete = default(bool?)) + { + Id = id; + PetId = petId; + Quantity = quantity; + ShipDate = shipDate; + Status = status; + Complete = complete; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public long? Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "petId")] + public long? PetId { get; set; } + + /// + /// + [JsonProperty(PropertyName = "quantity")] + public int? Quantity { get; set; } + + /// + /// + [JsonProperty(PropertyName = "shipDate")] + public DateTime? ShipDate { get; set; } + + /// + /// Gets or sets order Status. Possible values include: 'placed', + /// 'approved', 'delivered' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// + [JsonProperty(PropertyName = "complete")] + public bool? Complete { 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 new file mode 100644 index 0000000000..176ac348f7 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Pet.cs @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.PetstoreV2.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Pet + { + /// + /// Initializes a new instance of the Pet class. + /// + public Pet() { } + + /// + /// Initializes a new instance of the Pet class. + /// + public Pet(string name, IList photoUrls, long? id = default(long?), Category category = default(Category), IList tags = default(IList), byte[] sByteProperty = default(byte[]), DateTime? birthday = default(DateTime?), IDictionary dictionary = default(IDictionary), string status = default(string)) + { + Id = id; + Category = category; + Name = name; + PhotoUrls = photoUrls; + Tags = tags; + SByteProperty = sByteProperty; + Birthday = birthday; + Dictionary = dictionary; + Status = status; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public long? Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "category")] + public Category Category { get; set; } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// + [JsonProperty(PropertyName = "photoUrls")] + public IList PhotoUrls { get; set; } + + /// + /// + [JsonProperty(PropertyName = "tags")] + public IList Tags { get; set; } + + /// + /// + [JsonProperty(PropertyName = "sByte")] + public byte[] SByteProperty { get; set; } + + /// + /// + [JsonProperty(PropertyName = "birthday")] + public DateTime? Birthday { get; set; } + + /// + /// + [JsonProperty(PropertyName = "dictionary")] + public IDictionary Dictionary { get; set; } + + /// + /// Gets or sets pet status in the store. Possible values include: + /// 'available', 'pending', 'sold' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Validate the object. Throws ValidationException if validation fails. + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (PhotoUrls == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PhotoUrls"); + } + } + } +} diff --git a/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Tag.cs b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Tag.cs new file mode 100644 index 0000000000..a623b6c290 --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/Tag.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.PetstoreV2.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class Tag + { + /// + /// Initializes a new instance of the Tag class. + /// + public Tag() { } + + /// + /// Initializes a new instance of the Tag class. + /// + public Tag(long? id = default(long?), string name = default(string)) + { + Id = id; + Name = name; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public long? Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { 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 new file mode 100644 index 0000000000..26aa7a291e --- /dev/null +++ b/AutoRest/Generators/CSharp/CSharp.Tests/Expected/PetstoreV2/Models/User.cs @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Fixtures.PetstoreV2.Models +{ + using System; + using System.Linq; + using System.Collections.Generic; + using Newtonsoft.Json; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + + public partial class User + { + /// + /// Initializes a new instance of the User class. + /// + public User() { } + + /// + /// Initializes a new instance of the User class. + /// + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) + { + Id = id; + Username = username; + FirstName = firstName; + LastName = lastName; + Email = email; + Password = password; + Phone = phone; + UserStatus = userStatus; + } + + /// + /// + [JsonProperty(PropertyName = "id")] + public long? Id { get; set; } + + /// + /// + [JsonProperty(PropertyName = "username")] + public string Username { get; set; } + + /// + /// + [JsonProperty(PropertyName = "firstName")] + public string FirstName { get; set; } + + /// + /// + [JsonProperty(PropertyName = "lastName")] + public string LastName { get; set; } + + /// + /// + [JsonProperty(PropertyName = "email")] + public string Email { get; set; } + + /// + /// + [JsonProperty(PropertyName = "password")] + public string Password { get; set; } + + /// + /// + [JsonProperty(PropertyName = "phone")] + public string Phone { get; set; } + + /// + /// Gets or sets user Status + /// + [JsonProperty(PropertyName = "userStatus")] + public int? UserStatus { get; set; } + + } +} 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 91416004b9..bacca9fd61 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 b82dd78f09..240dd4e45f 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 7655fc4191..f403121e6d 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 0c25e2df3b..3d4d296e68 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/StorageManagementClient/operations/storageAccounts.js b/AutoRest/Generators/NodeJS/Azure.NodeJS.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/storageAccounts.js index 272319d4cc..bff7003860 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/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureBodyDuration/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureBodyDuration/setup.py index 251a4cda74..97aa1ecfa3 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/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/AzureParameterGrouping/setup.py index 2e0910c9bc..4e3dc67a4f 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 762429f51c..fee4d2a41a 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 d4003cb22d..095659cbb3 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 a23f56d191..cd93aa2dd6 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 b58762d14b..b60d7cd0eb 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 e11e2311eb..083369e096 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 eea7127ecb..d66fa596b1 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 6efdcd0d3e..dab3d2e5e7 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/setup.py b/AutoRest/Generators/Python/Azure.Python.Tests/Expected/AcceptanceTests/Paging/setup.py index b8c042a69e..063fc0d938 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 7e7b4160e0..b204e8c8c2 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 a0eeb22b2b..270e110d8b 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/Samples/azure-storage/Azure.CSharp/Models/CheckNameAvailabilityResult.cs b/Samples/azure-storage/Azure.CSharp/Models/CheckNameAvailabilityResult.cs index c2a6c48489..086e8b5169 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 d783381ad3..5ada788894 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 892510076c..f9b8d67d12 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 4bdc397631..fbf994880b 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 c9b194c878..1c23f83ac3 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 ce80a21921..823fee3225 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 e5af974c69..8282d7cc49 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 bc0824cb9d..0c2a98e26f 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 4808f3439b..22ca07468f 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 768e0fe7fb..3346aab6e2 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 338a900b30..4499cc0487 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 694332c58b..9acc8b5e30 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 1cd198259f..c1b4897711 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 b9fe5db7a8..3260175533 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/petstore/CSharp/Models/Order.cs b/Samples/petstore/CSharp/Models/Order.cs index b0c9e5ab6d..23e3155fa2 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 c4e0286deb..672c2aad64 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 d30dd443ac..acdc7b1824 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 9584898cad..8f03e207f4 100644 --- a/Samples/petstore/Ruby/petstore/swagger_petstore.rb +++ b/Samples/petstore/Ruby/petstore/swagger_petstore.rb @@ -294,7 +294,7 @@ 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) @@ -389,7 +389,7 @@ 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) From 2976efe5de64d55795127373e279b9f56e310d6c Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 2 May 2016 14:35:02 -0700 Subject: [PATCH 05/11] Using Property class and added Culture.Invariant --- .../Generators/CSharp/CSharp/ClientModelExtensions.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs index 71869be9cb..6c3fe5d9e6 100644 --- a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs +++ b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs @@ -137,8 +137,13 @@ private static bool ShouldValidate(this IType model) /// /// The given property documentation to format /// - public static string GetFormattedPropertyDocumentation(PropertyTemplateModel property) + public static string GetFormattedPropertyDocumentation(Property property) { + if (property == null) + { + throw new ArgumentNullException("property"); + } + if (string.IsNullOrEmpty(property.Documentation)) { return property.Documentation.EscapeXmlComment(); @@ -149,13 +154,13 @@ public static string GetFormattedPropertyDocumentation(PropertyTemplateModel pro string firstWord = property.Documentation.Split(' ').First(); if (firstWord.Length <= 1) { - documentation += char.ToLower(property.Documentation[0]) + property.Documentation.Substring(1); + documentation += char.ToLower(property.Documentation[0], CultureInfo.InvariantCulture) + property.Documentation.Substring(1); } else { documentation += firstWord.ToUpper() == firstWord ? property.Documentation - : char.ToLower(property.Documentation[0]) + property.Documentation.Substring(1); + : char.ToLower(property.Documentation[0], CultureInfo.InvariantCulture) + property.Documentation.Substring(1); } return documentation.EscapeXmlComment(); From 1fcdafa0e0cd957349640a075732d5eb3890afd9 Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 2 May 2016 14:35:02 -0700 Subject: [PATCH 06/11] Using Property class and added Culture.Invariant --- .../CSharp/CSharp/ClientModelExtensions.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs index 71869be9cb..86ff4ff413 100644 --- a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs +++ b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs @@ -137,8 +137,13 @@ private static bool ShouldValidate(this IType model) /// /// The given property documentation to format /// - public static string GetFormattedPropertyDocumentation(PropertyTemplateModel property) + public static string GetFormattedPropertyDocumentation(Property property) { + if (property == null) + { + throw new ArgumentNullException("property"); + } + if (string.IsNullOrEmpty(property.Documentation)) { return property.Documentation.EscapeXmlComment(); @@ -149,13 +154,13 @@ public static string GetFormattedPropertyDocumentation(PropertyTemplateModel pro string firstWord = property.Documentation.Split(' ').First(); if (firstWord.Length <= 1) { - documentation += char.ToLower(property.Documentation[0]) + property.Documentation.Substring(1); + documentation += char.ToLower(property.Documentation[0], CultureInfo.InvariantCulture) + property.Documentation.Substring(1); } else { - documentation += firstWord.ToUpper() == firstWord + documentation += firstWord.ToUpper(CultureInfo.InvariantCulture) == firstWord ? property.Documentation - : char.ToLower(property.Documentation[0]) + property.Documentation.Substring(1); + : char.ToLower(property.Documentation[0], CultureInfo.InvariantCulture) + property.Documentation.Substring(1); } return documentation.EscapeXmlComment(); From 45618eab930b92640843b599ca3e44e2d06c3f19 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 11 May 2016 14:31:59 -0700 Subject: [PATCH 07/11] Property calls its own method now --- AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs | 2 +- .../Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs index 86ff4ff413..c04b89f572 100644 --- a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs +++ b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs @@ -137,7 +137,7 @@ private static bool ShouldValidate(this IType model) /// /// The given property documentation to format /// - public static string GetFormattedPropertyDocumentation(Property property) + public static string GetFormattedPropertyDocumentation(this Property property) { if (property == null) { diff --git a/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml b/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml index 8eb5cc65e4..4299f52413 100644 --- a/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml +++ b/AutoRest/Generators/CSharp/CSharp/Templates/ModelTemplate.cshtml @@ -2,7 +2,6 @@ @using Microsoft.Rest.Generator.ClientModel @using Microsoft.Rest.Generator.Utilities @using Microsoft.Rest.Generator -@using Microsoft.Rest.Generator.CSharp @inherits Microsoft.Rest.Generator.Template @Header("// ") @EmptyLine @@ -110,7 +109,7 @@ namespace @(Settings.Namespace).Models @foreach (var property in Model.PropertyTemplateModels.Where(p => !p.IsConstant)) { @:/// - @:@WrapComment("/// ", ClientModelExtensions.GetFormattedPropertyDocumentation(property)) + @:@WrapComment("/// ", property.GetFormattedPropertyDocumentation()) @:/// if (property.Type.IsPrimaryType(KnownPrimaryType.Date)) { From 54beae9cfe062871d4f517eba887ae184eb86c4a Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 12 May 2016 10:51:51 -0700 Subject: [PATCH 08/11] Added trim start to client model extensions --- AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs index c04b89f572..d887cb4985 100644 --- a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs +++ b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs @@ -146,7 +146,7 @@ public static string GetFormattedPropertyDocumentation(this Property property) if (string.IsNullOrEmpty(property.Documentation)) { - return property.Documentation.EscapeXmlComment(); + return property.Documentation.EscapeXmlComment().TrimStart(); } string documentation = property.IsReadOnly ? "Gets " : "Gets or sets "; From 431b98e6b2739fe8da861e2fc3dd948664c03af8 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 12 May 2016 11:12:00 -0700 Subject: [PATCH 09/11] Reverted trim start --- AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs index d887cb4985..c04b89f572 100644 --- a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs +++ b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs @@ -146,7 +146,7 @@ public static string GetFormattedPropertyDocumentation(this Property property) if (string.IsNullOrEmpty(property.Documentation)) { - return property.Documentation.EscapeXmlComment().TrimStart(); + return property.Documentation.EscapeXmlComment(); } string documentation = property.IsReadOnly ? "Gets " : "Gets or sets "; From 423bdfad603989e2a15ee03d9bce9741ba7064f8 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 12 May 2016 11:44:22 -0700 Subject: [PATCH 10/11] Added trim to documentation string --- AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs index c04b89f572..e53cfcb836 100644 --- a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs +++ b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs @@ -151,7 +151,7 @@ public static string GetFormattedPropertyDocumentation(this Property property) string documentation = property.IsReadOnly ? "Gets " : "Gets or sets "; - string firstWord = property.Documentation.Split(' ').First(); + string firstWord = property.Documentation.TrimStart().Split(' ').First(); if (firstWord.Length <= 1) { documentation += char.ToLower(property.Documentation[0], CultureInfo.InvariantCulture) + property.Documentation.Substring(1); From 8641c7a971145fa3cea9d8437677c8e2ccb778e4 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 12 May 2016 14:45:57 -0700 Subject: [PATCH 11/11] Fixed documentation string and added return string --- AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs index e53cfcb836..07c3909384 100644 --- a/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs +++ b/AutoRest/Generators/CSharp/CSharp/ClientModelExtensions.cs @@ -133,10 +133,10 @@ private static bool ShouldValidate(this IType model) /// /// Format the documentation of a property properly with the correct getters and setters. Note that this validation will - /// only acryonyms and article words. + /// check for special cases such as acronyms and article words. /// /// The given property documentation to format - /// + /// The reference to the property documentation public static string GetFormattedPropertyDocumentation(this Property property) { if (property == null)