From 4e7927009132568f8493e39de62255b3785d68cb Mon Sep 17 00:00:00 2001 From: Jay Oursler Date: Wed, 1 Dec 2021 13:25:27 -0600 Subject: [PATCH 1/4] Fixes #11010 As part of the security of an API I use, a per request NONCE needs to be added. Adding the RequestOptions as a parameter moves this more inline with the typescript-axios client. --- .../resources/csharp-netcore/api.mustache | 52 ++++++++++++------- 1 file changed, 34 insertions(+), 18 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache index ce2000f63e97..36209926ad37 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache @@ -31,11 +31,12 @@ namespace {{packageName}}.{{apiPackage}} {{/notes}} /// Thrown when fails to make API call {{#allParams}}/// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} - {{/allParams}}/// {{returnType}} + {{/allParams}}/// + /// {{returnType}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - {{{returnType}}}{{^returnType}}void{{/returnType}} {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}); + {{{returnType}}}{{^returnType}}void{{/returnType}} {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}{{packageName}}.Client.RequestOptions localVarRequestOptions = default({{packageName}}.Client.RequestOptions)); /// /// {{summary}} @@ -45,11 +46,12 @@ namespace {{packageName}}.{{apiPackage}} /// /// Thrown when fails to make API call {{#allParams}}/// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} - {{/allParams}}/// ApiResponse of {{returnType}}{{^returnType}}Object(void){{/returnType}} + {{/allParams}}/// + /// ApiResponse of {{returnType}}{{^returnType}}Object(void){{/returnType}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}); + ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}{{packageName}}.Client.RequestOptions localVarRequestOptions = default({{packageName}}.Client.RequestOptions)); {{/operation}} #endregion Synchronous Operations } @@ -73,11 +75,12 @@ namespace {{packageName}}.{{apiPackage}} /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} {{/allParams}} /// Cancellation Token to cancel the request. + /// /// Task of {{returnType}}{{^returnType}}void{{/returnType}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - {{#returnType}}System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + {{#returnType}}System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), {{packageName}}.Client.RequestOptions localVarRequestOptions = default({{packageName}}.Client.RequestOptions)); /// /// {{summary}} @@ -90,11 +93,12 @@ namespace {{packageName}}.{{apiPackage}} /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} {{/allParams}} /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse{{#returnType}} ({{.}}){{/returnType}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - System.Threading.Tasks.Task> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), {{packageName}}.Client.RequestOptions localVarRequestOptions = default({{packageName}}.Client.RequestOptions)); {{/operation}} #endregion Asynchronous Operations } @@ -233,14 +237,15 @@ namespace {{packageName}}.{{apiPackage}} /// /// Thrown when fails to make API call {{#allParams}}/// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} - {{/allParams}}/// {{returnType}} + {{/allParams}}/// + /// {{returnType}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - public {{{returnType}}}{{^returnType}}void{{/returnType}} {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}) + public {{{returnType}}}{{^returnType}}void{{/returnType}} {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}{{packageName}}.Client.RequestOptions localVarRequestOptions = default({{packageName}}.Client.RequestOptions)) { - {{#returnType}}{{packageName}}.Client.ApiResponse<{{{returnType}}}> localVarResponse = {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); - return localVarResponse.Data;{{/returnType}}{{^returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{/returnType}} + {{#returnType}}{{packageName}}.Client.ApiResponse<{{{returnType}}}> localVarResponse = {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}localVarRequestOptions); + return localVarResponse.Data;{{/returnType}}{{^returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}localVarRequestOptions);{{/returnType}} } /// @@ -248,11 +253,12 @@ namespace {{packageName}}.{{apiPackage}} /// /// Thrown when fails to make API call {{#allParams}}/// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} - {{/allParams}}/// ApiResponse of {{returnType}}{{^returnType}}Object(void){{/returnType}} + {{/allParams}}/// + /// ApiResponse of {{returnType}}{{^returnType}}Object(void){{/returnType}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - public {{packageName}}.Client.ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}) + public {{packageName}}.Client.ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}{{packageName}}.Client.RequestOptions localVarRequestOptions = default({{packageName}}.Client.RequestOptions)) { {{#allParams}} {{#required}} @@ -266,7 +272,12 @@ namespace {{packageName}}.{{apiPackage}} {{/vendorExtensions.x-csharp-value-type}} {{/required}} {{/allParams}} - {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); + if(localVarRequestOptions == default({{packageName}}.Client.RequestOptions)) + { + localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { {{#consumes}} @@ -476,14 +487,15 @@ namespace {{packageName}}.{{apiPackage}} /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} {{/allParams}} /// Cancellation Token to cancel the request. + /// /// Task of {{returnType}}{{^returnType}}void{{/returnType}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - {{#returnType}}public async System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + {{#returnType}}public async System.Threading.Tasks.Task<{{{.}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), {{packageName}}.Client.RequestOptions localVarRequestOptions = default({{packageName}}.Client.RequestOptions)) { - {{#returnType}}{{packageName}}.Client.ApiResponse<{{{returnType}}}> localVarResponse = await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken).ConfigureAwait(false); - return localVarResponse.Data;{{/returnType}}{{^returnType}}await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken).ConfigureAwait(false);{{/returnType}} + {{#returnType}}{{packageName}}.Client.ApiResponse<{{{returnType}}}> localVarResponse = await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken, localVarRequestOptions).ConfigureAwait(false); + return localVarResponse.Data;{{/returnType}}{{^returnType}}await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken, localVarRequestOptions).ConfigureAwait(false);{{/returnType}} } /// @@ -494,11 +506,12 @@ namespace {{packageName}}.{{apiPackage}} /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} {{/allParams}} /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse{{#returnType}} ({{.}}){{/returnType}} {{#isDeprecated}} [Obsolete] {{/isDeprecated}} - public async System.Threading.Tasks.Task<{{packageName}}.Client.ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}>> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task<{{packageName}}.Client.ApiResponse<{{{returnType}}}{{^returnType}}Object{{/returnType}}>> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), {{packageName}}.Client.RequestOptions localVarRequestOptions = default({{packageName}}.Client.RequestOptions)) { {{#allParams}} {{#required}} @@ -513,7 +526,10 @@ namespace {{packageName}}.{{apiPackage}} {{/required}} {{/allParams}} - {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); + if(localVarRequestOptions == default({{packageName}}.Client.RequestOptions)) + { + localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); + } string[] _contentTypes = new string[] { {{#consumes}} From f81b26954b577b3d747583c7e244689b5b3cc5d8 Mon Sep 17 00:00:00 2001 From: Jay Oursler Date: Wed, 1 Dec 2021 13:25:38 -0600 Subject: [PATCH 2/4] Fixes #11001 When using Microsoft.Extensions.DependencyInjection I am configuring the configuration with a singleton scope. This prevents updating the ApiToken eaily when the JWT expires and needs to be refreshed. By adding the GetApiToken producer function it provides an extension point to add the necessary token refresh logic with minimal changes needed to the configuration. The default is to return the AccessToken so existing configurations work. --- .../csharp-netcore/Configuration.mustache | 16 +++++- .../IReadableConfiguration.mustache | 4 +- .../resources/csharp-netcore/api.mustache | 50 +++++++++++++++++-- 3 files changed, 62 insertions(+), 8 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache index 6c810f89bc1e..522cfed17e2c 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache @@ -116,6 +116,7 @@ namespace {{packageName}}.Client DefaultHeaders = new {{^net35}}Concurrent{{/net35}}Dictionary(); ApiKey = new {{^net35}}Concurrent{{/net35}}Dictionary(); ApiKeyPrefix = new {{^net35}}Concurrent{{/net35}}Dictionary(); + GetAccessToken = () => AccessToken; {{#servers}} {{#-first}} Servers = new List>() @@ -294,6 +295,16 @@ namespace {{packageName}}.Client /// The access token. public virtual string AccessToken { get; set; } + + /// + /// Gets the Access Token + /// + /// This helper function allows for customization of the Access Token retrieval. + /// For example, automatic JWT token refreshes. + /// + /// The access token. + public virtual Func GetAccessToken { get; set; } + /// /// Gets or sets the temporary folder path to store the files downloaded from the server. /// @@ -565,10 +576,11 @@ namespace {{packageName}}.Client HttpSigningConfiguration = second.HttpSigningConfiguration ?? first.HttpSigningConfiguration, {{/hasHttpSignatureMethods}} TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + GetAccessToken = second.GetAccessToken ?? first.GetAccessToken }; return config; } #endregion Static Members } -} +} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache index bf142ffbac1e..4affb761a34c 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/IReadableConfiguration.mustache @@ -18,6 +18,8 @@ namespace {{packageName}}.Client /// Access token. string AccessToken { get; } + Func GetAccessToken {get;} + /// /// Gets the API key. /// @@ -111,4 +113,4 @@ namespace {{packageName}}.Client HttpSigningConfiguration HttpSigningConfiguration { get; } {{/hasHttpSignatureMethods}} } -} +} \ No newline at end of file diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache index 36209926ad37..d7097ae576cb 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/api.mustache @@ -433,16 +433,36 @@ namespace {{packageName}}.{{apiPackage}} {{/isBasicBasic}} {{#isBasicBearer}} // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } {{/isBasicBearer}} {{#isOAuth}} // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } {{/isOAuth}} {{#isHttpSignature}} @@ -663,17 +683,37 @@ namespace {{packageName}}.{{apiPackage}} {{/isBasicBasic}} {{#isBasicBearer}} // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } {{/isBasicBearer}} {{/isBasic}} {{#isOAuth}} // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } {{/isOAuth}} {{#isHttpSignature}} @@ -714,4 +754,4 @@ namespace {{packageName}}.{{apiPackage}} {{/operation}} } {{/operations}} -} +} \ No newline at end of file From 618fe23fc076e8c90c5426983cbe0481f4eccc9b Mon Sep 17 00:00:00 2001 From: Jay Oursler Date: Wed, 1 Dec 2021 13:42:23 -0600 Subject: [PATCH 3/4] Update csharp-netcore samples --- .../.openapi-generator/VERSION | 2 +- .../src/Org.OpenAPITools/Api/MultipartApi.cs | 122 ++-- .../Org.OpenAPITools/Client/Configuration.cs | 16 +- .../Client/IReadableConfiguration.cs | 4 +- .../.openapi-generator/VERSION | 2 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 42 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 42 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 626 +++++++++++++----- .../Api/FakeClassnameTags123Api.cs | 42 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 554 ++++++++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 162 +++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 322 ++++++--- .../Org.OpenAPITools/Client/Configuration.cs | 16 +- .../Client/IReadableConfiguration.cs | 4 +- .../.openapi-generator/VERSION | 2 +- .../Org.OpenAPITools/Client/Configuration.cs | 16 +- .../Client/IReadableConfiguration.cs | 4 +- .../.openapi-generator/VERSION | 2 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 42 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 42 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 626 +++++++++++++----- .../Api/FakeClassnameTags123Api.cs | 42 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 554 ++++++++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 162 +++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 322 ++++++--- .../Org.OpenAPITools/Client/Configuration.cs | 16 +- .../Client/IReadableConfiguration.cs | 4 +- .../.openapi-generator/VERSION | 2 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 42 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 42 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 626 +++++++++++++----- .../Api/FakeClassnameTags123Api.cs | 42 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 554 ++++++++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 162 +++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 322 ++++++--- .../Org.OpenAPITools/Client/Configuration.cs | 16 +- .../Client/IReadableConfiguration.cs | 4 +- .../OpenAPIClient/.openapi-generator/VERSION | 2 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 42 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 42 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 626 +++++++++++++----- .../Api/FakeClassnameTags123Api.cs | 42 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 554 ++++++++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 162 +++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 322 ++++++--- .../Org.OpenAPITools/Client/Configuration.cs | 16 +- .../Client/IReadableConfiguration.cs | 4 +- .../.openapi-generator/VERSION | 2 +- .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 42 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 42 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 626 +++++++++++++----- .../Api/FakeClassnameTags123Api.cs | 42 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 554 ++++++++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 162 +++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 322 ++++++--- .../Org.OpenAPITools/Client/Configuration.cs | 16 +- .../Client/IReadableConfiguration.cs | 4 +- .../.openapi-generator/VERSION | 2 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 490 ++++++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 162 +++-- .../src/Org.OpenAPITools/Api/UserApi.cs | 322 ++++++--- .../Org.OpenAPITools/Client/Configuration.cs | 16 +- .../Client/IReadableConfiguration.cs | 4 +- 63 files changed, 7431 insertions(+), 2791 deletions(-) diff --git a/samples/client/others/csharp-netcore-complex-files/.openapi-generator/VERSION b/samples/client/others/csharp-netcore-complex-files/.openapi-generator/VERSION index 4077803655c0..e230c8396d19 100644 --- a/samples/client/others/csharp-netcore-complex-files/.openapi-generator/VERSION +++ b/samples/client/others/csharp-netcore-complex-files/.openapi-generator/VERSION @@ -1 +1 @@ -5.3.1-SNAPSHOT \ No newline at end of file +5.3.0 \ No newline at end of file diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Api/MultipartApi.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Api/MultipartApi.cs index aa92ab8297b3..f25d5865199e 100644 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Api/MultipartApi.cs +++ b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Api/MultipartApi.cs @@ -34,8 +34,9 @@ public interface IMultipartApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Many files (optional) + /// /// - void MultipartArray(List files = default(List)); + void MultipartArray(List files = default(List), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -45,8 +46,9 @@ public interface IMultipartApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Many files (optional) + /// /// ApiResponse of Object(void) - ApiResponse MultipartArrayWithHttpInfo(List files = default(List)); + ApiResponse MultipartArrayWithHttpInfo(List files = default(List), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -56,8 +58,9 @@ public interface IMultipartApiSync : IApiAccessor /// Thrown when fails to make API call /// a file /// (optional) + /// /// - void MultipartMixed(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker)); + void MultipartMixed(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -68,8 +71,9 @@ public interface IMultipartApiSync : IApiAccessor /// Thrown when fails to make API call /// a file /// (optional) + /// /// ApiResponse of Object(void) - ApiResponse MultipartMixedWithHttpInfo(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker)); + ApiResponse MultipartMixedWithHttpInfo(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -78,8 +82,9 @@ public interface IMultipartApiSync : IApiAccessor /// /// Thrown when fails to make API call /// One file (optional) + /// /// - void MultipartSingle(System.IO.Stream file = default(System.IO.Stream)); + void MultipartSingle(System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -89,8 +94,9 @@ public interface IMultipartApiSync : IApiAccessor /// /// Thrown when fails to make API call /// One file (optional) + /// /// ApiResponse of Object(void) - ApiResponse MultipartSingleWithHttpInfo(System.IO.Stream file = default(System.IO.Stream)); + ApiResponse MultipartSingleWithHttpInfo(System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -109,8 +115,9 @@ public interface IMultipartApiAsync : IApiAccessor /// Thrown when fails to make API call /// Many files (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task MultipartArrayAsync(List files = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task MultipartArrayAsync(List files = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -121,8 +128,9 @@ public interface IMultipartApiAsync : IApiAccessor /// Thrown when fails to make API call /// Many files (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> MultipartArrayWithHttpInfoAsync(List files = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> MultipartArrayWithHttpInfoAsync(List files = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -133,8 +141,9 @@ public interface IMultipartApiAsync : IApiAccessor /// a file /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task MultipartMixedAsync(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task MultipartMixedAsync(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -146,8 +155,9 @@ public interface IMultipartApiAsync : IApiAccessor /// a file /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> MultipartMixedWithHttpInfoAsync(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> MultipartMixedWithHttpInfoAsync(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -157,8 +167,9 @@ public interface IMultipartApiAsync : IApiAccessor /// Thrown when fails to make API call /// One file (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task MultipartSingleAsync(System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task MultipartSingleAsync(System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -169,8 +180,9 @@ public interface IMultipartApiAsync : IApiAccessor /// Thrown when fails to make API call /// One file (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> MultipartSingleWithHttpInfoAsync(System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> MultipartSingleWithHttpInfoAsync(System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -296,10 +308,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Many files (optional) + /// /// - public void MultipartArray(List files = default(List)) + public void MultipartArray(List files = default(List), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - MultipartArrayWithHttpInfo(files); + MultipartArrayWithHttpInfo(files, localVarRequestOptions); } /// @@ -307,10 +320,16 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Many files (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse MultipartArrayWithHttpInfo(List files = default(List)) + public Org.OpenAPITools.Client.ApiResponse MultipartArrayWithHttpInfo(List files = default(List), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -361,10 +380,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// Many files (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task MultipartArrayAsync(List files = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task MultipartArrayAsync(List files = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await MultipartArrayWithHttpInfoAsync(files, cancellationToken).ConfigureAwait(false); + await MultipartArrayWithHttpInfoAsync(files, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -373,11 +393,15 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// Many files (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> MultipartArrayWithHttpInfoAsync(List files = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> MultipartArrayWithHttpInfoAsync(List files = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -429,10 +453,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// a file /// (optional) + /// /// - public void MultipartMixed(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker)) + public void MultipartMixed(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - MultipartMixedWithHttpInfo(file, marker); + MultipartMixedWithHttpInfo(file, marker, localVarRequestOptions); } /// @@ -441,8 +466,9 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// a file /// (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse MultipartMixedWithHttpInfo(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker)) + public Org.OpenAPITools.Client.ApiResponse MultipartMixedWithHttpInfo(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'file' is set if (file == null) @@ -450,7 +476,12 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'file' when calling MultipartApi->MultipartMixed"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -500,10 +531,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// a file /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task MultipartMixedAsync(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task MultipartMixedAsync(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await MultipartMixedWithHttpInfoAsync(file, marker, cancellationToken).ConfigureAwait(false); + await MultipartMixedWithHttpInfoAsync(file, marker, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -513,8 +545,9 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// a file /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> MultipartMixedWithHttpInfoAsync(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> MultipartMixedWithHttpInfoAsync(System.IO.Stream file, MultipartMixedMarker marker = default(MultipartMixedMarker), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'file' is set if (file == null) @@ -523,7 +556,10 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -572,10 +608,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// One file (optional) + /// /// - public void MultipartSingle(System.IO.Stream file = default(System.IO.Stream)) + public void MultipartSingle(System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - MultipartSingleWithHttpInfo(file); + MultipartSingleWithHttpInfo(file, localVarRequestOptions); } /// @@ -583,10 +620,16 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// One file (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse MultipartSingleWithHttpInfo(System.IO.Stream file = default(System.IO.Stream)) + public Org.OpenAPITools.Client.ApiResponse MultipartSingleWithHttpInfo(System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -634,10 +677,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// One file (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task MultipartSingleAsync(System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task MultipartSingleAsync(System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await MultipartSingleWithHttpInfoAsync(file, cancellationToken).ConfigureAwait(false); + await MultipartSingleWithHttpInfoAsync(file, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -646,11 +690,15 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// One file (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> MultipartSingleWithHttpInfoAsync(System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> MultipartSingleWithHttpInfoAsync(System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -694,4 +742,4 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory } } -} +} \ No newline at end of file diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Client/Configuration.cs index 2bee826bd883..e69ffe2d00f8 100644 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Client/Configuration.cs @@ -106,6 +106,7 @@ public Configuration() DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); ApiKeyPrefix = new ConcurrentDictionary(); + GetAccessToken = () => AccessToken; Servers = new List>() { { @@ -251,6 +252,16 @@ public string GetApiKeyWithPrefix(string apiKeyIdentifier) /// The access token. public virtual string AccessToken { get; set; } + + /// + /// Gets the Access Token + /// + /// This helper function allows for customization of the Access Token retrieval. + /// For example, automatic JWT token refreshes. + /// + /// The access token. + public virtual Func GetAccessToken { get; set; } + /// /// Gets or sets the temporary folder path to store the files downloaded from the server. /// @@ -506,10 +517,11 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration Password = second.Password ?? first.Password, AccessToken = second.AccessToken ?? first.AccessToken, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + GetAccessToken = second.GetAccessToken ?? first.GetAccessToken }; return config; } #endregion Static Members } -} +} \ No newline at end of file diff --git a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Client/IReadableConfiguration.cs b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Client/IReadableConfiguration.cs index adf0a7b2f0a0..bab00254b6ae 100644 --- a/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Client/IReadableConfiguration.cs +++ b/samples/client/others/csharp-netcore-complex-files/src/Org.OpenAPITools/Client/IReadableConfiguration.cs @@ -26,6 +26,8 @@ public interface IReadableConfiguration /// Access token. string AccessToken { get; } + Func GetAccessToken {get;} + /// /// Gets the API key. /// @@ -112,4 +114,4 @@ public interface IReadableConfiguration /// X509 Certificate collection. X509CertificateCollection ClientCertificates { get; } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/.openapi-generator/VERSION b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/.openapi-generator/VERSION index 4077803655c0..e230c8396d19 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/.openapi-generator/VERSION +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/.openapi-generator/VERSION @@ -1 +1 @@ -5.3.1-SNAPSHOT \ No newline at end of file +5.3.0 \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index ac8fbdcdc946..82200d160de2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -34,8 +34,9 @@ public interface IAnotherFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient Call123TestSpecialTags(ModelClient modelClient); + ModelClient Call123TestSpecialTags(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test special tags @@ -45,8 +46,9 @@ public interface IAnotherFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient); + ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -65,8 +67,9 @@ public interface IAnotherFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test special tags @@ -77,8 +80,9 @@ public interface IAnotherFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -204,10 +208,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient Call123TestSpecialTags(ModelClient modelClient) + public ModelClient Call123TestSpecialTags(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -216,8 +221,9 @@ public ModelClient Call123TestSpecialTags(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -225,7 +231,12 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -271,10 +282,11 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -284,8 +296,9 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -294,7 +307,10 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -336,4 +352,4 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs index a9e5cfb9c4d2..8c453fafe696 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -30,8 +30,9 @@ public interface IDefaultApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// InlineResponseDefault - InlineResponseDefault FooGet(); + InlineResponseDefault FooGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -40,8 +41,9 @@ public interface IDefaultApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of InlineResponseDefault - ApiResponse FooGetWithHttpInfo(); + ApiResponse FooGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -59,8 +61,9 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of InlineResponseDefault - System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -70,8 +73,9 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (InlineResponseDefault) - System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -196,10 +200,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// /// Thrown when fails to make API call + /// /// InlineResponseDefault - public InlineResponseDefault FooGet() + public InlineResponseDefault FooGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FooGetWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FooGetWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -207,10 +212,16 @@ public InlineResponseDefault FooGet() /// /// /// Thrown when fails to make API call + /// /// ApiResponse of InlineResponseDefault - public Org.OpenAPITools.Client.ApiResponse FooGetWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse FooGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -253,10 +264,11 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of InlineResponseDefault - public async System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -265,11 +277,15 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (InlineResponseDefault) - public async System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -309,4 +325,4 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs index 57a99469634f..94abf521b073 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs @@ -30,8 +30,9 @@ public interface IFakeApiSync : IApiAccessor /// Health check endpoint /// /// Thrown when fails to make API call + /// /// HealthCheckResult - HealthCheckResult FakeHealthGet(); + HealthCheckResult FakeHealthGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Health check endpoint @@ -40,8 +41,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of HealthCheckResult - ApiResponse FakeHealthGetWithHttpInfo(); + ApiResponse FakeHealthGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -50,8 +52,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?)); + bool FakeOuterBooleanSerialize(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -61,8 +64,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)); + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -71,8 +75,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// OuterComposite - OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite)); + OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -82,8 +87,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// ApiResponse of OuterComposite - ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite)); + ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -92,8 +98,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)); + decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -103,8 +110,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)); + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -113,8 +121,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// string - string FakeOuterStringSerialize(string body = default(string)); + string FakeOuterStringSerialize(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -124,14 +133,16 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string)); + ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums /// /// Thrown when fails to make API call + /// /// List<OuterEnum> - List GetArrayOfEnums(); + List GetArrayOfEnums(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums @@ -140,8 +151,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of List<OuterEnum> - ApiResponse> GetArrayOfEnumsWithHttpInfo(); + ApiResponse> GetArrayOfEnumsWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -150,8 +162,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// + /// /// - void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -161,16 +174,18 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass); + ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// /// Thrown when fails to make API call /// /// + /// /// - void TestBodyWithQueryParams(string query, User user); + void TestBodyWithQueryParams(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -181,8 +196,9 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user); + ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model /// @@ -191,8 +207,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient TestClientModel(ModelClient modelClient); + ModelClient TestClientModel(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model @@ -202,8 +219,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient); + ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -225,8 +243,9 @@ public interface IFakeApiSync : IApiAccessor /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -249,8 +268,9 @@ public interface IFakeApiSync : IApiAccessor /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters /// @@ -266,8 +286,9 @@ public interface IFakeApiSync : IApiAccessor /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// - void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)); + void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters @@ -284,8 +305,9 @@ public interface IFakeApiSync : IApiAccessor /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// ApiResponse of Object(void) - ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)); + ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) /// @@ -299,8 +321,9 @@ public interface IFakeApiSync : IApiAccessor /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) @@ -315,15 +338,17 @@ public interface IFakeApiSync : IApiAccessor /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties /// /// Thrown when fails to make API call /// request body + /// /// - void TestInlineAdditionalProperties(Dictionary requestBody); + void TestInlineAdditionalProperties(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties @@ -333,16 +358,18 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// request body + /// /// ApiResponse of Object(void) - ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody); + ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data /// /// Thrown when fails to make API call /// field1 /// field2 + /// /// - void TestJsonFormData(string param, string param2); + void TestJsonFormData(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data @@ -353,8 +380,9 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// field1 /// field2 + /// /// ApiResponse of Object(void) - ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2); + ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -367,8 +395,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// + /// /// - void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context); + void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -382,8 +411,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// + /// /// ApiResponse of Object(void) - ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context); + ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -401,8 +431,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of HealthCheckResult - System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Health check endpoint @@ -412,8 +443,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (HealthCheckResult) - System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -423,8 +455,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -435,8 +468,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -446,8 +480,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of OuterComposite - System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -458,8 +493,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (OuterComposite) - System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -469,8 +505,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -481,8 +518,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -492,8 +530,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -504,8 +543,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums /// @@ -514,8 +554,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of List<OuterEnum> - System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums @@ -525,8 +566,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<OuterEnum>) - System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -536,8 +578,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -548,8 +591,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -560,8 +604,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -573,8 +618,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model /// @@ -584,8 +630,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model @@ -596,8 +643,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -620,8 +668,9 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -645,8 +694,9 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters /// @@ -663,8 +713,9 @@ public interface IFakeApiAsync : IApiAccessor /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters @@ -682,8 +733,9 @@ public interface IFakeApiAsync : IApiAccessor /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) /// @@ -698,8 +750,9 @@ public interface IFakeApiAsync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) @@ -715,8 +768,9 @@ public interface IFakeApiAsync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties /// @@ -726,8 +780,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties @@ -738,8 +793,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data /// @@ -750,8 +806,9 @@ public interface IFakeApiAsync : IApiAccessor /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data @@ -763,8 +820,9 @@ public interface IFakeApiAsync : IApiAccessor /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -778,8 +836,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -794,8 +853,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -920,10 +980,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Health check endpoint /// /// Thrown when fails to make API call + /// /// HealthCheckResult - public HealthCheckResult FakeHealthGet() + public HealthCheckResult FakeHealthGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeHealthGetWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeHealthGetWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -931,10 +992,16 @@ public HealthCheckResult FakeHealthGet() /// Health check endpoint /// /// Thrown when fails to make API call + /// /// ApiResponse of HealthCheckResult - public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -977,10 +1044,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of HealthCheckResult - public async System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeHealthGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeHealthGetWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -989,11 +1057,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (HealthCheckResult) - public async System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1037,10 +1109,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?)) + public bool FakeOuterBooleanSerialize(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1049,10 +1122,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1098,10 +1177,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1111,11 +1191,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1161,10 +1245,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// OuterComposite - public OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite)) + public OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite, localVarRequestOptions); return localVarResponse.Data; } @@ -1173,10 +1258,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// ApiResponse of OuterComposite - public Org.OpenAPITools.Client.ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1222,10 +1313,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of OuterComposite - public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterCompositeSerializeWithHttpInfoAsync(outerComposite, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterCompositeSerializeWithHttpInfoAsync(outerComposite, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1235,11 +1327,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (OuterComposite) - public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1285,10 +1381,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)) + public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1297,10 +1394,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1346,10 +1449,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1359,11 +1463,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1409,10 +1517,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// string - public string FakeOuterStringSerialize(string body = default(string)) + public string FakeOuterStringSerialize(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1421,10 +1530,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1470,10 +1585,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1483,11 +1599,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1532,10 +1652,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Array of Enums /// /// Thrown when fails to make API call + /// /// List<OuterEnum> - public List GetArrayOfEnums() + public List GetArrayOfEnums(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetArrayOfEnumsWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetArrayOfEnumsWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -1543,10 +1664,16 @@ public List GetArrayOfEnums() /// Array of Enums /// /// Thrown when fails to make API call + /// /// ApiResponse of List<OuterEnum> - public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1589,10 +1716,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of List<OuterEnum> - public async System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetArrayOfEnumsWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetArrayOfEnumsWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1601,11 +1729,15 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<OuterEnum>) - public async System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1649,10 +1781,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// + /// /// - public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) + public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass, localVarRequestOptions); } /// @@ -1660,8 +1793,9 @@ public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) /// /// Thrown when fails to make API call /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) + public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) @@ -1669,7 +1803,12 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1714,10 +1853,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestBodyWithFileSchemaWithHttpInfoAsync(fileSchemaTestClass, cancellationToken).ConfigureAwait(false); + await TestBodyWithFileSchemaWithHttpInfoAsync(fileSchemaTestClass, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1726,8 +1866,9 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) @@ -1736,7 +1877,10 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1782,10 +1926,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// + /// /// - public void TestBodyWithQueryParams(string query, User user) + public void TestBodyWithQueryParams(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestBodyWithQueryParamsWithHttpInfo(query, user); + TestBodyWithQueryParamsWithHttpInfo(query, user, localVarRequestOptions); } /// @@ -1794,8 +1939,9 @@ public void TestBodyWithQueryParams(string query, User user) /// Thrown when fails to make API call /// /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user) + public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'query' is set if (query == null) @@ -1809,7 +1955,12 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1856,10 +2007,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestBodyWithQueryParamsWithHttpInfoAsync(query, user, cancellationToken).ConfigureAwait(false); + await TestBodyWithQueryParamsWithHttpInfoAsync(query, user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1869,8 +2021,9 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'query' is set if (query == null) @@ -1885,7 +2038,10 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1931,10 +2087,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient TestClientModel(ModelClient modelClient) + public ModelClient TestClientModel(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -1943,8 +2100,9 @@ public ModelClient TestClientModel(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -1952,7 +2110,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1998,10 +2161,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClientModelWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClientModelWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -2011,8 +2175,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -2021,7 +2186,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -2080,10 +2248,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, localVarRequestOptions); } /// @@ -2104,8 +2273,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2119,7 +2289,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2226,10 +2401,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken).ConfigureAwait(false); + await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2251,8 +2427,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2267,7 +2444,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2368,10 +2548,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// - public void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)) + public void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); + TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, localVarRequestOptions); } /// @@ -2386,10 +2567,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2472,10 +2659,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestEnumParametersWithHttpInfoAsync(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, cancellationToken).ConfigureAwait(false); + await TestEnumParametersWithHttpInfoAsync(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2491,11 +2679,15 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2576,10 +2768,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); + TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, localVarRequestOptions); } /// @@ -2592,10 +2785,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -2634,9 +2833,19 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI // authentication (bearer_test) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2664,10 +2873,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken).ConfigureAwait(false); + await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2681,11 +2891,15 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -2724,9 +2938,19 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI // authentication (bearer_test) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2749,10 +2973,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// /// Thrown when fails to make API call /// request body + /// /// - public void TestInlineAdditionalProperties(Dictionary requestBody) + public void TestInlineAdditionalProperties(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestInlineAdditionalPropertiesWithHttpInfo(requestBody); + TestInlineAdditionalPropertiesWithHttpInfo(requestBody, localVarRequestOptions); } /// @@ -2760,8 +2985,9 @@ public void TestInlineAdditionalProperties(Dictionary requestBod /// /// Thrown when fails to make API call /// request body + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody) + public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requestBody' is set if (requestBody == null) @@ -2769,7 +2995,12 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -2814,10 +3045,11 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestInlineAdditionalPropertiesWithHttpInfoAsync(requestBody, cancellationToken).ConfigureAwait(false); + await TestInlineAdditionalPropertiesWithHttpInfoAsync(requestBody, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2826,8 +3058,9 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requestBody' is set if (requestBody == null) @@ -2836,7 +3069,10 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -2882,10 +3118,11 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// field1 /// field2 + /// /// - public void TestJsonFormData(string param, string param2) + public void TestJsonFormData(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestJsonFormDataWithHttpInfo(param, param2); + TestJsonFormDataWithHttpInfo(param, param2, localVarRequestOptions); } /// @@ -2894,8 +3131,9 @@ public void TestJsonFormData(string param, string param2) /// Thrown when fails to make API call /// field1 /// field2 + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2) + public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'param' is set if (param == null) @@ -2909,7 +3147,12 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'param2' when calling FakeApi->TestJsonFormData"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2956,10 +3199,11 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestJsonFormDataWithHttpInfoAsync(param, param2, cancellationToken).ConfigureAwait(false); + await TestJsonFormDataWithHttpInfoAsync(param, param2, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2969,8 +3213,9 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'param' is set if (param == null) @@ -2985,7 +3230,10 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -3035,10 +3283,11 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// /// /// + /// /// - public void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) + public void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); + TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, localVarRequestOptions); } /// @@ -3050,8 +3299,9 @@ public void TestQueryParameterCollectionFormat(List pipe, List i /// /// /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) + public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pipe' is set if (pipe == null) @@ -3083,7 +3333,12 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -3135,10 +3390,11 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestQueryParameterCollectionFormatWithHttpInfoAsync(pipe, ioutil, http, url, context, cancellationToken).ConfigureAwait(false); + await TestQueryParameterCollectionFormatWithHttpInfoAsync(pipe, ioutil, http, url, context, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -3151,8 +3407,9 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pipe' is set if (pipe == null) @@ -3185,7 +3442,10 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -3229,4 +3489,4 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index c2852b36a44b..5f976453a4b0 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -34,8 +34,9 @@ public interface IFakeClassnameTags123ApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient TestClassname(ModelClient modelClient); + ModelClient TestClassname(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test class name in snake case @@ -45,8 +46,9 @@ public interface IFakeClassnameTags123ApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient); + ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -65,8 +67,9 @@ public interface IFakeClassnameTags123ApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test class name in snake case @@ -77,8 +80,9 @@ public interface IFakeClassnameTags123ApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -204,10 +208,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient TestClassname(ModelClient modelClient) + public ModelClient TestClassname(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -216,8 +221,9 @@ public ModelClient TestClassname(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -225,7 +231,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -276,10 +287,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClassnameWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClassnameWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -289,8 +301,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -299,7 +312,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -346,4 +362,4 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/PetApi.cs index 39d2e425e630..3fe94e5d3f85 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/PetApi.cs @@ -31,8 +31,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - void AddPet(Pet pet); + void AddPet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Add a new pet to the store @@ -42,16 +43,18 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - ApiResponse AddPetWithHttpInfo(Pet pet); + ApiResponse AddPetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet /// /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// - void DeletePet(long petId, string apiKey = default(string)); + void DeletePet(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet @@ -62,8 +65,9 @@ public interface IPetApiSync : IApiAccessor /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)); + ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status /// @@ -72,8 +76,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// List<Pet> - List FindPetsByStatus(List status); + List FindPetsByStatus(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status @@ -83,8 +88,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// ApiResponse of List<Pet> - ApiResponse> FindPetsByStatusWithHttpInfo(List status); + ApiResponse> FindPetsByStatusWithHttpInfo(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags /// @@ -93,9 +99,10 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Tags to filter by + /// /// List<Pet> [Obsolete] - List FindPetsByTags(List tags); + List FindPetsByTags(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags @@ -105,9 +112,10 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Tags to filter by + /// /// ApiResponse of List<Pet> [Obsolete] - ApiResponse> FindPetsByTagsWithHttpInfo(List tags); + ApiResponse> FindPetsByTagsWithHttpInfo(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID /// @@ -116,8 +124,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet to return + /// /// Pet - Pet GetPetById(long petId); + Pet GetPetById(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID @@ -127,15 +136,17 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet to return + /// /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId); + ApiResponse GetPetByIdWithHttpInfo(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - void UpdatePet(Pet pet); + void UpdatePet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet @@ -145,8 +156,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - ApiResponse UpdatePetWithHttpInfo(Pet pet); + ApiResponse UpdatePetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data /// @@ -154,8 +166,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)); + void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data @@ -167,8 +180,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)); + ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image /// @@ -176,8 +190,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image @@ -189,8 +204,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) /// @@ -198,8 +214,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) @@ -211,8 +228,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -231,8 +249,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Add a new pet to the store @@ -243,8 +262,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet /// @@ -255,8 +275,9 @@ public interface IPetApiAsync : IApiAccessor /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet @@ -268,8 +289,9 @@ public interface IPetApiAsync : IApiAccessor /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status /// @@ -279,8 +301,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> - System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status @@ -291,8 +314,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) - System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags /// @@ -302,9 +326,10 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> [Obsolete] - System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags @@ -315,9 +340,10 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) [Obsolete] - System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID /// @@ -327,8 +353,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID @@ -339,8 +366,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet /// @@ -350,8 +378,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet @@ -362,8 +391,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data /// @@ -375,8 +405,9 @@ public interface IPetApiAsync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data @@ -389,8 +420,9 @@ public interface IPetApiAsync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image /// @@ -402,8 +434,9 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image @@ -416,8 +449,9 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) /// @@ -429,8 +463,9 @@ public interface IPetApiAsync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) @@ -443,8 +478,9 @@ public interface IPetApiAsync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -570,10 +606,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - public void AddPet(Pet pet) + public void AddPet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - AddPetWithHttpInfo(pet); + AddPetWithHttpInfo(pet, localVarRequestOptions); } /// @@ -581,8 +618,9 @@ public void AddPet(Pet pet) /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) + public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -590,7 +628,12 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json", @@ -633,9 +676,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -658,10 +711,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await AddPetWithHttpInfoAsync(pet, cancellationToken).ConfigureAwait(false); + await AddPetWithHttpInfoAsync(pet, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -670,8 +724,9 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -680,7 +735,10 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json", @@ -723,9 +781,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -749,10 +817,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// - public void DeletePet(long petId, string apiKey = default(string)) + public void DeletePet(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeletePetWithHttpInfo(petId, apiKey); + DeletePetWithHttpInfo(petId, apiKey, localVarRequestOptions); } /// @@ -761,10 +830,16 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -793,9 +868,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -819,10 +904,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken).ConfigureAwait(false); + await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -832,11 +918,15 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -865,9 +955,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -890,10 +990,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// List<Pet> - public List FindPetsByStatus(List status) + public List FindPetsByStatus(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByStatusWithHttpInfo(status); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByStatusWithHttpInfo(status, localVarRequestOptions); return localVarResponse.Data; } @@ -902,8 +1003,9 @@ public List FindPetsByStatus(List status) /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// ApiResponse of List<Pet> - public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpInfo(List status) + public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpInfo(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'status' is set if (status == null) @@ -911,7 +1013,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'status' when calling PetApi->FindPetsByStatus"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -954,9 +1061,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -979,10 +1096,11 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> - public async System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByStatusWithHttpInfoAsync(status, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByStatusWithHttpInfoAsync(status, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -992,8 +1110,9 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) - public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'status' is set if (status == null) @@ -1002,7 +1121,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1045,9 +1167,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1070,11 +1202,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// /// Thrown when fails to make API call /// Tags to filter by + /// /// List<Pet> [Obsolete] - public List FindPetsByTags(List tags) + public List FindPetsByTags(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByTagsWithHttpInfo(tags); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByTagsWithHttpInfo(tags, localVarRequestOptions); return localVarResponse.Data; } @@ -1083,9 +1216,10 @@ public List FindPetsByTags(List tags) /// /// Thrown when fails to make API call /// Tags to filter by + /// /// ApiResponse of List<Pet> [Obsolete] - public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo(List tags) + public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'tags' is set if (tags == null) @@ -1093,7 +1227,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'tags' when calling PetApi->FindPetsByTags"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1136,9 +1275,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1161,11 +1310,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> [Obsolete] - public async System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByTagsWithHttpInfoAsync(tags, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByTagsWithHttpInfoAsync(tags, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1175,9 +1325,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) [Obsolete] - public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'tags' is set if (tags == null) @@ -1186,7 +1337,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1229,9 +1383,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1254,10 +1418,11 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// /// Thrown when fails to make API call /// ID of pet to return + /// /// Pet - public Pet GetPetById(long petId) + public Pet GetPetById(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId, localVarRequestOptions); return localVarResponse.Data; } @@ -1266,10 +1431,16 @@ public Pet GetPetById(long petId) /// /// Thrown when fails to make API call /// ID of pet to return + /// /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1320,10 +1491,11 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1333,11 +1505,15 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1388,10 +1564,11 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - public void UpdatePet(Pet pet) + public void UpdatePet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdatePetWithHttpInfo(pet); + UpdatePetWithHttpInfo(pet, localVarRequestOptions); } /// @@ -1399,8 +1576,9 @@ public void UpdatePet(Pet pet) /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -1408,7 +1586,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json", @@ -1451,9 +1634,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1476,10 +1669,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdatePetWithHttpInfoAsync(pet, cancellationToken).ConfigureAwait(false); + await UpdatePetWithHttpInfoAsync(pet, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1488,8 +1682,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -1498,7 +1693,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json", @@ -1541,9 +1739,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1568,10 +1776,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)) + public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdatePetWithFormWithHttpInfo(petId, name, status); + UpdatePetWithFormWithHttpInfo(petId, name, status, localVarRequestOptions); } /// @@ -1581,10 +1790,16 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -1618,9 +1833,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1645,10 +1870,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken).ConfigureAwait(false); + await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1659,11 +1885,15 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -1697,9 +1927,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1724,10 +1964,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); + Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file, localVarRequestOptions); return localVarResponse.Data; } @@ -1738,10 +1979,16 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -1776,9 +2023,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1803,10 +2060,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1818,11 +2076,15 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -1857,9 +2119,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1884,10 +2156,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) + public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); + Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata, localVarRequestOptions); return localVarResponse.Data; } @@ -1898,8 +2171,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requiredFile' is set if (requiredFile == null) @@ -1907,7 +2181,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -1939,9 +2218,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1966,10 +2255,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1981,8 +2271,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requiredFile' is set if (requiredFile == null) @@ -1991,7 +2282,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -2023,9 +2317,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2044,4 +2348,4 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/StoreApi.cs index 7cda385b3b40..a8f9a77baf32 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/StoreApi.cs @@ -34,8 +34,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// - void DeleteOrder(string orderId); + void DeleteOrder(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete purchase order by ID @@ -45,8 +46,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// ApiResponse of Object(void) - ApiResponse DeleteOrderWithHttpInfo(string orderId); + ApiResponse DeleteOrderWithHttpInfo(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status /// @@ -54,8 +56,9 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// Dictionary<string, int> - Dictionary GetInventory(); + Dictionary GetInventory(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status @@ -64,8 +67,9 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(); + ApiResponse> GetInventoryWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID /// @@ -74,8 +78,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// Order - Order GetOrderById(long orderId); + Order GetOrderById(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID @@ -85,15 +90,17 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId); + ApiResponse GetOrderByIdWithHttpInfo(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// Order - Order PlaceOrder(Order order); + Order PlaceOrder(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet @@ -103,8 +110,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// ApiResponse of Order - ApiResponse PlaceOrderWithHttpInfo(Order order); + ApiResponse PlaceOrderWithHttpInfo(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -123,8 +131,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete purchase order by ID @@ -135,8 +144,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status /// @@ -145,8 +155,9 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status @@ -156,8 +167,9 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID /// @@ -167,8 +179,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID @@ -179,8 +192,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet /// @@ -190,8 +204,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of Order - System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet @@ -202,8 +217,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -329,10 +345,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// - public void DeleteOrder(string orderId) + public void DeleteOrder(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeleteOrderWithHttpInfo(orderId); + DeleteOrderWithHttpInfo(orderId, localVarRequestOptions); } /// @@ -340,8 +357,9 @@ public void DeleteOrder(string orderId) /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(string orderId) + public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'orderId' is set if (orderId == null) @@ -349,7 +367,12 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -393,10 +416,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeleteOrderWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); + await DeleteOrderWithHttpInfoAsync(orderId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -405,8 +429,9 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'orderId' is set if (orderId == null) @@ -415,7 +440,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -458,10 +486,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// Dictionary<string, int> - public Dictionary GetInventory() + public Dictionary GetInventory(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -469,10 +498,16 @@ public Dictionary GetInventory() /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -520,10 +555,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -532,11 +568,15 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -585,10 +625,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// Order - public Order GetOrderById(long orderId) + public Order GetOrderById(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId, localVarRequestOptions); return localVarResponse.Data; } @@ -597,10 +638,16 @@ public Order GetOrderById(long orderId) /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -646,10 +693,11 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -659,11 +707,15 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -709,10 +761,11 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// Order - public Order PlaceOrder(Order order) + public Order PlaceOrder(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order); + Org.OpenAPITools.Client.ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order, localVarRequestOptions); return localVarResponse.Data; } @@ -721,8 +774,9 @@ public Order PlaceOrder(Order order) /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order order) + public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'order' is set if (order == null) @@ -730,7 +784,12 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -777,10 +836,11 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of Order - public async System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -790,8 +850,9 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'order' is set if (order == null) @@ -800,7 +861,10 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -843,4 +907,4 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/UserApi.cs index a1716303f6f3..dfb9382f1683 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Api/UserApi.cs @@ -34,8 +34,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Created user object + /// /// - void CreateUser(User user); + void CreateUser(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Create user @@ -45,15 +46,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Created user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUserWithHttpInfo(User user); + ApiResponse CreateUserWithHttpInfo(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// /// Thrown when fails to make API call /// List of user object + /// /// - void CreateUsersWithArrayInput(List user); + void CreateUsersWithArrayInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -63,15 +66,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user); + ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// /// Thrown when fails to make API call /// List of user object + /// /// - void CreateUsersWithListInput(List user); + void CreateUsersWithListInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -81,8 +86,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUsersWithListInputWithHttpInfo(List user); + ApiResponse CreateUsersWithListInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user /// @@ -91,8 +97,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// - void DeleteUser(string username); + void DeleteUser(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user @@ -102,15 +109,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// ApiResponse of Object(void) - ApiResponse DeleteUserWithHttpInfo(string username); + ApiResponse DeleteUserWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// User - User GetUserByName(string username); + User GetUserByName(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name @@ -120,16 +129,18 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// ApiResponse of User - ApiResponse GetUserByNameWithHttpInfo(string username); + ApiResponse GetUserByNameWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system /// /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// string - string LoginUser(string username, string password); + string LoginUser(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system @@ -140,14 +151,16 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// ApiResponse of string - ApiResponse LoginUserWithHttpInfo(string username, string password); + ApiResponse LoginUserWithHttpInfo(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// - void LogoutUser(); + void LogoutUser(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session @@ -156,8 +169,9 @@ public interface IUserApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of Object(void) - ApiResponse LogoutUserWithHttpInfo(); + ApiResponse LogoutUserWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user /// @@ -167,8 +181,9 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// - void UpdateUser(string username, User user); + void UpdateUser(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user @@ -179,8 +194,9 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// ApiResponse of Object(void) - ApiResponse UpdateUserWithHttpInfo(string username, User user); + ApiResponse UpdateUserWithHttpInfo(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -199,8 +215,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Create user @@ -211,8 +228,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// @@ -222,8 +240,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -234,8 +253,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// @@ -245,8 +265,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -257,8 +278,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user /// @@ -268,8 +290,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user @@ -280,8 +303,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name /// @@ -291,8 +315,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of User - System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name @@ -303,8 +328,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (User) - System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system /// @@ -315,8 +341,9 @@ public interface IUserApiAsync : IApiAccessor /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of string - System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system @@ -328,8 +355,9 @@ public interface IUserApiAsync : IApiAccessor /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session /// @@ -338,8 +366,9 @@ public interface IUserApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session @@ -349,8 +378,9 @@ public interface IUserApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user /// @@ -361,8 +391,9 @@ public interface IUserApiAsync : IApiAccessor /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user @@ -374,8 +405,9 @@ public interface IUserApiAsync : IApiAccessor /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -501,10 +533,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Created user object + /// /// - public void CreateUser(User user) + public void CreateUser(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUserWithHttpInfo(user); + CreateUserWithHttpInfo(user, localVarRequestOptions); } /// @@ -512,8 +545,9 @@ public void CreateUser(User user) /// /// Thrown when fails to make API call /// Created user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User user) + public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -521,7 +555,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -566,10 +605,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUserWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUserWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -578,8 +618,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -588,7 +629,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -633,10 +677,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// /// Thrown when fails to make API call /// List of user object + /// /// - public void CreateUsersWithArrayInput(List user) + public void CreateUsersWithArrayInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUsersWithArrayInputWithHttpInfo(user); + CreateUsersWithArrayInputWithHttpInfo(user, localVarRequestOptions); } /// @@ -644,8 +689,9 @@ public void CreateUsersWithArrayInput(List user) /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user) + public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -653,7 +699,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -698,10 +749,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -710,8 +762,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -720,7 +773,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -765,10 +821,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// /// Thrown when fails to make API call /// List of user object + /// /// - public void CreateUsersWithListInput(List user) + public void CreateUsersWithListInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUsersWithListInputWithHttpInfo(user); + CreateUsersWithListInputWithHttpInfo(user, localVarRequestOptions); } /// @@ -776,8 +833,9 @@ public void CreateUsersWithListInput(List user) /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithHttpInfo(List user) + public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -785,7 +843,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -830,10 +893,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -842,8 +906,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -852,7 +917,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -897,10 +965,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// - public void DeleteUser(string username) + public void DeleteUser(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeleteUserWithHttpInfo(username); + DeleteUserWithHttpInfo(username, localVarRequestOptions); } /// @@ -908,8 +977,9 @@ public void DeleteUser(string username) /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string username) + public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -917,7 +987,12 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -961,10 +1036,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeleteUserWithHttpInfoAsync(username, cancellationToken).ConfigureAwait(false); + await DeleteUserWithHttpInfoAsync(username, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -973,8 +1049,9 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -983,7 +1060,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1027,10 +1107,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// User - public User GetUserByName(string username) + public User GetUserByName(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(username); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(username, localVarRequestOptions); return localVarResponse.Data; } @@ -1039,8 +1120,9 @@ public User GetUserByName(string username) /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// ApiResponse of User - public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(string username) + public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1048,7 +1130,12 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1094,10 +1181,11 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of User - public async System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(username, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(username, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1107,8 +1195,9 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (User) - public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1117,7 +1206,10 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1164,10 +1256,11 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// string - public string LoginUser(string username, string password) + public string LoginUser(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = LoginUserWithHttpInfo(username, password); + Org.OpenAPITools.Client.ApiResponse localVarResponse = LoginUserWithHttpInfo(username, password, localVarRequestOptions); return localVarResponse.Data; } @@ -1177,8 +1270,9 @@ public string LoginUser(string username, string password) /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string username, string password) + public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1192,7 +1286,12 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1240,10 +1339,11 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of string - public async System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await LoginUserWithHttpInfoAsync(username, password, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await LoginUserWithHttpInfoAsync(username, password, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1254,8 +1354,9 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1270,7 +1371,10 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1316,20 +1420,27 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// - public void LogoutUser() + public void LogoutUser(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - LogoutUserWithHttpInfo(); + LogoutUserWithHttpInfo(localVarRequestOptions); } /// /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1371,10 +1482,11 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await LogoutUserWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + await LogoutUserWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1382,11 +1494,15 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1430,10 +1546,11 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// - public void UpdateUser(string username, User user) + public void UpdateUser(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdateUserWithHttpInfo(username, user); + UpdateUserWithHttpInfo(username, user, localVarRequestOptions); } /// @@ -1442,8 +1559,9 @@ public void UpdateUser(string username, User user) /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string username, User user) + public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1457,7 +1575,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1504,10 +1627,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdateUserWithHttpInfoAsync(username, user, cancellationToken).ConfigureAwait(false); + await UpdateUserWithHttpInfoAsync(username, user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1517,8 +1641,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1533,7 +1658,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1575,4 +1703,4 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/Configuration.cs index 992454bacf6d..d1b1ab599200 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/Configuration.cs @@ -111,6 +111,7 @@ public Configuration() DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); ApiKeyPrefix = new ConcurrentDictionary(); + GetAccessToken = () => AccessToken; Servers = new List>() { { @@ -313,6 +314,16 @@ public string GetApiKeyWithPrefix(string apiKeyIdentifier) /// The access token. public virtual string AccessToken { get; set; } + + /// + /// Gets the Access Token + /// + /// This helper function allows for customization of the Access Token retrieval. + /// For example, automatic JWT token refreshes. + /// + /// The access token. + public virtual Func GetAccessToken { get; set; } + /// /// Gets or sets the temporary folder path to store the files downloaded from the server. /// @@ -578,10 +589,11 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration AccessToken = second.AccessToken ?? first.AccessToken, HttpSigningConfiguration = second.HttpSigningConfiguration ?? first.HttpSigningConfiguration, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + GetAccessToken = second.GetAccessToken ?? first.GetAccessToken }; return config; } #endregion Static Members } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/IReadableConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/IReadableConfiguration.cs index 2c22d47296f9..526766d180b7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/IReadableConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Client/IReadableConfiguration.cs @@ -26,6 +26,8 @@ public interface IReadableConfiguration /// Access token. string AccessToken { get; } + Func GetAccessToken {get;} + /// /// Gets the API key. /// @@ -117,4 +119,4 @@ public interface IReadableConfiguration /// HttpSigningConfiguration HttpSigningConfiguration { get; } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/.openapi-generator/VERSION b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/.openapi-generator/VERSION index 4077803655c0..e230c8396d19 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/.openapi-generator/VERSION +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/.openapi-generator/VERSION @@ -1 +1 @@ -5.3.1-SNAPSHOT \ No newline at end of file +5.3.0 \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Configuration.cs index 992454bacf6d..d1b1ab599200 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/Configuration.cs @@ -111,6 +111,7 @@ public Configuration() DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); ApiKeyPrefix = new ConcurrentDictionary(); + GetAccessToken = () => AccessToken; Servers = new List>() { { @@ -313,6 +314,16 @@ public string GetApiKeyWithPrefix(string apiKeyIdentifier) /// The access token. public virtual string AccessToken { get; set; } + + /// + /// Gets the Access Token + /// + /// This helper function allows for customization of the Access Token retrieval. + /// For example, automatic JWT token refreshes. + /// + /// The access token. + public virtual Func GetAccessToken { get; set; } + /// /// Gets or sets the temporary folder path to store the files downloaded from the server. /// @@ -578,10 +589,11 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration AccessToken = second.AccessToken ?? first.AccessToken, HttpSigningConfiguration = second.HttpSigningConfiguration ?? first.HttpSigningConfiguration, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + GetAccessToken = second.GetAccessToken ?? first.GetAccessToken }; return config; } #endregion Static Members } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/IReadableConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/IReadableConfiguration.cs index 2c22d47296f9..526766d180b7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/IReadableConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/IReadableConfiguration.cs @@ -26,6 +26,8 @@ public interface IReadableConfiguration /// Access token. string AccessToken { get; } + Func GetAccessToken {get;} + /// /// Gets the API key. /// @@ -117,4 +119,4 @@ public interface IReadableConfiguration /// HttpSigningConfiguration HttpSigningConfiguration { get; } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/.openapi-generator/VERSION b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/.openapi-generator/VERSION index 4077803655c0..e230c8396d19 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/.openapi-generator/VERSION +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/.openapi-generator/VERSION @@ -1 +1 @@ -5.3.1-SNAPSHOT \ No newline at end of file +5.3.0 \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index ac8fbdcdc946..82200d160de2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -34,8 +34,9 @@ public interface IAnotherFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient Call123TestSpecialTags(ModelClient modelClient); + ModelClient Call123TestSpecialTags(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test special tags @@ -45,8 +46,9 @@ public interface IAnotherFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient); + ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -65,8 +67,9 @@ public interface IAnotherFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test special tags @@ -77,8 +80,9 @@ public interface IAnotherFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -204,10 +208,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient Call123TestSpecialTags(ModelClient modelClient) + public ModelClient Call123TestSpecialTags(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -216,8 +221,9 @@ public ModelClient Call123TestSpecialTags(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -225,7 +231,12 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -271,10 +282,11 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -284,8 +296,9 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -294,7 +307,10 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -336,4 +352,4 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/DefaultApi.cs index a9e5cfb9c4d2..8c453fafe696 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -30,8 +30,9 @@ public interface IDefaultApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// InlineResponseDefault - InlineResponseDefault FooGet(); + InlineResponseDefault FooGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -40,8 +41,9 @@ public interface IDefaultApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of InlineResponseDefault - ApiResponse FooGetWithHttpInfo(); + ApiResponse FooGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -59,8 +61,9 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of InlineResponseDefault - System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -70,8 +73,9 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (InlineResponseDefault) - System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -196,10 +200,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// /// Thrown when fails to make API call + /// /// InlineResponseDefault - public InlineResponseDefault FooGet() + public InlineResponseDefault FooGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FooGetWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FooGetWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -207,10 +212,16 @@ public InlineResponseDefault FooGet() /// /// /// Thrown when fails to make API call + /// /// ApiResponse of InlineResponseDefault - public Org.OpenAPITools.Client.ApiResponse FooGetWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse FooGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -253,10 +264,11 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of InlineResponseDefault - public async System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -265,11 +277,15 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (InlineResponseDefault) - public async System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -309,4 +325,4 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeApi.cs index 57a99469634f..94abf521b073 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeApi.cs @@ -30,8 +30,9 @@ public interface IFakeApiSync : IApiAccessor /// Health check endpoint /// /// Thrown when fails to make API call + /// /// HealthCheckResult - HealthCheckResult FakeHealthGet(); + HealthCheckResult FakeHealthGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Health check endpoint @@ -40,8 +41,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of HealthCheckResult - ApiResponse FakeHealthGetWithHttpInfo(); + ApiResponse FakeHealthGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -50,8 +52,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?)); + bool FakeOuterBooleanSerialize(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -61,8 +64,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)); + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -71,8 +75,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// OuterComposite - OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite)); + OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -82,8 +87,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// ApiResponse of OuterComposite - ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite)); + ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -92,8 +98,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)); + decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -103,8 +110,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)); + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -113,8 +121,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// string - string FakeOuterStringSerialize(string body = default(string)); + string FakeOuterStringSerialize(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -124,14 +133,16 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string)); + ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums /// /// Thrown when fails to make API call + /// /// List<OuterEnum> - List GetArrayOfEnums(); + List GetArrayOfEnums(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums @@ -140,8 +151,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of List<OuterEnum> - ApiResponse> GetArrayOfEnumsWithHttpInfo(); + ApiResponse> GetArrayOfEnumsWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -150,8 +162,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// + /// /// - void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -161,16 +174,18 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass); + ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// /// Thrown when fails to make API call /// /// + /// /// - void TestBodyWithQueryParams(string query, User user); + void TestBodyWithQueryParams(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -181,8 +196,9 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user); + ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model /// @@ -191,8 +207,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient TestClientModel(ModelClient modelClient); + ModelClient TestClientModel(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model @@ -202,8 +219,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient); + ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -225,8 +243,9 @@ public interface IFakeApiSync : IApiAccessor /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -249,8 +268,9 @@ public interface IFakeApiSync : IApiAccessor /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters /// @@ -266,8 +286,9 @@ public interface IFakeApiSync : IApiAccessor /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// - void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)); + void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters @@ -284,8 +305,9 @@ public interface IFakeApiSync : IApiAccessor /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// ApiResponse of Object(void) - ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)); + ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) /// @@ -299,8 +321,9 @@ public interface IFakeApiSync : IApiAccessor /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) @@ -315,15 +338,17 @@ public interface IFakeApiSync : IApiAccessor /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties /// /// Thrown when fails to make API call /// request body + /// /// - void TestInlineAdditionalProperties(Dictionary requestBody); + void TestInlineAdditionalProperties(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties @@ -333,16 +358,18 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// request body + /// /// ApiResponse of Object(void) - ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody); + ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data /// /// Thrown when fails to make API call /// field1 /// field2 + /// /// - void TestJsonFormData(string param, string param2); + void TestJsonFormData(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data @@ -353,8 +380,9 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// field1 /// field2 + /// /// ApiResponse of Object(void) - ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2); + ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -367,8 +395,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// + /// /// - void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context); + void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -382,8 +411,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// + /// /// ApiResponse of Object(void) - ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context); + ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -401,8 +431,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of HealthCheckResult - System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Health check endpoint @@ -412,8 +443,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (HealthCheckResult) - System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -423,8 +455,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -435,8 +468,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -446,8 +480,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of OuterComposite - System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -458,8 +493,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (OuterComposite) - System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -469,8 +505,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -481,8 +518,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -492,8 +530,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -504,8 +543,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums /// @@ -514,8 +554,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of List<OuterEnum> - System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums @@ -525,8 +566,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<OuterEnum>) - System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -536,8 +578,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -548,8 +591,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -560,8 +604,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -573,8 +618,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model /// @@ -584,8 +630,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model @@ -596,8 +643,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -620,8 +668,9 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -645,8 +694,9 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters /// @@ -663,8 +713,9 @@ public interface IFakeApiAsync : IApiAccessor /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters @@ -682,8 +733,9 @@ public interface IFakeApiAsync : IApiAccessor /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) /// @@ -698,8 +750,9 @@ public interface IFakeApiAsync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) @@ -715,8 +768,9 @@ public interface IFakeApiAsync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties /// @@ -726,8 +780,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties @@ -738,8 +793,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data /// @@ -750,8 +806,9 @@ public interface IFakeApiAsync : IApiAccessor /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data @@ -763,8 +820,9 @@ public interface IFakeApiAsync : IApiAccessor /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -778,8 +836,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -794,8 +853,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -920,10 +980,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Health check endpoint /// /// Thrown when fails to make API call + /// /// HealthCheckResult - public HealthCheckResult FakeHealthGet() + public HealthCheckResult FakeHealthGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeHealthGetWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeHealthGetWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -931,10 +992,16 @@ public HealthCheckResult FakeHealthGet() /// Health check endpoint /// /// Thrown when fails to make API call + /// /// ApiResponse of HealthCheckResult - public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -977,10 +1044,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of HealthCheckResult - public async System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeHealthGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeHealthGetWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -989,11 +1057,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (HealthCheckResult) - public async System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1037,10 +1109,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?)) + public bool FakeOuterBooleanSerialize(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1049,10 +1122,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1098,10 +1177,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1111,11 +1191,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1161,10 +1245,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// OuterComposite - public OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite)) + public OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite, localVarRequestOptions); return localVarResponse.Data; } @@ -1173,10 +1258,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// ApiResponse of OuterComposite - public Org.OpenAPITools.Client.ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1222,10 +1313,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of OuterComposite - public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterCompositeSerializeWithHttpInfoAsync(outerComposite, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterCompositeSerializeWithHttpInfoAsync(outerComposite, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1235,11 +1327,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (OuterComposite) - public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1285,10 +1381,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)) + public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1297,10 +1394,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1346,10 +1449,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1359,11 +1463,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1409,10 +1517,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// string - public string FakeOuterStringSerialize(string body = default(string)) + public string FakeOuterStringSerialize(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1421,10 +1530,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1470,10 +1585,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1483,11 +1599,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1532,10 +1652,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Array of Enums /// /// Thrown when fails to make API call + /// /// List<OuterEnum> - public List GetArrayOfEnums() + public List GetArrayOfEnums(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetArrayOfEnumsWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetArrayOfEnumsWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -1543,10 +1664,16 @@ public List GetArrayOfEnums() /// Array of Enums /// /// Thrown when fails to make API call + /// /// ApiResponse of List<OuterEnum> - public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1589,10 +1716,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of List<OuterEnum> - public async System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetArrayOfEnumsWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetArrayOfEnumsWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1601,11 +1729,15 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<OuterEnum>) - public async System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1649,10 +1781,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// + /// /// - public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) + public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass, localVarRequestOptions); } /// @@ -1660,8 +1793,9 @@ public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) /// /// Thrown when fails to make API call /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) + public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) @@ -1669,7 +1803,12 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1714,10 +1853,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestBodyWithFileSchemaWithHttpInfoAsync(fileSchemaTestClass, cancellationToken).ConfigureAwait(false); + await TestBodyWithFileSchemaWithHttpInfoAsync(fileSchemaTestClass, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1726,8 +1866,9 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) @@ -1736,7 +1877,10 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1782,10 +1926,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// + /// /// - public void TestBodyWithQueryParams(string query, User user) + public void TestBodyWithQueryParams(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestBodyWithQueryParamsWithHttpInfo(query, user); + TestBodyWithQueryParamsWithHttpInfo(query, user, localVarRequestOptions); } /// @@ -1794,8 +1939,9 @@ public void TestBodyWithQueryParams(string query, User user) /// Thrown when fails to make API call /// /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user) + public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'query' is set if (query == null) @@ -1809,7 +1955,12 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1856,10 +2007,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestBodyWithQueryParamsWithHttpInfoAsync(query, user, cancellationToken).ConfigureAwait(false); + await TestBodyWithQueryParamsWithHttpInfoAsync(query, user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1869,8 +2021,9 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'query' is set if (query == null) @@ -1885,7 +2038,10 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1931,10 +2087,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient TestClientModel(ModelClient modelClient) + public ModelClient TestClientModel(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -1943,8 +2100,9 @@ public ModelClient TestClientModel(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -1952,7 +2110,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1998,10 +2161,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClientModelWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClientModelWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -2011,8 +2175,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -2021,7 +2186,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -2080,10 +2248,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, localVarRequestOptions); } /// @@ -2104,8 +2273,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2119,7 +2289,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2226,10 +2401,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken).ConfigureAwait(false); + await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2251,8 +2427,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2267,7 +2444,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2368,10 +2548,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// - public void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)) + public void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); + TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, localVarRequestOptions); } /// @@ -2386,10 +2567,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2472,10 +2659,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestEnumParametersWithHttpInfoAsync(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, cancellationToken).ConfigureAwait(false); + await TestEnumParametersWithHttpInfoAsync(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2491,11 +2679,15 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2576,10 +2768,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); + TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, localVarRequestOptions); } /// @@ -2592,10 +2785,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -2634,9 +2833,19 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI // authentication (bearer_test) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2664,10 +2873,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken).ConfigureAwait(false); + await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2681,11 +2891,15 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -2724,9 +2938,19 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI // authentication (bearer_test) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2749,10 +2973,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// /// Thrown when fails to make API call /// request body + /// /// - public void TestInlineAdditionalProperties(Dictionary requestBody) + public void TestInlineAdditionalProperties(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestInlineAdditionalPropertiesWithHttpInfo(requestBody); + TestInlineAdditionalPropertiesWithHttpInfo(requestBody, localVarRequestOptions); } /// @@ -2760,8 +2985,9 @@ public void TestInlineAdditionalProperties(Dictionary requestBod /// /// Thrown when fails to make API call /// request body + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody) + public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requestBody' is set if (requestBody == null) @@ -2769,7 +2995,12 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -2814,10 +3045,11 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestInlineAdditionalPropertiesWithHttpInfoAsync(requestBody, cancellationToken).ConfigureAwait(false); + await TestInlineAdditionalPropertiesWithHttpInfoAsync(requestBody, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2826,8 +3058,9 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requestBody' is set if (requestBody == null) @@ -2836,7 +3069,10 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -2882,10 +3118,11 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// field1 /// field2 + /// /// - public void TestJsonFormData(string param, string param2) + public void TestJsonFormData(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestJsonFormDataWithHttpInfo(param, param2); + TestJsonFormDataWithHttpInfo(param, param2, localVarRequestOptions); } /// @@ -2894,8 +3131,9 @@ public void TestJsonFormData(string param, string param2) /// Thrown when fails to make API call /// field1 /// field2 + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2) + public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'param' is set if (param == null) @@ -2909,7 +3147,12 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'param2' when calling FakeApi->TestJsonFormData"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2956,10 +3199,11 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestJsonFormDataWithHttpInfoAsync(param, param2, cancellationToken).ConfigureAwait(false); + await TestJsonFormDataWithHttpInfoAsync(param, param2, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2969,8 +3213,9 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'param' is set if (param == null) @@ -2985,7 +3230,10 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -3035,10 +3283,11 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// /// /// + /// /// - public void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) + public void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); + TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, localVarRequestOptions); } /// @@ -3050,8 +3299,9 @@ public void TestQueryParameterCollectionFormat(List pipe, List i /// /// /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) + public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pipe' is set if (pipe == null) @@ -3083,7 +3333,12 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -3135,10 +3390,11 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestQueryParameterCollectionFormatWithHttpInfoAsync(pipe, ioutil, http, url, context, cancellationToken).ConfigureAwait(false); + await TestQueryParameterCollectionFormatWithHttpInfoAsync(pipe, ioutil, http, url, context, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -3151,8 +3407,9 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pipe' is set if (pipe == null) @@ -3185,7 +3442,10 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -3229,4 +3489,4 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index c2852b36a44b..5f976453a4b0 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -34,8 +34,9 @@ public interface IFakeClassnameTags123ApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient TestClassname(ModelClient modelClient); + ModelClient TestClassname(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test class name in snake case @@ -45,8 +46,9 @@ public interface IFakeClassnameTags123ApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient); + ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -65,8 +67,9 @@ public interface IFakeClassnameTags123ApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test class name in snake case @@ -77,8 +80,9 @@ public interface IFakeClassnameTags123ApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -204,10 +208,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient TestClassname(ModelClient modelClient) + public ModelClient TestClassname(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -216,8 +221,9 @@ public ModelClient TestClassname(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -225,7 +231,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -276,10 +287,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClassnameWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClassnameWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -289,8 +301,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -299,7 +312,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -346,4 +362,4 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/PetApi.cs index 39d2e425e630..3fe94e5d3f85 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/PetApi.cs @@ -31,8 +31,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - void AddPet(Pet pet); + void AddPet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Add a new pet to the store @@ -42,16 +43,18 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - ApiResponse AddPetWithHttpInfo(Pet pet); + ApiResponse AddPetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet /// /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// - void DeletePet(long petId, string apiKey = default(string)); + void DeletePet(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet @@ -62,8 +65,9 @@ public interface IPetApiSync : IApiAccessor /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)); + ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status /// @@ -72,8 +76,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// List<Pet> - List FindPetsByStatus(List status); + List FindPetsByStatus(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status @@ -83,8 +88,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// ApiResponse of List<Pet> - ApiResponse> FindPetsByStatusWithHttpInfo(List status); + ApiResponse> FindPetsByStatusWithHttpInfo(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags /// @@ -93,9 +99,10 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Tags to filter by + /// /// List<Pet> [Obsolete] - List FindPetsByTags(List tags); + List FindPetsByTags(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags @@ -105,9 +112,10 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Tags to filter by + /// /// ApiResponse of List<Pet> [Obsolete] - ApiResponse> FindPetsByTagsWithHttpInfo(List tags); + ApiResponse> FindPetsByTagsWithHttpInfo(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID /// @@ -116,8 +124,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet to return + /// /// Pet - Pet GetPetById(long petId); + Pet GetPetById(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID @@ -127,15 +136,17 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet to return + /// /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId); + ApiResponse GetPetByIdWithHttpInfo(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - void UpdatePet(Pet pet); + void UpdatePet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet @@ -145,8 +156,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - ApiResponse UpdatePetWithHttpInfo(Pet pet); + ApiResponse UpdatePetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data /// @@ -154,8 +166,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)); + void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data @@ -167,8 +180,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)); + ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image /// @@ -176,8 +190,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image @@ -189,8 +204,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) /// @@ -198,8 +214,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) @@ -211,8 +228,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -231,8 +249,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Add a new pet to the store @@ -243,8 +262,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet /// @@ -255,8 +275,9 @@ public interface IPetApiAsync : IApiAccessor /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet @@ -268,8 +289,9 @@ public interface IPetApiAsync : IApiAccessor /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status /// @@ -279,8 +301,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> - System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status @@ -291,8 +314,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) - System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags /// @@ -302,9 +326,10 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> [Obsolete] - System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags @@ -315,9 +340,10 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) [Obsolete] - System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID /// @@ -327,8 +353,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID @@ -339,8 +366,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet /// @@ -350,8 +378,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet @@ -362,8 +391,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data /// @@ -375,8 +405,9 @@ public interface IPetApiAsync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data @@ -389,8 +420,9 @@ public interface IPetApiAsync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image /// @@ -402,8 +434,9 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image @@ -416,8 +449,9 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) /// @@ -429,8 +463,9 @@ public interface IPetApiAsync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) @@ -443,8 +478,9 @@ public interface IPetApiAsync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -570,10 +606,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - public void AddPet(Pet pet) + public void AddPet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - AddPetWithHttpInfo(pet); + AddPetWithHttpInfo(pet, localVarRequestOptions); } /// @@ -581,8 +618,9 @@ public void AddPet(Pet pet) /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) + public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -590,7 +628,12 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json", @@ -633,9 +676,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -658,10 +711,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await AddPetWithHttpInfoAsync(pet, cancellationToken).ConfigureAwait(false); + await AddPetWithHttpInfoAsync(pet, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -670,8 +724,9 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -680,7 +735,10 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json", @@ -723,9 +781,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -749,10 +817,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// - public void DeletePet(long petId, string apiKey = default(string)) + public void DeletePet(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeletePetWithHttpInfo(petId, apiKey); + DeletePetWithHttpInfo(petId, apiKey, localVarRequestOptions); } /// @@ -761,10 +830,16 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -793,9 +868,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -819,10 +904,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken).ConfigureAwait(false); + await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -832,11 +918,15 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -865,9 +955,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -890,10 +990,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// List<Pet> - public List FindPetsByStatus(List status) + public List FindPetsByStatus(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByStatusWithHttpInfo(status); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByStatusWithHttpInfo(status, localVarRequestOptions); return localVarResponse.Data; } @@ -902,8 +1003,9 @@ public List FindPetsByStatus(List status) /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// ApiResponse of List<Pet> - public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpInfo(List status) + public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpInfo(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'status' is set if (status == null) @@ -911,7 +1013,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'status' when calling PetApi->FindPetsByStatus"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -954,9 +1061,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -979,10 +1096,11 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> - public async System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByStatusWithHttpInfoAsync(status, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByStatusWithHttpInfoAsync(status, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -992,8 +1110,9 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) - public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'status' is set if (status == null) @@ -1002,7 +1121,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1045,9 +1167,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1070,11 +1202,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// /// Thrown when fails to make API call /// Tags to filter by + /// /// List<Pet> [Obsolete] - public List FindPetsByTags(List tags) + public List FindPetsByTags(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByTagsWithHttpInfo(tags); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByTagsWithHttpInfo(tags, localVarRequestOptions); return localVarResponse.Data; } @@ -1083,9 +1216,10 @@ public List FindPetsByTags(List tags) /// /// Thrown when fails to make API call /// Tags to filter by + /// /// ApiResponse of List<Pet> [Obsolete] - public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo(List tags) + public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'tags' is set if (tags == null) @@ -1093,7 +1227,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'tags' when calling PetApi->FindPetsByTags"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1136,9 +1275,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1161,11 +1310,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> [Obsolete] - public async System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByTagsWithHttpInfoAsync(tags, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByTagsWithHttpInfoAsync(tags, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1175,9 +1325,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) [Obsolete] - public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'tags' is set if (tags == null) @@ -1186,7 +1337,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1229,9 +1383,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1254,10 +1418,11 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// /// Thrown when fails to make API call /// ID of pet to return + /// /// Pet - public Pet GetPetById(long petId) + public Pet GetPetById(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId, localVarRequestOptions); return localVarResponse.Data; } @@ -1266,10 +1431,16 @@ public Pet GetPetById(long petId) /// /// Thrown when fails to make API call /// ID of pet to return + /// /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1320,10 +1491,11 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1333,11 +1505,15 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1388,10 +1564,11 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - public void UpdatePet(Pet pet) + public void UpdatePet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdatePetWithHttpInfo(pet); + UpdatePetWithHttpInfo(pet, localVarRequestOptions); } /// @@ -1399,8 +1576,9 @@ public void UpdatePet(Pet pet) /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -1408,7 +1586,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json", @@ -1451,9 +1634,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1476,10 +1669,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdatePetWithHttpInfoAsync(pet, cancellationToken).ConfigureAwait(false); + await UpdatePetWithHttpInfoAsync(pet, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1488,8 +1682,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -1498,7 +1693,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json", @@ -1541,9 +1739,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1568,10 +1776,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)) + public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdatePetWithFormWithHttpInfo(petId, name, status); + UpdatePetWithFormWithHttpInfo(petId, name, status, localVarRequestOptions); } /// @@ -1581,10 +1790,16 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -1618,9 +1833,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1645,10 +1870,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken).ConfigureAwait(false); + await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1659,11 +1885,15 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -1697,9 +1927,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1724,10 +1964,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); + Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file, localVarRequestOptions); return localVarResponse.Data; } @@ -1738,10 +1979,16 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -1776,9 +2023,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1803,10 +2060,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1818,11 +2076,15 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -1857,9 +2119,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1884,10 +2156,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) + public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); + Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata, localVarRequestOptions); return localVarResponse.Data; } @@ -1898,8 +2171,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requiredFile' is set if (requiredFile == null) @@ -1907,7 +2181,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -1939,9 +2218,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1966,10 +2255,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1981,8 +2271,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requiredFile' is set if (requiredFile == null) @@ -1991,7 +2282,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -2023,9 +2317,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2044,4 +2348,4 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/StoreApi.cs index 7cda385b3b40..a8f9a77baf32 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/StoreApi.cs @@ -34,8 +34,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// - void DeleteOrder(string orderId); + void DeleteOrder(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete purchase order by ID @@ -45,8 +46,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// ApiResponse of Object(void) - ApiResponse DeleteOrderWithHttpInfo(string orderId); + ApiResponse DeleteOrderWithHttpInfo(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status /// @@ -54,8 +56,9 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// Dictionary<string, int> - Dictionary GetInventory(); + Dictionary GetInventory(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status @@ -64,8 +67,9 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(); + ApiResponse> GetInventoryWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID /// @@ -74,8 +78,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// Order - Order GetOrderById(long orderId); + Order GetOrderById(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID @@ -85,15 +90,17 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId); + ApiResponse GetOrderByIdWithHttpInfo(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// Order - Order PlaceOrder(Order order); + Order PlaceOrder(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet @@ -103,8 +110,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// ApiResponse of Order - ApiResponse PlaceOrderWithHttpInfo(Order order); + ApiResponse PlaceOrderWithHttpInfo(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -123,8 +131,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete purchase order by ID @@ -135,8 +144,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status /// @@ -145,8 +155,9 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status @@ -156,8 +167,9 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID /// @@ -167,8 +179,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID @@ -179,8 +192,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet /// @@ -190,8 +204,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of Order - System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet @@ -202,8 +217,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -329,10 +345,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// - public void DeleteOrder(string orderId) + public void DeleteOrder(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeleteOrderWithHttpInfo(orderId); + DeleteOrderWithHttpInfo(orderId, localVarRequestOptions); } /// @@ -340,8 +357,9 @@ public void DeleteOrder(string orderId) /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(string orderId) + public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'orderId' is set if (orderId == null) @@ -349,7 +367,12 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -393,10 +416,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeleteOrderWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); + await DeleteOrderWithHttpInfoAsync(orderId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -405,8 +429,9 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'orderId' is set if (orderId == null) @@ -415,7 +440,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -458,10 +486,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// Dictionary<string, int> - public Dictionary GetInventory() + public Dictionary GetInventory(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -469,10 +498,16 @@ public Dictionary GetInventory() /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -520,10 +555,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -532,11 +568,15 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -585,10 +625,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// Order - public Order GetOrderById(long orderId) + public Order GetOrderById(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId, localVarRequestOptions); return localVarResponse.Data; } @@ -597,10 +638,16 @@ public Order GetOrderById(long orderId) /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -646,10 +693,11 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -659,11 +707,15 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -709,10 +761,11 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// Order - public Order PlaceOrder(Order order) + public Order PlaceOrder(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order); + Org.OpenAPITools.Client.ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order, localVarRequestOptions); return localVarResponse.Data; } @@ -721,8 +774,9 @@ public Order PlaceOrder(Order order) /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order order) + public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'order' is set if (order == null) @@ -730,7 +784,12 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -777,10 +836,11 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of Order - public async System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -790,8 +850,9 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'order' is set if (order == null) @@ -800,7 +861,10 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -843,4 +907,4 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/UserApi.cs index a1716303f6f3..dfb9382f1683 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Api/UserApi.cs @@ -34,8 +34,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Created user object + /// /// - void CreateUser(User user); + void CreateUser(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Create user @@ -45,15 +46,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Created user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUserWithHttpInfo(User user); + ApiResponse CreateUserWithHttpInfo(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// /// Thrown when fails to make API call /// List of user object + /// /// - void CreateUsersWithArrayInput(List user); + void CreateUsersWithArrayInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -63,15 +66,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user); + ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// /// Thrown when fails to make API call /// List of user object + /// /// - void CreateUsersWithListInput(List user); + void CreateUsersWithListInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -81,8 +86,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUsersWithListInputWithHttpInfo(List user); + ApiResponse CreateUsersWithListInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user /// @@ -91,8 +97,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// - void DeleteUser(string username); + void DeleteUser(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user @@ -102,15 +109,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// ApiResponse of Object(void) - ApiResponse DeleteUserWithHttpInfo(string username); + ApiResponse DeleteUserWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// User - User GetUserByName(string username); + User GetUserByName(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name @@ -120,16 +129,18 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// ApiResponse of User - ApiResponse GetUserByNameWithHttpInfo(string username); + ApiResponse GetUserByNameWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system /// /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// string - string LoginUser(string username, string password); + string LoginUser(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system @@ -140,14 +151,16 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// ApiResponse of string - ApiResponse LoginUserWithHttpInfo(string username, string password); + ApiResponse LoginUserWithHttpInfo(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// - void LogoutUser(); + void LogoutUser(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session @@ -156,8 +169,9 @@ public interface IUserApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of Object(void) - ApiResponse LogoutUserWithHttpInfo(); + ApiResponse LogoutUserWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user /// @@ -167,8 +181,9 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// - void UpdateUser(string username, User user); + void UpdateUser(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user @@ -179,8 +194,9 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// ApiResponse of Object(void) - ApiResponse UpdateUserWithHttpInfo(string username, User user); + ApiResponse UpdateUserWithHttpInfo(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -199,8 +215,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Create user @@ -211,8 +228,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// @@ -222,8 +240,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -234,8 +253,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// @@ -245,8 +265,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -257,8 +278,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user /// @@ -268,8 +290,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user @@ -280,8 +303,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name /// @@ -291,8 +315,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of User - System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name @@ -303,8 +328,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (User) - System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system /// @@ -315,8 +341,9 @@ public interface IUserApiAsync : IApiAccessor /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of string - System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system @@ -328,8 +355,9 @@ public interface IUserApiAsync : IApiAccessor /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session /// @@ -338,8 +366,9 @@ public interface IUserApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session @@ -349,8 +378,9 @@ public interface IUserApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user /// @@ -361,8 +391,9 @@ public interface IUserApiAsync : IApiAccessor /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user @@ -374,8 +405,9 @@ public interface IUserApiAsync : IApiAccessor /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -501,10 +533,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Created user object + /// /// - public void CreateUser(User user) + public void CreateUser(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUserWithHttpInfo(user); + CreateUserWithHttpInfo(user, localVarRequestOptions); } /// @@ -512,8 +545,9 @@ public void CreateUser(User user) /// /// Thrown when fails to make API call /// Created user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User user) + public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -521,7 +555,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -566,10 +605,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUserWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUserWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -578,8 +618,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -588,7 +629,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -633,10 +677,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// /// Thrown when fails to make API call /// List of user object + /// /// - public void CreateUsersWithArrayInput(List user) + public void CreateUsersWithArrayInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUsersWithArrayInputWithHttpInfo(user); + CreateUsersWithArrayInputWithHttpInfo(user, localVarRequestOptions); } /// @@ -644,8 +689,9 @@ public void CreateUsersWithArrayInput(List user) /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user) + public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -653,7 +699,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -698,10 +749,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -710,8 +762,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -720,7 +773,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -765,10 +821,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// /// Thrown when fails to make API call /// List of user object + /// /// - public void CreateUsersWithListInput(List user) + public void CreateUsersWithListInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUsersWithListInputWithHttpInfo(user); + CreateUsersWithListInputWithHttpInfo(user, localVarRequestOptions); } /// @@ -776,8 +833,9 @@ public void CreateUsersWithListInput(List user) /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithHttpInfo(List user) + public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -785,7 +843,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -830,10 +893,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -842,8 +906,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -852,7 +917,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -897,10 +965,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// - public void DeleteUser(string username) + public void DeleteUser(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeleteUserWithHttpInfo(username); + DeleteUserWithHttpInfo(username, localVarRequestOptions); } /// @@ -908,8 +977,9 @@ public void DeleteUser(string username) /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string username) + public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -917,7 +987,12 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -961,10 +1036,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeleteUserWithHttpInfoAsync(username, cancellationToken).ConfigureAwait(false); + await DeleteUserWithHttpInfoAsync(username, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -973,8 +1049,9 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -983,7 +1060,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1027,10 +1107,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// User - public User GetUserByName(string username) + public User GetUserByName(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(username); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(username, localVarRequestOptions); return localVarResponse.Data; } @@ -1039,8 +1120,9 @@ public User GetUserByName(string username) /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// ApiResponse of User - public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(string username) + public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1048,7 +1130,12 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1094,10 +1181,11 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of User - public async System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(username, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(username, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1107,8 +1195,9 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (User) - public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1117,7 +1206,10 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1164,10 +1256,11 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// string - public string LoginUser(string username, string password) + public string LoginUser(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = LoginUserWithHttpInfo(username, password); + Org.OpenAPITools.Client.ApiResponse localVarResponse = LoginUserWithHttpInfo(username, password, localVarRequestOptions); return localVarResponse.Data; } @@ -1177,8 +1270,9 @@ public string LoginUser(string username, string password) /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string username, string password) + public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1192,7 +1286,12 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1240,10 +1339,11 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of string - public async System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await LoginUserWithHttpInfoAsync(username, password, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await LoginUserWithHttpInfoAsync(username, password, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1254,8 +1354,9 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1270,7 +1371,10 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1316,20 +1420,27 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// - public void LogoutUser() + public void LogoutUser(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - LogoutUserWithHttpInfo(); + LogoutUserWithHttpInfo(localVarRequestOptions); } /// /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1371,10 +1482,11 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await LogoutUserWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + await LogoutUserWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1382,11 +1494,15 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1430,10 +1546,11 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// - public void UpdateUser(string username, User user) + public void UpdateUser(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdateUserWithHttpInfo(username, user); + UpdateUserWithHttpInfo(username, user, localVarRequestOptions); } /// @@ -1442,8 +1559,9 @@ public void UpdateUser(string username, User user) /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string username, User user) + public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1457,7 +1575,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1504,10 +1627,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdateUserWithHttpInfoAsync(username, user, cancellationToken).ConfigureAwait(false); + await UpdateUserWithHttpInfoAsync(username, user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1517,8 +1641,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1533,7 +1658,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1575,4 +1703,4 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/Configuration.cs index 8b731bfdc812..f78c623a0907 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/Configuration.cs @@ -116,6 +116,7 @@ public Configuration() DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); ApiKeyPrefix = new ConcurrentDictionary(); + GetAccessToken = () => AccessToken; Servers = new List>() { { @@ -318,6 +319,16 @@ public string GetApiKeyWithPrefix(string apiKeyIdentifier) /// The access token. public virtual string AccessToken { get; set; } + + /// + /// Gets the Access Token + /// + /// This helper function allows for customization of the Access Token retrieval. + /// For example, automatic JWT token refreshes. + /// + /// The access token. + public virtual Func GetAccessToken { get; set; } + /// /// Gets or sets the temporary folder path to store the files downloaded from the server. /// @@ -583,10 +594,11 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration AccessToken = second.AccessToken ?? first.AccessToken, HttpSigningConfiguration = second.HttpSigningConfiguration ?? first.HttpSigningConfiguration, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + GetAccessToken = second.GetAccessToken ?? first.GetAccessToken }; return config; } #endregion Static Members } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/IReadableConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/IReadableConfiguration.cs index 2c22d47296f9..526766d180b7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/IReadableConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net47/src/Org.OpenAPITools/Client/IReadableConfiguration.cs @@ -26,6 +26,8 @@ public interface IReadableConfiguration /// Access token. string AccessToken { get; } + Func GetAccessToken {get;} + /// /// Gets the API key. /// @@ -117,4 +119,4 @@ public interface IReadableConfiguration /// HttpSigningConfiguration HttpSigningConfiguration { get; } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/.openapi-generator/VERSION b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/.openapi-generator/VERSION index 4077803655c0..e230c8396d19 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/.openapi-generator/VERSION +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/.openapi-generator/VERSION @@ -1 +1 @@ -5.3.1-SNAPSHOT \ No newline at end of file +5.3.0 \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index ac8fbdcdc946..82200d160de2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -34,8 +34,9 @@ public interface IAnotherFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient Call123TestSpecialTags(ModelClient modelClient); + ModelClient Call123TestSpecialTags(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test special tags @@ -45,8 +46,9 @@ public interface IAnotherFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient); + ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -65,8 +67,9 @@ public interface IAnotherFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test special tags @@ -77,8 +80,9 @@ public interface IAnotherFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -204,10 +208,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient Call123TestSpecialTags(ModelClient modelClient) + public ModelClient Call123TestSpecialTags(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -216,8 +221,9 @@ public ModelClient Call123TestSpecialTags(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -225,7 +231,12 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -271,10 +282,11 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -284,8 +296,9 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -294,7 +307,10 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -336,4 +352,4 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs index a9e5cfb9c4d2..8c453fafe696 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -30,8 +30,9 @@ public interface IDefaultApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// InlineResponseDefault - InlineResponseDefault FooGet(); + InlineResponseDefault FooGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -40,8 +41,9 @@ public interface IDefaultApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of InlineResponseDefault - ApiResponse FooGetWithHttpInfo(); + ApiResponse FooGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -59,8 +61,9 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of InlineResponseDefault - System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -70,8 +73,9 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (InlineResponseDefault) - System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -196,10 +200,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// /// Thrown when fails to make API call + /// /// InlineResponseDefault - public InlineResponseDefault FooGet() + public InlineResponseDefault FooGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FooGetWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FooGetWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -207,10 +212,16 @@ public InlineResponseDefault FooGet() /// /// /// Thrown when fails to make API call + /// /// ApiResponse of InlineResponseDefault - public Org.OpenAPITools.Client.ApiResponse FooGetWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse FooGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -253,10 +264,11 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of InlineResponseDefault - public async System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -265,11 +277,15 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (InlineResponseDefault) - public async System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -309,4 +325,4 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs index 57a99469634f..94abf521b073 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeApi.cs @@ -30,8 +30,9 @@ public interface IFakeApiSync : IApiAccessor /// Health check endpoint /// /// Thrown when fails to make API call + /// /// HealthCheckResult - HealthCheckResult FakeHealthGet(); + HealthCheckResult FakeHealthGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Health check endpoint @@ -40,8 +41,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of HealthCheckResult - ApiResponse FakeHealthGetWithHttpInfo(); + ApiResponse FakeHealthGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -50,8 +52,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?)); + bool FakeOuterBooleanSerialize(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -61,8 +64,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)); + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -71,8 +75,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// OuterComposite - OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite)); + OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -82,8 +87,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// ApiResponse of OuterComposite - ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite)); + ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -92,8 +98,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)); + decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -103,8 +110,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)); + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -113,8 +121,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// string - string FakeOuterStringSerialize(string body = default(string)); + string FakeOuterStringSerialize(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -124,14 +133,16 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string)); + ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums /// /// Thrown when fails to make API call + /// /// List<OuterEnum> - List GetArrayOfEnums(); + List GetArrayOfEnums(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums @@ -140,8 +151,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of List<OuterEnum> - ApiResponse> GetArrayOfEnumsWithHttpInfo(); + ApiResponse> GetArrayOfEnumsWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -150,8 +162,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// + /// /// - void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -161,16 +174,18 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass); + ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// /// Thrown when fails to make API call /// /// + /// /// - void TestBodyWithQueryParams(string query, User user); + void TestBodyWithQueryParams(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -181,8 +196,9 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user); + ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model /// @@ -191,8 +207,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient TestClientModel(ModelClient modelClient); + ModelClient TestClientModel(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model @@ -202,8 +219,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient); + ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -225,8 +243,9 @@ public interface IFakeApiSync : IApiAccessor /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -249,8 +268,9 @@ public interface IFakeApiSync : IApiAccessor /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters /// @@ -266,8 +286,9 @@ public interface IFakeApiSync : IApiAccessor /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// - void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)); + void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters @@ -284,8 +305,9 @@ public interface IFakeApiSync : IApiAccessor /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// ApiResponse of Object(void) - ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)); + ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) /// @@ -299,8 +321,9 @@ public interface IFakeApiSync : IApiAccessor /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) @@ -315,15 +338,17 @@ public interface IFakeApiSync : IApiAccessor /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties /// /// Thrown when fails to make API call /// request body + /// /// - void TestInlineAdditionalProperties(Dictionary requestBody); + void TestInlineAdditionalProperties(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties @@ -333,16 +358,18 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// request body + /// /// ApiResponse of Object(void) - ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody); + ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data /// /// Thrown when fails to make API call /// field1 /// field2 + /// /// - void TestJsonFormData(string param, string param2); + void TestJsonFormData(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data @@ -353,8 +380,9 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// field1 /// field2 + /// /// ApiResponse of Object(void) - ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2); + ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -367,8 +395,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// + /// /// - void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context); + void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -382,8 +411,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// + /// /// ApiResponse of Object(void) - ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context); + ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -401,8 +431,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of HealthCheckResult - System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Health check endpoint @@ -412,8 +443,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (HealthCheckResult) - System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -423,8 +455,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -435,8 +468,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -446,8 +480,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of OuterComposite - System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -458,8 +493,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (OuterComposite) - System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -469,8 +505,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -481,8 +518,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -492,8 +530,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -504,8 +543,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums /// @@ -514,8 +554,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of List<OuterEnum> - System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums @@ -525,8 +566,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<OuterEnum>) - System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -536,8 +578,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -548,8 +591,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -560,8 +604,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -573,8 +618,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model /// @@ -584,8 +630,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model @@ -596,8 +643,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -620,8 +668,9 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -645,8 +694,9 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters /// @@ -663,8 +713,9 @@ public interface IFakeApiAsync : IApiAccessor /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters @@ -682,8 +733,9 @@ public interface IFakeApiAsync : IApiAccessor /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) /// @@ -698,8 +750,9 @@ public interface IFakeApiAsync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) @@ -715,8 +768,9 @@ public interface IFakeApiAsync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties /// @@ -726,8 +780,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties @@ -738,8 +793,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data /// @@ -750,8 +806,9 @@ public interface IFakeApiAsync : IApiAccessor /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data @@ -763,8 +820,9 @@ public interface IFakeApiAsync : IApiAccessor /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -778,8 +836,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -794,8 +853,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -920,10 +980,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Health check endpoint /// /// Thrown when fails to make API call + /// /// HealthCheckResult - public HealthCheckResult FakeHealthGet() + public HealthCheckResult FakeHealthGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeHealthGetWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeHealthGetWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -931,10 +992,16 @@ public HealthCheckResult FakeHealthGet() /// Health check endpoint /// /// Thrown when fails to make API call + /// /// ApiResponse of HealthCheckResult - public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -977,10 +1044,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of HealthCheckResult - public async System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeHealthGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeHealthGetWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -989,11 +1057,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (HealthCheckResult) - public async System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1037,10 +1109,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?)) + public bool FakeOuterBooleanSerialize(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1049,10 +1122,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1098,10 +1177,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1111,11 +1191,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1161,10 +1245,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// OuterComposite - public OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite)) + public OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite, localVarRequestOptions); return localVarResponse.Data; } @@ -1173,10 +1258,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// ApiResponse of OuterComposite - public Org.OpenAPITools.Client.ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1222,10 +1313,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of OuterComposite - public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterCompositeSerializeWithHttpInfoAsync(outerComposite, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterCompositeSerializeWithHttpInfoAsync(outerComposite, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1235,11 +1327,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (OuterComposite) - public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1285,10 +1381,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)) + public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1297,10 +1394,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1346,10 +1449,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1359,11 +1463,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1409,10 +1517,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// string - public string FakeOuterStringSerialize(string body = default(string)) + public string FakeOuterStringSerialize(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1421,10 +1530,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1470,10 +1585,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1483,11 +1599,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1532,10 +1652,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Array of Enums /// /// Thrown when fails to make API call + /// /// List<OuterEnum> - public List GetArrayOfEnums() + public List GetArrayOfEnums(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetArrayOfEnumsWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetArrayOfEnumsWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -1543,10 +1664,16 @@ public List GetArrayOfEnums() /// Array of Enums /// /// Thrown when fails to make API call + /// /// ApiResponse of List<OuterEnum> - public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1589,10 +1716,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of List<OuterEnum> - public async System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetArrayOfEnumsWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetArrayOfEnumsWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1601,11 +1729,15 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<OuterEnum>) - public async System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1649,10 +1781,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// + /// /// - public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) + public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass, localVarRequestOptions); } /// @@ -1660,8 +1793,9 @@ public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) /// /// Thrown when fails to make API call /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) + public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) @@ -1669,7 +1803,12 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1714,10 +1853,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestBodyWithFileSchemaWithHttpInfoAsync(fileSchemaTestClass, cancellationToken).ConfigureAwait(false); + await TestBodyWithFileSchemaWithHttpInfoAsync(fileSchemaTestClass, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1726,8 +1866,9 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) @@ -1736,7 +1877,10 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1782,10 +1926,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// + /// /// - public void TestBodyWithQueryParams(string query, User user) + public void TestBodyWithQueryParams(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestBodyWithQueryParamsWithHttpInfo(query, user); + TestBodyWithQueryParamsWithHttpInfo(query, user, localVarRequestOptions); } /// @@ -1794,8 +1939,9 @@ public void TestBodyWithQueryParams(string query, User user) /// Thrown when fails to make API call /// /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user) + public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'query' is set if (query == null) @@ -1809,7 +1955,12 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1856,10 +2007,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestBodyWithQueryParamsWithHttpInfoAsync(query, user, cancellationToken).ConfigureAwait(false); + await TestBodyWithQueryParamsWithHttpInfoAsync(query, user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1869,8 +2021,9 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'query' is set if (query == null) @@ -1885,7 +2038,10 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1931,10 +2087,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient TestClientModel(ModelClient modelClient) + public ModelClient TestClientModel(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -1943,8 +2100,9 @@ public ModelClient TestClientModel(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -1952,7 +2110,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1998,10 +2161,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClientModelWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClientModelWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -2011,8 +2175,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -2021,7 +2186,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -2080,10 +2248,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, localVarRequestOptions); } /// @@ -2104,8 +2273,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2119,7 +2289,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2226,10 +2401,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken).ConfigureAwait(false); + await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2251,8 +2427,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2267,7 +2444,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2368,10 +2548,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// - public void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)) + public void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); + TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, localVarRequestOptions); } /// @@ -2386,10 +2567,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2472,10 +2659,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestEnumParametersWithHttpInfoAsync(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, cancellationToken).ConfigureAwait(false); + await TestEnumParametersWithHttpInfoAsync(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2491,11 +2679,15 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2576,10 +2768,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); + TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, localVarRequestOptions); } /// @@ -2592,10 +2785,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -2634,9 +2833,19 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI // authentication (bearer_test) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2664,10 +2873,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken).ConfigureAwait(false); + await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2681,11 +2891,15 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -2724,9 +2938,19 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI // authentication (bearer_test) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2749,10 +2973,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// /// Thrown when fails to make API call /// request body + /// /// - public void TestInlineAdditionalProperties(Dictionary requestBody) + public void TestInlineAdditionalProperties(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestInlineAdditionalPropertiesWithHttpInfo(requestBody); + TestInlineAdditionalPropertiesWithHttpInfo(requestBody, localVarRequestOptions); } /// @@ -2760,8 +2985,9 @@ public void TestInlineAdditionalProperties(Dictionary requestBod /// /// Thrown when fails to make API call /// request body + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody) + public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requestBody' is set if (requestBody == null) @@ -2769,7 +2995,12 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -2814,10 +3045,11 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestInlineAdditionalPropertiesWithHttpInfoAsync(requestBody, cancellationToken).ConfigureAwait(false); + await TestInlineAdditionalPropertiesWithHttpInfoAsync(requestBody, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2826,8 +3058,9 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requestBody' is set if (requestBody == null) @@ -2836,7 +3069,10 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -2882,10 +3118,11 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// field1 /// field2 + /// /// - public void TestJsonFormData(string param, string param2) + public void TestJsonFormData(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestJsonFormDataWithHttpInfo(param, param2); + TestJsonFormDataWithHttpInfo(param, param2, localVarRequestOptions); } /// @@ -2894,8 +3131,9 @@ public void TestJsonFormData(string param, string param2) /// Thrown when fails to make API call /// field1 /// field2 + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2) + public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'param' is set if (param == null) @@ -2909,7 +3147,12 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'param2' when calling FakeApi->TestJsonFormData"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2956,10 +3199,11 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestJsonFormDataWithHttpInfoAsync(param, param2, cancellationToken).ConfigureAwait(false); + await TestJsonFormDataWithHttpInfoAsync(param, param2, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2969,8 +3213,9 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'param' is set if (param == null) @@ -2985,7 +3230,10 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -3035,10 +3283,11 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// /// /// + /// /// - public void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) + public void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); + TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, localVarRequestOptions); } /// @@ -3050,8 +3299,9 @@ public void TestQueryParameterCollectionFormat(List pipe, List i /// /// /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) + public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pipe' is set if (pipe == null) @@ -3083,7 +3333,12 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -3135,10 +3390,11 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestQueryParameterCollectionFormatWithHttpInfoAsync(pipe, ioutil, http, url, context, cancellationToken).ConfigureAwait(false); + await TestQueryParameterCollectionFormatWithHttpInfoAsync(pipe, ioutil, http, url, context, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -3151,8 +3407,9 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pipe' is set if (pipe == null) @@ -3185,7 +3442,10 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -3229,4 +3489,4 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index c2852b36a44b..5f976453a4b0 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -34,8 +34,9 @@ public interface IFakeClassnameTags123ApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient TestClassname(ModelClient modelClient); + ModelClient TestClassname(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test class name in snake case @@ -45,8 +46,9 @@ public interface IFakeClassnameTags123ApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient); + ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -65,8 +67,9 @@ public interface IFakeClassnameTags123ApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test class name in snake case @@ -77,8 +80,9 @@ public interface IFakeClassnameTags123ApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -204,10 +208,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient TestClassname(ModelClient modelClient) + public ModelClient TestClassname(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -216,8 +221,9 @@ public ModelClient TestClassname(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -225,7 +231,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -276,10 +287,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClassnameWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClassnameWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -289,8 +301,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -299,7 +312,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -346,4 +362,4 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/PetApi.cs index 39d2e425e630..3fe94e5d3f85 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/PetApi.cs @@ -31,8 +31,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - void AddPet(Pet pet); + void AddPet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Add a new pet to the store @@ -42,16 +43,18 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - ApiResponse AddPetWithHttpInfo(Pet pet); + ApiResponse AddPetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet /// /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// - void DeletePet(long petId, string apiKey = default(string)); + void DeletePet(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet @@ -62,8 +65,9 @@ public interface IPetApiSync : IApiAccessor /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)); + ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status /// @@ -72,8 +76,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// List<Pet> - List FindPetsByStatus(List status); + List FindPetsByStatus(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status @@ -83,8 +88,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// ApiResponse of List<Pet> - ApiResponse> FindPetsByStatusWithHttpInfo(List status); + ApiResponse> FindPetsByStatusWithHttpInfo(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags /// @@ -93,9 +99,10 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Tags to filter by + /// /// List<Pet> [Obsolete] - List FindPetsByTags(List tags); + List FindPetsByTags(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags @@ -105,9 +112,10 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Tags to filter by + /// /// ApiResponse of List<Pet> [Obsolete] - ApiResponse> FindPetsByTagsWithHttpInfo(List tags); + ApiResponse> FindPetsByTagsWithHttpInfo(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID /// @@ -116,8 +124,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet to return + /// /// Pet - Pet GetPetById(long petId); + Pet GetPetById(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID @@ -127,15 +136,17 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet to return + /// /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId); + ApiResponse GetPetByIdWithHttpInfo(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - void UpdatePet(Pet pet); + void UpdatePet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet @@ -145,8 +156,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - ApiResponse UpdatePetWithHttpInfo(Pet pet); + ApiResponse UpdatePetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data /// @@ -154,8 +166,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)); + void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data @@ -167,8 +180,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)); + ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image /// @@ -176,8 +190,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image @@ -189,8 +204,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) /// @@ -198,8 +214,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) @@ -211,8 +228,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -231,8 +249,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Add a new pet to the store @@ -243,8 +262,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet /// @@ -255,8 +275,9 @@ public interface IPetApiAsync : IApiAccessor /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet @@ -268,8 +289,9 @@ public interface IPetApiAsync : IApiAccessor /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status /// @@ -279,8 +301,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> - System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status @@ -291,8 +314,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) - System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags /// @@ -302,9 +326,10 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> [Obsolete] - System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags @@ -315,9 +340,10 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) [Obsolete] - System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID /// @@ -327,8 +353,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID @@ -339,8 +366,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet /// @@ -350,8 +378,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet @@ -362,8 +391,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data /// @@ -375,8 +405,9 @@ public interface IPetApiAsync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data @@ -389,8 +420,9 @@ public interface IPetApiAsync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image /// @@ -402,8 +434,9 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image @@ -416,8 +449,9 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) /// @@ -429,8 +463,9 @@ public interface IPetApiAsync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) @@ -443,8 +478,9 @@ public interface IPetApiAsync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -570,10 +606,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - public void AddPet(Pet pet) + public void AddPet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - AddPetWithHttpInfo(pet); + AddPetWithHttpInfo(pet, localVarRequestOptions); } /// @@ -581,8 +618,9 @@ public void AddPet(Pet pet) /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) + public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -590,7 +628,12 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json", @@ -633,9 +676,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -658,10 +711,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await AddPetWithHttpInfoAsync(pet, cancellationToken).ConfigureAwait(false); + await AddPetWithHttpInfoAsync(pet, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -670,8 +724,9 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -680,7 +735,10 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json", @@ -723,9 +781,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -749,10 +817,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// - public void DeletePet(long petId, string apiKey = default(string)) + public void DeletePet(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeletePetWithHttpInfo(petId, apiKey); + DeletePetWithHttpInfo(petId, apiKey, localVarRequestOptions); } /// @@ -761,10 +830,16 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -793,9 +868,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -819,10 +904,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken).ConfigureAwait(false); + await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -832,11 +918,15 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -865,9 +955,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -890,10 +990,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// List<Pet> - public List FindPetsByStatus(List status) + public List FindPetsByStatus(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByStatusWithHttpInfo(status); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByStatusWithHttpInfo(status, localVarRequestOptions); return localVarResponse.Data; } @@ -902,8 +1003,9 @@ public List FindPetsByStatus(List status) /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// ApiResponse of List<Pet> - public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpInfo(List status) + public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpInfo(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'status' is set if (status == null) @@ -911,7 +1013,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'status' when calling PetApi->FindPetsByStatus"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -954,9 +1061,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -979,10 +1096,11 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> - public async System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByStatusWithHttpInfoAsync(status, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByStatusWithHttpInfoAsync(status, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -992,8 +1110,9 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) - public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'status' is set if (status == null) @@ -1002,7 +1121,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1045,9 +1167,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1070,11 +1202,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// /// Thrown when fails to make API call /// Tags to filter by + /// /// List<Pet> [Obsolete] - public List FindPetsByTags(List tags) + public List FindPetsByTags(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByTagsWithHttpInfo(tags); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByTagsWithHttpInfo(tags, localVarRequestOptions); return localVarResponse.Data; } @@ -1083,9 +1216,10 @@ public List FindPetsByTags(List tags) /// /// Thrown when fails to make API call /// Tags to filter by + /// /// ApiResponse of List<Pet> [Obsolete] - public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo(List tags) + public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'tags' is set if (tags == null) @@ -1093,7 +1227,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'tags' when calling PetApi->FindPetsByTags"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1136,9 +1275,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1161,11 +1310,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> [Obsolete] - public async System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByTagsWithHttpInfoAsync(tags, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByTagsWithHttpInfoAsync(tags, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1175,9 +1325,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) [Obsolete] - public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'tags' is set if (tags == null) @@ -1186,7 +1337,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1229,9 +1383,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1254,10 +1418,11 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// /// Thrown when fails to make API call /// ID of pet to return + /// /// Pet - public Pet GetPetById(long petId) + public Pet GetPetById(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId, localVarRequestOptions); return localVarResponse.Data; } @@ -1266,10 +1431,16 @@ public Pet GetPetById(long petId) /// /// Thrown when fails to make API call /// ID of pet to return + /// /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1320,10 +1491,11 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1333,11 +1505,15 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1388,10 +1564,11 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - public void UpdatePet(Pet pet) + public void UpdatePet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdatePetWithHttpInfo(pet); + UpdatePetWithHttpInfo(pet, localVarRequestOptions); } /// @@ -1399,8 +1576,9 @@ public void UpdatePet(Pet pet) /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -1408,7 +1586,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json", @@ -1451,9 +1634,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1476,10 +1669,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdatePetWithHttpInfoAsync(pet, cancellationToken).ConfigureAwait(false); + await UpdatePetWithHttpInfoAsync(pet, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1488,8 +1682,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -1498,7 +1693,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json", @@ -1541,9 +1739,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1568,10 +1776,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)) + public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdatePetWithFormWithHttpInfo(petId, name, status); + UpdatePetWithFormWithHttpInfo(petId, name, status, localVarRequestOptions); } /// @@ -1581,10 +1790,16 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -1618,9 +1833,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1645,10 +1870,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken).ConfigureAwait(false); + await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1659,11 +1885,15 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -1697,9 +1927,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1724,10 +1964,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); + Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file, localVarRequestOptions); return localVarResponse.Data; } @@ -1738,10 +1979,16 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -1776,9 +2023,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1803,10 +2060,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1818,11 +2076,15 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -1857,9 +2119,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1884,10 +2156,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) + public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); + Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata, localVarRequestOptions); return localVarResponse.Data; } @@ -1898,8 +2171,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requiredFile' is set if (requiredFile == null) @@ -1907,7 +2181,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -1939,9 +2218,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1966,10 +2255,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1981,8 +2271,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requiredFile' is set if (requiredFile == null) @@ -1991,7 +2282,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -2023,9 +2317,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2044,4 +2348,4 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/StoreApi.cs index 7cda385b3b40..a8f9a77baf32 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/StoreApi.cs @@ -34,8 +34,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// - void DeleteOrder(string orderId); + void DeleteOrder(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete purchase order by ID @@ -45,8 +46,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// ApiResponse of Object(void) - ApiResponse DeleteOrderWithHttpInfo(string orderId); + ApiResponse DeleteOrderWithHttpInfo(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status /// @@ -54,8 +56,9 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// Dictionary<string, int> - Dictionary GetInventory(); + Dictionary GetInventory(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status @@ -64,8 +67,9 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(); + ApiResponse> GetInventoryWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID /// @@ -74,8 +78,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// Order - Order GetOrderById(long orderId); + Order GetOrderById(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID @@ -85,15 +90,17 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId); + ApiResponse GetOrderByIdWithHttpInfo(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// Order - Order PlaceOrder(Order order); + Order PlaceOrder(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet @@ -103,8 +110,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// ApiResponse of Order - ApiResponse PlaceOrderWithHttpInfo(Order order); + ApiResponse PlaceOrderWithHttpInfo(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -123,8 +131,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete purchase order by ID @@ -135,8 +144,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status /// @@ -145,8 +155,9 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status @@ -156,8 +167,9 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID /// @@ -167,8 +179,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID @@ -179,8 +192,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet /// @@ -190,8 +204,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of Order - System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet @@ -202,8 +217,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -329,10 +345,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// - public void DeleteOrder(string orderId) + public void DeleteOrder(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeleteOrderWithHttpInfo(orderId); + DeleteOrderWithHttpInfo(orderId, localVarRequestOptions); } /// @@ -340,8 +357,9 @@ public void DeleteOrder(string orderId) /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(string orderId) + public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'orderId' is set if (orderId == null) @@ -349,7 +367,12 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -393,10 +416,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeleteOrderWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); + await DeleteOrderWithHttpInfoAsync(orderId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -405,8 +429,9 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'orderId' is set if (orderId == null) @@ -415,7 +440,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -458,10 +486,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// Dictionary<string, int> - public Dictionary GetInventory() + public Dictionary GetInventory(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -469,10 +498,16 @@ public Dictionary GetInventory() /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -520,10 +555,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -532,11 +568,15 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -585,10 +625,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// Order - public Order GetOrderById(long orderId) + public Order GetOrderById(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId, localVarRequestOptions); return localVarResponse.Data; } @@ -597,10 +638,16 @@ public Order GetOrderById(long orderId) /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -646,10 +693,11 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -659,11 +707,15 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -709,10 +761,11 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// Order - public Order PlaceOrder(Order order) + public Order PlaceOrder(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order); + Org.OpenAPITools.Client.ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order, localVarRequestOptions); return localVarResponse.Data; } @@ -721,8 +774,9 @@ public Order PlaceOrder(Order order) /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order order) + public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'order' is set if (order == null) @@ -730,7 +784,12 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -777,10 +836,11 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of Order - public async System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -790,8 +850,9 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'order' is set if (order == null) @@ -800,7 +861,10 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -843,4 +907,4 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/UserApi.cs index a1716303f6f3..dfb9382f1683 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Api/UserApi.cs @@ -34,8 +34,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Created user object + /// /// - void CreateUser(User user); + void CreateUser(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Create user @@ -45,15 +46,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Created user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUserWithHttpInfo(User user); + ApiResponse CreateUserWithHttpInfo(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// /// Thrown when fails to make API call /// List of user object + /// /// - void CreateUsersWithArrayInput(List user); + void CreateUsersWithArrayInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -63,15 +66,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user); + ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// /// Thrown when fails to make API call /// List of user object + /// /// - void CreateUsersWithListInput(List user); + void CreateUsersWithListInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -81,8 +86,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUsersWithListInputWithHttpInfo(List user); + ApiResponse CreateUsersWithListInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user /// @@ -91,8 +97,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// - void DeleteUser(string username); + void DeleteUser(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user @@ -102,15 +109,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// ApiResponse of Object(void) - ApiResponse DeleteUserWithHttpInfo(string username); + ApiResponse DeleteUserWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// User - User GetUserByName(string username); + User GetUserByName(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name @@ -120,16 +129,18 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// ApiResponse of User - ApiResponse GetUserByNameWithHttpInfo(string username); + ApiResponse GetUserByNameWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system /// /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// string - string LoginUser(string username, string password); + string LoginUser(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system @@ -140,14 +151,16 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// ApiResponse of string - ApiResponse LoginUserWithHttpInfo(string username, string password); + ApiResponse LoginUserWithHttpInfo(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// - void LogoutUser(); + void LogoutUser(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session @@ -156,8 +169,9 @@ public interface IUserApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of Object(void) - ApiResponse LogoutUserWithHttpInfo(); + ApiResponse LogoutUserWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user /// @@ -167,8 +181,9 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// - void UpdateUser(string username, User user); + void UpdateUser(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user @@ -179,8 +194,9 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// ApiResponse of Object(void) - ApiResponse UpdateUserWithHttpInfo(string username, User user); + ApiResponse UpdateUserWithHttpInfo(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -199,8 +215,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Create user @@ -211,8 +228,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// @@ -222,8 +240,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -234,8 +253,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// @@ -245,8 +265,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -257,8 +278,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user /// @@ -268,8 +290,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user @@ -280,8 +303,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name /// @@ -291,8 +315,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of User - System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name @@ -303,8 +328,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (User) - System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system /// @@ -315,8 +341,9 @@ public interface IUserApiAsync : IApiAccessor /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of string - System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system @@ -328,8 +355,9 @@ public interface IUserApiAsync : IApiAccessor /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session /// @@ -338,8 +366,9 @@ public interface IUserApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session @@ -349,8 +378,9 @@ public interface IUserApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user /// @@ -361,8 +391,9 @@ public interface IUserApiAsync : IApiAccessor /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user @@ -374,8 +405,9 @@ public interface IUserApiAsync : IApiAccessor /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -501,10 +533,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Created user object + /// /// - public void CreateUser(User user) + public void CreateUser(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUserWithHttpInfo(user); + CreateUserWithHttpInfo(user, localVarRequestOptions); } /// @@ -512,8 +545,9 @@ public void CreateUser(User user) /// /// Thrown when fails to make API call /// Created user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User user) + public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -521,7 +555,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -566,10 +605,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUserWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUserWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -578,8 +618,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -588,7 +629,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -633,10 +677,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// /// Thrown when fails to make API call /// List of user object + /// /// - public void CreateUsersWithArrayInput(List user) + public void CreateUsersWithArrayInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUsersWithArrayInputWithHttpInfo(user); + CreateUsersWithArrayInputWithHttpInfo(user, localVarRequestOptions); } /// @@ -644,8 +689,9 @@ public void CreateUsersWithArrayInput(List user) /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user) + public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -653,7 +699,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -698,10 +749,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -710,8 +762,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -720,7 +773,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -765,10 +821,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// /// Thrown when fails to make API call /// List of user object + /// /// - public void CreateUsersWithListInput(List user) + public void CreateUsersWithListInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUsersWithListInputWithHttpInfo(user); + CreateUsersWithListInputWithHttpInfo(user, localVarRequestOptions); } /// @@ -776,8 +833,9 @@ public void CreateUsersWithListInput(List user) /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithHttpInfo(List user) + public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -785,7 +843,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -830,10 +893,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -842,8 +906,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -852,7 +917,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -897,10 +965,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// - public void DeleteUser(string username) + public void DeleteUser(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeleteUserWithHttpInfo(username); + DeleteUserWithHttpInfo(username, localVarRequestOptions); } /// @@ -908,8 +977,9 @@ public void DeleteUser(string username) /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string username) + public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -917,7 +987,12 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -961,10 +1036,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeleteUserWithHttpInfoAsync(username, cancellationToken).ConfigureAwait(false); + await DeleteUserWithHttpInfoAsync(username, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -973,8 +1049,9 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -983,7 +1060,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1027,10 +1107,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// User - public User GetUserByName(string username) + public User GetUserByName(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(username); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(username, localVarRequestOptions); return localVarResponse.Data; } @@ -1039,8 +1120,9 @@ public User GetUserByName(string username) /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// ApiResponse of User - public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(string username) + public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1048,7 +1130,12 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1094,10 +1181,11 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of User - public async System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(username, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(username, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1107,8 +1195,9 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (User) - public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1117,7 +1206,10 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1164,10 +1256,11 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// string - public string LoginUser(string username, string password) + public string LoginUser(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = LoginUserWithHttpInfo(username, password); + Org.OpenAPITools.Client.ApiResponse localVarResponse = LoginUserWithHttpInfo(username, password, localVarRequestOptions); return localVarResponse.Data; } @@ -1177,8 +1270,9 @@ public string LoginUser(string username, string password) /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string username, string password) + public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1192,7 +1286,12 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1240,10 +1339,11 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of string - public async System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await LoginUserWithHttpInfoAsync(username, password, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await LoginUserWithHttpInfoAsync(username, password, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1254,8 +1354,9 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1270,7 +1371,10 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1316,20 +1420,27 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// - public void LogoutUser() + public void LogoutUser(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - LogoutUserWithHttpInfo(); + LogoutUserWithHttpInfo(localVarRequestOptions); } /// /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1371,10 +1482,11 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await LogoutUserWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + await LogoutUserWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1382,11 +1494,15 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1430,10 +1546,11 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// - public void UpdateUser(string username, User user) + public void UpdateUser(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdateUserWithHttpInfo(username, user); + UpdateUserWithHttpInfo(username, user, localVarRequestOptions); } /// @@ -1442,8 +1559,9 @@ public void UpdateUser(string username, User user) /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string username, User user) + public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1457,7 +1575,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1504,10 +1627,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdateUserWithHttpInfoAsync(username, user, cancellationToken).ConfigureAwait(false); + await UpdateUserWithHttpInfoAsync(username, user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1517,8 +1641,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1533,7 +1658,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1575,4 +1703,4 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/Configuration.cs index 8b731bfdc812..f78c623a0907 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/Configuration.cs @@ -116,6 +116,7 @@ public Configuration() DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); ApiKeyPrefix = new ConcurrentDictionary(); + GetAccessToken = () => AccessToken; Servers = new List>() { { @@ -318,6 +319,16 @@ public string GetApiKeyWithPrefix(string apiKeyIdentifier) /// The access token. public virtual string AccessToken { get; set; } + + /// + /// Gets the Access Token + /// + /// This helper function allows for customization of the Access Token retrieval. + /// For example, automatic JWT token refreshes. + /// + /// The access token. + public virtual Func GetAccessToken { get; set; } + /// /// Gets or sets the temporary folder path to store the files downloaded from the server. /// @@ -583,10 +594,11 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration AccessToken = second.AccessToken ?? first.AccessToken, HttpSigningConfiguration = second.HttpSigningConfiguration ?? first.HttpSigningConfiguration, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + GetAccessToken = second.GetAccessToken ?? first.GetAccessToken }; return config; } #endregion Static Members } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/IReadableConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/IReadableConfiguration.cs index 2c22d47296f9..526766d180b7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/IReadableConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/src/Org.OpenAPITools/Client/IReadableConfiguration.cs @@ -26,6 +26,8 @@ public interface IReadableConfiguration /// Access token. string AccessToken { get; } + Func GetAccessToken {get;} + /// /// Gets the API key. /// @@ -117,4 +119,4 @@ public interface IReadableConfiguration /// HttpSigningConfiguration HttpSigningConfiguration { get; } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/.openapi-generator/VERSION b/samples/client/petstore/csharp-netcore/OpenAPIClient/.openapi-generator/VERSION index 4077803655c0..e230c8396d19 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/.openapi-generator/VERSION +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/.openapi-generator/VERSION @@ -1 +1 @@ -5.3.1-SNAPSHOT \ No newline at end of file +5.3.0 \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index ac8fbdcdc946..82200d160de2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -34,8 +34,9 @@ public interface IAnotherFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient Call123TestSpecialTags(ModelClient modelClient); + ModelClient Call123TestSpecialTags(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test special tags @@ -45,8 +46,9 @@ public interface IAnotherFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient); + ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -65,8 +67,9 @@ public interface IAnotherFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test special tags @@ -77,8 +80,9 @@ public interface IAnotherFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -204,10 +208,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient Call123TestSpecialTags(ModelClient modelClient) + public ModelClient Call123TestSpecialTags(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -216,8 +221,9 @@ public ModelClient Call123TestSpecialTags(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -225,7 +231,12 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -271,10 +282,11 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -284,8 +296,9 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -294,7 +307,10 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -336,4 +352,4 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs index a9e5cfb9c4d2..8c453fafe696 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -30,8 +30,9 @@ public interface IDefaultApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// InlineResponseDefault - InlineResponseDefault FooGet(); + InlineResponseDefault FooGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -40,8 +41,9 @@ public interface IDefaultApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of InlineResponseDefault - ApiResponse FooGetWithHttpInfo(); + ApiResponse FooGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -59,8 +61,9 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of InlineResponseDefault - System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -70,8 +73,9 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (InlineResponseDefault) - System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -196,10 +200,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// /// Thrown when fails to make API call + /// /// InlineResponseDefault - public InlineResponseDefault FooGet() + public InlineResponseDefault FooGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FooGetWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FooGetWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -207,10 +212,16 @@ public InlineResponseDefault FooGet() /// /// /// Thrown when fails to make API call + /// /// ApiResponse of InlineResponseDefault - public Org.OpenAPITools.Client.ApiResponse FooGetWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse FooGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -253,10 +264,11 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of InlineResponseDefault - public async System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -265,11 +277,15 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (InlineResponseDefault) - public async System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -309,4 +325,4 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs index 57a99469634f..94abf521b073 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeApi.cs @@ -30,8 +30,9 @@ public interface IFakeApiSync : IApiAccessor /// Health check endpoint /// /// Thrown when fails to make API call + /// /// HealthCheckResult - HealthCheckResult FakeHealthGet(); + HealthCheckResult FakeHealthGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Health check endpoint @@ -40,8 +41,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of HealthCheckResult - ApiResponse FakeHealthGetWithHttpInfo(); + ApiResponse FakeHealthGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -50,8 +52,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?)); + bool FakeOuterBooleanSerialize(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -61,8 +64,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)); + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -71,8 +75,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// OuterComposite - OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite)); + OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -82,8 +87,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// ApiResponse of OuterComposite - ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite)); + ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -92,8 +98,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)); + decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -103,8 +110,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)); + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -113,8 +121,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// string - string FakeOuterStringSerialize(string body = default(string)); + string FakeOuterStringSerialize(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -124,14 +133,16 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string)); + ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums /// /// Thrown when fails to make API call + /// /// List<OuterEnum> - List GetArrayOfEnums(); + List GetArrayOfEnums(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums @@ -140,8 +151,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of List<OuterEnum> - ApiResponse> GetArrayOfEnumsWithHttpInfo(); + ApiResponse> GetArrayOfEnumsWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -150,8 +162,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// + /// /// - void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -161,16 +174,18 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass); + ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// /// Thrown when fails to make API call /// /// + /// /// - void TestBodyWithQueryParams(string query, User user); + void TestBodyWithQueryParams(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -181,8 +196,9 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user); + ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model /// @@ -191,8 +207,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient TestClientModel(ModelClient modelClient); + ModelClient TestClientModel(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model @@ -202,8 +219,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient); + ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -225,8 +243,9 @@ public interface IFakeApiSync : IApiAccessor /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -249,8 +268,9 @@ public interface IFakeApiSync : IApiAccessor /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters /// @@ -266,8 +286,9 @@ public interface IFakeApiSync : IApiAccessor /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// - void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)); + void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters @@ -284,8 +305,9 @@ public interface IFakeApiSync : IApiAccessor /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// ApiResponse of Object(void) - ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)); + ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) /// @@ -299,8 +321,9 @@ public interface IFakeApiSync : IApiAccessor /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) @@ -315,15 +338,17 @@ public interface IFakeApiSync : IApiAccessor /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties /// /// Thrown when fails to make API call /// request body + /// /// - void TestInlineAdditionalProperties(Dictionary requestBody); + void TestInlineAdditionalProperties(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties @@ -333,16 +358,18 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// request body + /// /// ApiResponse of Object(void) - ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody); + ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data /// /// Thrown when fails to make API call /// field1 /// field2 + /// /// - void TestJsonFormData(string param, string param2); + void TestJsonFormData(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data @@ -353,8 +380,9 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// field1 /// field2 + /// /// ApiResponse of Object(void) - ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2); + ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -367,8 +395,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// + /// /// - void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context); + void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -382,8 +411,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// + /// /// ApiResponse of Object(void) - ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context); + ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -401,8 +431,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of HealthCheckResult - System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Health check endpoint @@ -412,8 +443,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (HealthCheckResult) - System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -423,8 +455,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -435,8 +468,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -446,8 +480,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of OuterComposite - System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -458,8 +493,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (OuterComposite) - System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -469,8 +505,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -481,8 +518,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -492,8 +530,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -504,8 +543,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums /// @@ -514,8 +554,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of List<OuterEnum> - System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums @@ -525,8 +566,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<OuterEnum>) - System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -536,8 +578,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -548,8 +591,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -560,8 +604,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -573,8 +618,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model /// @@ -584,8 +630,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model @@ -596,8 +643,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -620,8 +668,9 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -645,8 +694,9 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters /// @@ -663,8 +713,9 @@ public interface IFakeApiAsync : IApiAccessor /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters @@ -682,8 +733,9 @@ public interface IFakeApiAsync : IApiAccessor /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) /// @@ -698,8 +750,9 @@ public interface IFakeApiAsync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) @@ -715,8 +768,9 @@ public interface IFakeApiAsync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties /// @@ -726,8 +780,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties @@ -738,8 +793,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data /// @@ -750,8 +806,9 @@ public interface IFakeApiAsync : IApiAccessor /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data @@ -763,8 +820,9 @@ public interface IFakeApiAsync : IApiAccessor /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -778,8 +836,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -794,8 +853,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -920,10 +980,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Health check endpoint /// /// Thrown when fails to make API call + /// /// HealthCheckResult - public HealthCheckResult FakeHealthGet() + public HealthCheckResult FakeHealthGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeHealthGetWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeHealthGetWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -931,10 +992,16 @@ public HealthCheckResult FakeHealthGet() /// Health check endpoint /// /// Thrown when fails to make API call + /// /// ApiResponse of HealthCheckResult - public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -977,10 +1044,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of HealthCheckResult - public async System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeHealthGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeHealthGetWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -989,11 +1057,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (HealthCheckResult) - public async System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1037,10 +1109,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?)) + public bool FakeOuterBooleanSerialize(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1049,10 +1122,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1098,10 +1177,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1111,11 +1191,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1161,10 +1245,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// OuterComposite - public OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite)) + public OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite, localVarRequestOptions); return localVarResponse.Data; } @@ -1173,10 +1258,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// ApiResponse of OuterComposite - public Org.OpenAPITools.Client.ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1222,10 +1313,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of OuterComposite - public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterCompositeSerializeWithHttpInfoAsync(outerComposite, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterCompositeSerializeWithHttpInfoAsync(outerComposite, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1235,11 +1327,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (OuterComposite) - public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1285,10 +1381,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)) + public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1297,10 +1394,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1346,10 +1449,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1359,11 +1463,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1409,10 +1517,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// string - public string FakeOuterStringSerialize(string body = default(string)) + public string FakeOuterStringSerialize(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1421,10 +1530,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1470,10 +1585,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1483,11 +1599,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1532,10 +1652,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Array of Enums /// /// Thrown when fails to make API call + /// /// List<OuterEnum> - public List GetArrayOfEnums() + public List GetArrayOfEnums(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetArrayOfEnumsWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetArrayOfEnumsWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -1543,10 +1664,16 @@ public List GetArrayOfEnums() /// Array of Enums /// /// Thrown when fails to make API call + /// /// ApiResponse of List<OuterEnum> - public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1589,10 +1716,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of List<OuterEnum> - public async System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetArrayOfEnumsWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetArrayOfEnumsWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1601,11 +1729,15 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<OuterEnum>) - public async System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1649,10 +1781,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// + /// /// - public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) + public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass, localVarRequestOptions); } /// @@ -1660,8 +1793,9 @@ public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) /// /// Thrown when fails to make API call /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) + public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) @@ -1669,7 +1803,12 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1714,10 +1853,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestBodyWithFileSchemaWithHttpInfoAsync(fileSchemaTestClass, cancellationToken).ConfigureAwait(false); + await TestBodyWithFileSchemaWithHttpInfoAsync(fileSchemaTestClass, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1726,8 +1866,9 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) @@ -1736,7 +1877,10 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1782,10 +1926,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// + /// /// - public void TestBodyWithQueryParams(string query, User user) + public void TestBodyWithQueryParams(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestBodyWithQueryParamsWithHttpInfo(query, user); + TestBodyWithQueryParamsWithHttpInfo(query, user, localVarRequestOptions); } /// @@ -1794,8 +1939,9 @@ public void TestBodyWithQueryParams(string query, User user) /// Thrown when fails to make API call /// /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user) + public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'query' is set if (query == null) @@ -1809,7 +1955,12 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1856,10 +2007,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestBodyWithQueryParamsWithHttpInfoAsync(query, user, cancellationToken).ConfigureAwait(false); + await TestBodyWithQueryParamsWithHttpInfoAsync(query, user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1869,8 +2021,9 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'query' is set if (query == null) @@ -1885,7 +2038,10 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1931,10 +2087,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient TestClientModel(ModelClient modelClient) + public ModelClient TestClientModel(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -1943,8 +2100,9 @@ public ModelClient TestClientModel(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -1952,7 +2110,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1998,10 +2161,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClientModelWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClientModelWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -2011,8 +2175,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -2021,7 +2186,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -2080,10 +2248,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, localVarRequestOptions); } /// @@ -2104,8 +2273,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2119,7 +2289,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2226,10 +2401,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken).ConfigureAwait(false); + await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2251,8 +2427,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2267,7 +2444,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2368,10 +2548,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// - public void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)) + public void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); + TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, localVarRequestOptions); } /// @@ -2386,10 +2567,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2472,10 +2659,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestEnumParametersWithHttpInfoAsync(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, cancellationToken).ConfigureAwait(false); + await TestEnumParametersWithHttpInfoAsync(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2491,11 +2679,15 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2576,10 +2768,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); + TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, localVarRequestOptions); } /// @@ -2592,10 +2785,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -2634,9 +2833,19 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI // authentication (bearer_test) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2664,10 +2873,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken).ConfigureAwait(false); + await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2681,11 +2891,15 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -2724,9 +2938,19 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI // authentication (bearer_test) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2749,10 +2973,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// /// Thrown when fails to make API call /// request body + /// /// - public void TestInlineAdditionalProperties(Dictionary requestBody) + public void TestInlineAdditionalProperties(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestInlineAdditionalPropertiesWithHttpInfo(requestBody); + TestInlineAdditionalPropertiesWithHttpInfo(requestBody, localVarRequestOptions); } /// @@ -2760,8 +2985,9 @@ public void TestInlineAdditionalProperties(Dictionary requestBod /// /// Thrown when fails to make API call /// request body + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody) + public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requestBody' is set if (requestBody == null) @@ -2769,7 +2995,12 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -2814,10 +3045,11 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestInlineAdditionalPropertiesWithHttpInfoAsync(requestBody, cancellationToken).ConfigureAwait(false); + await TestInlineAdditionalPropertiesWithHttpInfoAsync(requestBody, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2826,8 +3058,9 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requestBody' is set if (requestBody == null) @@ -2836,7 +3069,10 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -2882,10 +3118,11 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// field1 /// field2 + /// /// - public void TestJsonFormData(string param, string param2) + public void TestJsonFormData(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestJsonFormDataWithHttpInfo(param, param2); + TestJsonFormDataWithHttpInfo(param, param2, localVarRequestOptions); } /// @@ -2894,8 +3131,9 @@ public void TestJsonFormData(string param, string param2) /// Thrown when fails to make API call /// field1 /// field2 + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2) + public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'param' is set if (param == null) @@ -2909,7 +3147,12 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'param2' when calling FakeApi->TestJsonFormData"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2956,10 +3199,11 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestJsonFormDataWithHttpInfoAsync(param, param2, cancellationToken).ConfigureAwait(false); + await TestJsonFormDataWithHttpInfoAsync(param, param2, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2969,8 +3213,9 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'param' is set if (param == null) @@ -2985,7 +3230,10 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -3035,10 +3283,11 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// /// /// + /// /// - public void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) + public void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); + TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, localVarRequestOptions); } /// @@ -3050,8 +3299,9 @@ public void TestQueryParameterCollectionFormat(List pipe, List i /// /// /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) + public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pipe' is set if (pipe == null) @@ -3083,7 +3333,12 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -3135,10 +3390,11 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestQueryParameterCollectionFormatWithHttpInfoAsync(pipe, ioutil, http, url, context, cancellationToken).ConfigureAwait(false); + await TestQueryParameterCollectionFormatWithHttpInfoAsync(pipe, ioutil, http, url, context, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -3151,8 +3407,9 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pipe' is set if (pipe == null) @@ -3185,7 +3442,10 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -3229,4 +3489,4 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index c2852b36a44b..5f976453a4b0 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -34,8 +34,9 @@ public interface IFakeClassnameTags123ApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient TestClassname(ModelClient modelClient); + ModelClient TestClassname(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test class name in snake case @@ -45,8 +46,9 @@ public interface IFakeClassnameTags123ApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient); + ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -65,8 +67,9 @@ public interface IFakeClassnameTags123ApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test class name in snake case @@ -77,8 +80,9 @@ public interface IFakeClassnameTags123ApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -204,10 +208,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient TestClassname(ModelClient modelClient) + public ModelClient TestClassname(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -216,8 +221,9 @@ public ModelClient TestClassname(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -225,7 +231,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -276,10 +287,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClassnameWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClassnameWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -289,8 +301,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -299,7 +312,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -346,4 +362,4 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/PetApi.cs index 39d2e425e630..3fe94e5d3f85 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/PetApi.cs @@ -31,8 +31,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - void AddPet(Pet pet); + void AddPet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Add a new pet to the store @@ -42,16 +43,18 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - ApiResponse AddPetWithHttpInfo(Pet pet); + ApiResponse AddPetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet /// /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// - void DeletePet(long petId, string apiKey = default(string)); + void DeletePet(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet @@ -62,8 +65,9 @@ public interface IPetApiSync : IApiAccessor /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)); + ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status /// @@ -72,8 +76,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// List<Pet> - List FindPetsByStatus(List status); + List FindPetsByStatus(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status @@ -83,8 +88,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// ApiResponse of List<Pet> - ApiResponse> FindPetsByStatusWithHttpInfo(List status); + ApiResponse> FindPetsByStatusWithHttpInfo(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags /// @@ -93,9 +99,10 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Tags to filter by + /// /// List<Pet> [Obsolete] - List FindPetsByTags(List tags); + List FindPetsByTags(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags @@ -105,9 +112,10 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Tags to filter by + /// /// ApiResponse of List<Pet> [Obsolete] - ApiResponse> FindPetsByTagsWithHttpInfo(List tags); + ApiResponse> FindPetsByTagsWithHttpInfo(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID /// @@ -116,8 +124,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet to return + /// /// Pet - Pet GetPetById(long petId); + Pet GetPetById(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID @@ -127,15 +136,17 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet to return + /// /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId); + ApiResponse GetPetByIdWithHttpInfo(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - void UpdatePet(Pet pet); + void UpdatePet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet @@ -145,8 +156,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - ApiResponse UpdatePetWithHttpInfo(Pet pet); + ApiResponse UpdatePetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data /// @@ -154,8 +166,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)); + void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data @@ -167,8 +180,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)); + ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image /// @@ -176,8 +190,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image @@ -189,8 +204,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) /// @@ -198,8 +214,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) @@ -211,8 +228,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -231,8 +249,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Add a new pet to the store @@ -243,8 +262,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet /// @@ -255,8 +275,9 @@ public interface IPetApiAsync : IApiAccessor /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet @@ -268,8 +289,9 @@ public interface IPetApiAsync : IApiAccessor /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status /// @@ -279,8 +301,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> - System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status @@ -291,8 +314,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) - System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags /// @@ -302,9 +326,10 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> [Obsolete] - System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags @@ -315,9 +340,10 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) [Obsolete] - System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID /// @@ -327,8 +353,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID @@ -339,8 +366,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet /// @@ -350,8 +378,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet @@ -362,8 +391,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data /// @@ -375,8 +405,9 @@ public interface IPetApiAsync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data @@ -389,8 +420,9 @@ public interface IPetApiAsync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image /// @@ -402,8 +434,9 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image @@ -416,8 +449,9 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) /// @@ -429,8 +463,9 @@ public interface IPetApiAsync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) @@ -443,8 +478,9 @@ public interface IPetApiAsync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -570,10 +606,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - public void AddPet(Pet pet) + public void AddPet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - AddPetWithHttpInfo(pet); + AddPetWithHttpInfo(pet, localVarRequestOptions); } /// @@ -581,8 +618,9 @@ public void AddPet(Pet pet) /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) + public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -590,7 +628,12 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json", @@ -633,9 +676,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -658,10 +711,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await AddPetWithHttpInfoAsync(pet, cancellationToken).ConfigureAwait(false); + await AddPetWithHttpInfoAsync(pet, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -670,8 +724,9 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -680,7 +735,10 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json", @@ -723,9 +781,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -749,10 +817,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// - public void DeletePet(long petId, string apiKey = default(string)) + public void DeletePet(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeletePetWithHttpInfo(petId, apiKey); + DeletePetWithHttpInfo(petId, apiKey, localVarRequestOptions); } /// @@ -761,10 +830,16 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -793,9 +868,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -819,10 +904,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken).ConfigureAwait(false); + await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -832,11 +918,15 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -865,9 +955,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -890,10 +990,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// List<Pet> - public List FindPetsByStatus(List status) + public List FindPetsByStatus(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByStatusWithHttpInfo(status); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByStatusWithHttpInfo(status, localVarRequestOptions); return localVarResponse.Data; } @@ -902,8 +1003,9 @@ public List FindPetsByStatus(List status) /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// ApiResponse of List<Pet> - public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpInfo(List status) + public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpInfo(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'status' is set if (status == null) @@ -911,7 +1013,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'status' when calling PetApi->FindPetsByStatus"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -954,9 +1061,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -979,10 +1096,11 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> - public async System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByStatusWithHttpInfoAsync(status, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByStatusWithHttpInfoAsync(status, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -992,8 +1110,9 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) - public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'status' is set if (status == null) @@ -1002,7 +1121,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1045,9 +1167,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1070,11 +1202,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// /// Thrown when fails to make API call /// Tags to filter by + /// /// List<Pet> [Obsolete] - public List FindPetsByTags(List tags) + public List FindPetsByTags(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByTagsWithHttpInfo(tags); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByTagsWithHttpInfo(tags, localVarRequestOptions); return localVarResponse.Data; } @@ -1083,9 +1216,10 @@ public List FindPetsByTags(List tags) /// /// Thrown when fails to make API call /// Tags to filter by + /// /// ApiResponse of List<Pet> [Obsolete] - public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo(List tags) + public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'tags' is set if (tags == null) @@ -1093,7 +1227,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'tags' when calling PetApi->FindPetsByTags"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1136,9 +1275,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1161,11 +1310,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> [Obsolete] - public async System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByTagsWithHttpInfoAsync(tags, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByTagsWithHttpInfoAsync(tags, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1175,9 +1325,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) [Obsolete] - public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'tags' is set if (tags == null) @@ -1186,7 +1337,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1229,9 +1383,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1254,10 +1418,11 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// /// Thrown when fails to make API call /// ID of pet to return + /// /// Pet - public Pet GetPetById(long petId) + public Pet GetPetById(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId, localVarRequestOptions); return localVarResponse.Data; } @@ -1266,10 +1431,16 @@ public Pet GetPetById(long petId) /// /// Thrown when fails to make API call /// ID of pet to return + /// /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1320,10 +1491,11 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1333,11 +1505,15 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1388,10 +1564,11 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - public void UpdatePet(Pet pet) + public void UpdatePet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdatePetWithHttpInfo(pet); + UpdatePetWithHttpInfo(pet, localVarRequestOptions); } /// @@ -1399,8 +1576,9 @@ public void UpdatePet(Pet pet) /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -1408,7 +1586,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json", @@ -1451,9 +1634,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1476,10 +1669,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdatePetWithHttpInfoAsync(pet, cancellationToken).ConfigureAwait(false); + await UpdatePetWithHttpInfoAsync(pet, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1488,8 +1682,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -1498,7 +1693,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json", @@ -1541,9 +1739,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1568,10 +1776,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)) + public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdatePetWithFormWithHttpInfo(petId, name, status); + UpdatePetWithFormWithHttpInfo(petId, name, status, localVarRequestOptions); } /// @@ -1581,10 +1790,16 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -1618,9 +1833,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1645,10 +1870,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken).ConfigureAwait(false); + await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1659,11 +1885,15 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -1697,9 +1927,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1724,10 +1964,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); + Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file, localVarRequestOptions); return localVarResponse.Data; } @@ -1738,10 +1979,16 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -1776,9 +2023,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1803,10 +2060,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1818,11 +2076,15 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -1857,9 +2119,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1884,10 +2156,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) + public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); + Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata, localVarRequestOptions); return localVarResponse.Data; } @@ -1898,8 +2171,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requiredFile' is set if (requiredFile == null) @@ -1907,7 +2181,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -1939,9 +2218,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1966,10 +2255,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1981,8 +2271,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requiredFile' is set if (requiredFile == null) @@ -1991,7 +2282,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -2023,9 +2317,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2044,4 +2348,4 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/StoreApi.cs index 7cda385b3b40..a8f9a77baf32 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/StoreApi.cs @@ -34,8 +34,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// - void DeleteOrder(string orderId); + void DeleteOrder(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete purchase order by ID @@ -45,8 +46,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// ApiResponse of Object(void) - ApiResponse DeleteOrderWithHttpInfo(string orderId); + ApiResponse DeleteOrderWithHttpInfo(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status /// @@ -54,8 +56,9 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// Dictionary<string, int> - Dictionary GetInventory(); + Dictionary GetInventory(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status @@ -64,8 +67,9 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(); + ApiResponse> GetInventoryWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID /// @@ -74,8 +78,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// Order - Order GetOrderById(long orderId); + Order GetOrderById(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID @@ -85,15 +90,17 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId); + ApiResponse GetOrderByIdWithHttpInfo(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// Order - Order PlaceOrder(Order order); + Order PlaceOrder(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet @@ -103,8 +110,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// ApiResponse of Order - ApiResponse PlaceOrderWithHttpInfo(Order order); + ApiResponse PlaceOrderWithHttpInfo(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -123,8 +131,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete purchase order by ID @@ -135,8 +144,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status /// @@ -145,8 +155,9 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status @@ -156,8 +167,9 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID /// @@ -167,8 +179,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID @@ -179,8 +192,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet /// @@ -190,8 +204,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of Order - System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet @@ -202,8 +217,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -329,10 +345,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// - public void DeleteOrder(string orderId) + public void DeleteOrder(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeleteOrderWithHttpInfo(orderId); + DeleteOrderWithHttpInfo(orderId, localVarRequestOptions); } /// @@ -340,8 +357,9 @@ public void DeleteOrder(string orderId) /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(string orderId) + public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'orderId' is set if (orderId == null) @@ -349,7 +367,12 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -393,10 +416,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeleteOrderWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); + await DeleteOrderWithHttpInfoAsync(orderId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -405,8 +429,9 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'orderId' is set if (orderId == null) @@ -415,7 +440,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -458,10 +486,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// Dictionary<string, int> - public Dictionary GetInventory() + public Dictionary GetInventory(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -469,10 +498,16 @@ public Dictionary GetInventory() /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -520,10 +555,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -532,11 +568,15 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -585,10 +625,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// Order - public Order GetOrderById(long orderId) + public Order GetOrderById(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId, localVarRequestOptions); return localVarResponse.Data; } @@ -597,10 +638,16 @@ public Order GetOrderById(long orderId) /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -646,10 +693,11 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -659,11 +707,15 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -709,10 +761,11 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// Order - public Order PlaceOrder(Order order) + public Order PlaceOrder(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order); + Org.OpenAPITools.Client.ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order, localVarRequestOptions); return localVarResponse.Data; } @@ -721,8 +774,9 @@ public Order PlaceOrder(Order order) /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order order) + public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'order' is set if (order == null) @@ -730,7 +784,12 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -777,10 +836,11 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of Order - public async System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -790,8 +850,9 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'order' is set if (order == null) @@ -800,7 +861,10 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -843,4 +907,4 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/UserApi.cs index a1716303f6f3..dfb9382f1683 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Api/UserApi.cs @@ -34,8 +34,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Created user object + /// /// - void CreateUser(User user); + void CreateUser(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Create user @@ -45,15 +46,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Created user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUserWithHttpInfo(User user); + ApiResponse CreateUserWithHttpInfo(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// /// Thrown when fails to make API call /// List of user object + /// /// - void CreateUsersWithArrayInput(List user); + void CreateUsersWithArrayInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -63,15 +66,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user); + ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// /// Thrown when fails to make API call /// List of user object + /// /// - void CreateUsersWithListInput(List user); + void CreateUsersWithListInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -81,8 +86,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUsersWithListInputWithHttpInfo(List user); + ApiResponse CreateUsersWithListInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user /// @@ -91,8 +97,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// - void DeleteUser(string username); + void DeleteUser(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user @@ -102,15 +109,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// ApiResponse of Object(void) - ApiResponse DeleteUserWithHttpInfo(string username); + ApiResponse DeleteUserWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// User - User GetUserByName(string username); + User GetUserByName(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name @@ -120,16 +129,18 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// ApiResponse of User - ApiResponse GetUserByNameWithHttpInfo(string username); + ApiResponse GetUserByNameWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system /// /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// string - string LoginUser(string username, string password); + string LoginUser(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system @@ -140,14 +151,16 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// ApiResponse of string - ApiResponse LoginUserWithHttpInfo(string username, string password); + ApiResponse LoginUserWithHttpInfo(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// - void LogoutUser(); + void LogoutUser(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session @@ -156,8 +169,9 @@ public interface IUserApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of Object(void) - ApiResponse LogoutUserWithHttpInfo(); + ApiResponse LogoutUserWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user /// @@ -167,8 +181,9 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// - void UpdateUser(string username, User user); + void UpdateUser(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user @@ -179,8 +194,9 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// ApiResponse of Object(void) - ApiResponse UpdateUserWithHttpInfo(string username, User user); + ApiResponse UpdateUserWithHttpInfo(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -199,8 +215,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Create user @@ -211,8 +228,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// @@ -222,8 +240,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -234,8 +253,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// @@ -245,8 +265,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -257,8 +278,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user /// @@ -268,8 +290,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user @@ -280,8 +303,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name /// @@ -291,8 +315,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of User - System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name @@ -303,8 +328,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (User) - System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system /// @@ -315,8 +341,9 @@ public interface IUserApiAsync : IApiAccessor /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of string - System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system @@ -328,8 +355,9 @@ public interface IUserApiAsync : IApiAccessor /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session /// @@ -338,8 +366,9 @@ public interface IUserApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session @@ -349,8 +378,9 @@ public interface IUserApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user /// @@ -361,8 +391,9 @@ public interface IUserApiAsync : IApiAccessor /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user @@ -374,8 +405,9 @@ public interface IUserApiAsync : IApiAccessor /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -501,10 +533,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Created user object + /// /// - public void CreateUser(User user) + public void CreateUser(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUserWithHttpInfo(user); + CreateUserWithHttpInfo(user, localVarRequestOptions); } /// @@ -512,8 +545,9 @@ public void CreateUser(User user) /// /// Thrown when fails to make API call /// Created user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User user) + public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -521,7 +555,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -566,10 +605,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUserWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUserWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -578,8 +618,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -588,7 +629,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -633,10 +677,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// /// Thrown when fails to make API call /// List of user object + /// /// - public void CreateUsersWithArrayInput(List user) + public void CreateUsersWithArrayInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUsersWithArrayInputWithHttpInfo(user); + CreateUsersWithArrayInputWithHttpInfo(user, localVarRequestOptions); } /// @@ -644,8 +689,9 @@ public void CreateUsersWithArrayInput(List user) /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user) + public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -653,7 +699,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -698,10 +749,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -710,8 +762,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -720,7 +773,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -765,10 +821,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// /// Thrown when fails to make API call /// List of user object + /// /// - public void CreateUsersWithListInput(List user) + public void CreateUsersWithListInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUsersWithListInputWithHttpInfo(user); + CreateUsersWithListInputWithHttpInfo(user, localVarRequestOptions); } /// @@ -776,8 +833,9 @@ public void CreateUsersWithListInput(List user) /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithHttpInfo(List user) + public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -785,7 +843,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -830,10 +893,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -842,8 +906,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -852,7 +917,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -897,10 +965,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// - public void DeleteUser(string username) + public void DeleteUser(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeleteUserWithHttpInfo(username); + DeleteUserWithHttpInfo(username, localVarRequestOptions); } /// @@ -908,8 +977,9 @@ public void DeleteUser(string username) /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string username) + public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -917,7 +987,12 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -961,10 +1036,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeleteUserWithHttpInfoAsync(username, cancellationToken).ConfigureAwait(false); + await DeleteUserWithHttpInfoAsync(username, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -973,8 +1049,9 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -983,7 +1060,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1027,10 +1107,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// User - public User GetUserByName(string username) + public User GetUserByName(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(username); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(username, localVarRequestOptions); return localVarResponse.Data; } @@ -1039,8 +1120,9 @@ public User GetUserByName(string username) /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// ApiResponse of User - public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(string username) + public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1048,7 +1130,12 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1094,10 +1181,11 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of User - public async System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(username, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(username, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1107,8 +1195,9 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (User) - public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1117,7 +1206,10 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1164,10 +1256,11 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// string - public string LoginUser(string username, string password) + public string LoginUser(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = LoginUserWithHttpInfo(username, password); + Org.OpenAPITools.Client.ApiResponse localVarResponse = LoginUserWithHttpInfo(username, password, localVarRequestOptions); return localVarResponse.Data; } @@ -1177,8 +1270,9 @@ public string LoginUser(string username, string password) /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string username, string password) + public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1192,7 +1286,12 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1240,10 +1339,11 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of string - public async System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await LoginUserWithHttpInfoAsync(username, password, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await LoginUserWithHttpInfoAsync(username, password, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1254,8 +1354,9 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1270,7 +1371,10 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1316,20 +1420,27 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// - public void LogoutUser() + public void LogoutUser(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - LogoutUserWithHttpInfo(); + LogoutUserWithHttpInfo(localVarRequestOptions); } /// /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1371,10 +1482,11 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await LogoutUserWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + await LogoutUserWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1382,11 +1494,15 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1430,10 +1546,11 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// - public void UpdateUser(string username, User user) + public void UpdateUser(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdateUserWithHttpInfo(username, user); + UpdateUserWithHttpInfo(username, user, localVarRequestOptions); } /// @@ -1442,8 +1559,9 @@ public void UpdateUser(string username, User user) /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string username, User user) + public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1457,7 +1575,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1504,10 +1627,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdateUserWithHttpInfoAsync(username, user, cancellationToken).ConfigureAwait(false); + await UpdateUserWithHttpInfoAsync(username, user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1517,8 +1641,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1533,7 +1658,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1575,4 +1703,4 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs index 992454bacf6d..d1b1ab599200 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/Configuration.cs @@ -111,6 +111,7 @@ public Configuration() DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); ApiKeyPrefix = new ConcurrentDictionary(); + GetAccessToken = () => AccessToken; Servers = new List>() { { @@ -313,6 +314,16 @@ public string GetApiKeyWithPrefix(string apiKeyIdentifier) /// The access token. public virtual string AccessToken { get; set; } + + /// + /// Gets the Access Token + /// + /// This helper function allows for customization of the Access Token retrieval. + /// For example, automatic JWT token refreshes. + /// + /// The access token. + public virtual Func GetAccessToken { get; set; } + /// /// Gets or sets the temporary folder path to store the files downloaded from the server. /// @@ -578,10 +589,11 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration AccessToken = second.AccessToken ?? first.AccessToken, HttpSigningConfiguration = second.HttpSigningConfiguration ?? first.HttpSigningConfiguration, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + GetAccessToken = second.GetAccessToken ?? first.GetAccessToken }; return config; } #endregion Static Members } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/IReadableConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/IReadableConfiguration.cs index 2c22d47296f9..526766d180b7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/IReadableConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Client/IReadableConfiguration.cs @@ -26,6 +26,8 @@ public interface IReadableConfiguration /// Access token. string AccessToken { get; } + Func GetAccessToken {get;} + /// /// Gets the API key. /// @@ -117,4 +119,4 @@ public interface IReadableConfiguration /// HttpSigningConfiguration HttpSigningConfiguration { get; } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/.openapi-generator/VERSION b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/.openapi-generator/VERSION index 4077803655c0..e230c8396d19 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/.openapi-generator/VERSION +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/.openapi-generator/VERSION @@ -1 +1 @@ -5.3.1-SNAPSHOT \ No newline at end of file +5.3.0 \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index ac8fbdcdc946..82200d160de2 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -34,8 +34,9 @@ public interface IAnotherFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient Call123TestSpecialTags(ModelClient modelClient); + ModelClient Call123TestSpecialTags(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test special tags @@ -45,8 +46,9 @@ public interface IAnotherFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient); + ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -65,8 +67,9 @@ public interface IAnotherFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test special tags @@ -77,8 +80,9 @@ public interface IAnotherFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -204,10 +208,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient Call123TestSpecialTags(ModelClient modelClient) + public ModelClient Call123TestSpecialTags(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = Call123TestSpecialTagsWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -216,8 +221,9 @@ public ModelClient Call123TestSpecialTags(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -225,7 +231,12 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling AnotherFakeApi->Call123TestSpecialTags"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -271,10 +282,11 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task Call123TestSpecialTagsAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await Call123TestSpecialTagsWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -284,8 +296,9 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> Call123TestSpecialTagsWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -294,7 +307,10 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -336,4 +352,4 @@ public Org.OpenAPITools.Client.ApiResponse Call123TestSpecialTagsWi } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs index a9e5cfb9c4d2..8c453fafe696 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -30,8 +30,9 @@ public interface IDefaultApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// InlineResponseDefault - InlineResponseDefault FooGet(); + InlineResponseDefault FooGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -40,8 +41,9 @@ public interface IDefaultApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of InlineResponseDefault - ApiResponse FooGetWithHttpInfo(); + ApiResponse FooGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -59,8 +61,9 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of InlineResponseDefault - System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -70,8 +73,9 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (InlineResponseDefault) - System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -196,10 +200,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// /// Thrown when fails to make API call + /// /// InlineResponseDefault - public InlineResponseDefault FooGet() + public InlineResponseDefault FooGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FooGetWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FooGetWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -207,10 +212,16 @@ public InlineResponseDefault FooGet() /// /// /// Thrown when fails to make API call + /// /// ApiResponse of InlineResponseDefault - public Org.OpenAPITools.Client.ApiResponse FooGetWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse FooGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -253,10 +264,11 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of InlineResponseDefault - public async System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FooGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FooGetWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -265,11 +277,15 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (InlineResponseDefault) - public async System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FooGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -309,4 +325,4 @@ public Org.OpenAPITools.Client.ApiResponse FooGetWithHttp } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeApi.cs index 57a99469634f..94abf521b073 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -30,8 +30,9 @@ public interface IFakeApiSync : IApiAccessor /// Health check endpoint /// /// Thrown when fails to make API call + /// /// HealthCheckResult - HealthCheckResult FakeHealthGet(); + HealthCheckResult FakeHealthGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Health check endpoint @@ -40,8 +41,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of HealthCheckResult - ApiResponse FakeHealthGetWithHttpInfo(); + ApiResponse FakeHealthGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -50,8 +52,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?)); + bool FakeOuterBooleanSerialize(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -61,8 +64,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)); + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -71,8 +75,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// OuterComposite - OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite)); + OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -82,8 +87,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// ApiResponse of OuterComposite - ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite)); + ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -92,8 +98,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)); + decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -103,8 +110,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)); + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -113,8 +121,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// string - string FakeOuterStringSerialize(string body = default(string)); + string FakeOuterStringSerialize(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -124,14 +133,16 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string)); + ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums /// /// Thrown when fails to make API call + /// /// List<OuterEnum> - List GetArrayOfEnums(); + List GetArrayOfEnums(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums @@ -140,8 +151,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of List<OuterEnum> - ApiResponse> GetArrayOfEnumsWithHttpInfo(); + ApiResponse> GetArrayOfEnumsWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -150,8 +162,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// + /// /// - void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass); + void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -161,16 +174,18 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass); + ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// /// Thrown when fails to make API call /// /// + /// /// - void TestBodyWithQueryParams(string query, User user); + void TestBodyWithQueryParams(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -181,8 +196,9 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// /// + /// /// ApiResponse of Object(void) - ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user); + ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model /// @@ -191,8 +207,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient TestClientModel(ModelClient modelClient); + ModelClient TestClientModel(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model @@ -202,8 +219,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient); + ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -225,8 +243,9 @@ public interface IFakeApiSync : IApiAccessor /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// - void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -249,8 +268,9 @@ public interface IFakeApiSync : IApiAccessor /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters /// @@ -266,8 +286,9 @@ public interface IFakeApiSync : IApiAccessor /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// - void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)); + void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters @@ -284,8 +305,9 @@ public interface IFakeApiSync : IApiAccessor /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// ApiResponse of Object(void) - ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)); + ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) /// @@ -299,8 +321,9 @@ public interface IFakeApiSync : IApiAccessor /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) @@ -315,15 +338,17 @@ public interface IFakeApiSync : IApiAccessor /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties /// /// Thrown when fails to make API call /// request body + /// /// - void TestInlineAdditionalProperties(Dictionary requestBody); + void TestInlineAdditionalProperties(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties @@ -333,16 +358,18 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// request body + /// /// ApiResponse of Object(void) - ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody); + ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data /// /// Thrown when fails to make API call /// field1 /// field2 + /// /// - void TestJsonFormData(string param, string param2); + void TestJsonFormData(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data @@ -353,8 +380,9 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// field1 /// field2 + /// /// ApiResponse of Object(void) - ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2); + ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -367,8 +395,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// + /// /// - void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context); + void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -382,8 +411,9 @@ public interface IFakeApiSync : IApiAccessor /// /// /// + /// /// ApiResponse of Object(void) - ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context); + ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -401,8 +431,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of HealthCheckResult - System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Health check endpoint @@ -412,8 +443,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (HealthCheckResult) - System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -423,8 +455,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -435,8 +468,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -446,8 +480,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of OuterComposite - System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -458,8 +493,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (OuterComposite) - System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -469,8 +505,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -481,8 +518,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -492,8 +530,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -504,8 +543,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums /// @@ -514,8 +554,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of List<OuterEnum> - System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Array of Enums @@ -525,8 +566,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<OuterEnum>) - System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -536,8 +578,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -548,8 +591,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -560,8 +604,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -573,8 +618,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model /// @@ -584,8 +630,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test \"client\" model @@ -596,8 +643,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 /// @@ -620,8 +668,9 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -645,8 +694,9 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters /// @@ -663,8 +713,9 @@ public interface IFakeApiAsync : IApiAccessor /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test enum parameters @@ -682,8 +733,9 @@ public interface IFakeApiAsync : IApiAccessor /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) /// @@ -698,8 +750,9 @@ public interface IFakeApiAsync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Fake endpoint to test group parameters (optional) @@ -715,8 +768,9 @@ public interface IFakeApiAsync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties /// @@ -726,8 +780,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test inline additionalProperties @@ -738,8 +793,9 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data /// @@ -750,8 +806,9 @@ public interface IFakeApiAsync : IApiAccessor /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// test json serialization of form data @@ -763,8 +820,9 @@ public interface IFakeApiAsync : IApiAccessor /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// /// @@ -778,8 +836,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// @@ -794,8 +853,9 @@ public interface IFakeApiAsync : IApiAccessor /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -920,10 +980,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Health check endpoint /// /// Thrown when fails to make API call + /// /// HealthCheckResult - public HealthCheckResult FakeHealthGet() + public HealthCheckResult FakeHealthGet(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeHealthGetWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeHealthGetWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -931,10 +992,16 @@ public HealthCheckResult FakeHealthGet() /// Health check endpoint /// /// Thrown when fails to make API call + /// /// ApiResponse of HealthCheckResult - public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -977,10 +1044,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of HealthCheckResult - public async System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeHealthGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeHealthGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeHealthGetWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -989,11 +1057,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (HealthCheckResult) - public async System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeHealthGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1037,10 +1109,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?)) + public bool FakeOuterBooleanSerialize(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1049,10 +1122,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) + /// /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1098,10 +1177,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1111,11 +1191,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1161,10 +1245,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// OuterComposite - public OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite)) + public OuterComposite FakeOuterCompositeSerialize(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterCompositeSerializeWithHttpInfo(outerComposite, localVarRequestOptions); return localVarResponse.Data; } @@ -1173,10 +1258,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input composite as post body (optional) + /// /// ApiResponse of OuterComposite - public Org.OpenAPITools.Client.ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite = default(OuterComposite), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1222,10 +1313,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of OuterComposite - public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterCompositeSerializeAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterCompositeSerializeWithHttpInfoAsync(outerComposite, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterCompositeSerializeWithHttpInfoAsync(outerComposite, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1235,11 +1327,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input composite as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (OuterComposite) - public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterCompositeSerializeWithHttpInfoAsync(OuterComposite outerComposite = default(OuterComposite), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1285,10 +1381,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)) + public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1297,10 +1394,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) + /// /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1346,10 +1449,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1359,11 +1463,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1409,10 +1517,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// string - public string FakeOuterStringSerialize(string body = default(string)) + public string FakeOuterStringSerialize(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(body, localVarRequestOptions); return localVarResponse.Data; } @@ -1421,10 +1530,16 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input string as post body (optional) + /// /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(string body = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1470,10 +1585,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(body, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1483,11 +1599,15 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input string as post body (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1532,10 +1652,11 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Array of Enums /// /// Thrown when fails to make API call + /// /// List<OuterEnum> - public List GetArrayOfEnums() + public List GetArrayOfEnums(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetArrayOfEnumsWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetArrayOfEnumsWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -1543,10 +1664,16 @@ public List GetArrayOfEnums() /// Array of Enums /// /// Thrown when fails to make API call + /// /// ApiResponse of List<OuterEnum> - public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1589,10 +1716,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of List<OuterEnum> - public async System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetArrayOfEnumsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetArrayOfEnumsWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetArrayOfEnumsWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1601,11 +1729,15 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<OuterEnum>) - public async System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetArrayOfEnumsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1649,10 +1781,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetArrayOfEnumsWithH /// /// Thrown when fails to make API call /// + /// /// - public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) + public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); + TestBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass, localVarRequestOptions); } /// @@ -1660,8 +1793,9 @@ public void TestBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) /// /// Thrown when fails to make API call /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) + public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) @@ -1669,7 +1803,12 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'fileSchemaTestClass' when calling FakeApi->TestBodyWithFileSchema"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1714,10 +1853,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestBodyWithFileSchemaAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestBodyWithFileSchemaWithHttpInfoAsync(fileSchemaTestClass, cancellationToken).ConfigureAwait(false); + await TestBodyWithFileSchemaWithHttpInfoAsync(fileSchemaTestClass, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1726,8 +1866,9 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestBodyWithFileSchemaWithHttpInfoAsync(FileSchemaTestClass fileSchemaTestClass, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'fileSchemaTestClass' is set if (fileSchemaTestClass == null) @@ -1736,7 +1877,10 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1782,10 +1926,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithFileSchemaWithHtt /// Thrown when fails to make API call /// /// + /// /// - public void TestBodyWithQueryParams(string query, User user) + public void TestBodyWithQueryParams(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestBodyWithQueryParamsWithHttpInfo(query, user); + TestBodyWithQueryParamsWithHttpInfo(query, user, localVarRequestOptions); } /// @@ -1794,8 +1939,9 @@ public void TestBodyWithQueryParams(string query, User user) /// Thrown when fails to make API call /// /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user) + public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHttpInfo(string query, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'query' is set if (query == null) @@ -1809,7 +1955,12 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling FakeApi->TestBodyWithQueryParams"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1856,10 +2007,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestBodyWithQueryParamsAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestBodyWithQueryParamsWithHttpInfoAsync(query, user, cancellationToken).ConfigureAwait(false); + await TestBodyWithQueryParamsWithHttpInfoAsync(query, user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1869,8 +2021,9 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestBodyWithQueryParamsWithHttpInfoAsync(string query, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'query' is set if (query == null) @@ -1885,7 +2038,10 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1931,10 +2087,11 @@ public Org.OpenAPITools.Client.ApiResponse TestBodyWithQueryParamsWithHt /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient TestClientModel(ModelClient modelClient) + public ModelClient TestClientModel(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClientModelWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -1943,8 +2100,9 @@ public ModelClient TestClientModel(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -1952,7 +2110,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeApi->TestClientModel"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1998,10 +2161,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestClientModelAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClientModelWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClientModelWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -2011,8 +2175,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestClientModelWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -2021,7 +2186,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -2080,10 +2248,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// - public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public void TestEndpointParameters(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback); + TestEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, localVarRequestOptions); } /// @@ -2104,8 +2273,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional, default to "2010-02-01T10:20:10.111110+01:00") /// None (optional) /// None (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2119,7 +2289,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter '_byte' when calling FakeApi->TestEndpointParameters"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2226,10 +2401,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken).ConfigureAwait(false); + await TestEndpointParametersWithHttpInfoAsync(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2251,8 +2427,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double _double, string patternWithoutDelimiter, byte[] _byte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? _float = default(float?), string _string = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) @@ -2267,7 +2444,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2368,10 +2548,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// - public void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)) + public void TestEnumParameters(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); + TestEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, localVarRequestOptions); } /// @@ -2386,10 +2567,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Query parameter enum test (double) (optional) /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEnumParametersWithHttpInfo(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2472,10 +2659,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEnumParametersAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestEnumParametersWithHttpInfoAsync(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, cancellationToken).ConfigureAwait(false); + await TestEnumParametersWithHttpInfoAsync(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2491,11 +2679,15 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Form parameter enum test (string array) (optional, default to $) /// Form parameter enum test (string) (optional, default to -efg) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEnumParametersWithHttpInfoAsync(List enumHeaderStringArray = default(List), string enumHeaderString = default(string), List enumQueryStringArray = default(List), string enumQueryString = default(string), int? enumQueryInteger = default(int?), double? enumQueryDouble = default(double?), List enumFormStringArray = default(List), string enumFormString = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2576,10 +2768,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); + TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, localVarRequestOptions); } /// @@ -2592,10 +2785,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// String in group parameters (optional) /// Boolean in group parameters (optional) /// Integer in group parameters (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -2634,9 +2833,19 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI // authentication (bearer_test) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2664,10 +2873,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken).ConfigureAwait(false); + await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2681,11 +2891,15 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -2724,9 +2938,19 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI // authentication (bearer_test) required // bearer authentication required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2749,10 +2973,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// /// Thrown when fails to make API call /// request body + /// /// - public void TestInlineAdditionalProperties(Dictionary requestBody) + public void TestInlineAdditionalProperties(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestInlineAdditionalPropertiesWithHttpInfo(requestBody); + TestInlineAdditionalPropertiesWithHttpInfo(requestBody, localVarRequestOptions); } /// @@ -2760,8 +2985,9 @@ public void TestInlineAdditionalProperties(Dictionary requestBod /// /// Thrown when fails to make API call /// request body + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody) + public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertiesWithHttpInfo(Dictionary requestBody, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requestBody' is set if (requestBody == null) @@ -2769,7 +2995,12 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requestBody' when calling FakeApi->TestInlineAdditionalProperties"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -2814,10 +3045,11 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestInlineAdditionalPropertiesAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestInlineAdditionalPropertiesWithHttpInfoAsync(requestBody, cancellationToken).ConfigureAwait(false); + await TestInlineAdditionalPropertiesWithHttpInfoAsync(requestBody, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2826,8 +3058,9 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// request body /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestInlineAdditionalPropertiesWithHttpInfoAsync(Dictionary requestBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requestBody' is set if (requestBody == null) @@ -2836,7 +3069,10 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -2882,10 +3118,11 @@ public Org.OpenAPITools.Client.ApiResponse TestInlineAdditionalPropertie /// Thrown when fails to make API call /// field1 /// field2 + /// /// - public void TestJsonFormData(string param, string param2) + public void TestJsonFormData(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestJsonFormDataWithHttpInfo(param, param2); + TestJsonFormDataWithHttpInfo(param, param2, localVarRequestOptions); } /// @@ -2894,8 +3131,9 @@ public void TestJsonFormData(string param, string param2) /// Thrown when fails to make API call /// field1 /// field2 + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2) + public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo(string param, string param2, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'param' is set if (param == null) @@ -2909,7 +3147,12 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'param2' when calling FakeApi->TestJsonFormData"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -2956,10 +3199,11 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestJsonFormDataAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestJsonFormDataWithHttpInfoAsync(param, param2, cancellationToken).ConfigureAwait(false); + await TestJsonFormDataWithHttpInfoAsync(param, param2, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -2969,8 +3213,9 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// field1 /// field2 /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestJsonFormDataWithHttpInfoAsync(string param, string param2, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'param' is set if (param == null) @@ -2985,7 +3230,10 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -3035,10 +3283,11 @@ public Org.OpenAPITools.Client.ApiResponse TestJsonFormDataWithHttpInfo( /// /// /// + /// /// - public void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) + public void TestQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context); + TestQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, localVarRequestOptions); } /// @@ -3050,8 +3299,9 @@ public void TestQueryParameterCollectionFormat(List pipe, List i /// /// /// + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context) + public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pipe' is set if (pipe == null) @@ -3083,7 +3333,12 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'context' when calling FakeApi->TestQueryParameterCollectionFormat"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -3135,10 +3390,11 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF /// /// /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestQueryParameterCollectionFormatAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await TestQueryParameterCollectionFormatWithHttpInfoAsync(pipe, ioutil, http, url, context, cancellationToken).ConfigureAwait(false); + await TestQueryParameterCollectionFormatWithHttpInfoAsync(pipe, ioutil, http, url, context, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -3151,8 +3407,9 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF /// /// /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestQueryParameterCollectionFormatWithHttpInfoAsync(List pipe, List ioutil, List http, List url, List context, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pipe' is set if (pipe == null) @@ -3185,7 +3442,10 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -3229,4 +3489,4 @@ public Org.OpenAPITools.Client.ApiResponse TestQueryParameterCollectionF } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index c2852b36a44b..5f976453a4b0 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -34,8 +34,9 @@ public interface IFakeClassnameTags123ApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - ModelClient TestClassname(ModelClient modelClient); + ModelClient TestClassname(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test class name in snake case @@ -45,8 +46,9 @@ public interface IFakeClassnameTags123ApiSync : IApiAccessor /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient); + ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -65,8 +67,9 @@ public interface IFakeClassnameTags123ApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// To test class name in snake case @@ -77,8 +80,9 @@ public interface IFakeClassnameTags123ApiAsync : IApiAccessor /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -204,10 +208,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// client model + /// /// ModelClient - public ModelClient TestClassname(ModelClient modelClient) + public ModelClient TestClassname(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient); + Org.OpenAPITools.Client.ApiResponse localVarResponse = TestClassnameWithHttpInfo(modelClient, localVarRequestOptions); return localVarResponse.Data; } @@ -216,8 +221,9 @@ public ModelClient TestClassname(ModelClient modelClient) /// /// Thrown when fails to make API call /// client model + /// /// ApiResponse of ModelClient - public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient) + public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInfo(ModelClient modelClient, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -225,7 +231,12 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'modelClient' when calling FakeClassnameTags123Api->TestClassname"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -276,10 +287,11 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ModelClient - public async System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestClassnameAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClassnameWithHttpInfoAsync(modelClient, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestClassnameWithHttpInfoAsync(modelClient, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -289,8 +301,9 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf /// Thrown when fails to make API call /// client model /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ModelClient) - public async System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestClassnameWithHttpInfoAsync(ModelClient modelClient, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'modelClient' is set if (modelClient == null) @@ -299,7 +312,10 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -346,4 +362,4 @@ public Org.OpenAPITools.Client.ApiResponse TestClassnameWithHttpInf } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/PetApi.cs index 39d2e425e630..3fe94e5d3f85 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/PetApi.cs @@ -31,8 +31,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - void AddPet(Pet pet); + void AddPet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Add a new pet to the store @@ -42,16 +43,18 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - ApiResponse AddPetWithHttpInfo(Pet pet); + ApiResponse AddPetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet /// /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// - void DeletePet(long petId, string apiKey = default(string)); + void DeletePet(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet @@ -62,8 +65,9 @@ public interface IPetApiSync : IApiAccessor /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)); + ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status /// @@ -72,8 +76,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// List<Pet> - List FindPetsByStatus(List status); + List FindPetsByStatus(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status @@ -83,8 +88,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// ApiResponse of List<Pet> - ApiResponse> FindPetsByStatusWithHttpInfo(List status); + ApiResponse> FindPetsByStatusWithHttpInfo(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags /// @@ -93,9 +99,10 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Tags to filter by + /// /// List<Pet> [Obsolete] - List FindPetsByTags(List tags); + List FindPetsByTags(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags @@ -105,9 +112,10 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Tags to filter by + /// /// ApiResponse of List<Pet> [Obsolete] - ApiResponse> FindPetsByTagsWithHttpInfo(List tags); + ApiResponse> FindPetsByTagsWithHttpInfo(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID /// @@ -116,8 +124,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet to return + /// /// Pet - Pet GetPetById(long petId); + Pet GetPetById(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID @@ -127,15 +136,17 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet to return + /// /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId); + ApiResponse GetPetByIdWithHttpInfo(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - void UpdatePet(Pet pet); + void UpdatePet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet @@ -145,8 +156,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - ApiResponse UpdatePetWithHttpInfo(Pet pet); + ApiResponse UpdatePetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data /// @@ -154,8 +166,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)); + void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data @@ -167,8 +180,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)); + ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image /// @@ -176,8 +190,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image @@ -189,8 +204,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) /// @@ -198,8 +214,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) @@ -211,8 +228,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -231,8 +249,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Add a new pet to the store @@ -243,8 +262,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet /// @@ -255,8 +275,9 @@ public interface IPetApiAsync : IApiAccessor /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet @@ -268,8 +289,9 @@ public interface IPetApiAsync : IApiAccessor /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status /// @@ -279,8 +301,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> - System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status @@ -291,8 +314,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) - System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags /// @@ -302,9 +326,10 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> [Obsolete] - System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags @@ -315,9 +340,10 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) [Obsolete] - System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID /// @@ -327,8 +353,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID @@ -339,8 +366,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet /// @@ -350,8 +378,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet @@ -362,8 +391,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data /// @@ -375,8 +405,9 @@ public interface IPetApiAsync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data @@ -389,8 +420,9 @@ public interface IPetApiAsync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image /// @@ -402,8 +434,9 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image @@ -416,8 +449,9 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) /// @@ -429,8 +463,9 @@ public interface IPetApiAsync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image (required) @@ -443,8 +478,9 @@ public interface IPetApiAsync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -570,10 +606,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - public void AddPet(Pet pet) + public void AddPet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - AddPetWithHttpInfo(pet); + AddPetWithHttpInfo(pet, localVarRequestOptions); } /// @@ -581,8 +618,9 @@ public void AddPet(Pet pet) /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) + public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -590,7 +628,12 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json", @@ -633,9 +676,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -658,10 +711,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await AddPetWithHttpInfoAsync(pet, cancellationToken).ConfigureAwait(false); + await AddPetWithHttpInfoAsync(pet, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -670,8 +724,9 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -680,7 +735,10 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json", @@ -723,9 +781,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -749,10 +817,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// - public void DeletePet(long petId, string apiKey = default(string)) + public void DeletePet(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeletePetWithHttpInfo(petId, apiKey); + DeletePetWithHttpInfo(petId, apiKey, localVarRequestOptions); } /// @@ -761,10 +830,16 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -793,9 +868,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -819,10 +904,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken).ConfigureAwait(false); + await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -832,11 +918,15 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -865,9 +955,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -890,10 +990,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// List<Pet> - public List FindPetsByStatus(List status) + public List FindPetsByStatus(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByStatusWithHttpInfo(status); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByStatusWithHttpInfo(status, localVarRequestOptions); return localVarResponse.Data; } @@ -902,8 +1003,9 @@ public List FindPetsByStatus(List status) /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// ApiResponse of List<Pet> - public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpInfo(List status) + public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpInfo(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'status' is set if (status == null) @@ -911,7 +1013,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'status' when calling PetApi->FindPetsByStatus"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -954,9 +1061,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -979,10 +1096,11 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> - public async System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByStatusWithHttpInfoAsync(status, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByStatusWithHttpInfoAsync(status, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -992,8 +1110,9 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) - public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'status' is set if (status == null) @@ -1002,7 +1121,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1045,9 +1167,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1070,11 +1202,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// /// Thrown when fails to make API call /// Tags to filter by + /// /// List<Pet> [Obsolete] - public List FindPetsByTags(List tags) + public List FindPetsByTags(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByTagsWithHttpInfo(tags); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByTagsWithHttpInfo(tags, localVarRequestOptions); return localVarResponse.Data; } @@ -1083,9 +1216,10 @@ public List FindPetsByTags(List tags) /// /// Thrown when fails to make API call /// Tags to filter by + /// /// ApiResponse of List<Pet> [Obsolete] - public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo(List tags) + public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'tags' is set if (tags == null) @@ -1093,7 +1227,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'tags' when calling PetApi->FindPetsByTags"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1136,9 +1275,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1161,11 +1310,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> [Obsolete] - public async System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByTagsWithHttpInfoAsync(tags, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByTagsWithHttpInfoAsync(tags, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1175,9 +1325,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) [Obsolete] - public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'tags' is set if (tags == null) @@ -1186,7 +1337,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1229,9 +1383,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1254,10 +1418,11 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// /// Thrown when fails to make API call /// ID of pet to return + /// /// Pet - public Pet GetPetById(long petId) + public Pet GetPetById(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId, localVarRequestOptions); return localVarResponse.Data; } @@ -1266,10 +1431,16 @@ public Pet GetPetById(long petId) /// /// Thrown when fails to make API call /// ID of pet to return + /// /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1320,10 +1491,11 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1333,11 +1505,15 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1388,10 +1564,11 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// - public void UpdatePet(Pet pet) + public void UpdatePet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdatePetWithHttpInfo(pet); + UpdatePetWithHttpInfo(pet, localVarRequestOptions); } /// @@ -1399,8 +1576,9 @@ public void UpdatePet(Pet pet) /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -1408,7 +1586,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json", @@ -1451,9 +1634,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1476,10 +1669,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdatePetWithHttpInfoAsync(pet, cancellationToken).ConfigureAwait(false); + await UpdatePetWithHttpInfoAsync(pet, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1488,8 +1682,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -1498,7 +1693,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json", @@ -1541,9 +1739,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1568,10 +1776,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)) + public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdatePetWithFormWithHttpInfo(petId, name, status); + UpdatePetWithFormWithHttpInfo(petId, name, status, localVarRequestOptions); } /// @@ -1581,10 +1790,16 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -1618,9 +1833,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1645,10 +1870,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken).ConfigureAwait(false); + await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1659,11 +1885,15 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -1697,9 +1927,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1724,10 +1964,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); + Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file, localVarRequestOptions); return localVarResponse.Data; } @@ -1738,10 +1979,16 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -1776,9 +2023,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1803,10 +2060,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1818,11 +2076,15 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -1857,9 +2119,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1884,10 +2156,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) + public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); + Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata, localVarRequestOptions); return localVarResponse.Data; } @@ -1898,8 +2171,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// ID of pet to update /// file to upload /// Additional data to pass to server (optional) + /// /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requiredFile' is set if (requiredFile == null) @@ -1907,7 +2181,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -1939,9 +2218,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1966,10 +2255,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1981,8 +2271,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'requiredFile' is set if (requiredFile == null) @@ -1991,7 +2282,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -2023,9 +2317,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -2044,4 +2348,4 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/StoreApi.cs index 7cda385b3b40..a8f9a77baf32 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -34,8 +34,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// - void DeleteOrder(string orderId); + void DeleteOrder(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete purchase order by ID @@ -45,8 +46,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// ApiResponse of Object(void) - ApiResponse DeleteOrderWithHttpInfo(string orderId); + ApiResponse DeleteOrderWithHttpInfo(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status /// @@ -54,8 +56,9 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// Dictionary<string, int> - Dictionary GetInventory(); + Dictionary GetInventory(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status @@ -64,8 +67,9 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(); + ApiResponse> GetInventoryWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID /// @@ -74,8 +78,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// Order - Order GetOrderById(long orderId); + Order GetOrderById(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID @@ -85,15 +90,17 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId); + ApiResponse GetOrderByIdWithHttpInfo(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// Order - Order PlaceOrder(Order order); + Order PlaceOrder(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet @@ -103,8 +110,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// ApiResponse of Order - ApiResponse PlaceOrderWithHttpInfo(Order order); + ApiResponse PlaceOrderWithHttpInfo(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -123,8 +131,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete purchase order by ID @@ -135,8 +144,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status /// @@ -145,8 +155,9 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status @@ -156,8 +167,9 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID /// @@ -167,8 +179,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID @@ -179,8 +192,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet /// @@ -190,8 +204,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of Order - System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet @@ -202,8 +217,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -329,10 +345,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// - public void DeleteOrder(string orderId) + public void DeleteOrder(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeleteOrderWithHttpInfo(orderId); + DeleteOrderWithHttpInfo(orderId, localVarRequestOptions); } /// @@ -340,8 +357,9 @@ public void DeleteOrder(string orderId) /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(string orderId) + public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'orderId' is set if (orderId == null) @@ -349,7 +367,12 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -393,10 +416,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeleteOrderWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); + await DeleteOrderWithHttpInfoAsync(orderId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -405,8 +429,9 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'orderId' is set if (orderId == null) @@ -415,7 +440,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -458,10 +486,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// Dictionary<string, int> - public Dictionary GetInventory() + public Dictionary GetInventory(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -469,10 +498,16 @@ public Dictionary GetInventory() /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -520,10 +555,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -532,11 +568,15 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -585,10 +625,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// Order - public Order GetOrderById(long orderId) + public Order GetOrderById(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId, localVarRequestOptions); return localVarResponse.Data; } @@ -597,10 +638,16 @@ public Order GetOrderById(long orderId) /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -646,10 +693,11 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -659,11 +707,15 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -709,10 +761,11 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// Order - public Order PlaceOrder(Order order) + public Order PlaceOrder(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order); + Org.OpenAPITools.Client.ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order, localVarRequestOptions); return localVarResponse.Data; } @@ -721,8 +774,9 @@ public Order PlaceOrder(Order order) /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order order) + public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'order' is set if (order == null) @@ -730,7 +784,12 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -777,10 +836,11 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of Order - public async System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -790,8 +850,9 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'order' is set if (order == null) @@ -800,7 +861,10 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -843,4 +907,4 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/UserApi.cs index a1716303f6f3..dfb9382f1683 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Api/UserApi.cs @@ -34,8 +34,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Created user object + /// /// - void CreateUser(User user); + void CreateUser(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Create user @@ -45,15 +46,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Created user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUserWithHttpInfo(User user); + ApiResponse CreateUserWithHttpInfo(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// /// Thrown when fails to make API call /// List of user object + /// /// - void CreateUsersWithArrayInput(List user); + void CreateUsersWithArrayInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -63,15 +66,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user); + ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// /// Thrown when fails to make API call /// List of user object + /// /// - void CreateUsersWithListInput(List user); + void CreateUsersWithListInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -81,8 +86,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUsersWithListInputWithHttpInfo(List user); + ApiResponse CreateUsersWithListInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user /// @@ -91,8 +97,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// - void DeleteUser(string username); + void DeleteUser(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user @@ -102,15 +109,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// ApiResponse of Object(void) - ApiResponse DeleteUserWithHttpInfo(string username); + ApiResponse DeleteUserWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// User - User GetUserByName(string username); + User GetUserByName(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name @@ -120,16 +129,18 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// ApiResponse of User - ApiResponse GetUserByNameWithHttpInfo(string username); + ApiResponse GetUserByNameWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system /// /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// string - string LoginUser(string username, string password); + string LoginUser(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system @@ -140,14 +151,16 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// ApiResponse of string - ApiResponse LoginUserWithHttpInfo(string username, string password); + ApiResponse LoginUserWithHttpInfo(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// - void LogoutUser(); + void LogoutUser(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session @@ -156,8 +169,9 @@ public interface IUserApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of Object(void) - ApiResponse LogoutUserWithHttpInfo(); + ApiResponse LogoutUserWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user /// @@ -167,8 +181,9 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// - void UpdateUser(string username, User user); + void UpdateUser(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user @@ -179,8 +194,9 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// ApiResponse of Object(void) - ApiResponse UpdateUserWithHttpInfo(string username, User user); + ApiResponse UpdateUserWithHttpInfo(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -199,8 +215,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Create user @@ -211,8 +228,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// @@ -222,8 +240,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -234,8 +253,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// @@ -245,8 +265,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -257,8 +278,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user /// @@ -268,8 +290,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user @@ -280,8 +303,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name /// @@ -291,8 +315,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of User - System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name @@ -303,8 +328,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (User) - System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system /// @@ -315,8 +341,9 @@ public interface IUserApiAsync : IApiAccessor /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of string - System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system @@ -328,8 +355,9 @@ public interface IUserApiAsync : IApiAccessor /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session /// @@ -338,8 +366,9 @@ public interface IUserApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session @@ -349,8 +378,9 @@ public interface IUserApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user /// @@ -361,8 +391,9 @@ public interface IUserApiAsync : IApiAccessor /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user @@ -374,8 +405,9 @@ public interface IUserApiAsync : IApiAccessor /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -501,10 +533,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Created user object + /// /// - public void CreateUser(User user) + public void CreateUser(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUserWithHttpInfo(user); + CreateUserWithHttpInfo(user, localVarRequestOptions); } /// @@ -512,8 +545,9 @@ public void CreateUser(User user) /// /// Thrown when fails to make API call /// Created user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User user) + public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -521,7 +555,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -566,10 +605,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUserWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUserWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -578,8 +618,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -588,7 +629,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -633,10 +677,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// /// Thrown when fails to make API call /// List of user object + /// /// - public void CreateUsersWithArrayInput(List user) + public void CreateUsersWithArrayInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUsersWithArrayInputWithHttpInfo(user); + CreateUsersWithArrayInputWithHttpInfo(user, localVarRequestOptions); } /// @@ -644,8 +689,9 @@ public void CreateUsersWithArrayInput(List user) /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user) + public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -653,7 +699,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -698,10 +749,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -710,8 +762,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -720,7 +773,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -765,10 +821,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// /// Thrown when fails to make API call /// List of user object + /// /// - public void CreateUsersWithListInput(List user) + public void CreateUsersWithListInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUsersWithListInputWithHttpInfo(user); + CreateUsersWithListInputWithHttpInfo(user, localVarRequestOptions); } /// @@ -776,8 +833,9 @@ public void CreateUsersWithListInput(List user) /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithHttpInfo(List user) + public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -785,7 +843,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -830,10 +893,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -842,8 +906,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -852,7 +917,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -897,10 +965,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// - public void DeleteUser(string username) + public void DeleteUser(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeleteUserWithHttpInfo(username); + DeleteUserWithHttpInfo(username, localVarRequestOptions); } /// @@ -908,8 +977,9 @@ public void DeleteUser(string username) /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string username) + public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -917,7 +987,12 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -961,10 +1036,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeleteUserWithHttpInfoAsync(username, cancellationToken).ConfigureAwait(false); + await DeleteUserWithHttpInfoAsync(username, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -973,8 +1049,9 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -983,7 +1060,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1027,10 +1107,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// User - public User GetUserByName(string username) + public User GetUserByName(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(username); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(username, localVarRequestOptions); return localVarResponse.Data; } @@ -1039,8 +1120,9 @@ public User GetUserByName(string username) /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// ApiResponse of User - public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(string username) + public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1048,7 +1130,12 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1094,10 +1181,11 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of User - public async System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(username, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(username, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1107,8 +1195,9 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (User) - public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1117,7 +1206,10 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1164,10 +1256,11 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// string - public string LoginUser(string username, string password) + public string LoginUser(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = LoginUserWithHttpInfo(username, password); + Org.OpenAPITools.Client.ApiResponse localVarResponse = LoginUserWithHttpInfo(username, password, localVarRequestOptions); return localVarResponse.Data; } @@ -1177,8 +1270,9 @@ public string LoginUser(string username, string password) /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string username, string password) + public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1192,7 +1286,12 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1240,10 +1339,11 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of string - public async System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await LoginUserWithHttpInfoAsync(username, password, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await LoginUserWithHttpInfoAsync(username, password, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1254,8 +1354,9 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1270,7 +1371,10 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1316,20 +1420,27 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// - public void LogoutUser() + public void LogoutUser(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - LogoutUserWithHttpInfo(); + LogoutUserWithHttpInfo(localVarRequestOptions); } /// /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1371,10 +1482,11 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await LogoutUserWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + await LogoutUserWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1382,11 +1494,15 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1430,10 +1546,11 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// - public void UpdateUser(string username, User user) + public void UpdateUser(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdateUserWithHttpInfo(username, user); + UpdateUserWithHttpInfo(username, user, localVarRequestOptions); } /// @@ -1442,8 +1559,9 @@ public void UpdateUser(string username, User user) /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string username, User user) + public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1457,7 +1575,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1504,10 +1627,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdateUserWithHttpInfoAsync(username, user, cancellationToken).ConfigureAwait(false); + await UpdateUserWithHttpInfoAsync(username, user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1517,8 +1641,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1533,7 +1658,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1575,4 +1703,4 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/Configuration.cs index 8b731bfdc812..f78c623a0907 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/Configuration.cs @@ -116,6 +116,7 @@ public Configuration() DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); ApiKeyPrefix = new ConcurrentDictionary(); + GetAccessToken = () => AccessToken; Servers = new List>() { { @@ -318,6 +319,16 @@ public string GetApiKeyWithPrefix(string apiKeyIdentifier) /// The access token. public virtual string AccessToken { get; set; } + + /// + /// Gets the Access Token + /// + /// This helper function allows for customization of the Access Token retrieval. + /// For example, automatic JWT token refreshes. + /// + /// The access token. + public virtual Func GetAccessToken { get; set; } + /// /// Gets or sets the temporary folder path to store the files downloaded from the server. /// @@ -583,10 +594,11 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration AccessToken = second.AccessToken ?? first.AccessToken, HttpSigningConfiguration = second.HttpSigningConfiguration ?? first.HttpSigningConfiguration, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + GetAccessToken = second.GetAccessToken ?? first.GetAccessToken }; return config; } #endregion Static Members } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/IReadableConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/IReadableConfiguration.cs index 2c22d47296f9..526766d180b7 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/IReadableConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Client/IReadableConfiguration.cs @@ -26,6 +26,8 @@ public interface IReadableConfiguration /// Access token. string AccessToken { get; } + Func GetAccessToken {get;} + /// /// Gets the API key. /// @@ -117,4 +119,4 @@ public interface IReadableConfiguration /// HttpSigningConfiguration HttpSigningConfiguration { get; } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/.openapi-generator/VERSION b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/.openapi-generator/VERSION index 4077803655c0..e230c8396d19 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/.openapi-generator/VERSION +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/.openapi-generator/VERSION @@ -1 +1 @@ -5.3.1-SNAPSHOT \ No newline at end of file +5.3.0 \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/PetApi.cs index 08b2900cec60..0410fea9f65d 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/PetApi.cs @@ -31,8 +31,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// Pet - Pet AddPet(Pet pet); + Pet AddPet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Add a new pet to the store @@ -42,16 +43,18 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Pet - ApiResponse AddPetWithHttpInfo(Pet pet); + ApiResponse AddPetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet /// /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// - void DeletePet(long petId, string apiKey = default(string)); + void DeletePet(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet @@ -62,8 +65,9 @@ public interface IPetApiSync : IApiAccessor /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)); + ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status /// @@ -72,8 +76,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// List<Pet> - List FindPetsByStatus(List status); + List FindPetsByStatus(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status @@ -83,8 +88,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// ApiResponse of List<Pet> - ApiResponse> FindPetsByStatusWithHttpInfo(List status); + ApiResponse> FindPetsByStatusWithHttpInfo(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags /// @@ -93,9 +99,10 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Tags to filter by + /// /// List<Pet> [Obsolete] - List FindPetsByTags(List tags); + List FindPetsByTags(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags @@ -105,9 +112,10 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Tags to filter by + /// /// ApiResponse of List<Pet> [Obsolete] - ApiResponse> FindPetsByTagsWithHttpInfo(List tags); + ApiResponse> FindPetsByTagsWithHttpInfo(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID /// @@ -116,8 +124,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet to return + /// /// Pet - Pet GetPetById(long petId); + Pet GetPetById(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID @@ -127,15 +136,17 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet to return + /// /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId); + ApiResponse GetPetByIdWithHttpInfo(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// Pet - Pet UpdatePet(Pet pet); + Pet UpdatePet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet @@ -145,8 +156,9 @@ public interface IPetApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Pet - ApiResponse UpdatePetWithHttpInfo(Pet pet); + ApiResponse UpdatePetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data /// @@ -154,8 +166,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)); + void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data @@ -167,8 +180,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)); + ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image /// @@ -176,8 +190,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image @@ -189,8 +204,9 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -209,8 +225,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of Pet - System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Add a new pet to the store @@ -221,8 +238,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet /// @@ -233,8 +251,9 @@ public interface IPetApiAsync : IApiAccessor /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Deletes a pet @@ -246,8 +265,9 @@ public interface IPetApiAsync : IApiAccessor /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status /// @@ -257,8 +277,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> - System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by status @@ -269,8 +290,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) - System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags /// @@ -280,9 +302,10 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> [Obsolete] - System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Finds Pets by tags @@ -293,9 +316,10 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) [Obsolete] - System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID /// @@ -305,8 +329,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find pet by ID @@ -317,8 +342,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet /// @@ -328,8 +354,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of Pet - System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Update an existing pet @@ -340,8 +367,9 @@ public interface IPetApiAsync : IApiAccessor /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data /// @@ -353,8 +381,9 @@ public interface IPetApiAsync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updates a pet in the store with form data @@ -367,8 +396,9 @@ public interface IPetApiAsync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image /// @@ -380,8 +410,9 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// uploads an image @@ -394,8 +425,9 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -521,10 +553,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// Pet - public Pet AddPet(Pet pet) + public Pet AddPet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = AddPetWithHttpInfo(pet); + Org.OpenAPITools.Client.ApiResponse localVarResponse = AddPetWithHttpInfo(pet, localVarRequestOptions); return localVarResponse.Data; } @@ -533,8 +566,9 @@ public Pet AddPet(Pet pet) /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) + public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -542,7 +576,12 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->AddPet"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json", @@ -571,9 +610,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -596,10 +645,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of Pet - public async System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task AddPetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await AddPetWithHttpInfoAsync(pet, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await AddPetWithHttpInfoAsync(pet, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -609,8 +659,9 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> AddPetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -619,7 +670,10 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json", @@ -648,9 +702,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -674,10 +738,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// - public void DeletePet(long petId, string apiKey = default(string)) + public void DeletePet(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeletePetWithHttpInfo(petId, apiKey); + DeletePetWithHttpInfo(petId, apiKey, localVarRequestOptions); } /// @@ -686,10 +751,16 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet id to delete /// (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -718,9 +789,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -744,10 +825,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken).ConfigureAwait(false); + await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -757,11 +839,15 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -790,9 +876,19 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -815,10 +911,11 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// List<Pet> - public List FindPetsByStatus(List status) + public List FindPetsByStatus(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByStatusWithHttpInfo(status); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByStatusWithHttpInfo(status, localVarRequestOptions); return localVarResponse.Data; } @@ -827,8 +924,9 @@ public List FindPetsByStatus(List status) /// /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) + /// /// ApiResponse of List<Pet> - public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpInfo(List status) + public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpInfo(List status, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'status' is set if (status == null) @@ -836,7 +934,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'status' when calling PetApi->FindPetsByStatus"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -863,9 +966,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -888,10 +1001,11 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> - public async System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FindPetsByStatusAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByStatusWithHttpInfoAsync(status, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByStatusWithHttpInfoAsync(status, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -901,8 +1015,9 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// Thrown when fails to make API call /// Status values that need to be considered for filter (deprecated) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) - public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpInfoAsync(List status, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'status' is set if (status == null) @@ -911,7 +1026,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -938,9 +1056,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -963,11 +1091,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByStatusWithHttpIn /// /// Thrown when fails to make API call /// Tags to filter by + /// /// List<Pet> [Obsolete] - public List FindPetsByTags(List tags) + public List FindPetsByTags(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByTagsWithHttpInfo(tags); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = FindPetsByTagsWithHttpInfo(tags, localVarRequestOptions); return localVarResponse.Data; } @@ -976,9 +1105,10 @@ public List FindPetsByTags(List tags) /// /// Thrown when fails to make API call /// Tags to filter by + /// /// ApiResponse of List<Pet> [Obsolete] - public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo(List tags) + public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo(List tags, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'tags' is set if (tags == null) @@ -986,7 +1116,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'tags' when calling PetApi->FindPetsByTags"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1013,9 +1148,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1038,11 +1183,12 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of List<Pet> [Obsolete] - public async System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FindPetsByTagsAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByTagsWithHttpInfoAsync(tags, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await FindPetsByTagsWithHttpInfoAsync(tags, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1052,9 +1198,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// Tags to filter by /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (List<Pet>) [Obsolete] - public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpInfoAsync(List tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'tags' is set if (tags == null) @@ -1063,7 +1210,10 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1090,9 +1240,19 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1115,10 +1275,11 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// /// Thrown when fails to make API call /// ID of pet to return + /// /// Pet - public Pet GetPetById(long petId) + public Pet GetPetById(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId, localVarRequestOptions); return localVarResponse.Data; } @@ -1127,10 +1288,16 @@ public Pet GetPetById(long petId) /// /// Thrown when fails to make API call /// ID of pet to return + /// /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1181,10 +1348,11 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1194,11 +1362,15 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Thrown when fails to make API call /// ID of pet to return /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1249,10 +1421,11 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// Pet - public Pet UpdatePet(Pet pet) + public Pet UpdatePet(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = UpdatePetWithHttpInfo(pet); + Org.OpenAPITools.Client.ApiResponse localVarResponse = UpdatePetWithHttpInfo(pet, localVarRequestOptions); return localVarResponse.Data; } @@ -1261,8 +1434,9 @@ public Pet UpdatePet(Pet pet) /// /// Thrown when fails to make API call /// Pet object that needs to be added to the store + /// /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -1270,7 +1444,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pet' when calling PetApi->UpdatePet"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json", @@ -1299,9 +1478,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1324,10 +1513,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of Pet - public async System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await UpdatePetWithHttpInfoAsync(pet, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await UpdatePetWithHttpInfoAsync(pet, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1337,8 +1527,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) /// Thrown when fails to make API call /// Pet object that needs to be added to the store /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithHttpInfoAsync(Pet pet, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'pet' is set if (pet == null) @@ -1347,7 +1538,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json", @@ -1376,9 +1570,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1403,10 +1607,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)) + public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdatePetWithFormWithHttpInfo(petId, name, status); + UpdatePetWithFormWithHttpInfo(petId, name, status, localVarRequestOptions); } /// @@ -1416,10 +1621,16 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) /// ID of pet that needs to be updated /// Updated name of the pet (optional) /// Updated status of the pet (optional) + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -1453,9 +1664,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1480,10 +1701,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken).ConfigureAwait(false); + await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1494,11 +1716,15 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/x-www-form-urlencoded" @@ -1532,9 +1758,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1559,10 +1795,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); + Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file, localVarRequestOptions); return localVarResponse.Data; } @@ -1573,10 +1810,16 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) /// ID of pet to update /// Additional data to pass to server (optional) /// file to upload (optional) + /// /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "multipart/form-data" @@ -1611,9 +1854,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1638,10 +1891,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1653,11 +1907,15 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) /// Additional data to pass to server (optional) /// file to upload (optional) /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "multipart/form-data" @@ -1692,9 +1950,19 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) // authentication (petstore_auth) required // oauth required - if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) + if (this.Configuration.GetAccessToken != null) + { + var accessToken = this.Configuration.GetAccessToken(); + + if (!string.IsNullOrEmpty(accessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + accessToken); + } + } + else if (!string.IsNullOrEmpty(this.Configuration.AccessToken)) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1713,4 +1981,4 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet) } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/StoreApi.cs index 81a9795bedf9..5e3f5c55a082 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/StoreApi.cs @@ -34,8 +34,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// - void DeleteOrder(string orderId); + void DeleteOrder(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete purchase order by ID @@ -45,8 +46,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// ApiResponse of Object(void) - ApiResponse DeleteOrderWithHttpInfo(string orderId); + ApiResponse DeleteOrderWithHttpInfo(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status /// @@ -54,8 +56,9 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// Dictionary<string, int> - Dictionary GetInventory(); + Dictionary GetInventory(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status @@ -64,8 +67,9 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(); + ApiResponse> GetInventoryWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID /// @@ -74,8 +78,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// Order - Order GetOrderById(long orderId); + Order GetOrderById(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID @@ -85,15 +90,17 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId); + ApiResponse GetOrderByIdWithHttpInfo(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// Order - Order PlaceOrder(Order order); + Order PlaceOrder(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet @@ -103,8 +110,9 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// ApiResponse of Order - ApiResponse PlaceOrderWithHttpInfo(Order order); + ApiResponse PlaceOrderWithHttpInfo(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -123,8 +131,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete purchase order by ID @@ -135,8 +144,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status /// @@ -145,8 +155,9 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Returns pet inventories by status @@ -156,8 +167,9 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID /// @@ -167,8 +179,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Find purchase order by ID @@ -179,8 +192,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet /// @@ -190,8 +204,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of Order - System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Place an order for a pet @@ -202,8 +217,9 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -329,10 +345,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// - public void DeleteOrder(string orderId) + public void DeleteOrder(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeleteOrderWithHttpInfo(orderId); + DeleteOrderWithHttpInfo(orderId, localVarRequestOptions); } /// @@ -340,8 +357,9 @@ public void DeleteOrder(string orderId) /// /// Thrown when fails to make API call /// ID of the order that needs to be deleted + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(string orderId) + public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(string orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'orderId' is set if (orderId == null) @@ -349,7 +367,12 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->DeleteOrder"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -393,10 +416,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteOrderAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeleteOrderWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); + await DeleteOrderWithHttpInfoAsync(orderId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -405,8 +429,9 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Thrown when fails to make API call /// ID of the order that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteOrderWithHttpInfoAsync(string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'orderId' is set if (orderId == null) @@ -415,7 +440,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -458,10 +486,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// Dictionary<string, int> - public Dictionary GetInventory() + public Dictionary GetInventory(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(localVarRequestOptions); return localVarResponse.Data; } @@ -469,10 +498,16 @@ public Dictionary GetInventory() /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call + /// /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -520,10 +555,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -532,11 +568,15 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -585,10 +625,11 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// Order - public Order GetOrderById(long orderId) + public Order GetOrderById(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId, localVarRequestOptions); return localVarResponse.Data; } @@ -597,10 +638,16 @@ public Order GetOrderById(long orderId) /// /// Thrown when fails to make API call /// ID of pet that needs to be fetched + /// /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -646,10 +693,11 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -659,11 +707,15 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -709,10 +761,11 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// Order - public Order PlaceOrder(Order order) + public Order PlaceOrder(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order); + Org.OpenAPITools.Client.ApiResponse localVarResponse = PlaceOrderWithHttpInfo(order, localVarRequestOptions); return localVarResponse.Data; } @@ -721,8 +774,9 @@ public Order PlaceOrder(Order order) /// /// Thrown when fails to make API call /// order placed for purchasing the pet + /// /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order order) + public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order order, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'order' is set if (order == null) @@ -730,7 +784,12 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'order' when calling StoreApi->PlaceOrder"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -777,10 +836,11 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of Order - public async System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task PlaceOrderAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await PlaceOrderWithHttpInfoAsync(order, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -790,8 +850,9 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o /// Thrown when fails to make API call /// order placed for purchasing the pet /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> PlaceOrderWithHttpInfoAsync(Order order, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'order' is set if (order == null) @@ -800,7 +861,10 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -843,4 +907,4 @@ public Org.OpenAPITools.Client.ApiResponse PlaceOrderWithHttpInfo(Order o } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/UserApi.cs index 907a252179d6..4b8d186c9425 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Api/UserApi.cs @@ -34,8 +34,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Created user object + /// /// - void CreateUser(User user); + void CreateUser(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Create user @@ -45,15 +46,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Created user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUserWithHttpInfo(User user); + ApiResponse CreateUserWithHttpInfo(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// /// Thrown when fails to make API call /// List of user object + /// /// - void CreateUsersWithArrayInput(List user); + void CreateUsersWithArrayInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -63,15 +66,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user); + ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// /// Thrown when fails to make API call /// List of user object + /// /// - void CreateUsersWithListInput(List user); + void CreateUsersWithListInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -81,8 +86,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - ApiResponse CreateUsersWithListInputWithHttpInfo(List user); + ApiResponse CreateUsersWithListInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user /// @@ -91,8 +97,9 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// - void DeleteUser(string username); + void DeleteUser(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user @@ -102,15 +109,17 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// ApiResponse of Object(void) - ApiResponse DeleteUserWithHttpInfo(string username); + ApiResponse DeleteUserWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// User - User GetUserByName(string username); + User GetUserByName(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name @@ -120,16 +129,18 @@ public interface IUserApiSync : IApiAccessor /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// ApiResponse of User - ApiResponse GetUserByNameWithHttpInfo(string username); + ApiResponse GetUserByNameWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system /// /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// string - string LoginUser(string username, string password); + string LoginUser(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system @@ -140,14 +151,16 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// ApiResponse of string - ApiResponse LoginUserWithHttpInfo(string username, string password); + ApiResponse LoginUserWithHttpInfo(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// - void LogoutUser(); + void LogoutUser(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session @@ -156,8 +169,9 @@ public interface IUserApiSync : IApiAccessor /// /// /// Thrown when fails to make API call + /// /// ApiResponse of Object(void) - ApiResponse LogoutUserWithHttpInfo(); + ApiResponse LogoutUserWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user /// @@ -167,8 +181,9 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// - void UpdateUser(string username, User user); + void UpdateUser(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user @@ -179,8 +194,9 @@ public interface IUserApiSync : IApiAccessor /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// ApiResponse of Object(void) - ApiResponse UpdateUserWithHttpInfo(string username, User user); + ApiResponse UpdateUserWithHttpInfo(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Synchronous Operations } @@ -199,8 +215,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Create user @@ -211,8 +228,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// @@ -222,8 +240,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -234,8 +253,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array /// @@ -245,8 +265,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Creates list of users with given input array @@ -257,8 +278,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user /// @@ -268,8 +290,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Delete user @@ -280,8 +303,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name /// @@ -291,8 +315,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of User - System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Get user by user name @@ -303,8 +328,9 @@ public interface IUserApiAsync : IApiAccessor /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (User) - System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system /// @@ -315,8 +341,9 @@ public interface IUserApiAsync : IApiAccessor /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of string - System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs user into the system @@ -328,8 +355,9 @@ public interface IUserApiAsync : IApiAccessor /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session /// @@ -338,8 +366,9 @@ public interface IUserApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Logs out current logged in user session @@ -349,8 +378,9 @@ public interface IUserApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user /// @@ -361,8 +391,9 @@ public interface IUserApiAsync : IApiAccessor /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of void - System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); /// /// Updated user @@ -374,8 +405,9 @@ public interface IUserApiAsync : IApiAccessor /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)); #endregion Asynchronous Operations } @@ -501,10 +533,11 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Thrown when fails to make API call /// Created user object + /// /// - public void CreateUser(User user) + public void CreateUser(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUserWithHttpInfo(user); + CreateUserWithHttpInfo(user, localVarRequestOptions); } /// @@ -512,8 +545,9 @@ public void CreateUser(User user) /// /// Thrown when fails to make API call /// Created user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User user) + public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -521,7 +555,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -571,10 +610,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUserAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUserWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUserWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -583,8 +623,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// Thrown when fails to make API call /// Created user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUserWithHttpInfoAsync(User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -593,7 +634,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -643,10 +687,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUserWithHttpInfo(User u /// /// Thrown when fails to make API call /// List of user object + /// /// - public void CreateUsersWithArrayInput(List user) + public void CreateUsersWithArrayInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUsersWithArrayInputWithHttpInfo(user); + CreateUsersWithArrayInputWithHttpInfo(user, localVarRequestOptions); } /// @@ -654,8 +699,9 @@ public void CreateUsersWithArrayInput(List user) /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user) + public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -663,7 +709,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithArrayInput"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -713,10 +764,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUsersWithArrayInputWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -725,8 +777,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUsersWithArrayInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -735,7 +788,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -785,10 +841,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithArrayInputWith /// /// Thrown when fails to make API call /// List of user object + /// /// - public void CreateUsersWithListInput(List user) + public void CreateUsersWithListInput(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - CreateUsersWithListInputWithHttpInfo(user); + CreateUsersWithListInputWithHttpInfo(user, localVarRequestOptions); } /// @@ -796,8 +853,9 @@ public void CreateUsersWithListInput(List user) /// /// Thrown when fails to make API call /// List of user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithHttpInfo(List user) + public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithHttpInfo(List user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -805,7 +863,12 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->CreateUsersWithListInput"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -855,10 +918,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateUsersWithListInputAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken).ConfigureAwait(false); + await CreateUsersWithListInputWithHttpInfoAsync(user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -867,8 +931,9 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// Thrown when fails to make API call /// List of user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateUsersWithListInputWithHttpInfoAsync(List user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'user' is set if (user == null) @@ -877,7 +942,10 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -927,10 +995,11 @@ public Org.OpenAPITools.Client.ApiResponse CreateUsersWithListInputWithH /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// - public void DeleteUser(string username) + public void DeleteUser(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - DeleteUserWithHttpInfo(username); + DeleteUserWithHttpInfo(username, localVarRequestOptions); } /// @@ -938,8 +1007,9 @@ public void DeleteUser(string username) /// /// Thrown when fails to make API call /// The name that needs to be deleted + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string username) + public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -947,7 +1017,12 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->DeleteUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -996,10 +1071,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteUserAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await DeleteUserWithHttpInfoAsync(username, cancellationToken).ConfigureAwait(false); + await DeleteUserWithHttpInfoAsync(username, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1008,8 +1084,9 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// Thrown when fails to make API call /// The name that needs to be deleted /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteUserWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1018,7 +1095,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1067,10 +1147,11 @@ public Org.OpenAPITools.Client.ApiResponse DeleteUserWithHttpInfo(string /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// User - public User GetUserByName(string username) + public User GetUserByName(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(username); + Org.OpenAPITools.Client.ApiResponse localVarResponse = GetUserByNameWithHttpInfo(username, localVarRequestOptions); return localVarResponse.Data; } @@ -1079,8 +1160,9 @@ public User GetUserByName(string username) /// /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. + /// /// ApiResponse of User - public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(string username) + public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(string username, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1088,7 +1170,12 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'username' when calling UserApi->GetUserByName"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1134,10 +1221,11 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of User - public async System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetUserByNameAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(username, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetUserByNameWithHttpInfoAsync(username, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1147,8 +1235,9 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The name that needs to be fetched. Use user1 for testing. /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (User) - public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetUserByNameWithHttpInfoAsync(string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1157,7 +1246,10 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1204,10 +1296,11 @@ public Org.OpenAPITools.Client.ApiResponse GetUserByNameWithHttpInfo(strin /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// string - public string LoginUser(string username, string password) + public string LoginUser(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = LoginUserWithHttpInfo(username, password); + Org.OpenAPITools.Client.ApiResponse localVarResponse = LoginUserWithHttpInfo(username, password, localVarRequestOptions); return localVarResponse.Data; } @@ -1217,8 +1310,9 @@ public string LoginUser(string username, string password) /// Thrown when fails to make API call /// The user name for login /// The password for login in clear text + /// /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string username, string password) + public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string username, string password, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1232,7 +1326,12 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'password' when calling UserApi->LoginUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1280,10 +1379,11 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of string - public async System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LoginUserAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await LoginUserWithHttpInfoAsync(username, password, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await LoginUserWithHttpInfoAsync(username, password, cancellationToken, localVarRequestOptions).ConfigureAwait(false); return localVarResponse.Data; } @@ -1294,8 +1394,9 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// The user name for login /// The password for login in clear text /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LoginUserWithHttpInfoAsync(string username, string password, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1310,7 +1411,10 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1356,20 +1460,27 @@ public Org.OpenAPITools.Client.ApiResponse LoginUserWithHttpInfo(string /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// - public void LogoutUser() + public void LogoutUser(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - LogoutUserWithHttpInfo(); + LogoutUserWithHttpInfo(localVarRequestOptions); } /// /// Logs out current logged in user session /// /// Thrown when fails to make API call + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() + public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo(Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { }; @@ -1416,10 +1527,11 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task LogoutUserAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await LogoutUserWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + await LogoutUserWithHttpInfoAsync(cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1427,11 +1539,15 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> LogoutUserWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { }; @@ -1480,10 +1596,11 @@ public Org.OpenAPITools.Client.ApiResponse LogoutUserWithHttpInfo() /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// - public void UpdateUser(string username, User user) + public void UpdateUser(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - UpdateUserWithHttpInfo(username, user); + UpdateUserWithHttpInfo(username, user, localVarRequestOptions); } /// @@ -1492,8 +1609,9 @@ public void UpdateUser(string username, User user) /// Thrown when fails to make API call /// name that need to be deleted /// Updated user object + /// /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string username, User user) + public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string username, User user, Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1507,7 +1625,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'user' when calling UserApi->UpdateUser"); } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } + + string[] _contentTypes = new string[] { "application/json" @@ -1559,10 +1682,11 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of void - public async System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdateUserAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { - await UpdateUserWithHttpInfoAsync(username, user, cancellationToken).ConfigureAwait(false); + await UpdateUserWithHttpInfoAsync(username, user, cancellationToken, localVarRequestOptions).ConfigureAwait(false); } /// @@ -1572,8 +1696,9 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string /// name that need to be deleted /// Updated user object /// Cancellation Token to cancel the request. + /// /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdateUserWithHttpInfoAsync(string username, User user, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken), Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = default(Org.OpenAPITools.Client.RequestOptions)) { // verify the required parameter 'username' is set if (username == null) @@ -1588,7 +1713,10 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string } - Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + if(localVarRequestOptions == default(Org.OpenAPITools.Client.RequestOptions)) + { + localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); + } string[] _contentTypes = new string[] { "application/json" @@ -1635,4 +1763,4 @@ public Org.OpenAPITools.Client.ApiResponse UpdateUserWithHttpInfo(string } } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/Configuration.cs index 897d5a1c666a..6ec1776fbddc 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/Configuration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/Configuration.cs @@ -106,6 +106,7 @@ public Configuration() DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); ApiKeyPrefix = new ConcurrentDictionary(); + GetAccessToken = () => AccessToken; Servers = new List>() { { @@ -251,6 +252,16 @@ public string GetApiKeyWithPrefix(string apiKeyIdentifier) /// The access token. public virtual string AccessToken { get; set; } + + /// + /// Gets the Access Token + /// + /// This helper function allows for customization of the Access Token retrieval. + /// For example, automatic JWT token refreshes. + /// + /// The access token. + public virtual Func GetAccessToken { get; set; } + /// /// Gets or sets the temporary folder path to store the files downloaded from the server. /// @@ -506,10 +517,11 @@ public static IReadableConfiguration MergeConfigurations(IReadableConfiguration Password = second.Password ?? first.Password, AccessToken = second.AccessToken ?? first.AccessToken, TempFolderPath = second.TempFolderPath ?? first.TempFolderPath, - DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat + DateTimeFormat = second.DateTimeFormat ?? first.DateTimeFormat, + GetAccessToken = second.GetAccessToken ?? first.GetAccessToken }; return config; } #endregion Static Members } -} +} \ No newline at end of file diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/IReadableConfiguration.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/IReadableConfiguration.cs index cd8f3fdb1f37..b4d89f40ce2a 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/IReadableConfiguration.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/src/Org.OpenAPITools/Client/IReadableConfiguration.cs @@ -26,6 +26,8 @@ public interface IReadableConfiguration /// Access token. string AccessToken { get; } + Func GetAccessToken {get;} + /// /// Gets the API key. /// @@ -112,4 +114,4 @@ public interface IReadableConfiguration /// X509 Certificate collection. X509CertificateCollection ClientCertificates { get; } } -} +} \ No newline at end of file From a68b641b2f0751c7b205dfe222c47310444aa592 Mon Sep 17 00:00:00 2001 From: Jay Oursler Date: Wed, 1 Dec 2021 13:49:38 -0600 Subject: [PATCH 4/4] Regenerate Docs --- docs/generators/cpp-qt-client.md | 8 ++++---- docs/generators/cpp-restsdk.md | 1 - docs/generators/crystal.md | 1 - docs/generators/csharp-netcore.md | 2 +- docs/generators/fsharp-functions.md | 2 +- docs/generators/fsharp-giraffe-server.md | 2 +- docs/generators/java-inflector.md | 2 +- docs/generators/java.md | 3 +-- docs/generators/jaxrs-cxf-client.md | 2 +- docs/generators/kotlin.md | 1 - docs/generators/protobuf-schema.md | 2 -- docs/generators/ruby.md | 6 +++--- docs/generators/scala-akka-http-server.md | 2 +- docs/generators/scala-akka.md | 2 +- docs/generators/scala-gatling.md | 2 +- docs/generators/scala-httpclient-deprecated.md | 2 +- docs/generators/scala-lagom-server.md | 2 +- docs/generators/scala-sttp.md | 2 +- docs/generators/scalatra.md | 2 +- docs/generators/scalaz.md | 2 +- docs/generators/spring.md | 2 -- docs/generators/swift5.md | 4 ++-- docs/generators/typescript-angular.md | 2 +- 23 files changed, 24 insertions(+), 32 deletions(-) diff --git a/docs/generators/cpp-qt-client.md b/docs/generators/cpp-qt-client.md index 96be28abb0af..0dcbd968233d 100644 --- a/docs/generators/cpp-qt-client.md +++ b/docs/generators/cpp-qt-client.md @@ -236,10 +236,10 @@ These options may be applied as additional-properties (cli) or configOptions (pl |ApiKey|✓|OAS2,OAS3 |OpenIDConnect|✗|OAS3 |BearerToken|✓|OAS3 -|OAuth2_Implicit|✓|OAS2,OAS3 -|OAuth2_Password|✓|OAS2,OAS3 -|OAuth2_ClientCredentials|✓|OAS2,OAS3 -|OAuth2_AuthorizationCode|✓|OAS2,OAS3 +|OAuth2_Implicit|✗|OAS2,OAS3 +|OAuth2_Password|✗|OAS2,OAS3 +|OAuth2_ClientCredentials|✗|OAS2,OAS3 +|OAuth2_AuthorizationCode|✗|OAS2,OAS3 ### Wire Format Feature | Name | Supported | Defined By | diff --git a/docs/generators/cpp-restsdk.md b/docs/generators/cpp-restsdk.md index 4fc97b939ae2..9dfbb390514c 100644 --- a/docs/generators/cpp-restsdk.md +++ b/docs/generators/cpp-restsdk.md @@ -12,7 +12,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl |defaultInclude|The default include statement that should be placed in all headers for including things like the declspec (convention: #include "Commons.h" | || |generateGMocksForApis|Generate Google Mock classes for APIs.| |null| |modelPackage|C++ namespace for models (convention: name.space.model).| |org.openapitools.client.model| -|packageName|C++ package (library) name.| |CppRestOpenAPIClient| |packageVersion|C++ package version.| |1.0.0| |reservedWordPrefix|Prefix to prepend to reserved words in order to avoid conflicts| |r_| |variableNameFirstCharacterUppercase|Make first character of variable name uppercase (eg. value -> Value)| |true| diff --git a/docs/generators/crystal.md b/docs/generators/crystal.md index 93a893215ca4..721384c810cc 100644 --- a/docs/generators/crystal.md +++ b/docs/generators/crystal.md @@ -58,7 +58,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
  • abstract
  • alias
  • -
  • annotation
  • as
  • as?
  • asm
  • diff --git a/docs/generators/csharp-netcore.md b/docs/generators/csharp-netcore.md index bb138ef414d0..7a30e18f899e 100644 --- a/docs/generators/csharp-netcore.md +++ b/docs/generators/csharp-netcore.md @@ -31,7 +31,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |returnICollection|Return ICollection<T> instead of the concrete type.| |false| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| |sourceFolder|source folder for generated code| |src| -|targetFramework|The target .NET framework version. To target multiple frameworks, use `;` as the separator, e.g. `netstandard2.1;netcoreapp3.0`|
    **netstandard1.3**
    .NET Standard 1.3 compatible
    **netstandard1.4**
    .NET Standard 1.4 compatible
    **netstandard1.5**
    .NET Standard 1.5 compatible
    **netstandard1.6**
    .NET Standard 1.6 compatible
    **netstandard2.0**
    .NET Standard 2.0 compatible
    **netstandard2.1**
    .NET Standard 2.1 compatible
    **netcoreapp2.0**
    .NET Core 2.0 compatible
    **netcoreapp2.1**
    .NET Core 2.1 compatible
    **netcoreapp3.0**
    .NET Core 3.0 compatible
    **netcoreapp3.1**
    .NET Core 3.1 compatible
    **net47**
    .NET Framework 4.7 compatible
    **net5.0**
    .NET 5.0 compatible
    **net6.0**
    .NET 6.0 compatible
    |netstandard2.0| +|targetFramework|The target .NET framework version. To target multiple frameworks, use `;` as the separator, e.g. `netstandard2.1;netcoreapp3.0`|
    **netstandard1.3**
    .NET Standard 1.3 compatible
    **netstandard1.4**
    .NET Standard 1.4 compatible
    **netstandard1.5**
    .NET Standard 1.5 compatible
    **netstandard1.6**
    .NET Standard 1.6 compatible
    **netstandard2.0**
    .NET Standard 2.0 compatible
    **netstandard2.1**
    .NET Standard 2.1 compatible
    **netcoreapp2.0**
    .NET Core 2.0 compatible
    **netcoreapp2.1**
    .NET Core 2.1 compatible
    **netcoreapp3.0**
    .NET Core 3.0 compatible
    **netcoreapp3.1**
    .NET Core 3.1 compatible
    **net47**
    .NET Framework 4.7 compatible
    **net5.0**
    .NET 5.0 compatible
    |netstandard2.0| |useCollection|Deserialize array types to Collection<T> instead of List<T>.| |false| |useDateTimeOffset|Use DateTimeOffset to model date-time properties| |false| |useOneOfDiscriminatorLookup|Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and only one match in oneOf's schemas) will be skipped.| |false| diff --git a/docs/generators/fsharp-functions.md b/docs/generators/fsharp-functions.md index bb16f39fa776..2a81000a7fb0 100644 --- a/docs/generators/fsharp-functions.md +++ b/docs/generators/fsharp-functions.md @@ -22,7 +22,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |OpenAPI/src| +|sourceFolder|source folder for generated code| |OpenAPI\src| ## IMPORT MAPPING diff --git a/docs/generators/fsharp-giraffe-server.md b/docs/generators/fsharp-giraffe-server.md index f374168aa71f..66150dbec0de 100644 --- a/docs/generators/fsharp-giraffe-server.md +++ b/docs/generators/fsharp-giraffe-server.md @@ -19,7 +19,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |packageVersion|F# package version.| |1.0.0| |returnICollection|Return ICollection<T> instead of the concrete type.| |false| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |OpenAPI/src| +|sourceFolder|source folder for generated code| |OpenAPI\src| |useCollection|Deserialize array types to Collection<T> instead of List<T>.| |false| |useDateTimeOffset|Use DateTimeOffset to model date-time properties| |false| |useSwashbuckle|Uses the Swashbuckle.AspNetCore NuGet package for documentation.| |false| diff --git a/docs/generators/java-inflector.md b/docs/generators/java-inflector.md index bb4d9dbb2365..a33de1ffb462 100644 --- a/docs/generators/java-inflector.md +++ b/docs/generators/java-inflector.md @@ -48,7 +48,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |snapshotVersion|Uses a SNAPSHOT version.|
    **true**
    Use a SnapShot Version
    **false**
    Use a Release Version
    |null| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |src/gen/java| +|sourceFolder|source folder for generated code| |src\gen\java| |withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false| ## IMPORT MAPPING diff --git a/docs/generators/java.md b/docs/generators/java.md index 1160c36f8b96..0cb76c15409e 100644 --- a/docs/generators/java.md +++ b/docs/generators/java.md @@ -19,7 +19,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl |bigDecimalAsString|Treat BigDecimal values as Strings to avoid precision loss.| |false| |booleanGetterPrefix|Set booleanGetterPrefix| |get| |caseInsensitiveResponseHeaders|Make API response's headers case-insensitive. Available on okhttp-gson, jersey2 libraries| |false| -|configKey|Config key in @RegisterRestClient. Default to none. Only `microprofile` supports this option.| |null| |dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app only)
    **legacy**
    Legacy java.util.Date (if you really have a good reason not to use threetenbp
    **java8-localdatetime**
    Java 8 using LocalDateTime (for legacy app only)
    **java8**
    Java 8 native JSR310 (preferred for jdk 1.8+) - note: this also sets "java8" to true
    **threetenbp**
    Backport of JSR310 (preferred for jdk < 1.8)
    |threetenbp| |developerEmail|developer email in generated pom.xml| |team@openapitools.org| |developerName|developer name in generated pom.xml| |OpenAPI-Generator Contributors| @@ -38,7 +37,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |invokerPackage|root package for generated code| |org.openapitools.client| |java8|Use Java8 classes instead of third party equivalents. Starting in 5.x, JDK8 is the default and the support for JDK7, JDK6 has been dropped|
    **true**
    Use Java 8 classes such as Base64
    **false**
    Various third party libraries as needed
    |true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|
    **true**
    The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.
    **false**
    The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.
    |true| -|library|library template (sub-template) to use|
    **jersey1**
    HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libraries instead.
    **jersey2**
    HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x
    **feign**
    HTTP client: OpenFeign 10.x. JSON processing: Jackson 2.9.x.
    **okhttp-gson**
    [DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.
    **okhttp-gson-nextgen**
    HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x.'. Better support for oneOf/anyOf with breaking changes. Will replace `okhttp-gson` in the 6.0.0 release.
    **retrofit2**
    HTTP client: OkHttp 3.x. JSON processing: Gson 2.x (Retrofit 2.3.0). Enable the RxJava adapter using '-DuseRxJava[2/3]=true'. (RxJava 1.x or 2.x or 3.x)
    **resttemplate**
    HTTP client: Spring RestTemplate 4.x. JSON processing: Jackson 2.9.x
    **webclient**
    HTTP client: Spring WebClient 5.x. JSON processing: Jackson 2.9.x
    **resteasy**
    HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.9.x
    **vertx**
    HTTP client: VertX client 3.x. JSON processing: Jackson 2.9.x
    **google-api-client**
    HTTP client: Google API client 1.x. JSON processing: Jackson 2.9.x
    **rest-assured**
    HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x or Jackson 2.10.x. Only for Java 8
    **native**
    HTTP client: Java native HttpClient. JSON processing: Jackson 2.9.x. Only for Java11+
    **microprofile**
    HTTP client: Microprofile client 1.x. JSON processing: JSON-B
    **apache-httpclient**
    HTTP client: Apache httpclient 4.x
    |okhttp-gson| +|library|library template (sub-template) to use|
    **jersey1**
    HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libraries instead.
    **jersey2**
    HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x
    **feign**
    HTTP client: OpenFeign 10.x. JSON processing: Jackson 2.9.x.
    **okhttp-gson**
    [DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.
    **retrofit2**
    HTTP client: OkHttp 3.x. JSON processing: Gson 2.x (Retrofit 2.3.0). Enable the RxJava adapter using '-DuseRxJava[2/3]=true'. (RxJava 1.x or 2.x or 3.x)
    **resttemplate**
    HTTP client: Spring RestTemplate 4.x. JSON processing: Jackson 2.9.x
    **webclient**
    HTTP client: Spring WebClient 5.x. JSON processing: Jackson 2.9.x
    **resteasy**
    HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.9.x
    **vertx**
    HTTP client: VertX client 3.x. JSON processing: Jackson 2.9.x
    **google-api-client**
    HTTP client: Google API client 1.x. JSON processing: Jackson 2.9.x
    **rest-assured**
    HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x or Jackson 2.10.x. Only for Java 8
    **native**
    HTTP client: Java native HttpClient. JSON processing: Jackson 2.9.x. Only for Java11+
    **microprofile**
    HTTP client: Microprofile client 1.x. JSON processing: JSON-B
    **apache-httpclient**
    HTTP client: Apache httpclient 4.x
    |okhttp-gson| |licenseName|The name of the license| |Unlicense| |licenseUrl|The URL of the license| |http://unlicense.org| |microprofileFramework|Framework for microprofile. Possible values "kumuluzee"| |null| diff --git a/docs/generators/jaxrs-cxf-client.md b/docs/generators/jaxrs-cxf-client.md index 36393f588aae..6c4137adfcc6 100644 --- a/docs/generators/jaxrs-cxf-client.md +++ b/docs/generators/jaxrs-cxf-client.md @@ -48,7 +48,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |snapshotVersion|Uses a SNAPSHOT version.|
    **true**
    Use a SnapShot Version
    **false**
    Use a Release Version
    |null| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |src/gen/java| +|sourceFolder|source folder for generated code| |src\gen\java| |useBeanValidation|Use BeanValidation API annotations| |false| |useGenericResponse|Use generic response| |false| |useGzipFeatureForTests|Use Gzip Feature for tests| |false| diff --git a/docs/generators/kotlin.md b/docs/generators/kotlin.md index 49e02994b749..fca84164c692 100644 --- a/docs/generators/kotlin.md +++ b/docs/generators/kotlin.md @@ -17,7 +17,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl |library|Library template (sub-template) to use|
    **jvm-okhttp4**
    [DEFAULT] Platform: Java Virtual Machine. HTTP client: OkHttp 4.2.0 (Android 5.0+ and Java 8+). JSON processing: Moshi 1.8.0.
    **jvm-okhttp3**
    Platform: Java Virtual Machine. HTTP client: OkHttp 3.12.4 (Android 2.3+ and Java 7+). JSON processing: Moshi 1.8.0.
    **jvm-retrofit2**
    Platform: Java Virtual Machine. HTTP client: Retrofit 2.6.2.
    **multiplatform**
    Platform: Kotlin multiplatform. HTTP client: Ktor 1.6.0. JSON processing: Kotlinx Serialization: 1.2.1.
    |jvm-okhttp4| |modelMutable|Create mutable models| |false| |moshiCodeGen|Whether to enable codegen with the Moshi library. Refer to the [official Moshi doc](https://github.com/square/moshi#codegen) for more info.| |false| -|omitGradlePluginVersions|Whether to declare Gradle plugin versions in build files.| |false| |packageName|Generated artifact package name.| |org.openapitools.client| |parcelizeModels|toggle "@Parcelize" for generated models| |null| |requestDateConverter|JVM-Option. Defines in how to handle date-time objects that are used for a request (as query or parameter)|
    **toJson**
    [DEFAULT] Date formatter option using a json converter.
    **toString**
    Use the 'toString'-method of the date-time object to retrieve the related string representation.
    |toJson| diff --git a/docs/generators/protobuf-schema.md b/docs/generators/protobuf-schema.md index a7d1f1d095b5..104a47fe59ca 100644 --- a/docs/generators/protobuf-schema.md +++ b/docs/generators/protobuf-schema.md @@ -7,8 +7,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl | Option | Description | Values | Default | | ------ | ----------- | ------ | ------- | -|numberedFieldNumberList|Field numbers in order.| |false| -|startEnumsWithUnknown|Introduces "UNKNOWN" as the first element of enumerations.| |false| ## IMPORT MAPPING diff --git a/docs/generators/ruby.md b/docs/generators/ruby.md index 5cd52c8c27af..c9e0477e9677 100644 --- a/docs/generators/ruby.md +++ b/docs/generators/ruby.md @@ -10,13 +10,13 @@ These options may be applied as additional-properties (cli) or configOptions (pl |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|
    **false**
    The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.
    **true**
    Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
    |true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| -|gemAuthor|gem author (only one is supported).| |OpenAPI-Generator| +|gemAuthor|gem author (only one is supported).| |null| |gemAuthorEmail|gem author email (only one is supported).| |null| |gemDescription|gem description. | |This gem maps to a REST API| -|gemHomepage|gem homepage. | |https://openapi-generator.tech| +|gemHomepage|gem homepage. | |http://org.openapitools| |gemLicense|gem license. | |unlicense| |gemName|gem name (convention: underscore_case).| |openapi_client| -|gemRequiredRubyVersion|gem required Ruby version. | |>= 2.4| +|gemRequiredRubyVersion|gem required Ruby version. | |>= 1.9| |gemSummary|gem summary. | |A ruby wrapper for the REST APIs| |gemVersion|gem version.| |1.0.0| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |true| diff --git a/docs/generators/scala-akka-http-server.md b/docs/generators/scala-akka-http-server.md index 3727fc6fdf60..7e056315f619 100644 --- a/docs/generators/scala-akka-http-server.md +++ b/docs/generators/scala-akka-http-server.md @@ -13,7 +13,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |artifactId|artifactId| |openapi-scala-akka-http-server| |artifactVersion|artifact version in generated pom.xml. This also becomes part of the generated library's filename| |1.0.0| |asManagedSources|Resulting files cab be used as managed resources. No build files or default controllers will be generated| |false| -|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (preferred for JDK 1.8+)
    |java8| +|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (prefered for JDK 1.8+)
    |java8| |disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|
    **false**
    The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.
    **true**
    Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
    |true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |groupId|groupId in generated pom.xml| |org.openapitools| diff --git a/docs/generators/scala-akka.md b/docs/generators/scala-akka.md index f2c9cecdab97..683fbef21670 100644 --- a/docs/generators/scala-akka.md +++ b/docs/generators/scala-akka.md @@ -9,7 +9,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl | ------ | ----------- | ------ | ------- | |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |apiPackage|package for generated api classes| |null| -|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (preferred for JDK 1.8+)
    |java8| +|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (prefered for JDK 1.8+)
    |java8| |disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|
    **false**
    The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.
    **true**
    Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
    |true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|
    **true**
    The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.
    **false**
    The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.
    |true| diff --git a/docs/generators/scala-gatling.md b/docs/generators/scala-gatling.md index 2477cb6848e2..414715926d2e 100644 --- a/docs/generators/scala-gatling.md +++ b/docs/generators/scala-gatling.md @@ -9,7 +9,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl | ------ | ----------- | ------ | ------- | |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |apiPackage|package for generated api classes| |null| -|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (preferred for JDK 1.8+)
    |java8| +|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (prefered for JDK 1.8+)
    |java8| |disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|
    **false**
    The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.
    **true**
    Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
    |true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|
    **true**
    The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.
    **false**
    The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.
    |true| diff --git a/docs/generators/scala-httpclient-deprecated.md b/docs/generators/scala-httpclient-deprecated.md index adf4649ffcc4..15bf6f6e26fd 100644 --- a/docs/generators/scala-httpclient-deprecated.md +++ b/docs/generators/scala-httpclient-deprecated.md @@ -9,7 +9,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl | ------ | ----------- | ------ | ------- | |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |apiPackage|package for generated api classes| |null| -|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (preferred for JDK 1.8+)
    |java8| +|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (prefered for JDK 1.8+)
    |java8| |disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|
    **false**
    The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.
    **true**
    Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
    |true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|
    **true**
    The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.
    **false**
    The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.
    |true| diff --git a/docs/generators/scala-lagom-server.md b/docs/generators/scala-lagom-server.md index 8c583afcaac0..8dc2075e3771 100644 --- a/docs/generators/scala-lagom-server.md +++ b/docs/generators/scala-lagom-server.md @@ -9,7 +9,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl | ------ | ----------- | ------ | ------- | |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |apiPackage|package for generated api classes| |null| -|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (preferred for JDK 1.8+)
    |java8| +|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (prefered for JDK 1.8+)
    |java8| |disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|
    **false**
    The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.
    **true**
    Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
    |true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|
    **true**
    The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.
    **false**
    The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.
    |true| diff --git a/docs/generators/scala-sttp.md b/docs/generators/scala-sttp.md index 0e12f7695d40..a0cd2044ea1b 100644 --- a/docs/generators/scala-sttp.md +++ b/docs/generators/scala-sttp.md @@ -10,7 +10,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |apiPackage|package for generated api classes| |null| |circeVersion|The version of circe library| |0.13.0| -|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (preferred for JDK 1.8+)
    |java8| +|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (prefered for JDK 1.8+)
    |java8| |disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|
    **false**
    The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.
    **true**
    Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
    |true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |jodaTimeVersion|The version of joda-time library| |2.10.10| diff --git a/docs/generators/scalatra.md b/docs/generators/scalatra.md index aab1bd98c224..a7a657bce953 100644 --- a/docs/generators/scalatra.md +++ b/docs/generators/scalatra.md @@ -9,7 +9,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl | ------ | ----------- | ------ | ------- | |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |apiPackage|package for generated api classes| |null| -|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (preferred for JDK 1.8+)
    |java8| +|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (prefered for JDK 1.8+)
    |java8| |disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|
    **false**
    The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.
    **true**
    Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
    |true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|
    **true**
    The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.
    **false**
    The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.
    |true| diff --git a/docs/generators/scalaz.md b/docs/generators/scalaz.md index 87dc8b0e5e48..41b6240df6db 100644 --- a/docs/generators/scalaz.md +++ b/docs/generators/scalaz.md @@ -9,7 +9,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl | ------ | ----------- | ------ | ------- | |allowUnicodeIdentifiers|boolean, toggles whether unicode identifiers are allowed in names or not, default is false| |false| |apiPackage|package for generated api classes| |null| -|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (preferred for JDK 1.8+)
    |java8| +|dateLibrary|Option. Date library to use|
    **joda**
    Joda (for legacy app)
    **java8**
    Java 8 native JSR310 (prefered for JDK 1.8+)
    |java8| |disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|
    **false**
    The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.
    **true**
    Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
    |true| |ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|
    **true**
    The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.
    **false**
    The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.
    |true| diff --git a/docs/generators/spring.md b/docs/generators/spring.md index 8f834fdf27dd..5515eaae9bc5 100644 --- a/docs/generators/spring.md +++ b/docs/generators/spring.md @@ -45,7 +45,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl |licenseName|The name of the license| |Unlicense| |licenseUrl|The URL of the license| |http://unlicense.org| |modelPackage|package for generated models| |org.openapitools.model| -|oas3|Use OAS 3 Swagger annotations instead of OAS 2 annotations| |false| |openApiNullable|Enable OpenAPI Jackson Nullable library| |true| |parentArtifactId|parent artifactId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect| |null| |parentGroupId|parent groupId in generated pom N.B. parentGroupId, parentArtifactId and parentVersion must all be specified for any of them to take effect| |null| @@ -70,7 +69,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl |unhandledException|Declare operation methods to throw a generic exception and allow unhandled exceptions (useful for Spring `@ControllerAdvice` directives).| |false| |useBeanValidation|Use BeanValidation API annotations| |true| |useOptional|Use Optional container for optional parameters| |false| -|useSpringController|Annotate the generated API as a Spring Controller| |false| |useTags|use tags for creating interface and controller classnames| |false| |virtualService|Generates the virtual service. For more details refer - https://github.com/virtualansoftware/virtualan/wiki| |false| |withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false| diff --git a/docs/generators/swift5.md b/docs/generators/swift5.md index e74a239be255..a31067084462 100644 --- a/docs/generators/swift5.md +++ b/docs/generators/swift5.md @@ -37,11 +37,11 @@ These options may be applied as additional-properties (cli) or configOptions (pl |responseAs|Optionally use libraries to manage response. Currently PromiseKit, RxSwift, Result, Combine, AsyncAwait are available.| |null| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|swiftPackagePath|Set a custom source path instead of OpenAPIClient/Classes/OpenAPIs.| |null| +|swiftPackagePath|Set a custom source path instead of OpenAPIClient\Classes\OpenAPIs.| |null| |swiftUseApiNamespace|Flag to make all the API classes inner-class of {{projectName}}API| |null| |useBacktickEscapes|Escape reserved words using backticks (default: false)| |false| |useClasses|Use final classes for models instead of structs (default: false)| |false| -|useSPMFileStructure|Use SPM file structure and set the source path to Sources/{{projectName}} (default: false).| |null| +|useSPMFileStructure|Use SPM file structure and set the source path to Sources\{{projectName}} (default: false).| |null| ## IMPORT MAPPING diff --git a/docs/generators/typescript-angular.md b/docs/generators/typescript-angular.md index ab8b3da35fc8..126ccd5ae386 100644 --- a/docs/generators/typescript-angular.md +++ b/docs/generators/typescript-angular.md @@ -19,7 +19,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |modelFileSuffix|The suffix of the file of the generated model (model<suffix>.ts).| |null| |modelPropertyNaming|Naming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original name. Only change it if you provide your own run-time code for (de-)serialization of models| |original| |modelSuffix|The suffix of the generated model.| |null| -|ngVersion|The version of Angular. (At least 6.0.0)| |12.2.12| +|ngVersion|The version of Angular. (At least 6.0.0)| |12.0.0| |npmName|The name under which you want to publish generated npm package. Required to generate a full package| |null| |npmRepository|Use this property to set an url your private npmRepo in the package.json| |null| |npmVersion|The version of your npm package. If not provided, using the version from the OpenAPI specification file.| |1.0.0|