diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpNextgenClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpNextgenClientCodegen.java index 95d3c2ac777f0..05dc4198c6f76 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpNextgenClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpNextgenClientCodegen.java @@ -48,6 +48,8 @@ public PhpNextgenClientCodegen() { setSrcBasePath("src"); setTestBasePath("tests"); + apiTemplateFiles.put("api_interface.mustache", "Interface.php"); + // mark as beta so far this.generatorMetadata = GeneratorMetadata.newBuilder(generatorMetadata) .stability(Stability.BETA).build(); diff --git a/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache b/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache index 25fe707034418..a8d192aea53d1 100644 --- a/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache +++ b/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache @@ -38,7 +38,7 @@ use {{invokerPackage}}\ObjectSerializer; * @author OpenAPI Generator team * @link https://openapi-generator.tech */ -{{#operations}}class {{classname}} +{{#operations}}class {{classname}} implements {{interfaceNamePrefix}}{{classname}}{{interfaceNameSuffix}} { /** * @var ClientInterface @@ -60,15 +60,6 @@ use {{invokerPackage}}\ObjectSerializer; */ protected int $hostIndex; - /** @var string[] $contentTypes **/ - public const contentTypes = [{{#operation}} - '{{{operationId}}}' => [{{#consumes}} - '{{{mediaType}}}',{{/consumes}} - {{^consumes}} - 'application/json', -{{/consumes}} ],{{/operation}} - ]; - /** * @param ClientInterface|null $client * @param Configuration|null $config @@ -88,9 +79,7 @@ use {{invokerPackage}}\ObjectSerializer; } /** - * Set the host index - * - * @param int $hostIndex Host index (required) + * {@inheritdoc} */ public function setHostIndex(int $hostIndex): void { @@ -98,9 +87,7 @@ use {{invokerPackage}}\ObjectSerializer; } /** - * Get the host index - * - * @return int Host index + * {@inheritdoc} */ public function getHostIndex(): int { @@ -108,7 +95,7 @@ use {{invokerPackage}}\ObjectSerializer; } /** - * @return Configuration + * {@inheritdoc} */ public function getConfig(): Configuration { @@ -117,57 +104,7 @@ use {{invokerPackage}}\ObjectSerializer; {{#operation}} /** - * Operation {{{operationId}}} -{{#summary}} - * - * {{.}} -{{/summary}} - * -{{#description}} - * {{.}} - * -{{/description}} -{{#vendorExtensions.x-group-parameters}} - * Note: the input parameter is an associative array with the keys listed as the parameter name below - * -{{/vendorExtensions.x-group-parameters}} -{{#servers}} -{{#-first}} - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. -{{/-first}} - * URL: {{{url}}} -{{#variables}} -{{#-first}} - * Variables: -{{/-first}} - * - {{{name}}}: {{{description}}}{{^description}} No description provided{{/description}}{{#enumValues}} -{{#-first}} - * Allowed values: -{{/-first}} - * - {{{.}}}{{/enumValues}} -{{/variables}} -{{#-last}} - * -{{/-last}} -{{/servers}} -{{#allParams}} - * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}}{{^description}} {{paramName}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} -{{/allParams}} -{{#servers}} -{{#-first}} - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. -{{/-first}} -{{/servers}} - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['{{{operationId}}}'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return {{#returnType}}{{#responses}}{{#dataType}}{{^-first}}|{{/-first}}{{/dataType}}{{{dataType}}}{{/responses}}{{/returnType}}{{^returnType}}void{{/returnType}} - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} + * {@inheritdoc} */ public function {{operationId}}( {{^vendorExtensions.x-group-parameters}} @@ -192,57 +129,7 @@ use {{invokerPackage}}\ObjectSerializer; } /** - * Operation {{{operationId}}}WithHttpInfo -{{#summary}} - * - * {{.}} -{{/summary}} - * -{{#description}} - * {{.}} - * -{{/description}} -{{#vendorExtensions.x-group-parameters}} - * Note: the input parameter is an associative array with the keys listed as the parameter name below - * -{{/vendorExtensions.x-group-parameters}} -{{#servers}} -{{#-first}} - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. -{{/-first}} - * URL: {{{url}}} -{{#variables}} -{{#-first}} - * Variables: -{{/-first}} - * - {{{name}}}: {{{description}}}{{^description}} No description provided{{/description}}{{#enumValues}} -{{#-first}} - * Allowed values: -{{/-first}} - * - {{{.}}}{{/enumValues}} -{{/variables}} -{{#-last}} - * -{{/-last}} -{{/servers}} -{{#allParams}} - * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} -{{/allParams}} -{{#servers}} -{{#-first}} - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. -{{/-first}} -{{/servers}} - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['{{{operationId}}}'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of {{#returnType}}{{#responses}}{{#dataType}}{{^-first}}|{{/-first}}{{/dataType}}{{{dataType}}}{{/responses}}{{/returnType}}{{^returnType}}null{{/returnType}}, HTTP status code, HTTP response headers (array of strings) - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} + * {@inheritdoc} */ public function {{operationId}}WithHttpInfo( {{^vendorExtensions.x-group-parameters}} @@ -391,56 +278,7 @@ use {{invokerPackage}}\ObjectSerializer; } /** - * Operation {{{operationId}}}Async - * -{{#summary}} - * {{.}} - * -{{/summary}} -{{#description}} - * {{.}} - * -{{/description}} -{{#vendorExtensions.x-group-parameters}} - * Note: the input parameter is an associative array with the keys listed as the parameter name below - * -{{/vendorExtensions.x-group-parameters}} -{{#servers}} -{{#-first}} - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. -{{/-first}} - * URL: {{{url}}} -{{#variables}} -{{#-first}} - * Variables: -{{/-first}} - * - {{{name}}}: {{{description}}}{{^description}} No description provided{{/description}}{{#enumValues}} -{{#-first}} - * Allowed values: -{{/-first}} - * - {{{.}}}{{/enumValues}} -{{/variables}} -{{#-last}} - * -{{/-last}} -{{/servers}} -{{#allParams}} - * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} -{{/allParams}} -{{#servers}} -{{#-first}} - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. -{{/-first}} -{{/servers}} - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['{{{operationId}}}'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} + * {@inheritdoc} */ public function {{operationId}}Async( {{^vendorExtensions.x-group-parameters}} @@ -469,56 +307,7 @@ use {{invokerPackage}}\ObjectSerializer; } /** - * Operation {{{operationId}}}AsyncWithHttpInfo - * -{{#summary}} - * {{.}} - * -{{/summary}} -{{#description}} - * {{.}} - * -{{/description}} -{{#vendorExtensions.x-group-parameters}} - * Note: the input parameter is an associative array with the keys listed as the parameter name below - * -{{/vendorExtensions.x-group-parameters}} -{{#servers}} -{{#-first}} - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. -{{/-first}} - * URL: {{{url}}} -{{#variables}} -{{#-first}} - * Variables: -{{/-first}} - * - {{{name}}}: {{{description}}}{{^description}} No description provided{{/description}}{{#enumValues}} -{{#-first}} - * Allowed values: -{{/-first}} - * - {{{.}}}{{/enumValues}} -{{/variables}} -{{#-last}} - * -{{/-last}} -{{/servers}} -{{#allParams}} - * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} -{{/allParams}} -{{#servers}} -{{#-first}} - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. -{{/-first}} -{{/servers}} - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['{{{operationId}}}'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} + * {@inheritdoc} */ public function {{operationId}}AsyncWithHttpInfo( {{^vendorExtensions.x-group-parameters}} @@ -583,48 +372,7 @@ use {{invokerPackage}}\ObjectSerializer; } /** - * Create request for operation '{{{operationId}}}' - * -{{#vendorExtensions.x-group-parameters}} - * Note: the input parameter is an associative array with the keys listed as the parameter name below - * -{{/vendorExtensions.x-group-parameters}} -{{#servers}} -{{#-first}} - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. -{{/-first}} - * URL: {{{url}}} -{{#variables}} -{{#-first}} - * Variables: -{{/-first}} - * - {{{name}}}: {{{description}}}{{^description}} No description provided{{/description}}{{#enumValues}} -{{#-first}} - * Allowed values: -{{/-first}} - * - {{{.}}}{{/enumValues}} -{{/variables}} -{{#-last}} - * -{{/-last}} -{{/servers}} -{{#allParams}} - * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} -{{/allParams}} -{{#servers}} -{{#-first}} - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. -{{/-first}} -{{/servers}} - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['{{{operationId}}}'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - {{#isDeprecated}} - * @deprecated - {{/isDeprecated}} + * {@inheritdoc} */ public function {{operationId}}Request( {{^vendorExtensions.x-group-parameters}} diff --git a/modules/openapi-generator/src/main/resources/php-nextgen/api_interface.mustache b/modules/openapi-generator/src/main/resources/php-nextgen/api_interface.mustache new file mode 100644 index 0000000000000..a9c9b404e6ab4 --- /dev/null +++ b/modules/openapi-generator/src/main/resources/php-nextgen/api_interface.mustache @@ -0,0 +1,409 @@ +partial_header}} +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +namespace {{apiPackage}}; + +use InvalidArgumentException; +use GuzzleHttp\Psr7\Request; +use GuzzleHttp\Promise\PromiseInterface; +use {{invokerPackage}}\ApiException; +use {{invokerPackage}}\Configuration; + +/** + * {{classname}} Class Doc Comment + * + * @package {{invokerPackage}} + * @author OpenAPI Generator team + * @link https://openapi-generator.tech + */ +{{#operations}}interface {{interfaceNamePrefix}}{{classname}}{{interfaceNameSuffix}} +{ + /** @var string[] $contentTypes **/ + public const contentTypes = [{{#operation}} + '{{{operationId}}}' => [{{#consumes}} + '{{{mediaType}}}',{{/consumes}} + {{^consumes}} + 'application/json', +{{/consumes}} ],{{/operation}} + ]; + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex(int $hostIndex): void; + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex(): int; + + /** + * @return Configuration + */ + public function getConfig(): Configuration; + +{{#operation}} + /** + * Operation {{{operationId}}} +{{#summary}} + * + * {{.}} +{{/summary}} + * +{{#description}} + * {{.}} + * +{{/description}} +{{#vendorExtensions.x-group-parameters}} + * Note: the input parameter is an associative array with the keys listed as the parameter name below + * +{{/vendorExtensions.x-group-parameters}} +{{#servers}} +{{#-first}} + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. +{{/-first}} + * URL: {{{url}}} +{{#variables}} +{{#-first}} + * Variables: +{{/-first}} + * - {{{name}}}: {{{description}}}{{^description}} No description provided{{/description}}{{#enumValues}} +{{#-first}} + * Allowed values: +{{/-first}} + * - {{{.}}}{{/enumValues}} +{{/variables}} +{{#-last}} + * +{{/-last}} +{{/servers}} +{{#allParams}} + * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}}{{^description}} {{paramName}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} +{{/allParams}} +{{#servers}} +{{#-first}} + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. +{{/-first}} +{{/servers}} + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['{{{operationId}}}'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return {{#returnType}}{{#responses}}{{#dataType}}{{^-first}}|{{/-first}}{{/dataType}}{{{dataType}}}{{/responses}}{{/returnType}}{{^returnType}}void{{/returnType}} + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + public function {{operationId}}( + {{^vendorExtensions.x-group-parameters}} + {{#allParams}} + {{^required}}?{{/required}}{{vendorExtensions.x-php-param-type}} ${{paramName}}{{^required}} = {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}{{/required}}, + {{/allParams}} + {{#servers}} + {{#-first}} + ?int $hostIndex = null, + array $variables = [], + {{/-first}} + {{/servers}} + string $contentType = self::contentTypes['{{{operationId}}}'][0] + {{/vendorExtensions.x-group-parameters}} + {{#vendorExtensions.x-group-parameters}} + array $associative_array + {{/vendorExtensions.x-group-parameters}} + ): {{{vendorExtensions.x-php-return-type}}}; + + /** + * Operation {{{operationId}}}WithHttpInfo +{{#summary}} + * + * {{.}} +{{/summary}} + * +{{#description}} + * {{.}} + * +{{/description}} +{{#vendorExtensions.x-group-parameters}} + * Note: the input parameter is an associative array with the keys listed as the parameter name below + * +{{/vendorExtensions.x-group-parameters}} +{{#servers}} +{{#-first}} + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. +{{/-first}} + * URL: {{{url}}} +{{#variables}} +{{#-first}} + * Variables: +{{/-first}} + * - {{{name}}}: {{{description}}}{{^description}} No description provided{{/description}}{{#enumValues}} +{{#-first}} + * Allowed values: +{{/-first}} + * - {{{.}}}{{/enumValues}} +{{/variables}} +{{#-last}} + * +{{/-last}} +{{/servers}} +{{#allParams}} + * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} +{{/allParams}} +{{#servers}} +{{#-first}} + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. +{{/-first}} +{{/servers}} + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['{{{operationId}}}'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of {{#returnType}}{{#responses}}{{#dataType}}{{^-first}}|{{/-first}}{{/dataType}}{{{dataType}}}{{/responses}}{{/returnType}}{{^returnType}}null{{/returnType}}, HTTP status code, HTTP response headers (array of strings) + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + public function {{operationId}}WithHttpInfo( + {{^vendorExtensions.x-group-parameters}} + {{#allParams}} + {{^required}}?{{/required}}{{vendorExtensions.x-php-param-type}} ${{paramName}}{{^required}} = {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}{{/required}}, + {{/allParams}} + {{#servers}} + {{#-first}} + ?int $hostIndex = null, + array $variables = [], + {{/-first}} + {{/servers}} + string $contentType = self::contentTypes['{{{operationId}}}'][0] + {{/vendorExtensions.x-group-parameters}} + {{#vendorExtensions.x-group-parameters}} + array $associative_array + {{/vendorExtensions.x-group-parameters}} + ): array; + + /** + * Operation {{{operationId}}}Async + * +{{#summary}} + * {{.}} + * +{{/summary}} +{{#description}} + * {{.}} + * +{{/description}} +{{#vendorExtensions.x-group-parameters}} + * Note: the input parameter is an associative array with the keys listed as the parameter name below + * +{{/vendorExtensions.x-group-parameters}} +{{#servers}} +{{#-first}} + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. +{{/-first}} + * URL: {{{url}}} +{{#variables}} +{{#-first}} + * Variables: +{{/-first}} + * - {{{name}}}: {{{description}}}{{^description}} No description provided{{/description}}{{#enumValues}} +{{#-first}} + * Allowed values: +{{/-first}} + * - {{{.}}}{{/enumValues}} +{{/variables}} +{{#-last}} + * +{{/-last}} +{{/servers}} +{{#allParams}} + * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} +{{/allParams}} +{{#servers}} +{{#-first}} + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. +{{/-first}} +{{/servers}} + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['{{{operationId}}}'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + public function {{operationId}}Async( + {{^vendorExtensions.x-group-parameters}} + {{#allParams}} + {{^required}}?{{/required}}{{vendorExtensions.x-php-param-type}} ${{paramName}}{{^required}} = {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}{{/required}}, + {{/allParams}} + {{#servers}} + {{#-first}} + ?int $hostIndex = null, + array $variables = [], + {{/-first}} + {{/servers}} + string $contentType = self::contentTypes['{{{operationId}}}'][0] + {{/vendorExtensions.x-group-parameters}} + {{#vendorExtensions.x-group-parameters}} + array $associative_array + {{/vendorExtensions.x-group-parameters}} + ): PromiseInterface; + + /** + * Operation {{{operationId}}}AsyncWithHttpInfo + * +{{#summary}} + * {{.}} + * +{{/summary}} +{{#description}} + * {{.}} + * +{{/description}} +{{#vendorExtensions.x-group-parameters}} + * Note: the input parameter is an associative array with the keys listed as the parameter name below + * +{{/vendorExtensions.x-group-parameters}} +{{#servers}} +{{#-first}} + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. +{{/-first}} + * URL: {{{url}}} +{{#variables}} +{{#-first}} + * Variables: +{{/-first}} + * - {{{name}}}: {{{description}}}{{^description}} No description provided{{/description}}{{#enumValues}} +{{#-first}} + * Allowed values: +{{/-first}} + * - {{{.}}}{{/enumValues}} +{{/variables}} +{{#-last}} + * +{{/-last}} +{{/servers}} +{{#allParams}} + * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} +{{/allParams}} +{{#servers}} +{{#-first}} + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. +{{/-first}} +{{/servers}} + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['{{{operationId}}}'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + public function {{operationId}}AsyncWithHttpInfo( + {{^vendorExtensions.x-group-parameters}} + {{#allParams}} + ${{paramName}}{{^required}} = {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}{{/required}}, + {{/allParams}} + {{#servers}} + {{#-first}} + ?int $hostIndex = null, + array $variables = [], + {{/-first}} + {{/servers}} + string $contentType = self::contentTypes['{{{operationId}}}'][0] + {{/vendorExtensions.x-group-parameters}} + {{#vendorExtensions.x-group-parameters}} + array $associative_array + {{/vendorExtensions.x-group-parameters}} + ): PromiseInterface; + + /** + * Create request for operation '{{{operationId}}}' + * +{{#vendorExtensions.x-group-parameters}} + * Note: the input parameter is an associative array with the keys listed as the parameter name below + * +{{/vendorExtensions.x-group-parameters}} +{{#servers}} +{{#-first}} + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. +{{/-first}} + * URL: {{{url}}} +{{#variables}} +{{#-first}} + * Variables: +{{/-first}} + * - {{{name}}}: {{{description}}}{{^description}} No description provided{{/description}}{{#enumValues}} +{{#-first}} + * Allowed values: +{{/-first}} + * - {{{.}}}{{/enumValues}} +{{/variables}} +{{#-last}} + * +{{/-last}} +{{/servers}} +{{#allParams}} + * @param {{{dataType}}}{{^required}}|null{{/required}} ${{paramName}}{{#description}} {{.}}{{/description}} {{#required}}(required){{/required}}{{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#isDeprecated}} (deprecated){{/isDeprecated}} +{{/allParams}} +{{#servers}} +{{#-first}} + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. +{{/-first}} +{{/servers}} + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['{{{operationId}}}'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + {{#isDeprecated}} + * @deprecated + {{/isDeprecated}} + */ + public function {{operationId}}Request( + {{^vendorExtensions.x-group-parameters}} + {{#allParams}} + ${{paramName}}{{^required}} = {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}{{/required}}, + {{/allParams}} + {{#servers}} + {{#-first}} + ?int $hostIndex = null, + array $variables = [], + {{/-first}} + {{/servers}} + string $contentType = self::contentTypes['{{{operationId}}}'][0] + {{/vendorExtensions.x-group-parameters}} + {{#vendorExtensions.x-group-parameters}} + array $associative_array + {{/vendorExtensions.x-group-parameters}} + ): Request; + {{/operation}} +} +{{/operations}} diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES b/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES index d01b2c03fa2c0..625ec0f1903bd 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES @@ -64,12 +64,19 @@ docs/Model/User.md git_push.sh phpunit.xml.dist src/Api/AnotherFakeApi.php +src/Api/AnotherFakeApiInterface.php src/Api/DefaultApi.php +src/Api/DefaultApiInterface.php src/Api/FakeApi.php +src/Api/FakeApiInterface.php src/Api/FakeClassnameTags123Api.php +src/Api/FakeClassnameTags123ApiInterface.php src/Api/PetApi.php +src/Api/PetApiInterface.php src/Api/StoreApi.php +src/Api/StoreApiInterface.php src/Api/UserApi.php +src/Api/UserApiInterface.php src/ApiException.php src/ClientBuilder.php src/Configuration.php diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/AnotherFakeApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/AnotherFakeApi.php index 01d2e6cda979e..b098891ca33c2 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/AnotherFakeApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/AnotherFakeApi.php @@ -47,7 +47,7 @@ * @author OpenAPI Generator team * @link https://openapi-generator.tech */ -class AnotherFakeApi +class AnotherFakeApi implements AnotherFakeApiInterface { /** * @var ClientInterface @@ -69,13 +69,6 @@ class AnotherFakeApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ - public const contentTypes = [ - 'call123TestSpecialTags' => [ - 'application/json', - ], - ]; - /** * @param ClientInterface|null $client * @param Configuration|null $config @@ -95,9 +88,7 @@ public function __construct( } /** - * Set the host index - * - * @param int $hostIndex Host index (required) + * {@inheritdoc} */ public function setHostIndex(int $hostIndex): void { @@ -105,9 +96,7 @@ public function setHostIndex(int $hostIndex): void } /** - * Get the host index - * - * @return int Host index + * {@inheritdoc} */ public function getHostIndex(): int { @@ -115,7 +104,7 @@ public function getHostIndex(): int } /** - * @return Configuration + * {@inheritdoc} */ public function getConfig(): Configuration { @@ -123,16 +112,7 @@ public function getConfig(): Configuration } /** - * Operation call123TestSpecialTags - * - * To test special tags - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['call123TestSpecialTags'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\Client + * {@inheritdoc} */ public function call123TestSpecialTags( \OpenAPI\Client\Model\Client $client, @@ -144,16 +124,7 @@ public function call123TestSpecialTags( } /** - * Operation call123TestSpecialTagsWithHttpInfo - * - * To test special tags - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['call123TestSpecialTags'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function call123TestSpecialTagsWithHttpInfo( \OpenAPI\Client\Model\Client $client, @@ -271,15 +242,7 @@ public function call123TestSpecialTagsWithHttpInfo( } /** - * Operation call123TestSpecialTagsAsync - * - * To test special tags - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['call123TestSpecialTags'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function call123TestSpecialTagsAsync( \OpenAPI\Client\Model\Client $client, @@ -295,15 +258,7 @@ function ($response) { } /** - * Operation call123TestSpecialTagsAsyncWithHttpInfo - * - * To test special tags - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['call123TestSpecialTags'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function call123TestSpecialTagsAsyncWithHttpInfo( $client, @@ -350,13 +305,7 @@ function ($exception) { } /** - * Create request for operation 'call123TestSpecialTags' - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['call123TestSpecialTags'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function call123TestSpecialTagsRequest( $client, diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/AnotherFakeApiInterface.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/AnotherFakeApiInterface.php new file mode 100644 index 0000000000000..fbb112209bb24 --- /dev/null +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/AnotherFakeApiInterface.php @@ -0,0 +1,149 @@ + [ + 'application/json', + ], + ]; + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex(int $hostIndex): void; + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex(): int; + + /** + * @return Configuration + */ + public function getConfig(): Configuration; + + /** + * Operation call123TestSpecialTags + * + * To test special tags + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['call123TestSpecialTags'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\Client + */ + public function call123TestSpecialTags( + \OpenAPI\Client\Model\Client $client, + string $contentType = self::contentTypes['call123TestSpecialTags'][0] + ): \OpenAPI\Client\Model\Client; + + /** + * Operation call123TestSpecialTagsWithHttpInfo + * + * To test special tags + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['call123TestSpecialTags'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings) + */ + public function call123TestSpecialTagsWithHttpInfo( + \OpenAPI\Client\Model\Client $client, + string $contentType = self::contentTypes['call123TestSpecialTags'][0] + ): array; + + /** + * Operation call123TestSpecialTagsAsync + * + * To test special tags + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['call123TestSpecialTags'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function call123TestSpecialTagsAsync( + \OpenAPI\Client\Model\Client $client, + string $contentType = self::contentTypes['call123TestSpecialTags'][0] + ): PromiseInterface; + + /** + * Operation call123TestSpecialTagsAsyncWithHttpInfo + * + * To test special tags + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['call123TestSpecialTags'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function call123TestSpecialTagsAsyncWithHttpInfo( + $client, + string $contentType = self::contentTypes['call123TestSpecialTags'][0] + ): PromiseInterface; + + /** + * Create request for operation 'call123TestSpecialTags' + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['call123TestSpecialTags'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function call123TestSpecialTagsRequest( + $client, + string $contentType = self::contentTypes['call123TestSpecialTags'][0] + ): Request; +} diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/DefaultApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/DefaultApi.php index ac0177a75488a..fa11962d022fa 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/DefaultApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/DefaultApi.php @@ -47,7 +47,7 @@ * @author OpenAPI Generator team * @link https://openapi-generator.tech */ -class DefaultApi +class DefaultApi implements DefaultApiInterface { /** * @var ClientInterface @@ -69,13 +69,6 @@ class DefaultApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ - public const contentTypes = [ - 'fooGet' => [ - 'application/json', - ], - ]; - /** * @param ClientInterface|null $client * @param Configuration|null $config @@ -95,9 +88,7 @@ public function __construct( } /** - * Set the host index - * - * @param int $hostIndex Host index (required) + * {@inheritdoc} */ public function setHostIndex(int $hostIndex): void { @@ -105,9 +96,7 @@ public function setHostIndex(int $hostIndex): void } /** - * Get the host index - * - * @return int Host index + * {@inheritdoc} */ public function getHostIndex(): int { @@ -115,7 +104,7 @@ public function getHostIndex(): int } /** - * @return Configuration + * {@inheritdoc} */ public function getConfig(): Configuration { @@ -123,13 +112,7 @@ public function getConfig(): Configuration } /** - * Operation fooGet - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fooGet'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\FooGetDefaultResponse + * {@inheritdoc} */ public function fooGet( string $contentType = self::contentTypes['fooGet'][0] @@ -140,13 +123,7 @@ public function fooGet( } /** - * Operation fooGetWithHttpInfo - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fooGet'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\FooGetDefaultResponse, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function fooGetWithHttpInfo( string $contentType = self::contentTypes['fooGet'][0] @@ -263,12 +240,7 @@ public function fooGetWithHttpInfo( } /** - * Operation fooGetAsync - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fooGet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fooGetAsync( string $contentType = self::contentTypes['fooGet'][0] @@ -283,12 +255,7 @@ function ($response) { } /** - * Operation fooGetAsyncWithHttpInfo - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fooGet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fooGetAsyncWithHttpInfo( string $contentType = self::contentTypes['fooGet'][0] @@ -334,12 +301,7 @@ function ($exception) { } /** - * Create request for operation 'fooGet' - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fooGet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function fooGetRequest( string $contentType = self::contentTypes['fooGet'][0] diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/DefaultApiInterface.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/DefaultApiInterface.php new file mode 100644 index 0000000000000..86bea4865df9c --- /dev/null +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/DefaultApiInterface.php @@ -0,0 +1,131 @@ + [ + 'application/json', + ], + ]; + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex(int $hostIndex): void; + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex(): int; + + /** + * @return Configuration + */ + public function getConfig(): Configuration; + + /** + * Operation fooGet + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fooGet'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\FooGetDefaultResponse + */ + public function fooGet( + string $contentType = self::contentTypes['fooGet'][0] + ): \OpenAPI\Client\Model\FooGetDefaultResponse; + + /** + * Operation fooGetWithHttpInfo + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fooGet'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\FooGetDefaultResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function fooGetWithHttpInfo( + string $contentType = self::contentTypes['fooGet'][0] + ): array; + + /** + * Operation fooGetAsync + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fooGet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fooGetAsync( + string $contentType = self::contentTypes['fooGet'][0] + ): PromiseInterface; + + /** + * Operation fooGetAsyncWithHttpInfo + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fooGet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fooGetAsyncWithHttpInfo( + string $contentType = self::contentTypes['fooGet'][0] + ): PromiseInterface; + + /** + * Create request for operation 'fooGet' + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fooGet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function fooGetRequest( + string $contentType = self::contentTypes['fooGet'][0] + ): Request; +} diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php index 5adb962d1701b..9b5113daf4e05 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php @@ -47,7 +47,7 @@ * @author OpenAPI Generator team * @link https://openapi-generator.tech */ -class FakeApi +class FakeApi implements FakeApiInterface { /** * @var ClientInterface @@ -69,74 +69,6 @@ class FakeApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ - public const contentTypes = [ - 'fakeBigDecimalMap' => [ - 'application/json', - ], - 'fakeHealthGet' => [ - 'application/json', - ], - 'fakeHttpSignatureTest' => [ - 'application/json', - 'application/xml', - ], - 'fakeOuterBooleanSerialize' => [ - 'application/json', - ], - 'fakeOuterCompositeSerialize' => [ - 'application/json', - ], - 'fakeOuterNumberSerialize' => [ - 'application/json', - ], - 'fakeOuterStringSerialize' => [ - 'application/json', - ], - 'fakePropertyEnumIntegerSerialize' => [ - 'application/json', - ], - 'testAdditionalPropertiesReference' => [ - 'application/json', - ], - 'testBodyWithBinary' => [ - 'image/png', - ], - 'testBodyWithFileSchema' => [ - 'application/json', - ], - 'testBodyWithQueryParams' => [ - 'application/json', - ], - 'testClientModel' => [ - 'application/json', - ], - 'testEndpointParameters' => [ - 'application/x-www-form-urlencoded', - ], - 'testEnumParameters' => [ - 'application/x-www-form-urlencoded', - ], - 'testGroupParameters' => [ - 'application/json', - ], - 'testInlineAdditionalProperties' => [ - 'application/json', - ], - 'testInlineFreeformAdditionalProperties' => [ - 'application/json', - ], - 'testJsonFormData' => [ - 'application/x-www-form-urlencoded', - ], - 'testNullable' => [ - 'application/json', - ], - 'testQueryParameterCollectionFormat' => [ - 'application/json', - ], - ]; - /** * @param ClientInterface|null $client * @param Configuration|null $config @@ -156,9 +88,7 @@ public function __construct( } /** - * Set the host index - * - * @param int $hostIndex Host index (required) + * {@inheritdoc} */ public function setHostIndex(int $hostIndex): void { @@ -166,9 +96,7 @@ public function setHostIndex(int $hostIndex): void } /** - * Get the host index - * - * @return int Host index + * {@inheritdoc} */ public function getHostIndex(): int { @@ -176,7 +104,7 @@ public function getHostIndex(): int } /** - * @return Configuration + * {@inheritdoc} */ public function getConfig(): Configuration { @@ -184,13 +112,7 @@ public function getConfig(): Configuration } /** - * Operation fakeBigDecimalMap - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeBigDecimalMap'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\FakeBigDecimalMap200Response + * {@inheritdoc} */ public function fakeBigDecimalMap( string $contentType = self::contentTypes['fakeBigDecimalMap'][0] @@ -201,13 +123,7 @@ public function fakeBigDecimalMap( } /** - * Operation fakeBigDecimalMapWithHttpInfo - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeBigDecimalMap'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\FakeBigDecimalMap200Response, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function fakeBigDecimalMapWithHttpInfo( string $contentType = self::contentTypes['fakeBigDecimalMap'][0] @@ -324,12 +240,7 @@ public function fakeBigDecimalMapWithHttpInfo( } /** - * Operation fakeBigDecimalMapAsync - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeBigDecimalMap'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeBigDecimalMapAsync( string $contentType = self::contentTypes['fakeBigDecimalMap'][0] @@ -344,12 +255,7 @@ function ($response) { } /** - * Operation fakeBigDecimalMapAsyncWithHttpInfo - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeBigDecimalMap'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeBigDecimalMapAsyncWithHttpInfo( string $contentType = self::contentTypes['fakeBigDecimalMap'][0] @@ -395,12 +301,7 @@ function ($exception) { } /** - * Create request for operation 'fakeBigDecimalMap' - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeBigDecimalMap'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function fakeBigDecimalMapRequest( string $contentType = self::contentTypes['fakeBigDecimalMap'][0] @@ -473,15 +374,7 @@ public function fakeBigDecimalMapRequest( } /** - * Operation fakeHealthGet - * - * Health check endpoint - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHealthGet'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\HealthCheckResult + * {@inheritdoc} */ public function fakeHealthGet( string $contentType = self::contentTypes['fakeHealthGet'][0] @@ -492,15 +385,7 @@ public function fakeHealthGet( } /** - * Operation fakeHealthGetWithHttpInfo - * - * Health check endpoint - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHealthGet'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\HealthCheckResult, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function fakeHealthGetWithHttpInfo( string $contentType = self::contentTypes['fakeHealthGet'][0] @@ -617,14 +502,7 @@ public function fakeHealthGetWithHttpInfo( } /** - * Operation fakeHealthGetAsync - * - * Health check endpoint - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHealthGet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeHealthGetAsync( string $contentType = self::contentTypes['fakeHealthGet'][0] @@ -639,14 +517,7 @@ function ($response) { } /** - * Operation fakeHealthGetAsyncWithHttpInfo - * - * Health check endpoint - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHealthGet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeHealthGetAsyncWithHttpInfo( string $contentType = self::contentTypes['fakeHealthGet'][0] @@ -692,12 +563,7 @@ function ($exception) { } /** - * Create request for operation 'fakeHealthGet' - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHealthGet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function fakeHealthGetRequest( string $contentType = self::contentTypes['fakeHealthGet'][0] @@ -770,18 +636,7 @@ public function fakeHealthGetRequest( } /** - * Operation fakeHttpSignatureTest - * - * test http signature authentication - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param string|null $query_1 query parameter (optional) - * @param string|null $header_1 header parameter (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function fakeHttpSignatureTest( \OpenAPI\Client\Model\Pet $pet, @@ -794,18 +649,7 @@ public function fakeHttpSignatureTest( } /** - * Operation fakeHttpSignatureTestWithHttpInfo - * - * test http signature authentication - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param string|null $query_1 query parameter (optional) - * @param string|null $header_1 header parameter (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function fakeHttpSignatureTestWithHttpInfo( \OpenAPI\Client\Model\Pet $pet, @@ -861,17 +705,7 @@ public function fakeHttpSignatureTestWithHttpInfo( } /** - * Operation fakeHttpSignatureTestAsync - * - * test http signature authentication - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param string|null $query_1 query parameter (optional) - * @param string|null $header_1 header parameter (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeHttpSignatureTestAsync( \OpenAPI\Client\Model\Pet $pet, @@ -889,17 +723,7 @@ function ($response) { } /** - * Operation fakeHttpSignatureTestAsyncWithHttpInfo - * - * test http signature authentication - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param string|null $query_1 query parameter (optional) - * @param string|null $header_1 header parameter (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeHttpSignatureTestAsyncWithHttpInfo( $pet, @@ -935,15 +759,7 @@ function ($exception) { } /** - * Create request for operation 'fakeHttpSignatureTest' - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param string|null $query_1 query parameter (optional) - * @param string|null $header_1 header parameter (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function fakeHttpSignatureTestRequest( $pet, @@ -1048,14 +864,7 @@ public function fakeHttpSignatureTestRequest( } /** - * Operation fakeOuterBooleanSerialize - * - * @param bool|null $body Input boolean as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return bool + * {@inheritdoc} */ public function fakeOuterBooleanSerialize( ?bool $body = null, @@ -1067,14 +876,7 @@ public function fakeOuterBooleanSerialize( } /** - * Operation fakeOuterBooleanSerializeWithHttpInfo - * - * @param bool|null $body Input boolean as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of bool, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function fakeOuterBooleanSerializeWithHttpInfo( ?bool $body = null, @@ -1192,13 +994,7 @@ public function fakeOuterBooleanSerializeWithHttpInfo( } /** - * Operation fakeOuterBooleanSerializeAsync - * - * @param bool|null $body Input boolean as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeOuterBooleanSerializeAsync( ?bool $body = null, @@ -1214,13 +1010,7 @@ function ($response) { } /** - * Operation fakeOuterBooleanSerializeAsyncWithHttpInfo - * - * @param bool|null $body Input boolean as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeOuterBooleanSerializeAsyncWithHttpInfo( $body = null, @@ -1267,13 +1057,7 @@ function ($exception) { } /** - * Create request for operation 'fakeOuterBooleanSerialize' - * - * @param bool|null $body Input boolean as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function fakeOuterBooleanSerializeRequest( $body = null, @@ -1355,14 +1139,7 @@ public function fakeOuterBooleanSerializeRequest( } /** - * Operation fakeOuterCompositeSerialize - * - * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\OuterComposite + * {@inheritdoc} */ public function fakeOuterCompositeSerialize( ?\OpenAPI\Client\Model\OuterComposite $outer_composite = null, @@ -1374,14 +1151,7 @@ public function fakeOuterCompositeSerialize( } /** - * Operation fakeOuterCompositeSerializeWithHttpInfo - * - * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\OuterComposite, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function fakeOuterCompositeSerializeWithHttpInfo( ?\OpenAPI\Client\Model\OuterComposite $outer_composite = null, @@ -1499,13 +1269,7 @@ public function fakeOuterCompositeSerializeWithHttpInfo( } /** - * Operation fakeOuterCompositeSerializeAsync - * - * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeOuterCompositeSerializeAsync( ?\OpenAPI\Client\Model\OuterComposite $outer_composite = null, @@ -1521,13 +1285,7 @@ function ($response) { } /** - * Operation fakeOuterCompositeSerializeAsyncWithHttpInfo - * - * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeOuterCompositeSerializeAsyncWithHttpInfo( $outer_composite = null, @@ -1574,13 +1332,7 @@ function ($exception) { } /** - * Create request for operation 'fakeOuterCompositeSerialize' - * - * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function fakeOuterCompositeSerializeRequest( $outer_composite = null, @@ -1662,14 +1414,7 @@ public function fakeOuterCompositeSerializeRequest( } /** - * Operation fakeOuterNumberSerialize - * - * @param float|null $body Input number as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return float + * {@inheritdoc} */ public function fakeOuterNumberSerialize( ?float $body = null, @@ -1681,14 +1426,7 @@ public function fakeOuterNumberSerialize( } /** - * Operation fakeOuterNumberSerializeWithHttpInfo - * - * @param float|null $body Input number as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of float, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function fakeOuterNumberSerializeWithHttpInfo( ?float $body = null, @@ -1806,13 +1544,7 @@ public function fakeOuterNumberSerializeWithHttpInfo( } /** - * Operation fakeOuterNumberSerializeAsync - * - * @param float|null $body Input number as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeOuterNumberSerializeAsync( ?float $body = null, @@ -1828,13 +1560,7 @@ function ($response) { } /** - * Operation fakeOuterNumberSerializeAsyncWithHttpInfo - * - * @param float|null $body Input number as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeOuterNumberSerializeAsyncWithHttpInfo( $body = null, @@ -1881,13 +1607,7 @@ function ($exception) { } /** - * Create request for operation 'fakeOuterNumberSerialize' - * - * @param float|null $body Input number as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function fakeOuterNumberSerializeRequest( $body = null, @@ -1969,14 +1689,7 @@ public function fakeOuterNumberSerializeRequest( } /** - * Operation fakeOuterStringSerialize - * - * @param string|null $body Input string as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return string + * {@inheritdoc} */ public function fakeOuterStringSerialize( ?string $body = null, @@ -1988,14 +1701,7 @@ public function fakeOuterStringSerialize( } /** - * Operation fakeOuterStringSerializeWithHttpInfo - * - * @param string|null $body Input string as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of string, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function fakeOuterStringSerializeWithHttpInfo( ?string $body = null, @@ -2113,13 +1819,7 @@ public function fakeOuterStringSerializeWithHttpInfo( } /** - * Operation fakeOuterStringSerializeAsync - * - * @param string|null $body Input string as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeOuterStringSerializeAsync( ?string $body = null, @@ -2135,13 +1835,7 @@ function ($response) { } /** - * Operation fakeOuterStringSerializeAsyncWithHttpInfo - * - * @param string|null $body Input string as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakeOuterStringSerializeAsyncWithHttpInfo( $body = null, @@ -2188,13 +1882,7 @@ function ($exception) { } /** - * Create request for operation 'fakeOuterStringSerialize' - * - * @param string|null $body Input string as post body (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function fakeOuterStringSerializeRequest( $body = null, @@ -2276,14 +1964,7 @@ public function fakeOuterStringSerializeRequest( } /** - * Operation fakePropertyEnumIntegerSerialize - * - * @param \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property Input enum (int) as post body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakePropertyEnumIntegerSerialize'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\OuterObjectWithEnumProperty + * {@inheritdoc} */ public function fakePropertyEnumIntegerSerialize( \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property, @@ -2295,14 +1976,7 @@ public function fakePropertyEnumIntegerSerialize( } /** - * Operation fakePropertyEnumIntegerSerializeWithHttpInfo - * - * @param \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property Input enum (int) as post body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakePropertyEnumIntegerSerialize'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\OuterObjectWithEnumProperty, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function fakePropertyEnumIntegerSerializeWithHttpInfo( \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property, @@ -2420,13 +2094,7 @@ public function fakePropertyEnumIntegerSerializeWithHttpInfo( } /** - * Operation fakePropertyEnumIntegerSerializeAsync - * - * @param \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property Input enum (int) as post body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakePropertyEnumIntegerSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakePropertyEnumIntegerSerializeAsync( \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property, @@ -2442,13 +2110,7 @@ function ($response) { } /** - * Operation fakePropertyEnumIntegerSerializeAsyncWithHttpInfo - * - * @param \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property Input enum (int) as post body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakePropertyEnumIntegerSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function fakePropertyEnumIntegerSerializeAsyncWithHttpInfo( $outer_object_with_enum_property, @@ -2495,13 +2157,7 @@ function ($exception) { } /** - * Create request for operation 'fakePropertyEnumIntegerSerialize' - * - * @param \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property Input enum (int) as post body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakePropertyEnumIntegerSerialize'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function fakePropertyEnumIntegerSerializeRequest( $outer_object_with_enum_property, @@ -2589,16 +2245,7 @@ public function fakePropertyEnumIntegerSerializeRequest( } /** - * Operation testAdditionalPropertiesReference - * - * test referenced additionalProperties - * - * @param array $request_body request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAdditionalPropertiesReference'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function testAdditionalPropertiesReference( array $request_body, @@ -2609,16 +2256,7 @@ public function testAdditionalPropertiesReference( } /** - * Operation testAdditionalPropertiesReferenceWithHttpInfo - * - * test referenced additionalProperties - * - * @param array $request_body request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAdditionalPropertiesReference'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testAdditionalPropertiesReferenceWithHttpInfo( array $request_body, @@ -2672,15 +2310,7 @@ public function testAdditionalPropertiesReferenceWithHttpInfo( } /** - * Operation testAdditionalPropertiesReferenceAsync - * - * test referenced additionalProperties - * - * @param array $request_body request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAdditionalPropertiesReference'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testAdditionalPropertiesReferenceAsync( array $request_body, @@ -2696,15 +2326,7 @@ function ($response) { } /** - * Operation testAdditionalPropertiesReferenceAsyncWithHttpInfo - * - * test referenced additionalProperties - * - * @param array $request_body request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAdditionalPropertiesReference'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testAdditionalPropertiesReferenceAsyncWithHttpInfo( $request_body, @@ -2738,13 +2360,7 @@ function ($exception) { } /** - * Create request for operation 'testAdditionalPropertiesReference' - * - * @param array $request_body request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAdditionalPropertiesReference'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testAdditionalPropertiesReferenceRequest( $request_body, @@ -2832,14 +2448,7 @@ public function testAdditionalPropertiesReferenceRequest( } /** - * Operation testBodyWithBinary - * - * @param \SplFileObject $body image to upload (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithBinary'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function testBodyWithBinary( \SplFileObject $body, @@ -2850,14 +2459,7 @@ public function testBodyWithBinary( } /** - * Operation testBodyWithBinaryWithHttpInfo - * - * @param \SplFileObject $body image to upload (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithBinary'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testBodyWithBinaryWithHttpInfo( \SplFileObject $body, @@ -2911,13 +2513,7 @@ public function testBodyWithBinaryWithHttpInfo( } /** - * Operation testBodyWithBinaryAsync - * - * @param \SplFileObject $body image to upload (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithBinary'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testBodyWithBinaryAsync( \SplFileObject $body, @@ -2933,13 +2529,7 @@ function ($response) { } /** - * Operation testBodyWithBinaryAsyncWithHttpInfo - * - * @param \SplFileObject $body image to upload (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithBinary'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testBodyWithBinaryAsyncWithHttpInfo( $body, @@ -2973,13 +2563,7 @@ function ($exception) { } /** - * Create request for operation 'testBodyWithBinary' - * - * @param \SplFileObject $body image to upload (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithBinary'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testBodyWithBinaryRequest( $body, @@ -3067,14 +2651,7 @@ public function testBodyWithBinaryRequest( } /** - * Operation testBodyWithFileSchema - * - * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class file_schema_test_class (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithFileSchema'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function testBodyWithFileSchema( \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class, @@ -3085,14 +2662,7 @@ public function testBodyWithFileSchema( } /** - * Operation testBodyWithFileSchemaWithHttpInfo - * - * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithFileSchema'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testBodyWithFileSchemaWithHttpInfo( \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class, @@ -3146,13 +2716,7 @@ public function testBodyWithFileSchemaWithHttpInfo( } /** - * Operation testBodyWithFileSchemaAsync - * - * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithFileSchema'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testBodyWithFileSchemaAsync( \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class, @@ -3168,13 +2732,7 @@ function ($response) { } /** - * Operation testBodyWithFileSchemaAsyncWithHttpInfo - * - * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithFileSchema'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testBodyWithFileSchemaAsyncWithHttpInfo( $file_schema_test_class, @@ -3208,13 +2766,7 @@ function ($exception) { } /** - * Create request for operation 'testBodyWithFileSchema' - * - * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithFileSchema'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testBodyWithFileSchemaRequest( $file_schema_test_class, @@ -3302,15 +2854,7 @@ public function testBodyWithFileSchemaRequest( } /** - * Operation testBodyWithQueryParams - * - * @param string $query query (required) - * @param \OpenAPI\Client\Model\User $user user (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithQueryParams'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function testBodyWithQueryParams( string $query, @@ -3322,15 +2866,7 @@ public function testBodyWithQueryParams( } /** - * Operation testBodyWithQueryParamsWithHttpInfo - * - * @param string $query (required) - * @param \OpenAPI\Client\Model\User $user (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithQueryParams'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testBodyWithQueryParamsWithHttpInfo( string $query, @@ -3385,14 +2921,7 @@ public function testBodyWithQueryParamsWithHttpInfo( } /** - * Operation testBodyWithQueryParamsAsync - * - * @param string $query (required) - * @param \OpenAPI\Client\Model\User $user (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithQueryParams'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testBodyWithQueryParamsAsync( string $query, @@ -3409,14 +2938,7 @@ function ($response) { } /** - * Operation testBodyWithQueryParamsAsyncWithHttpInfo - * - * @param string $query (required) - * @param \OpenAPI\Client\Model\User $user (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithQueryParams'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testBodyWithQueryParamsAsyncWithHttpInfo( $query, @@ -3451,14 +2973,7 @@ function ($exception) { } /** - * Create request for operation 'testBodyWithQueryParams' - * - * @param string $query (required) - * @param \OpenAPI\Client\Model\User $user (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithQueryParams'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testBodyWithQueryParamsRequest( $query, @@ -3563,16 +3078,7 @@ public function testBodyWithQueryParamsRequest( } /** - * Operation testClientModel - * - * To test \"client\" model - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClientModel'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\Client + * {@inheritdoc} */ public function testClientModel( \OpenAPI\Client\Model\Client $client, @@ -3584,16 +3090,7 @@ public function testClientModel( } /** - * Operation testClientModelWithHttpInfo - * - * To test \"client\" model - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClientModel'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testClientModelWithHttpInfo( \OpenAPI\Client\Model\Client $client, @@ -3711,15 +3208,7 @@ public function testClientModelWithHttpInfo( } /** - * Operation testClientModelAsync - * - * To test \"client\" model - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClientModel'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testClientModelAsync( \OpenAPI\Client\Model\Client $client, @@ -3735,15 +3224,7 @@ function ($response) { } /** - * Operation testClientModelAsyncWithHttpInfo - * - * To test \"client\" model - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClientModel'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testClientModelAsyncWithHttpInfo( $client, @@ -3790,13 +3271,7 @@ function ($exception) { } /** - * Create request for operation 'testClientModel' - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClientModel'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testClientModelRequest( $client, @@ -3884,29 +3359,7 @@ public function testClientModelRequest( } /** - * Operation testEndpointParameters - * - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * - * @param float $number None (required) - * @param float $double None (required) - * @param string $pattern_without_delimiter None (required) - * @param string $byte None (required) - * @param int|null $integer None (optional) - * @param int|null $int32 None (optional) - * @param int|null $int64 None (optional) - * @param float|null $float None (optional) - * @param string|null $string None (optional) - * @param \SplFileObject|null $binary None (optional) - * @param \DateTime|null $date None (optional) - * @param \DateTime|null $date_time None (optional) - * @param string|null $password None (optional) - * @param string|null $callback None (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function testEndpointParameters( float $number, @@ -3930,29 +3383,7 @@ public function testEndpointParameters( } /** - * Operation testEndpointParametersWithHttpInfo - * - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * - * @param float $number None (required) - * @param float $double None (required) - * @param string $pattern_without_delimiter None (required) - * @param string $byte None (required) - * @param int|null $integer None (optional) - * @param int|null $int32 None (optional) - * @param int|null $int64 None (optional) - * @param float|null $float None (optional) - * @param string|null $string None (optional) - * @param \SplFileObject|null $binary None (optional) - * @param \DateTime|null $date None (optional) - * @param \DateTime|null $date_time None (optional) - * @param string|null $password None (optional) - * @param string|null $callback None (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testEndpointParametersWithHttpInfo( float $number, @@ -4019,28 +3450,7 @@ public function testEndpointParametersWithHttpInfo( } /** - * Operation testEndpointParametersAsync - * - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * - * @param float $number None (required) - * @param float $double None (required) - * @param string $pattern_without_delimiter None (required) - * @param string $byte None (required) - * @param int|null $integer None (optional) - * @param int|null $int32 None (optional) - * @param int|null $int64 None (optional) - * @param float|null $float None (optional) - * @param string|null $string None (optional) - * @param \SplFileObject|null $binary None (optional) - * @param \DateTime|null $date None (optional) - * @param \DateTime|null $date_time None (optional) - * @param string|null $password None (optional) - * @param string|null $callback None (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testEndpointParametersAsync( float $number, @@ -4069,28 +3479,7 @@ function ($response) { } /** - * Operation testEndpointParametersAsyncWithHttpInfo - * - * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * - * @param float $number None (required) - * @param float $double None (required) - * @param string $pattern_without_delimiter None (required) - * @param string $byte None (required) - * @param int|null $integer None (optional) - * @param int|null $int32 None (optional) - * @param int|null $int64 None (optional) - * @param float|null $float None (optional) - * @param string|null $string None (optional) - * @param \SplFileObject|null $binary None (optional) - * @param \DateTime|null $date None (optional) - * @param \DateTime|null $date_time None (optional) - * @param string|null $password None (optional) - * @param string|null $callback None (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testEndpointParametersAsyncWithHttpInfo( $number, @@ -4137,26 +3526,7 @@ function ($exception) { } /** - * Create request for operation 'testEndpointParameters' - * - * @param float $number None (required) - * @param float $double None (required) - * @param string $pattern_without_delimiter None (required) - * @param string $byte None (required) - * @param int|null $integer None (optional) - * @param int|null $int32 None (optional) - * @param int|null $int64 None (optional) - * @param float|null $float None (optional) - * @param string|null $string None (optional) - * @param \SplFileObject|null $binary None (optional) - * @param \DateTime|null $date None (optional) - * @param \DateTime|null $date_time None (optional) - * @param string|null $password None (optional) - * @param string|null $callback None (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testEndpointParametersRequest( $number, @@ -4388,24 +3758,7 @@ public function testEndpointParametersRequest( } /** - * Operation testEnumParameters - * - * To test enum parameters - * - * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg') - * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg') - * @param int|null $enum_query_integer Query parameter enum test (double) (optional) - * @param float|null $enum_query_double Query parameter enum test (double) (optional) - * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array enum_query_model_array (optional) - * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg') - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function testEnumParameters( ?array $enum_header_string_array = ['$'], @@ -4424,24 +3777,7 @@ public function testEnumParameters( } /** - * Operation testEnumParametersWithHttpInfo - * - * To test enum parameters - * - * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg') - * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg') - * @param int|null $enum_query_integer Query parameter enum test (double) (optional) - * @param float|null $enum_query_double Query parameter enum test (double) (optional) - * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array (optional) - * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg') - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testEnumParametersWithHttpInfo( ?array $enum_header_string_array = ['$'], @@ -4503,23 +3839,7 @@ public function testEnumParametersWithHttpInfo( } /** - * Operation testEnumParametersAsync - * - * To test enum parameters - * - * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg') - * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg') - * @param int|null $enum_query_integer Query parameter enum test (double) (optional) - * @param float|null $enum_query_double Query parameter enum test (double) (optional) - * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array (optional) - * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg') - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testEnumParametersAsync( ?array $enum_header_string_array = ['$'], @@ -4543,23 +3863,7 @@ function ($response) { } /** - * Operation testEnumParametersAsyncWithHttpInfo - * - * To test enum parameters - * - * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg') - * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg') - * @param int|null $enum_query_integer Query parameter enum test (double) (optional) - * @param float|null $enum_query_double Query parameter enum test (double) (optional) - * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array (optional) - * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg') - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testEnumParametersAsyncWithHttpInfo( $enum_header_string_array = ['$'], @@ -4601,21 +3905,7 @@ function ($exception) { } /** - * Create request for operation 'testEnumParameters' - * - * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg') - * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg') - * @param int|null $enum_query_integer Query parameter enum test (double) (optional) - * @param float|null $enum_query_double Query parameter enum test (double) (optional) - * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array (optional) - * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to ['$']) - * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg') - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testEnumParametersRequest( $enum_header_string_array = ['$'], @@ -4770,23 +4060,7 @@ public function testEnumParametersRequest( } /** - * Operation testGroupParameters - * - * Fake endpoint to test group parameters (optional) - * - * Note: the input parameter is an associative array with the keys listed as the parameter name below - * - * @param int $required_string_group Required String in group parameters (required) - * @param bool $required_boolean_group Required Boolean in group parameters (required) - * @param int $required_int64_group Required Integer in group parameters (required) - * @param int|null $string_group String in group parameters (optional) - * @param bool|null $boolean_group Boolean in group parameters (optional) - * @param int|null $int64_group Integer in group parameters (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function testGroupParameters( array $associative_array @@ -4796,23 +4070,7 @@ public function testGroupParameters( } /** - * Operation testGroupParametersWithHttpInfo - * - * Fake endpoint to test group parameters (optional) - * - * Note: the input parameter is an associative array with the keys listed as the parameter name below - * - * @param int $required_string_group Required String in group parameters (required) - * @param bool $required_boolean_group Required Boolean in group parameters (required) - * @param int $required_int64_group Required Integer in group parameters (required) - * @param int|null $string_group String in group parameters (optional) - * @param bool|null $boolean_group Boolean in group parameters (optional) - * @param int|null $int64_group Integer in group parameters (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testGroupParametersWithHttpInfo( array $associative_array @@ -4865,22 +4123,7 @@ public function testGroupParametersWithHttpInfo( } /** - * Operation testGroupParametersAsync - * - * Fake endpoint to test group parameters (optional) - * - * Note: the input parameter is an associative array with the keys listed as the parameter name below - * - * @param int $required_string_group Required String in group parameters (required) - * @param bool $required_boolean_group Required Boolean in group parameters (required) - * @param int $required_int64_group Required Integer in group parameters (required) - * @param int|null $string_group String in group parameters (optional) - * @param bool|null $boolean_group Boolean in group parameters (optional) - * @param int|null $int64_group Integer in group parameters (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testGroupParametersAsync( array $associative_array @@ -4895,22 +4138,7 @@ function ($response) { } /** - * Operation testGroupParametersAsyncWithHttpInfo - * - * Fake endpoint to test group parameters (optional) - * - * Note: the input parameter is an associative array with the keys listed as the parameter name below - * - * @param int $required_string_group Required String in group parameters (required) - * @param bool $required_boolean_group Required Boolean in group parameters (required) - * @param int $required_int64_group Required Integer in group parameters (required) - * @param int|null $string_group String in group parameters (optional) - * @param bool|null $boolean_group Boolean in group parameters (optional) - * @param int|null $int64_group Integer in group parameters (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testGroupParametersAsyncWithHttpInfo( array $associative_array @@ -4943,20 +4171,7 @@ function ($exception) { } /** - * Create request for operation 'testGroupParameters' - * - * Note: the input parameter is an associative array with the keys listed as the parameter name below - * - * @param int $required_string_group Required String in group parameters (required) - * @param bool $required_boolean_group Required Boolean in group parameters (required) - * @param int $required_int64_group Required Integer in group parameters (required) - * @param int|null $string_group String in group parameters (optional) - * @param bool|null $boolean_group Boolean in group parameters (optional) - * @param int|null $int64_group Integer in group parameters (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testGroupParametersRequest( array $associative_array @@ -5109,16 +4324,7 @@ public function testGroupParametersRequest( } /** - * Operation testInlineAdditionalProperties - * - * test inline additionalProperties - * - * @param array $request_body request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineAdditionalProperties'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function testInlineAdditionalProperties( array $request_body, @@ -5129,16 +4335,7 @@ public function testInlineAdditionalProperties( } /** - * Operation testInlineAdditionalPropertiesWithHttpInfo - * - * test inline additionalProperties - * - * @param array $request_body request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineAdditionalProperties'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testInlineAdditionalPropertiesWithHttpInfo( array $request_body, @@ -5192,15 +4389,7 @@ public function testInlineAdditionalPropertiesWithHttpInfo( } /** - * Operation testInlineAdditionalPropertiesAsync - * - * test inline additionalProperties - * - * @param array $request_body request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineAdditionalProperties'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testInlineAdditionalPropertiesAsync( array $request_body, @@ -5216,15 +4405,7 @@ function ($response) { } /** - * Operation testInlineAdditionalPropertiesAsyncWithHttpInfo - * - * test inline additionalProperties - * - * @param array $request_body request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineAdditionalProperties'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testInlineAdditionalPropertiesAsyncWithHttpInfo( $request_body, @@ -5258,13 +4439,7 @@ function ($exception) { } /** - * Create request for operation 'testInlineAdditionalProperties' - * - * @param array $request_body request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineAdditionalProperties'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testInlineAdditionalPropertiesRequest( $request_body, @@ -5352,16 +4527,7 @@ public function testInlineAdditionalPropertiesRequest( } /** - * Operation testInlineFreeformAdditionalProperties - * - * test inline free-form additionalProperties - * - * @param \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineFreeformAdditionalProperties'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function testInlineFreeformAdditionalProperties( \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request, @@ -5372,16 +4538,7 @@ public function testInlineFreeformAdditionalProperties( } /** - * Operation testInlineFreeformAdditionalPropertiesWithHttpInfo - * - * test inline free-form additionalProperties - * - * @param \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineFreeformAdditionalProperties'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testInlineFreeformAdditionalPropertiesWithHttpInfo( \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request, @@ -5435,15 +4592,7 @@ public function testInlineFreeformAdditionalPropertiesWithHttpInfo( } /** - * Operation testInlineFreeformAdditionalPropertiesAsync - * - * test inline free-form additionalProperties - * - * @param \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineFreeformAdditionalProperties'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testInlineFreeformAdditionalPropertiesAsync( \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request, @@ -5459,15 +4608,7 @@ function ($response) { } /** - * Operation testInlineFreeformAdditionalPropertiesAsyncWithHttpInfo - * - * test inline free-form additionalProperties - * - * @param \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineFreeformAdditionalProperties'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testInlineFreeformAdditionalPropertiesAsyncWithHttpInfo( $test_inline_freeform_additional_properties_request, @@ -5501,13 +4642,7 @@ function ($exception) { } /** - * Create request for operation 'testInlineFreeformAdditionalProperties' - * - * @param \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineFreeformAdditionalProperties'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testInlineFreeformAdditionalPropertiesRequest( $test_inline_freeform_additional_properties_request, @@ -5595,17 +4730,7 @@ public function testInlineFreeformAdditionalPropertiesRequest( } /** - * Operation testJsonFormData - * - * test json serialization of form data - * - * @param string $param field1 (required) - * @param string $param2 field2 (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testJsonFormData'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function testJsonFormData( string $param, @@ -5617,17 +4742,7 @@ public function testJsonFormData( } /** - * Operation testJsonFormDataWithHttpInfo - * - * test json serialization of form data - * - * @param string $param field1 (required) - * @param string $param2 field2 (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testJsonFormData'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testJsonFormDataWithHttpInfo( string $param, @@ -5682,16 +4797,7 @@ public function testJsonFormDataWithHttpInfo( } /** - * Operation testJsonFormDataAsync - * - * test json serialization of form data - * - * @param string $param field1 (required) - * @param string $param2 field2 (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testJsonFormData'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testJsonFormDataAsync( string $param, @@ -5708,16 +4814,7 @@ function ($response) { } /** - * Operation testJsonFormDataAsyncWithHttpInfo - * - * test json serialization of form data - * - * @param string $param field1 (required) - * @param string $param2 field2 (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testJsonFormData'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testJsonFormDataAsyncWithHttpInfo( $param, @@ -5752,14 +4849,7 @@ function ($exception) { } /** - * Create request for operation 'testJsonFormData' - * - * @param string $param field1 (required) - * @param string $param2 field2 (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testJsonFormData'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testJsonFormDataRequest( $param, @@ -5856,16 +4946,7 @@ public function testJsonFormDataRequest( } /** - * Operation testNullable - * - * test nullable parent property - * - * @param \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testNullable'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function testNullable( \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable, @@ -5876,16 +4957,7 @@ public function testNullable( } /** - * Operation testNullableWithHttpInfo - * - * test nullable parent property - * - * @param \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testNullable'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testNullableWithHttpInfo( \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable, @@ -5939,15 +5011,7 @@ public function testNullableWithHttpInfo( } /** - * Operation testNullableAsync - * - * test nullable parent property - * - * @param \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testNullable'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testNullableAsync( \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable, @@ -5963,15 +5027,7 @@ function ($response) { } /** - * Operation testNullableAsyncWithHttpInfo - * - * test nullable parent property - * - * @param \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testNullable'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testNullableAsyncWithHttpInfo( $child_with_nullable, @@ -6005,13 +5061,7 @@ function ($exception) { } /** - * Create request for operation 'testNullable' - * - * @param \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable request body (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testNullable'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testNullableRequest( $child_with_nullable, @@ -6099,20 +5149,7 @@ public function testNullableRequest( } /** - * Operation testQueryParameterCollectionFormat - * - * @param string[] $pipe pipe (required) - * @param string[] $ioutil ioutil (required) - * @param string[] $http http (required) - * @param string[] $url url (required) - * @param string[] $context context (required) - * @param string $allow_empty allow_empty (required) - * @param array|null $language language (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function testQueryParameterCollectionFormat( array $pipe, @@ -6129,20 +5166,7 @@ public function testQueryParameterCollectionFormat( } /** - * Operation testQueryParameterCollectionFormatWithHttpInfo - * - * @param string[] $pipe (required) - * @param string[] $ioutil (required) - * @param string[] $http (required) - * @param string[] $url (required) - * @param string[] $context (required) - * @param string $allow_empty (required) - * @param array|null $language (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testQueryParameterCollectionFormatWithHttpInfo( array $pipe, @@ -6202,19 +5226,7 @@ public function testQueryParameterCollectionFormatWithHttpInfo( } /** - * Operation testQueryParameterCollectionFormatAsync - * - * @param string[] $pipe (required) - * @param string[] $ioutil (required) - * @param string[] $http (required) - * @param string[] $url (required) - * @param string[] $context (required) - * @param string $allow_empty (required) - * @param array|null $language (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testQueryParameterCollectionFormatAsync( array $pipe, @@ -6236,19 +5248,7 @@ function ($response) { } /** - * Operation testQueryParameterCollectionFormatAsyncWithHttpInfo - * - * @param string[] $pipe (required) - * @param string[] $ioutil (required) - * @param string[] $http (required) - * @param string[] $url (required) - * @param string[] $context (required) - * @param string $allow_empty (required) - * @param array|null $language (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testQueryParameterCollectionFormatAsyncWithHttpInfo( $pipe, @@ -6288,19 +5288,7 @@ function ($exception) { } /** - * Create request for operation 'testQueryParameterCollectionFormat' - * - * @param string[] $pipe (required) - * @param string[] $ioutil (required) - * @param string[] $http (required) - * @param string[] $url (required) - * @param string[] $context (required) - * @param string $allow_empty (required) - * @param array|null $language (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testQueryParameterCollectionFormatRequest( $pipe, diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApiInterface.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApiInterface.php new file mode 100644 index 0000000000000..ebea8ebb2112c --- /dev/null +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApiInterface.php @@ -0,0 +1,2030 @@ + [ + 'application/json', + ], + 'fakeHealthGet' => [ + 'application/json', + ], + 'fakeHttpSignatureTest' => [ + 'application/json', + 'application/xml', + ], + 'fakeOuterBooleanSerialize' => [ + 'application/json', + ], + 'fakeOuterCompositeSerialize' => [ + 'application/json', + ], + 'fakeOuterNumberSerialize' => [ + 'application/json', + ], + 'fakeOuterStringSerialize' => [ + 'application/json', + ], + 'fakePropertyEnumIntegerSerialize' => [ + 'application/json', + ], + 'testAdditionalPropertiesReference' => [ + 'application/json', + ], + 'testBodyWithBinary' => [ + 'image/png', + ], + 'testBodyWithFileSchema' => [ + 'application/json', + ], + 'testBodyWithQueryParams' => [ + 'application/json', + ], + 'testClientModel' => [ + 'application/json', + ], + 'testEndpointParameters' => [ + 'application/x-www-form-urlencoded', + ], + 'testEnumParameters' => [ + 'application/x-www-form-urlencoded', + ], + 'testGroupParameters' => [ + 'application/json', + ], + 'testInlineAdditionalProperties' => [ + 'application/json', + ], + 'testInlineFreeformAdditionalProperties' => [ + 'application/json', + ], + 'testJsonFormData' => [ + 'application/x-www-form-urlencoded', + ], + 'testNullable' => [ + 'application/json', + ], + 'testQueryParameterCollectionFormat' => [ + 'application/json', + ], + ]; + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex(int $hostIndex): void; + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex(): int; + + /** + * @return Configuration + */ + public function getConfig(): Configuration; + + /** + * Operation fakeBigDecimalMap + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeBigDecimalMap'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\FakeBigDecimalMap200Response + */ + public function fakeBigDecimalMap( + string $contentType = self::contentTypes['fakeBigDecimalMap'][0] + ): \OpenAPI\Client\Model\FakeBigDecimalMap200Response; + + /** + * Operation fakeBigDecimalMapWithHttpInfo + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeBigDecimalMap'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\FakeBigDecimalMap200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function fakeBigDecimalMapWithHttpInfo( + string $contentType = self::contentTypes['fakeBigDecimalMap'][0] + ): array; + + /** + * Operation fakeBigDecimalMapAsync + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeBigDecimalMap'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeBigDecimalMapAsync( + string $contentType = self::contentTypes['fakeBigDecimalMap'][0] + ): PromiseInterface; + + /** + * Operation fakeBigDecimalMapAsyncWithHttpInfo + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeBigDecimalMap'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeBigDecimalMapAsyncWithHttpInfo( + string $contentType = self::contentTypes['fakeBigDecimalMap'][0] + ): PromiseInterface; + + /** + * Create request for operation 'fakeBigDecimalMap' + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeBigDecimalMap'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function fakeBigDecimalMapRequest( + string $contentType = self::contentTypes['fakeBigDecimalMap'][0] + ): Request; + /** + * Operation fakeHealthGet + * + * Health check endpoint + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHealthGet'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\HealthCheckResult + */ + public function fakeHealthGet( + string $contentType = self::contentTypes['fakeHealthGet'][0] + ): \OpenAPI\Client\Model\HealthCheckResult; + + /** + * Operation fakeHealthGetWithHttpInfo + * + * Health check endpoint + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHealthGet'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\HealthCheckResult, HTTP status code, HTTP response headers (array of strings) + */ + public function fakeHealthGetWithHttpInfo( + string $contentType = self::contentTypes['fakeHealthGet'][0] + ): array; + + /** + * Operation fakeHealthGetAsync + * + * Health check endpoint + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHealthGet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeHealthGetAsync( + string $contentType = self::contentTypes['fakeHealthGet'][0] + ): PromiseInterface; + + /** + * Operation fakeHealthGetAsyncWithHttpInfo + * + * Health check endpoint + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHealthGet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeHealthGetAsyncWithHttpInfo( + string $contentType = self::contentTypes['fakeHealthGet'][0] + ): PromiseInterface; + + /** + * Create request for operation 'fakeHealthGet' + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHealthGet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function fakeHealthGetRequest( + string $contentType = self::contentTypes['fakeHealthGet'][0] + ): Request; + /** + * Operation fakeHttpSignatureTest + * + * test http signature authentication + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param string|null $query_1 query parameter (optional) + * @param string|null $header_1 header parameter (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function fakeHttpSignatureTest( + \OpenAPI\Client\Model\Pet $pet, + ?string $query_1 = null, + ?string $header_1 = null, + string $contentType = self::contentTypes['fakeHttpSignatureTest'][0] + ): void; + + /** + * Operation fakeHttpSignatureTestWithHttpInfo + * + * test http signature authentication + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param string|null $query_1 query parameter (optional) + * @param string|null $header_1 header parameter (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function fakeHttpSignatureTestWithHttpInfo( + \OpenAPI\Client\Model\Pet $pet, + ?string $query_1 = null, + ?string $header_1 = null, + string $contentType = self::contentTypes['fakeHttpSignatureTest'][0] + ): array; + + /** + * Operation fakeHttpSignatureTestAsync + * + * test http signature authentication + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param string|null $query_1 query parameter (optional) + * @param string|null $header_1 header parameter (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeHttpSignatureTestAsync( + \OpenAPI\Client\Model\Pet $pet, + ?string $query_1 = null, + ?string $header_1 = null, + string $contentType = self::contentTypes['fakeHttpSignatureTest'][0] + ): PromiseInterface; + + /** + * Operation fakeHttpSignatureTestAsyncWithHttpInfo + * + * test http signature authentication + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param string|null $query_1 query parameter (optional) + * @param string|null $header_1 header parameter (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeHttpSignatureTestAsyncWithHttpInfo( + $pet, + $query_1 = null, + $header_1 = null, + string $contentType = self::contentTypes['fakeHttpSignatureTest'][0] + ): PromiseInterface; + + /** + * Create request for operation 'fakeHttpSignatureTest' + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param string|null $query_1 query parameter (optional) + * @param string|null $header_1 header parameter (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeHttpSignatureTest'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function fakeHttpSignatureTestRequest( + $pet, + $query_1 = null, + $header_1 = null, + string $contentType = self::contentTypes['fakeHttpSignatureTest'][0] + ): Request; + /** + * Operation fakeOuterBooleanSerialize + * + * @param bool|null $body Input boolean as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return bool + */ + public function fakeOuterBooleanSerialize( + ?bool $body = null, + string $contentType = self::contentTypes['fakeOuterBooleanSerialize'][0] + ): bool; + + /** + * Operation fakeOuterBooleanSerializeWithHttpInfo + * + * @param bool|null $body Input boolean as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of bool, HTTP status code, HTTP response headers (array of strings) + */ + public function fakeOuterBooleanSerializeWithHttpInfo( + ?bool $body = null, + string $contentType = self::contentTypes['fakeOuterBooleanSerialize'][0] + ): array; + + /** + * Operation fakeOuterBooleanSerializeAsync + * + * @param bool|null $body Input boolean as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeOuterBooleanSerializeAsync( + ?bool $body = null, + string $contentType = self::contentTypes['fakeOuterBooleanSerialize'][0] + ): PromiseInterface; + + /** + * Operation fakeOuterBooleanSerializeAsyncWithHttpInfo + * + * @param bool|null $body Input boolean as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeOuterBooleanSerializeAsyncWithHttpInfo( + $body = null, + string $contentType = self::contentTypes['fakeOuterBooleanSerialize'][0] + ): PromiseInterface; + + /** + * Create request for operation 'fakeOuterBooleanSerialize' + * + * @param bool|null $body Input boolean as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterBooleanSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function fakeOuterBooleanSerializeRequest( + $body = null, + string $contentType = self::contentTypes['fakeOuterBooleanSerialize'][0] + ): Request; + /** + * Operation fakeOuterCompositeSerialize + * + * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\OuterComposite + */ + public function fakeOuterCompositeSerialize( + ?\OpenAPI\Client\Model\OuterComposite $outer_composite = null, + string $contentType = self::contentTypes['fakeOuterCompositeSerialize'][0] + ): \OpenAPI\Client\Model\OuterComposite; + + /** + * Operation fakeOuterCompositeSerializeWithHttpInfo + * + * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\OuterComposite, HTTP status code, HTTP response headers (array of strings) + */ + public function fakeOuterCompositeSerializeWithHttpInfo( + ?\OpenAPI\Client\Model\OuterComposite $outer_composite = null, + string $contentType = self::contentTypes['fakeOuterCompositeSerialize'][0] + ): array; + + /** + * Operation fakeOuterCompositeSerializeAsync + * + * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeOuterCompositeSerializeAsync( + ?\OpenAPI\Client\Model\OuterComposite $outer_composite = null, + string $contentType = self::contentTypes['fakeOuterCompositeSerialize'][0] + ): PromiseInterface; + + /** + * Operation fakeOuterCompositeSerializeAsyncWithHttpInfo + * + * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeOuterCompositeSerializeAsyncWithHttpInfo( + $outer_composite = null, + string $contentType = self::contentTypes['fakeOuterCompositeSerialize'][0] + ): PromiseInterface; + + /** + * Create request for operation 'fakeOuterCompositeSerialize' + * + * @param \OpenAPI\Client\Model\OuterComposite|null $outer_composite Input composite as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterCompositeSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function fakeOuterCompositeSerializeRequest( + $outer_composite = null, + string $contentType = self::contentTypes['fakeOuterCompositeSerialize'][0] + ): Request; + /** + * Operation fakeOuterNumberSerialize + * + * @param float|null $body Input number as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return float + */ + public function fakeOuterNumberSerialize( + ?float $body = null, + string $contentType = self::contentTypes['fakeOuterNumberSerialize'][0] + ): float; + + /** + * Operation fakeOuterNumberSerializeWithHttpInfo + * + * @param float|null $body Input number as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of float, HTTP status code, HTTP response headers (array of strings) + */ + public function fakeOuterNumberSerializeWithHttpInfo( + ?float $body = null, + string $contentType = self::contentTypes['fakeOuterNumberSerialize'][0] + ): array; + + /** + * Operation fakeOuterNumberSerializeAsync + * + * @param float|null $body Input number as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeOuterNumberSerializeAsync( + ?float $body = null, + string $contentType = self::contentTypes['fakeOuterNumberSerialize'][0] + ): PromiseInterface; + + /** + * Operation fakeOuterNumberSerializeAsyncWithHttpInfo + * + * @param float|null $body Input number as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeOuterNumberSerializeAsyncWithHttpInfo( + $body = null, + string $contentType = self::contentTypes['fakeOuterNumberSerialize'][0] + ): PromiseInterface; + + /** + * Create request for operation 'fakeOuterNumberSerialize' + * + * @param float|null $body Input number as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterNumberSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function fakeOuterNumberSerializeRequest( + $body = null, + string $contentType = self::contentTypes['fakeOuterNumberSerialize'][0] + ): Request; + /** + * Operation fakeOuterStringSerialize + * + * @param string|null $body Input string as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return string + */ + public function fakeOuterStringSerialize( + ?string $body = null, + string $contentType = self::contentTypes['fakeOuterStringSerialize'][0] + ): string; + + /** + * Operation fakeOuterStringSerializeWithHttpInfo + * + * @param string|null $body Input string as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of string, HTTP status code, HTTP response headers (array of strings) + */ + public function fakeOuterStringSerializeWithHttpInfo( + ?string $body = null, + string $contentType = self::contentTypes['fakeOuterStringSerialize'][0] + ): array; + + /** + * Operation fakeOuterStringSerializeAsync + * + * @param string|null $body Input string as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeOuterStringSerializeAsync( + ?string $body = null, + string $contentType = self::contentTypes['fakeOuterStringSerialize'][0] + ): PromiseInterface; + + /** + * Operation fakeOuterStringSerializeAsyncWithHttpInfo + * + * @param string|null $body Input string as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakeOuterStringSerializeAsyncWithHttpInfo( + $body = null, + string $contentType = self::contentTypes['fakeOuterStringSerialize'][0] + ): PromiseInterface; + + /** + * Create request for operation 'fakeOuterStringSerialize' + * + * @param string|null $body Input string as post body (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function fakeOuterStringSerializeRequest( + $body = null, + string $contentType = self::contentTypes['fakeOuterStringSerialize'][0] + ): Request; + /** + * Operation fakePropertyEnumIntegerSerialize + * + * @param \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property Input enum (int) as post body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakePropertyEnumIntegerSerialize'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\OuterObjectWithEnumProperty + */ + public function fakePropertyEnumIntegerSerialize( + \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property, + string $contentType = self::contentTypes['fakePropertyEnumIntegerSerialize'][0] + ): \OpenAPI\Client\Model\OuterObjectWithEnumProperty; + + /** + * Operation fakePropertyEnumIntegerSerializeWithHttpInfo + * + * @param \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property Input enum (int) as post body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakePropertyEnumIntegerSerialize'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\OuterObjectWithEnumProperty, HTTP status code, HTTP response headers (array of strings) + */ + public function fakePropertyEnumIntegerSerializeWithHttpInfo( + \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property, + string $contentType = self::contentTypes['fakePropertyEnumIntegerSerialize'][0] + ): array; + + /** + * Operation fakePropertyEnumIntegerSerializeAsync + * + * @param \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property Input enum (int) as post body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakePropertyEnumIntegerSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakePropertyEnumIntegerSerializeAsync( + \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property, + string $contentType = self::contentTypes['fakePropertyEnumIntegerSerialize'][0] + ): PromiseInterface; + + /** + * Operation fakePropertyEnumIntegerSerializeAsyncWithHttpInfo + * + * @param \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property Input enum (int) as post body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakePropertyEnumIntegerSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function fakePropertyEnumIntegerSerializeAsyncWithHttpInfo( + $outer_object_with_enum_property, + string $contentType = self::contentTypes['fakePropertyEnumIntegerSerialize'][0] + ): PromiseInterface; + + /** + * Create request for operation 'fakePropertyEnumIntegerSerialize' + * + * @param \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property Input enum (int) as post body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakePropertyEnumIntegerSerialize'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function fakePropertyEnumIntegerSerializeRequest( + $outer_object_with_enum_property, + string $contentType = self::contentTypes['fakePropertyEnumIntegerSerialize'][0] + ): Request; + /** + * Operation testAdditionalPropertiesReference + * + * test referenced additionalProperties + * + * @param array $request_body request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAdditionalPropertiesReference'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function testAdditionalPropertiesReference( + array $request_body, + string $contentType = self::contentTypes['testAdditionalPropertiesReference'][0] + ): void; + + /** + * Operation testAdditionalPropertiesReferenceWithHttpInfo + * + * test referenced additionalProperties + * + * @param array $request_body request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAdditionalPropertiesReference'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function testAdditionalPropertiesReferenceWithHttpInfo( + array $request_body, + string $contentType = self::contentTypes['testAdditionalPropertiesReference'][0] + ): array; + + /** + * Operation testAdditionalPropertiesReferenceAsync + * + * test referenced additionalProperties + * + * @param array $request_body request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAdditionalPropertiesReference'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testAdditionalPropertiesReferenceAsync( + array $request_body, + string $contentType = self::contentTypes['testAdditionalPropertiesReference'][0] + ): PromiseInterface; + + /** + * Operation testAdditionalPropertiesReferenceAsyncWithHttpInfo + * + * test referenced additionalProperties + * + * @param array $request_body request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAdditionalPropertiesReference'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testAdditionalPropertiesReferenceAsyncWithHttpInfo( + $request_body, + string $contentType = self::contentTypes['testAdditionalPropertiesReference'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testAdditionalPropertiesReference' + * + * @param array $request_body request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAdditionalPropertiesReference'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testAdditionalPropertiesReferenceRequest( + $request_body, + string $contentType = self::contentTypes['testAdditionalPropertiesReference'][0] + ): Request; + /** + * Operation testBodyWithBinary + * + * @param \SplFileObject $body image to upload (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithBinary'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function testBodyWithBinary( + \SplFileObject $body, + string $contentType = self::contentTypes['testBodyWithBinary'][0] + ): void; + + /** + * Operation testBodyWithBinaryWithHttpInfo + * + * @param \SplFileObject $body image to upload (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithBinary'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function testBodyWithBinaryWithHttpInfo( + \SplFileObject $body, + string $contentType = self::contentTypes['testBodyWithBinary'][0] + ): array; + + /** + * Operation testBodyWithBinaryAsync + * + * @param \SplFileObject $body image to upload (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithBinary'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testBodyWithBinaryAsync( + \SplFileObject $body, + string $contentType = self::contentTypes['testBodyWithBinary'][0] + ): PromiseInterface; + + /** + * Operation testBodyWithBinaryAsyncWithHttpInfo + * + * @param \SplFileObject $body image to upload (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithBinary'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testBodyWithBinaryAsyncWithHttpInfo( + $body, + string $contentType = self::contentTypes['testBodyWithBinary'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testBodyWithBinary' + * + * @param \SplFileObject $body image to upload (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithBinary'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testBodyWithBinaryRequest( + $body, + string $contentType = self::contentTypes['testBodyWithBinary'][0] + ): Request; + /** + * Operation testBodyWithFileSchema + * + * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class file_schema_test_class (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithFileSchema'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function testBodyWithFileSchema( + \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class, + string $contentType = self::contentTypes['testBodyWithFileSchema'][0] + ): void; + + /** + * Operation testBodyWithFileSchemaWithHttpInfo + * + * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithFileSchema'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function testBodyWithFileSchemaWithHttpInfo( + \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class, + string $contentType = self::contentTypes['testBodyWithFileSchema'][0] + ): array; + + /** + * Operation testBodyWithFileSchemaAsync + * + * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithFileSchema'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testBodyWithFileSchemaAsync( + \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class, + string $contentType = self::contentTypes['testBodyWithFileSchema'][0] + ): PromiseInterface; + + /** + * Operation testBodyWithFileSchemaAsyncWithHttpInfo + * + * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithFileSchema'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testBodyWithFileSchemaAsyncWithHttpInfo( + $file_schema_test_class, + string $contentType = self::contentTypes['testBodyWithFileSchema'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testBodyWithFileSchema' + * + * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithFileSchema'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testBodyWithFileSchemaRequest( + $file_schema_test_class, + string $contentType = self::contentTypes['testBodyWithFileSchema'][0] + ): Request; + /** + * Operation testBodyWithQueryParams + * + * @param string $query query (required) + * @param \OpenAPI\Client\Model\User $user user (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithQueryParams'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function testBodyWithQueryParams( + string $query, + \OpenAPI\Client\Model\User $user, + string $contentType = self::contentTypes['testBodyWithQueryParams'][0] + ): void; + + /** + * Operation testBodyWithQueryParamsWithHttpInfo + * + * @param string $query (required) + * @param \OpenAPI\Client\Model\User $user (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithQueryParams'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function testBodyWithQueryParamsWithHttpInfo( + string $query, + \OpenAPI\Client\Model\User $user, + string $contentType = self::contentTypes['testBodyWithQueryParams'][0] + ): array; + + /** + * Operation testBodyWithQueryParamsAsync + * + * @param string $query (required) + * @param \OpenAPI\Client\Model\User $user (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithQueryParams'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testBodyWithQueryParamsAsync( + string $query, + \OpenAPI\Client\Model\User $user, + string $contentType = self::contentTypes['testBodyWithQueryParams'][0] + ): PromiseInterface; + + /** + * Operation testBodyWithQueryParamsAsyncWithHttpInfo + * + * @param string $query (required) + * @param \OpenAPI\Client\Model\User $user (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithQueryParams'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testBodyWithQueryParamsAsyncWithHttpInfo( + $query, + $user, + string $contentType = self::contentTypes['testBodyWithQueryParams'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testBodyWithQueryParams' + * + * @param string $query (required) + * @param \OpenAPI\Client\Model\User $user (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyWithQueryParams'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testBodyWithQueryParamsRequest( + $query, + $user, + string $contentType = self::contentTypes['testBodyWithQueryParams'][0] + ): Request; + /** + * Operation testClientModel + * + * To test \"client\" model + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClientModel'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\Client + */ + public function testClientModel( + \OpenAPI\Client\Model\Client $client, + string $contentType = self::contentTypes['testClientModel'][0] + ): \OpenAPI\Client\Model\Client; + + /** + * Operation testClientModelWithHttpInfo + * + * To test \"client\" model + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClientModel'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings) + */ + public function testClientModelWithHttpInfo( + \OpenAPI\Client\Model\Client $client, + string $contentType = self::contentTypes['testClientModel'][0] + ): array; + + /** + * Operation testClientModelAsync + * + * To test \"client\" model + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClientModel'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testClientModelAsync( + \OpenAPI\Client\Model\Client $client, + string $contentType = self::contentTypes['testClientModel'][0] + ): PromiseInterface; + + /** + * Operation testClientModelAsyncWithHttpInfo + * + * To test \"client\" model + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClientModel'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testClientModelAsyncWithHttpInfo( + $client, + string $contentType = self::contentTypes['testClientModel'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testClientModel' + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClientModel'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testClientModelRequest( + $client, + string $contentType = self::contentTypes['testClientModel'][0] + ): Request; + /** + * Operation testEndpointParameters + * + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * + * @param float $number None (required) + * @param float $double None (required) + * @param string $pattern_without_delimiter None (required) + * @param string $byte None (required) + * @param int|null $integer None (optional) + * @param int|null $int32 None (optional) + * @param int|null $int64 None (optional) + * @param float|null $float None (optional) + * @param string|null $string None (optional) + * @param \SplFileObject|null $binary None (optional) + * @param \DateTime|null $date None (optional) + * @param \DateTime|null $date_time None (optional) + * @param string|null $password None (optional) + * @param string|null $callback None (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function testEndpointParameters( + float $number, + float $double, + string $pattern_without_delimiter, + string $byte, + ?int $integer = null, + ?int $int32 = null, + ?int $int64 = null, + ?float $float = null, + ?string $string = null, + ?\SplFileObject $binary = null, + ?\DateTime $date = null, + ?\DateTime $date_time = null, + ?string $password = null, + ?string $callback = null, + string $contentType = self::contentTypes['testEndpointParameters'][0] + ): void; + + /** + * Operation testEndpointParametersWithHttpInfo + * + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * + * @param float $number None (required) + * @param float $double None (required) + * @param string $pattern_without_delimiter None (required) + * @param string $byte None (required) + * @param int|null $integer None (optional) + * @param int|null $int32 None (optional) + * @param int|null $int64 None (optional) + * @param float|null $float None (optional) + * @param string|null $string None (optional) + * @param \SplFileObject|null $binary None (optional) + * @param \DateTime|null $date None (optional) + * @param \DateTime|null $date_time None (optional) + * @param string|null $password None (optional) + * @param string|null $callback None (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function testEndpointParametersWithHttpInfo( + float $number, + float $double, + string $pattern_without_delimiter, + string $byte, + ?int $integer = null, + ?int $int32 = null, + ?int $int64 = null, + ?float $float = null, + ?string $string = null, + ?\SplFileObject $binary = null, + ?\DateTime $date = null, + ?\DateTime $date_time = null, + ?string $password = null, + ?string $callback = null, + string $contentType = self::contentTypes['testEndpointParameters'][0] + ): array; + + /** + * Operation testEndpointParametersAsync + * + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * + * @param float $number None (required) + * @param float $double None (required) + * @param string $pattern_without_delimiter None (required) + * @param string $byte None (required) + * @param int|null $integer None (optional) + * @param int|null $int32 None (optional) + * @param int|null $int64 None (optional) + * @param float|null $float None (optional) + * @param string|null $string None (optional) + * @param \SplFileObject|null $binary None (optional) + * @param \DateTime|null $date None (optional) + * @param \DateTime|null $date_time None (optional) + * @param string|null $password None (optional) + * @param string|null $callback None (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testEndpointParametersAsync( + float $number, + float $double, + string $pattern_without_delimiter, + string $byte, + ?int $integer = null, + ?int $int32 = null, + ?int $int64 = null, + ?float $float = null, + ?string $string = null, + ?\SplFileObject $binary = null, + ?\DateTime $date = null, + ?\DateTime $date_time = null, + ?string $password = null, + ?string $callback = null, + string $contentType = self::contentTypes['testEndpointParameters'][0] + ): PromiseInterface; + + /** + * Operation testEndpointParametersAsyncWithHttpInfo + * + * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + * + * @param float $number None (required) + * @param float $double None (required) + * @param string $pattern_without_delimiter None (required) + * @param string $byte None (required) + * @param int|null $integer None (optional) + * @param int|null $int32 None (optional) + * @param int|null $int64 None (optional) + * @param float|null $float None (optional) + * @param string|null $string None (optional) + * @param \SplFileObject|null $binary None (optional) + * @param \DateTime|null $date None (optional) + * @param \DateTime|null $date_time None (optional) + * @param string|null $password None (optional) + * @param string|null $callback None (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testEndpointParametersAsyncWithHttpInfo( + $number, + $double, + $pattern_without_delimiter, + $byte, + $integer = null, + $int32 = null, + $int64 = null, + $float = null, + $string = null, + $binary = null, + $date = null, + $date_time = null, + $password = null, + $callback = null, + string $contentType = self::contentTypes['testEndpointParameters'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testEndpointParameters' + * + * @param float $number None (required) + * @param float $double None (required) + * @param string $pattern_without_delimiter None (required) + * @param string $byte None (required) + * @param int|null $integer None (optional) + * @param int|null $int32 None (optional) + * @param int|null $int64 None (optional) + * @param float|null $float None (optional) + * @param string|null $string None (optional) + * @param \SplFileObject|null $binary None (optional) + * @param \DateTime|null $date None (optional) + * @param \DateTime|null $date_time None (optional) + * @param string|null $password None (optional) + * @param string|null $callback None (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEndpointParameters'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testEndpointParametersRequest( + $number, + $double, + $pattern_without_delimiter, + $byte, + $integer = null, + $int32 = null, + $int64 = null, + $float = null, + $string = null, + $binary = null, + $date = null, + $date_time = null, + $password = null, + $callback = null, + string $contentType = self::contentTypes['testEndpointParameters'][0] + ): Request; + /** + * Operation testEnumParameters + * + * To test enum parameters + * + * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg') + * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg') + * @param int|null $enum_query_integer Query parameter enum test (double) (optional) + * @param float|null $enum_query_double Query parameter enum test (double) (optional) + * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array enum_query_model_array (optional) + * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function testEnumParameters( + ?array $enum_header_string_array = ['$'], + ?string $enum_header_string = '-efg', + ?array $enum_query_string_array = ['$'], + ?string $enum_query_string = '-efg', + ?int $enum_query_integer = null, + ?float $enum_query_double = null, + ?array $enum_query_model_array = null, + ?array $enum_form_string_array = ['$'], + ?string $enum_form_string = '-efg', + string $contentType = self::contentTypes['testEnumParameters'][0] + ): void; + + /** + * Operation testEnumParametersWithHttpInfo + * + * To test enum parameters + * + * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg') + * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg') + * @param int|null $enum_query_integer Query parameter enum test (double) (optional) + * @param float|null $enum_query_double Query parameter enum test (double) (optional) + * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array (optional) + * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function testEnumParametersWithHttpInfo( + ?array $enum_header_string_array = ['$'], + ?string $enum_header_string = '-efg', + ?array $enum_query_string_array = ['$'], + ?string $enum_query_string = '-efg', + ?int $enum_query_integer = null, + ?float $enum_query_double = null, + ?array $enum_query_model_array = null, + ?array $enum_form_string_array = ['$'], + ?string $enum_form_string = '-efg', + string $contentType = self::contentTypes['testEnumParameters'][0] + ): array; + + /** + * Operation testEnumParametersAsync + * + * To test enum parameters + * + * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg') + * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg') + * @param int|null $enum_query_integer Query parameter enum test (double) (optional) + * @param float|null $enum_query_double Query parameter enum test (double) (optional) + * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array (optional) + * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testEnumParametersAsync( + ?array $enum_header_string_array = ['$'], + ?string $enum_header_string = '-efg', + ?array $enum_query_string_array = ['$'], + ?string $enum_query_string = '-efg', + ?int $enum_query_integer = null, + ?float $enum_query_double = null, + ?array $enum_query_model_array = null, + ?array $enum_form_string_array = ['$'], + ?string $enum_form_string = '-efg', + string $contentType = self::contentTypes['testEnumParameters'][0] + ): PromiseInterface; + + /** + * Operation testEnumParametersAsyncWithHttpInfo + * + * To test enum parameters + * + * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg') + * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg') + * @param int|null $enum_query_integer Query parameter enum test (double) (optional) + * @param float|null $enum_query_double Query parameter enum test (double) (optional) + * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array (optional) + * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testEnumParametersAsyncWithHttpInfo( + $enum_header_string_array = ['$'], + $enum_header_string = '-efg', + $enum_query_string_array = ['$'], + $enum_query_string = '-efg', + $enum_query_integer = null, + $enum_query_double = null, + $enum_query_model_array = null, + $enum_form_string_array = ['$'], + $enum_form_string = '-efg', + string $contentType = self::contentTypes['testEnumParameters'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testEnumParameters' + * + * @param string[]|null $enum_header_string_array Header parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_header_string Header parameter enum test (string) (optional, default to '-efg') + * @param string[]|null $enum_query_string_array Query parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_query_string Query parameter enum test (string) (optional, default to '-efg') + * @param int|null $enum_query_integer Query parameter enum test (double) (optional) + * @param float|null $enum_query_double Query parameter enum test (double) (optional) + * @param \OpenAPI\Client\Model\EnumClass[]|null $enum_query_model_array (optional) + * @param string[]|null $enum_form_string_array Form parameter enum test (string array) (optional, default to ['$']) + * @param string|null $enum_form_string Form parameter enum test (string) (optional, default to '-efg') + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumParameters'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testEnumParametersRequest( + $enum_header_string_array = ['$'], + $enum_header_string = '-efg', + $enum_query_string_array = ['$'], + $enum_query_string = '-efg', + $enum_query_integer = null, + $enum_query_double = null, + $enum_query_model_array = null, + $enum_form_string_array = ['$'], + $enum_form_string = '-efg', + string $contentType = self::contentTypes['testEnumParameters'][0] + ): Request; + /** + * Operation testGroupParameters + * + * Fake endpoint to test group parameters (optional) + * + * Note: the input parameter is an associative array with the keys listed as the parameter name below + * + * @param int $required_string_group Required String in group parameters (required) + * @param bool $required_boolean_group Required Boolean in group parameters (required) + * @param int $required_int64_group Required Integer in group parameters (required) + * @param int|null $string_group String in group parameters (optional) + * @param bool|null $boolean_group Boolean in group parameters (optional) + * @param int|null $int64_group Integer in group parameters (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function testGroupParameters( + array $associative_array + ): void; + + /** + * Operation testGroupParametersWithHttpInfo + * + * Fake endpoint to test group parameters (optional) + * + * Note: the input parameter is an associative array with the keys listed as the parameter name below + * + * @param int $required_string_group Required String in group parameters (required) + * @param bool $required_boolean_group Required Boolean in group parameters (required) + * @param int $required_int64_group Required Integer in group parameters (required) + * @param int|null $string_group String in group parameters (optional) + * @param bool|null $boolean_group Boolean in group parameters (optional) + * @param int|null $int64_group Integer in group parameters (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function testGroupParametersWithHttpInfo( + array $associative_array + ): array; + + /** + * Operation testGroupParametersAsync + * + * Fake endpoint to test group parameters (optional) + * + * Note: the input parameter is an associative array with the keys listed as the parameter name below + * + * @param int $required_string_group Required String in group parameters (required) + * @param bool $required_boolean_group Required Boolean in group parameters (required) + * @param int $required_int64_group Required Integer in group parameters (required) + * @param int|null $string_group String in group parameters (optional) + * @param bool|null $boolean_group Boolean in group parameters (optional) + * @param int|null $int64_group Integer in group parameters (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testGroupParametersAsync( + array $associative_array + ): PromiseInterface; + + /** + * Operation testGroupParametersAsyncWithHttpInfo + * + * Fake endpoint to test group parameters (optional) + * + * Note: the input parameter is an associative array with the keys listed as the parameter name below + * + * @param int $required_string_group Required String in group parameters (required) + * @param bool $required_boolean_group Required Boolean in group parameters (required) + * @param int $required_int64_group Required Integer in group parameters (required) + * @param int|null $string_group String in group parameters (optional) + * @param bool|null $boolean_group Boolean in group parameters (optional) + * @param int|null $int64_group Integer in group parameters (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testGroupParametersAsyncWithHttpInfo( + array $associative_array + ): PromiseInterface; + + /** + * Create request for operation 'testGroupParameters' + * + * Note: the input parameter is an associative array with the keys listed as the parameter name below + * + * @param int $required_string_group Required String in group parameters (required) + * @param bool $required_boolean_group Required Boolean in group parameters (required) + * @param int $required_int64_group Required Integer in group parameters (required) + * @param int|null $string_group String in group parameters (optional) + * @param bool|null $boolean_group Boolean in group parameters (optional) + * @param int|null $int64_group Integer in group parameters (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testGroupParameters'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testGroupParametersRequest( + array $associative_array + ): Request; + /** + * Operation testInlineAdditionalProperties + * + * test inline additionalProperties + * + * @param array $request_body request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineAdditionalProperties'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function testInlineAdditionalProperties( + array $request_body, + string $contentType = self::contentTypes['testInlineAdditionalProperties'][0] + ): void; + + /** + * Operation testInlineAdditionalPropertiesWithHttpInfo + * + * test inline additionalProperties + * + * @param array $request_body request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineAdditionalProperties'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function testInlineAdditionalPropertiesWithHttpInfo( + array $request_body, + string $contentType = self::contentTypes['testInlineAdditionalProperties'][0] + ): array; + + /** + * Operation testInlineAdditionalPropertiesAsync + * + * test inline additionalProperties + * + * @param array $request_body request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineAdditionalProperties'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testInlineAdditionalPropertiesAsync( + array $request_body, + string $contentType = self::contentTypes['testInlineAdditionalProperties'][0] + ): PromiseInterface; + + /** + * Operation testInlineAdditionalPropertiesAsyncWithHttpInfo + * + * test inline additionalProperties + * + * @param array $request_body request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineAdditionalProperties'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testInlineAdditionalPropertiesAsyncWithHttpInfo( + $request_body, + string $contentType = self::contentTypes['testInlineAdditionalProperties'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testInlineAdditionalProperties' + * + * @param array $request_body request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineAdditionalProperties'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testInlineAdditionalPropertiesRequest( + $request_body, + string $contentType = self::contentTypes['testInlineAdditionalProperties'][0] + ): Request; + /** + * Operation testInlineFreeformAdditionalProperties + * + * test inline free-form additionalProperties + * + * @param \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineFreeformAdditionalProperties'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function testInlineFreeformAdditionalProperties( + \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request, + string $contentType = self::contentTypes['testInlineFreeformAdditionalProperties'][0] + ): void; + + /** + * Operation testInlineFreeformAdditionalPropertiesWithHttpInfo + * + * test inline free-form additionalProperties + * + * @param \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineFreeformAdditionalProperties'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function testInlineFreeformAdditionalPropertiesWithHttpInfo( + \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request, + string $contentType = self::contentTypes['testInlineFreeformAdditionalProperties'][0] + ): array; + + /** + * Operation testInlineFreeformAdditionalPropertiesAsync + * + * test inline free-form additionalProperties + * + * @param \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineFreeformAdditionalProperties'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testInlineFreeformAdditionalPropertiesAsync( + \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request, + string $contentType = self::contentTypes['testInlineFreeformAdditionalProperties'][0] + ): PromiseInterface; + + /** + * Operation testInlineFreeformAdditionalPropertiesAsyncWithHttpInfo + * + * test inline free-form additionalProperties + * + * @param \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineFreeformAdditionalProperties'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testInlineFreeformAdditionalPropertiesAsyncWithHttpInfo( + $test_inline_freeform_additional_properties_request, + string $contentType = self::contentTypes['testInlineFreeformAdditionalProperties'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testInlineFreeformAdditionalProperties' + * + * @param \OpenAPI\Client\Model\TestInlineFreeformAdditionalPropertiesRequest $test_inline_freeform_additional_properties_request request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testInlineFreeformAdditionalProperties'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testInlineFreeformAdditionalPropertiesRequest( + $test_inline_freeform_additional_properties_request, + string $contentType = self::contentTypes['testInlineFreeformAdditionalProperties'][0] + ): Request; + /** + * Operation testJsonFormData + * + * test json serialization of form data + * + * @param string $param field1 (required) + * @param string $param2 field2 (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testJsonFormData'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function testJsonFormData( + string $param, + string $param2, + string $contentType = self::contentTypes['testJsonFormData'][0] + ): void; + + /** + * Operation testJsonFormDataWithHttpInfo + * + * test json serialization of form data + * + * @param string $param field1 (required) + * @param string $param2 field2 (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testJsonFormData'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function testJsonFormDataWithHttpInfo( + string $param, + string $param2, + string $contentType = self::contentTypes['testJsonFormData'][0] + ): array; + + /** + * Operation testJsonFormDataAsync + * + * test json serialization of form data + * + * @param string $param field1 (required) + * @param string $param2 field2 (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testJsonFormData'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testJsonFormDataAsync( + string $param, + string $param2, + string $contentType = self::contentTypes['testJsonFormData'][0] + ): PromiseInterface; + + /** + * Operation testJsonFormDataAsyncWithHttpInfo + * + * test json serialization of form data + * + * @param string $param field1 (required) + * @param string $param2 field2 (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testJsonFormData'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testJsonFormDataAsyncWithHttpInfo( + $param, + $param2, + string $contentType = self::contentTypes['testJsonFormData'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testJsonFormData' + * + * @param string $param field1 (required) + * @param string $param2 field2 (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testJsonFormData'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testJsonFormDataRequest( + $param, + $param2, + string $contentType = self::contentTypes['testJsonFormData'][0] + ): Request; + /** + * Operation testNullable + * + * test nullable parent property + * + * @param \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testNullable'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function testNullable( + \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable, + string $contentType = self::contentTypes['testNullable'][0] + ): void; + + /** + * Operation testNullableWithHttpInfo + * + * test nullable parent property + * + * @param \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testNullable'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function testNullableWithHttpInfo( + \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable, + string $contentType = self::contentTypes['testNullable'][0] + ): array; + + /** + * Operation testNullableAsync + * + * test nullable parent property + * + * @param \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testNullable'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testNullableAsync( + \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable, + string $contentType = self::contentTypes['testNullable'][0] + ): PromiseInterface; + + /** + * Operation testNullableAsyncWithHttpInfo + * + * test nullable parent property + * + * @param \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testNullable'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testNullableAsyncWithHttpInfo( + $child_with_nullable, + string $contentType = self::contentTypes['testNullable'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testNullable' + * + * @param \OpenAPI\Client\Model\ChildWithNullable $child_with_nullable request body (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testNullable'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testNullableRequest( + $child_with_nullable, + string $contentType = self::contentTypes['testNullable'][0] + ): Request; + /** + * Operation testQueryParameterCollectionFormat + * + * @param string[] $pipe pipe (required) + * @param string[] $ioutil ioutil (required) + * @param string[] $http http (required) + * @param string[] $url url (required) + * @param string[] $context context (required) + * @param string $allow_empty allow_empty (required) + * @param array|null $language language (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function testQueryParameterCollectionFormat( + array $pipe, + array $ioutil, + array $http, + array $url, + array $context, + string $allow_empty, + ?array $language = null, + string $contentType = self::contentTypes['testQueryParameterCollectionFormat'][0] + ): void; + + /** + * Operation testQueryParameterCollectionFormatWithHttpInfo + * + * @param string[] $pipe (required) + * @param string[] $ioutil (required) + * @param string[] $http (required) + * @param string[] $url (required) + * @param string[] $context (required) + * @param string $allow_empty (required) + * @param array|null $language (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function testQueryParameterCollectionFormatWithHttpInfo( + array $pipe, + array $ioutil, + array $http, + array $url, + array $context, + string $allow_empty, + ?array $language = null, + string $contentType = self::contentTypes['testQueryParameterCollectionFormat'][0] + ): array; + + /** + * Operation testQueryParameterCollectionFormatAsync + * + * @param string[] $pipe (required) + * @param string[] $ioutil (required) + * @param string[] $http (required) + * @param string[] $url (required) + * @param string[] $context (required) + * @param string $allow_empty (required) + * @param array|null $language (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testQueryParameterCollectionFormatAsync( + array $pipe, + array $ioutil, + array $http, + array $url, + array $context, + string $allow_empty, + ?array $language = null, + string $contentType = self::contentTypes['testQueryParameterCollectionFormat'][0] + ): PromiseInterface; + + /** + * Operation testQueryParameterCollectionFormatAsyncWithHttpInfo + * + * @param string[] $pipe (required) + * @param string[] $ioutil (required) + * @param string[] $http (required) + * @param string[] $url (required) + * @param string[] $context (required) + * @param string $allow_empty (required) + * @param array|null $language (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testQueryParameterCollectionFormatAsyncWithHttpInfo( + $pipe, + $ioutil, + $http, + $url, + $context, + $allow_empty, + $language = null, + string $contentType = self::contentTypes['testQueryParameterCollectionFormat'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testQueryParameterCollectionFormat' + * + * @param string[] $pipe (required) + * @param string[] $ioutil (required) + * @param string[] $http (required) + * @param string[] $url (required) + * @param string[] $context (required) + * @param string $allow_empty (required) + * @param array|null $language (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryParameterCollectionFormat'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testQueryParameterCollectionFormatRequest( + $pipe, + $ioutil, + $http, + $url, + $context, + $allow_empty, + $language = null, + string $contentType = self::contentTypes['testQueryParameterCollectionFormat'][0] + ): Request; +} diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeClassnameTags123Api.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeClassnameTags123Api.php index c14be21e9713c..9fd2e5fb5462d 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeClassnameTags123Api.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeClassnameTags123Api.php @@ -47,7 +47,7 @@ * @author OpenAPI Generator team * @link https://openapi-generator.tech */ -class FakeClassnameTags123Api +class FakeClassnameTags123Api implements FakeClassnameTags123ApiInterface { /** * @var ClientInterface @@ -69,13 +69,6 @@ class FakeClassnameTags123Api */ protected int $hostIndex; - /** @var string[] $contentTypes **/ - public const contentTypes = [ - 'testClassname' => [ - 'application/json', - ], - ]; - /** * @param ClientInterface|null $client * @param Configuration|null $config @@ -95,9 +88,7 @@ public function __construct( } /** - * Set the host index - * - * @param int $hostIndex Host index (required) + * {@inheritdoc} */ public function setHostIndex(int $hostIndex): void { @@ -105,9 +96,7 @@ public function setHostIndex(int $hostIndex): void } /** - * Get the host index - * - * @return int Host index + * {@inheritdoc} */ public function getHostIndex(): int { @@ -115,7 +104,7 @@ public function getHostIndex(): int } /** - * @return Configuration + * {@inheritdoc} */ public function getConfig(): Configuration { @@ -123,16 +112,7 @@ public function getConfig(): Configuration } /** - * Operation testClassname - * - * To test class name in snake case - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClassname'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\Client + * {@inheritdoc} */ public function testClassname( \OpenAPI\Client\Model\Client $client, @@ -144,16 +124,7 @@ public function testClassname( } /** - * Operation testClassnameWithHttpInfo - * - * To test class name in snake case - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClassname'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function testClassnameWithHttpInfo( \OpenAPI\Client\Model\Client $client, @@ -271,15 +242,7 @@ public function testClassnameWithHttpInfo( } /** - * Operation testClassnameAsync - * - * To test class name in snake case - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClassname'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testClassnameAsync( \OpenAPI\Client\Model\Client $client, @@ -295,15 +258,7 @@ function ($response) { } /** - * Operation testClassnameAsyncWithHttpInfo - * - * To test class name in snake case - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClassname'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function testClassnameAsyncWithHttpInfo( $client, @@ -350,13 +305,7 @@ function ($exception) { } /** - * Create request for operation 'testClassname' - * - * @param \OpenAPI\Client\Model\Client $client client model (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClassname'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function testClassnameRequest( $client, diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeClassnameTags123ApiInterface.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeClassnameTags123ApiInterface.php new file mode 100644 index 0000000000000..405b6dc6223a3 --- /dev/null +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeClassnameTags123ApiInterface.php @@ -0,0 +1,149 @@ + [ + 'application/json', + ], + ]; + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex(int $hostIndex): void; + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex(): int; + + /** + * @return Configuration + */ + public function getConfig(): Configuration; + + /** + * Operation testClassname + * + * To test class name in snake case + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClassname'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\Client + */ + public function testClassname( + \OpenAPI\Client\Model\Client $client, + string $contentType = self::contentTypes['testClassname'][0] + ): \OpenAPI\Client\Model\Client; + + /** + * Operation testClassnameWithHttpInfo + * + * To test class name in snake case + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClassname'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings) + */ + public function testClassnameWithHttpInfo( + \OpenAPI\Client\Model\Client $client, + string $contentType = self::contentTypes['testClassname'][0] + ): array; + + /** + * Operation testClassnameAsync + * + * To test class name in snake case + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClassname'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testClassnameAsync( + \OpenAPI\Client\Model\Client $client, + string $contentType = self::contentTypes['testClassname'][0] + ): PromiseInterface; + + /** + * Operation testClassnameAsyncWithHttpInfo + * + * To test class name in snake case + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClassname'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function testClassnameAsyncWithHttpInfo( + $client, + string $contentType = self::contentTypes['testClassname'][0] + ): PromiseInterface; + + /** + * Create request for operation 'testClassname' + * + * @param \OpenAPI\Client\Model\Client $client client model (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testClassname'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function testClassnameRequest( + $client, + string $contentType = self::contentTypes['testClassname'][0] + ): Request; +} diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php index d4162016cd54e..15e47580bfc76 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php @@ -47,7 +47,7 @@ * @author OpenAPI Generator team * @link https://openapi-generator.tech */ -class PetApi +class PetApi implements PetApiInterface { /** * @var ClientInterface @@ -69,39 +69,6 @@ class PetApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ - public const contentTypes = [ - 'addPet' => [ - 'application/json', - 'application/xml', - ], - 'deletePet' => [ - 'application/json', - ], - 'findPetsByStatus' => [ - 'application/json', - ], - 'findPetsByTags' => [ - 'application/json', - ], - 'getPetById' => [ - 'application/json', - ], - 'updatePet' => [ - 'application/json', - 'application/xml', - ], - 'updatePetWithForm' => [ - 'application/x-www-form-urlencoded', - ], - 'uploadFile' => [ - 'multipart/form-data', - ], - 'uploadFileWithRequiredFile' => [ - 'multipart/form-data', - ], - ]; - /** * @param ClientInterface|null $client * @param Configuration|null $config @@ -121,9 +88,7 @@ public function __construct( } /** - * Set the host index - * - * @param int $hostIndex Host index (required) + * {@inheritdoc} */ public function setHostIndex(int $hostIndex): void { @@ -131,9 +96,7 @@ public function setHostIndex(int $hostIndex): void } /** - * Get the host index - * - * @return int Host index + * {@inheritdoc} */ public function getHostIndex(): int { @@ -141,7 +104,7 @@ public function getHostIndex(): int } /** - * @return Configuration + * {@inheritdoc} */ public function getConfig(): Configuration { @@ -149,34 +112,7 @@ public function getConfig(): Configuration } /** - * Operation addPet - * - * Add a new pet to the store - * - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. - * URL: http://petstore.swagger.io/v2 - * URL: http://path-server-test.petstore.local/v2 - * URL: http://{server}.swagger.io:{port}/v2 - * Variables: - * - server: target server - * Allowed values: - * - petstore - * - qa-petstore - * - dev-petstore - * - port: No description provided - * Allowed values: - * - 80 - * - 8080 - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['addPet'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function addPet( \OpenAPI\Client\Model\Pet $pet, @@ -189,34 +125,7 @@ public function addPet( } /** - * Operation addPetWithHttpInfo - * - * Add a new pet to the store - * - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. - * URL: http://petstore.swagger.io/v2 - * URL: http://path-server-test.petstore.local/v2 - * URL: http://{server}.swagger.io:{port}/v2 - * Variables: - * - server: target server - * Allowed values: - * - petstore - * - qa-petstore - * - dev-petstore - * - port: No description provided - * Allowed values: - * - 80 - * - 8080 - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['addPet'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function addPetWithHttpInfo( \OpenAPI\Client\Model\Pet $pet, @@ -272,33 +181,7 @@ public function addPetWithHttpInfo( } /** - * Operation addPetAsync - * - * Add a new pet to the store - * - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. - * URL: http://petstore.swagger.io/v2 - * URL: http://path-server-test.petstore.local/v2 - * URL: http://{server}.swagger.io:{port}/v2 - * Variables: - * - server: target server - * Allowed values: - * - petstore - * - qa-petstore - * - dev-petstore - * - port: No description provided - * Allowed values: - * - 80 - * - 8080 - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['addPet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function addPetAsync( \OpenAPI\Client\Model\Pet $pet, @@ -316,33 +199,7 @@ function ($response) { } /** - * Operation addPetAsyncWithHttpInfo - * - * Add a new pet to the store - * - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. - * URL: http://petstore.swagger.io/v2 - * URL: http://path-server-test.petstore.local/v2 - * URL: http://{server}.swagger.io:{port}/v2 - * Variables: - * - server: target server - * Allowed values: - * - petstore - * - qa-petstore - * - dev-petstore - * - port: No description provided - * Allowed values: - * - 80 - * - 8080 - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['addPet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function addPetAsyncWithHttpInfo( $pet, @@ -378,31 +235,7 @@ function ($exception) { } /** - * Create request for operation 'addPet' - * - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. - * URL: http://petstore.swagger.io/v2 - * URL: http://path-server-test.petstore.local/v2 - * URL: http://{server}.swagger.io:{port}/v2 - * Variables: - * - server: target server - * Allowed values: - * - petstore - * - qa-petstore - * - dev-petstore - * - port: No description provided - * Allowed values: - * - 80 - * - 8080 - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['addPet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function addPetRequest( $pet, @@ -548,17 +381,7 @@ protected function getHostSettingsForaddPet(): array } /** - * Operation deletePet - * - * Deletes a pet - * - * @param int $pet_id Pet id to delete (required) - * @param string|null $api_key api_key (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function deletePet( int $pet_id, @@ -570,17 +393,7 @@ public function deletePet( } /** - * Operation deletePetWithHttpInfo - * - * Deletes a pet - * - * @param int $pet_id Pet id to delete (required) - * @param string|null $api_key (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function deletePetWithHttpInfo( int $pet_id, @@ -635,16 +448,7 @@ public function deletePetWithHttpInfo( } /** - * Operation deletePetAsync - * - * Deletes a pet - * - * @param int $pet_id Pet id to delete (required) - * @param string|null $api_key (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function deletePetAsync( int $pet_id, @@ -661,16 +465,7 @@ function ($response) { } /** - * Operation deletePetAsyncWithHttpInfo - * - * Deletes a pet - * - * @param int $pet_id Pet id to delete (required) - * @param string|null $api_key (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function deletePetAsyncWithHttpInfo( $pet_id, @@ -705,14 +500,7 @@ function ($exception) { } /** - * Create request for operation 'deletePet' - * - * @param int $pet_id Pet id to delete (required) - * @param string|null $api_key (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function deletePetRequest( $pet_id, @@ -811,16 +599,7 @@ public function deletePetRequest( } /** - * Operation findPetsByStatus - * - * Finds Pets by status - * - * @param string[] $status Status values that need to be considered for filter (required) (deprecated) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByStatus'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\Pet[] + * {@inheritdoc} */ public function findPetsByStatus( array $status, @@ -832,16 +611,7 @@ public function findPetsByStatus( } /** - * Operation findPetsByStatusWithHttpInfo - * - * Finds Pets by status - * - * @param string[] $status Status values that need to be considered for filter (required) (deprecated) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByStatus'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\Pet[], HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function findPetsByStatusWithHttpInfo( array $status, @@ -959,15 +729,7 @@ public function findPetsByStatusWithHttpInfo( } /** - * Operation findPetsByStatusAsync - * - * Finds Pets by status - * - * @param string[] $status Status values that need to be considered for filter (required) (deprecated) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByStatus'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function findPetsByStatusAsync( array $status, @@ -983,15 +745,7 @@ function ($response) { } /** - * Operation findPetsByStatusAsyncWithHttpInfo - * - * Finds Pets by status - * - * @param string[] $status Status values that need to be considered for filter (required) (deprecated) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByStatus'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function findPetsByStatusAsyncWithHttpInfo( $status, @@ -1038,13 +792,7 @@ function ($exception) { } /** - * Create request for operation 'findPetsByStatus' - * - * @param string[] $status Status values that need to be considered for filter (required) (deprecated) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByStatus'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function findPetsByStatusRequest( $status, @@ -1138,17 +886,7 @@ public function findPetsByStatusRequest( } /** - * Operation findPetsByTags - * - * Finds Pets by tags - * - * @param string[] $tags Tags to filter by (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByTags'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\Pet[] - * @deprecated + * {@inheritdoc} */ public function findPetsByTags( array $tags, @@ -1160,17 +898,7 @@ public function findPetsByTags( } /** - * Operation findPetsByTagsWithHttpInfo - * - * Finds Pets by tags - * - * @param string[] $tags Tags to filter by (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByTags'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\Pet[], HTTP status code, HTTP response headers (array of strings) - * @deprecated + * {@inheritdoc} */ public function findPetsByTagsWithHttpInfo( array $tags, @@ -1288,16 +1016,7 @@ public function findPetsByTagsWithHttpInfo( } /** - * Operation findPetsByTagsAsync - * - * Finds Pets by tags - * - * @param string[] $tags Tags to filter by (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByTags'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface - * @deprecated + * {@inheritdoc} */ public function findPetsByTagsAsync( array $tags, @@ -1313,16 +1032,7 @@ function ($response) { } /** - * Operation findPetsByTagsAsyncWithHttpInfo - * - * Finds Pets by tags - * - * @param string[] $tags Tags to filter by (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByTags'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface - * @deprecated + * {@inheritdoc} */ public function findPetsByTagsAsyncWithHttpInfo( $tags, @@ -1369,14 +1079,7 @@ function ($exception) { } /** - * Create request for operation 'findPetsByTags' - * - * @param string[] $tags Tags to filter by (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByTags'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - * @deprecated + * {@inheritdoc} */ public function findPetsByTagsRequest( $tags, @@ -1470,16 +1173,7 @@ public function findPetsByTagsRequest( } /** - * Operation getPetById - * - * Find pet by ID - * - * @param int $pet_id ID of pet to return (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPetById'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\Pet + * {@inheritdoc} */ public function getPetById( int $pet_id, @@ -1491,16 +1185,7 @@ public function getPetById( } /** - * Operation getPetByIdWithHttpInfo - * - * Find pet by ID - * - * @param int $pet_id ID of pet to return (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPetById'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\Pet, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function getPetByIdWithHttpInfo( int $pet_id, @@ -1618,15 +1303,7 @@ public function getPetByIdWithHttpInfo( } /** - * Operation getPetByIdAsync - * - * Find pet by ID - * - * @param int $pet_id ID of pet to return (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPetById'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function getPetByIdAsync( int $pet_id, @@ -1642,15 +1319,7 @@ function ($response) { } /** - * Operation getPetByIdAsyncWithHttpInfo - * - * Find pet by ID - * - * @param int $pet_id ID of pet to return (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPetById'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function getPetByIdAsyncWithHttpInfo( $pet_id, @@ -1697,13 +1366,7 @@ function ($exception) { } /** - * Create request for operation 'getPetById' - * - * @param int $pet_id ID of pet to return (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPetById'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function getPetByIdRequest( $pet_id, @@ -1797,34 +1460,7 @@ public function getPetByIdRequest( } /** - * Operation updatePet - * - * Update an existing pet - * - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. - * URL: http://petstore.swagger.io/v2 - * URL: http://path-server-test.petstore.local/v2 - * URL: http://{server}.swagger.io:{port}/v2 - * Variables: - * - server: target server - * Allowed values: - * - petstore - * - qa-petstore - * - dev-petstore - * - port: No description provided - * Allowed values: - * - 80 - * - 8080 - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePet'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function updatePet( \OpenAPI\Client\Model\Pet $pet, @@ -1837,34 +1473,7 @@ public function updatePet( } /** - * Operation updatePetWithHttpInfo - * - * Update an existing pet - * - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. - * URL: http://petstore.swagger.io/v2 - * URL: http://path-server-test.petstore.local/v2 - * URL: http://{server}.swagger.io:{port}/v2 - * Variables: - * - server: target server - * Allowed values: - * - petstore - * - qa-petstore - * - dev-petstore - * - port: No description provided - * Allowed values: - * - 80 - * - 8080 - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePet'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function updatePetWithHttpInfo( \OpenAPI\Client\Model\Pet $pet, @@ -1920,33 +1529,7 @@ public function updatePetWithHttpInfo( } /** - * Operation updatePetAsync - * - * Update an existing pet - * - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. - * URL: http://petstore.swagger.io/v2 - * URL: http://path-server-test.petstore.local/v2 - * URL: http://{server}.swagger.io:{port}/v2 - * Variables: - * - server: target server - * Allowed values: - * - petstore - * - qa-petstore - * - dev-petstore - * - port: No description provided - * Allowed values: - * - 80 - * - 8080 - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function updatePetAsync( \OpenAPI\Client\Model\Pet $pet, @@ -1964,33 +1547,7 @@ function ($response) { } /** - * Operation updatePetAsyncWithHttpInfo - * - * Update an existing pet - * - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. - * URL: http://petstore.swagger.io/v2 - * URL: http://path-server-test.petstore.local/v2 - * URL: http://{server}.swagger.io:{port}/v2 - * Variables: - * - server: target server - * Allowed values: - * - petstore - * - qa-petstore - * - dev-petstore - * - port: No description provided - * Allowed values: - * - 80 - * - 8080 - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function updatePetAsyncWithHttpInfo( $pet, @@ -2026,31 +1583,7 @@ function ($exception) { } /** - * Create request for operation 'updatePet' - * - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. - * URL: http://petstore.swagger.io/v2 - * URL: http://path-server-test.petstore.local/v2 - * URL: http://{server}.swagger.io:{port}/v2 - * Variables: - * - server: target server - * Allowed values: - * - petstore - * - qa-petstore - * - dev-petstore - * - port: No description provided - * Allowed values: - * - 80 - * - 8080 - * - * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) - * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead - * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePet'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function updatePetRequest( $pet, @@ -2196,18 +1729,7 @@ protected function getHostSettingsForupdatePet(): array } /** - * Operation updatePetWithForm - * - * Updates a pet in the store with form data - * - * @param int $pet_id ID of pet that needs to be updated (required) - * @param string|null $name Updated name of the pet (optional) - * @param string|null $status Updated status of the pet (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function updatePetWithForm( int $pet_id, @@ -2220,18 +1742,7 @@ public function updatePetWithForm( } /** - * Operation updatePetWithFormWithHttpInfo - * - * Updates a pet in the store with form data - * - * @param int $pet_id ID of pet that needs to be updated (required) - * @param string|null $name Updated name of the pet (optional) - * @param string|null $status Updated status of the pet (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function updatePetWithFormWithHttpInfo( int $pet_id, @@ -2287,17 +1798,7 @@ public function updatePetWithFormWithHttpInfo( } /** - * Operation updatePetWithFormAsync - * - * Updates a pet in the store with form data - * - * @param int $pet_id ID of pet that needs to be updated (required) - * @param string|null $name Updated name of the pet (optional) - * @param string|null $status Updated status of the pet (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function updatePetWithFormAsync( int $pet_id, @@ -2315,17 +1816,7 @@ function ($response) { } /** - * Operation updatePetWithFormAsyncWithHttpInfo - * - * Updates a pet in the store with form data - * - * @param int $pet_id ID of pet that needs to be updated (required) - * @param string|null $name Updated name of the pet (optional) - * @param string|null $status Updated status of the pet (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function updatePetWithFormAsyncWithHttpInfo( $pet_id, @@ -2361,15 +1852,7 @@ function ($exception) { } /** - * Create request for operation 'updatePetWithForm' - * - * @param int $pet_id ID of pet that needs to be updated (required) - * @param string|null $name Updated name of the pet (optional) - * @param string|null $status Updated status of the pet (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function updatePetWithFormRequest( $pet_id, @@ -2474,18 +1957,7 @@ public function updatePetWithFormRequest( } /** - * Operation uploadFile - * - * uploads an image - * - * @param int $pet_id ID of pet to update (required) - * @param string|null $additional_metadata Additional data to pass to server (optional) - * @param \SplFileObject|null $file file to upload (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\ApiResponse + * {@inheritdoc} */ public function uploadFile( int $pet_id, @@ -2499,18 +1971,7 @@ public function uploadFile( } /** - * Operation uploadFileWithHttpInfo - * - * uploads an image - * - * @param int $pet_id ID of pet to update (required) - * @param string|null $additional_metadata Additional data to pass to server (optional) - * @param \SplFileObject|null $file file to upload (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function uploadFileWithHttpInfo( int $pet_id, @@ -2630,17 +2091,7 @@ public function uploadFileWithHttpInfo( } /** - * Operation uploadFileAsync - * - * uploads an image - * - * @param int $pet_id ID of pet to update (required) - * @param string|null $additional_metadata Additional data to pass to server (optional) - * @param \SplFileObject|null $file file to upload (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function uploadFileAsync( int $pet_id, @@ -2658,17 +2109,7 @@ function ($response) { } /** - * Operation uploadFileAsyncWithHttpInfo - * - * uploads an image - * - * @param int $pet_id ID of pet to update (required) - * @param string|null $additional_metadata Additional data to pass to server (optional) - * @param \SplFileObject|null $file file to upload (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function uploadFileAsyncWithHttpInfo( $pet_id, @@ -2717,15 +2158,7 @@ function ($exception) { } /** - * Create request for operation 'uploadFile' - * - * @param int $pet_id ID of pet to update (required) - * @param string|null $additional_metadata Additional data to pass to server (optional) - * @param \SplFileObject|null $file file to upload (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function uploadFileRequest( $pet_id, @@ -2838,18 +2271,7 @@ public function uploadFileRequest( } /** - * Operation uploadFileWithRequiredFile - * - * uploads an image (required) - * - * @param int $pet_id ID of pet to update (required) - * @param \SplFileObject $required_file file to upload (required) - * @param string|null $additional_metadata Additional data to pass to server (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\ApiResponse + * {@inheritdoc} */ public function uploadFileWithRequiredFile( int $pet_id, @@ -2863,18 +2285,7 @@ public function uploadFileWithRequiredFile( } /** - * Operation uploadFileWithRequiredFileWithHttpInfo - * - * uploads an image (required) - * - * @param int $pet_id ID of pet to update (required) - * @param \SplFileObject $required_file file to upload (required) - * @param string|null $additional_metadata Additional data to pass to server (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function uploadFileWithRequiredFileWithHttpInfo( int $pet_id, @@ -2994,17 +2405,7 @@ public function uploadFileWithRequiredFileWithHttpInfo( } /** - * Operation uploadFileWithRequiredFileAsync - * - * uploads an image (required) - * - * @param int $pet_id ID of pet to update (required) - * @param \SplFileObject $required_file file to upload (required) - * @param string|null $additional_metadata Additional data to pass to server (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function uploadFileWithRequiredFileAsync( int $pet_id, @@ -3022,17 +2423,7 @@ function ($response) { } /** - * Operation uploadFileWithRequiredFileAsyncWithHttpInfo - * - * uploads an image (required) - * - * @param int $pet_id ID of pet to update (required) - * @param \SplFileObject $required_file file to upload (required) - * @param string|null $additional_metadata Additional data to pass to server (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function uploadFileWithRequiredFileAsyncWithHttpInfo( $pet_id, @@ -3081,15 +2472,7 @@ function ($exception) { } /** - * Create request for operation 'uploadFileWithRequiredFile' - * - * @param int $pet_id ID of pet to update (required) - * @param \SplFileObject $required_file file to upload (required) - * @param string|null $additional_metadata Additional data to pass to server (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function uploadFileWithRequiredFileRequest( $pet_id, diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApiInterface.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApiInterface.php new file mode 100644 index 0000000000000..35061a71d25e9 --- /dev/null +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApiInterface.php @@ -0,0 +1,1082 @@ + [ + 'application/json', + 'application/xml', + ], + 'deletePet' => [ + 'application/json', + ], + 'findPetsByStatus' => [ + 'application/json', + ], + 'findPetsByTags' => [ + 'application/json', + ], + 'getPetById' => [ + 'application/json', + ], + 'updatePet' => [ + 'application/json', + 'application/xml', + ], + 'updatePetWithForm' => [ + 'application/x-www-form-urlencoded', + ], + 'uploadFile' => [ + 'multipart/form-data', + ], + 'uploadFileWithRequiredFile' => [ + 'multipart/form-data', + ], + ]; + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex(int $hostIndex): void; + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex(): int; + + /** + * @return Configuration + */ + public function getConfig(): Configuration; + + /** + * Operation addPet + * + * Add a new pet to the store + * + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. + * URL: http://petstore.swagger.io/v2 + * URL: http://path-server-test.petstore.local/v2 + * URL: http://{server}.swagger.io:{port}/v2 + * Variables: + * - server: target server + * Allowed values: + * - petstore + * - qa-petstore + * - dev-petstore + * - port: No description provided + * Allowed values: + * - 80 + * - 8080 + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['addPet'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function addPet( + \OpenAPI\Client\Model\Pet $pet, + ?int $hostIndex = null, + array $variables = [], + string $contentType = self::contentTypes['addPet'][0] + ): void; + + /** + * Operation addPetWithHttpInfo + * + * Add a new pet to the store + * + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. + * URL: http://petstore.swagger.io/v2 + * URL: http://path-server-test.petstore.local/v2 + * URL: http://{server}.swagger.io:{port}/v2 + * Variables: + * - server: target server + * Allowed values: + * - petstore + * - qa-petstore + * - dev-petstore + * - port: No description provided + * Allowed values: + * - 80 + * - 8080 + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['addPet'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function addPetWithHttpInfo( + \OpenAPI\Client\Model\Pet $pet, + ?int $hostIndex = null, + array $variables = [], + string $contentType = self::contentTypes['addPet'][0] + ): array; + + /** + * Operation addPetAsync + * + * Add a new pet to the store + * + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. + * URL: http://petstore.swagger.io/v2 + * URL: http://path-server-test.petstore.local/v2 + * URL: http://{server}.swagger.io:{port}/v2 + * Variables: + * - server: target server + * Allowed values: + * - petstore + * - qa-petstore + * - dev-petstore + * - port: No description provided + * Allowed values: + * - 80 + * - 8080 + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['addPet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function addPetAsync( + \OpenAPI\Client\Model\Pet $pet, + ?int $hostIndex = null, + array $variables = [], + string $contentType = self::contentTypes['addPet'][0] + ): PromiseInterface; + + /** + * Operation addPetAsyncWithHttpInfo + * + * Add a new pet to the store + * + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. + * URL: http://petstore.swagger.io/v2 + * URL: http://path-server-test.petstore.local/v2 + * URL: http://{server}.swagger.io:{port}/v2 + * Variables: + * - server: target server + * Allowed values: + * - petstore + * - qa-petstore + * - dev-petstore + * - port: No description provided + * Allowed values: + * - 80 + * - 8080 + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['addPet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function addPetAsyncWithHttpInfo( + $pet, + ?int $hostIndex = null, + array $variables = [], + string $contentType = self::contentTypes['addPet'][0] + ): PromiseInterface; + + /** + * Create request for operation 'addPet' + * + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. + * URL: http://petstore.swagger.io/v2 + * URL: http://path-server-test.petstore.local/v2 + * URL: http://{server}.swagger.io:{port}/v2 + * Variables: + * - server: target server + * Allowed values: + * - petstore + * - qa-petstore + * - dev-petstore + * - port: No description provided + * Allowed values: + * - 80 + * - 8080 + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['addPet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function addPetRequest( + $pet, + ?int $hostIndex = null, + array $variables = [], + string $contentType = self::contentTypes['addPet'][0] + ): Request; + /** + * Operation deletePet + * + * Deletes a pet + * + * @param int $pet_id Pet id to delete (required) + * @param string|null $api_key api_key (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function deletePet( + int $pet_id, + ?string $api_key = null, + string $contentType = self::contentTypes['deletePet'][0] + ): void; + + /** + * Operation deletePetWithHttpInfo + * + * Deletes a pet + * + * @param int $pet_id Pet id to delete (required) + * @param string|null $api_key (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deletePetWithHttpInfo( + int $pet_id, + ?string $api_key = null, + string $contentType = self::contentTypes['deletePet'][0] + ): array; + + /** + * Operation deletePetAsync + * + * Deletes a pet + * + * @param int $pet_id Pet id to delete (required) + * @param string|null $api_key (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function deletePetAsync( + int $pet_id, + ?string $api_key = null, + string $contentType = self::contentTypes['deletePet'][0] + ): PromiseInterface; + + /** + * Operation deletePetAsyncWithHttpInfo + * + * Deletes a pet + * + * @param int $pet_id Pet id to delete (required) + * @param string|null $api_key (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function deletePetAsyncWithHttpInfo( + $pet_id, + $api_key = null, + string $contentType = self::contentTypes['deletePet'][0] + ): PromiseInterface; + + /** + * Create request for operation 'deletePet' + * + * @param int $pet_id Pet id to delete (required) + * @param string|null $api_key (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deletePet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function deletePetRequest( + $pet_id, + $api_key = null, + string $contentType = self::contentTypes['deletePet'][0] + ): Request; + /** + * Operation findPetsByStatus + * + * Finds Pets by status + * + * @param string[] $status Status values that need to be considered for filter (required) (deprecated) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByStatus'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\Pet[] + */ + public function findPetsByStatus( + array $status, + string $contentType = self::contentTypes['findPetsByStatus'][0] + ): array; + + /** + * Operation findPetsByStatusWithHttpInfo + * + * Finds Pets by status + * + * @param string[] $status Status values that need to be considered for filter (required) (deprecated) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByStatus'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\Pet[], HTTP status code, HTTP response headers (array of strings) + */ + public function findPetsByStatusWithHttpInfo( + array $status, + string $contentType = self::contentTypes['findPetsByStatus'][0] + ): array; + + /** + * Operation findPetsByStatusAsync + * + * Finds Pets by status + * + * @param string[] $status Status values that need to be considered for filter (required) (deprecated) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByStatus'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function findPetsByStatusAsync( + array $status, + string $contentType = self::contentTypes['findPetsByStatus'][0] + ): PromiseInterface; + + /** + * Operation findPetsByStatusAsyncWithHttpInfo + * + * Finds Pets by status + * + * @param string[] $status Status values that need to be considered for filter (required) (deprecated) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByStatus'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function findPetsByStatusAsyncWithHttpInfo( + $status, + string $contentType = self::contentTypes['findPetsByStatus'][0] + ): PromiseInterface; + + /** + * Create request for operation 'findPetsByStatus' + * + * @param string[] $status Status values that need to be considered for filter (required) (deprecated) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByStatus'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function findPetsByStatusRequest( + $status, + string $contentType = self::contentTypes['findPetsByStatus'][0] + ): Request; + /** + * Operation findPetsByTags + * + * Finds Pets by tags + * + * @param string[] $tags Tags to filter by (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByTags'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\Pet[] + * @deprecated + */ + public function findPetsByTags( + array $tags, + string $contentType = self::contentTypes['findPetsByTags'][0] + ): array; + + /** + * Operation findPetsByTagsWithHttpInfo + * + * Finds Pets by tags + * + * @param string[] $tags Tags to filter by (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByTags'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\Pet[], HTTP status code, HTTP response headers (array of strings) + * @deprecated + */ + public function findPetsByTagsWithHttpInfo( + array $tags, + string $contentType = self::contentTypes['findPetsByTags'][0] + ): array; + + /** + * Operation findPetsByTagsAsync + * + * Finds Pets by tags + * + * @param string[] $tags Tags to filter by (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByTags'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + * @deprecated + */ + public function findPetsByTagsAsync( + array $tags, + string $contentType = self::contentTypes['findPetsByTags'][0] + ): PromiseInterface; + + /** + * Operation findPetsByTagsAsyncWithHttpInfo + * + * Finds Pets by tags + * + * @param string[] $tags Tags to filter by (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByTags'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + * @deprecated + */ + public function findPetsByTagsAsyncWithHttpInfo( + $tags, + string $contentType = self::contentTypes['findPetsByTags'][0] + ): PromiseInterface; + + /** + * Create request for operation 'findPetsByTags' + * + * @param string[] $tags Tags to filter by (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['findPetsByTags'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + * @deprecated + */ + public function findPetsByTagsRequest( + $tags, + string $contentType = self::contentTypes['findPetsByTags'][0] + ): Request; + /** + * Operation getPetById + * + * Find pet by ID + * + * @param int $pet_id ID of pet to return (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPetById'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\Pet + */ + public function getPetById( + int $pet_id, + string $contentType = self::contentTypes['getPetById'][0] + ): \OpenAPI\Client\Model\Pet; + + /** + * Operation getPetByIdWithHttpInfo + * + * Find pet by ID + * + * @param int $pet_id ID of pet to return (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPetById'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\Pet, HTTP status code, HTTP response headers (array of strings) + */ + public function getPetByIdWithHttpInfo( + int $pet_id, + string $contentType = self::contentTypes['getPetById'][0] + ): array; + + /** + * Operation getPetByIdAsync + * + * Find pet by ID + * + * @param int $pet_id ID of pet to return (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPetById'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function getPetByIdAsync( + int $pet_id, + string $contentType = self::contentTypes['getPetById'][0] + ): PromiseInterface; + + /** + * Operation getPetByIdAsyncWithHttpInfo + * + * Find pet by ID + * + * @param int $pet_id ID of pet to return (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPetById'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function getPetByIdAsyncWithHttpInfo( + $pet_id, + string $contentType = self::contentTypes['getPetById'][0] + ): PromiseInterface; + + /** + * Create request for operation 'getPetById' + * + * @param int $pet_id ID of pet to return (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPetById'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getPetByIdRequest( + $pet_id, + string $contentType = self::contentTypes['getPetById'][0] + ): Request; + /** + * Operation updatePet + * + * Update an existing pet + * + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. + * URL: http://petstore.swagger.io/v2 + * URL: http://path-server-test.petstore.local/v2 + * URL: http://{server}.swagger.io:{port}/v2 + * Variables: + * - server: target server + * Allowed values: + * - petstore + * - qa-petstore + * - dev-petstore + * - port: No description provided + * Allowed values: + * - 80 + * - 8080 + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePet'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function updatePet( + \OpenAPI\Client\Model\Pet $pet, + ?int $hostIndex = null, + array $variables = [], + string $contentType = self::contentTypes['updatePet'][0] + ): void; + + /** + * Operation updatePetWithHttpInfo + * + * Update an existing pet + * + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. + * URL: http://petstore.swagger.io/v2 + * URL: http://path-server-test.petstore.local/v2 + * URL: http://{server}.swagger.io:{port}/v2 + * Variables: + * - server: target server + * Allowed values: + * - petstore + * - qa-petstore + * - dev-petstore + * - port: No description provided + * Allowed values: + * - 80 + * - 8080 + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePet'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function updatePetWithHttpInfo( + \OpenAPI\Client\Model\Pet $pet, + ?int $hostIndex = null, + array $variables = [], + string $contentType = self::contentTypes['updatePet'][0] + ): array; + + /** + * Operation updatePetAsync + * + * Update an existing pet + * + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. + * URL: http://petstore.swagger.io/v2 + * URL: http://path-server-test.petstore.local/v2 + * URL: http://{server}.swagger.io:{port}/v2 + * Variables: + * - server: target server + * Allowed values: + * - petstore + * - qa-petstore + * - dev-petstore + * - port: No description provided + * Allowed values: + * - 80 + * - 8080 + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function updatePetAsync( + \OpenAPI\Client\Model\Pet $pet, + ?int $hostIndex = null, + array $variables = [], + string $contentType = self::contentTypes['updatePet'][0] + ): PromiseInterface; + + /** + * Operation updatePetAsyncWithHttpInfo + * + * Update an existing pet + * + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. + * URL: http://petstore.swagger.io/v2 + * URL: http://path-server-test.petstore.local/v2 + * URL: http://{server}.swagger.io:{port}/v2 + * Variables: + * - server: target server + * Allowed values: + * - petstore + * - qa-petstore + * - dev-petstore + * - port: No description provided + * Allowed values: + * - 80 + * - 8080 + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function updatePetAsyncWithHttpInfo( + $pet, + ?int $hostIndex = null, + array $variables = [], + string $contentType = self::contentTypes['updatePet'][0] + ): PromiseInterface; + + /** + * Create request for operation 'updatePet' + * + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. + * URL: http://petstore.swagger.io/v2 + * URL: http://path-server-test.petstore.local/v2 + * URL: http://{server}.swagger.io:{port}/v2 + * Variables: + * - server: target server + * Allowed values: + * - petstore + * - qa-petstore + * - dev-petstore + * - port: No description provided + * Allowed values: + * - 80 + * - 8080 + * + * @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (required) + * @param null|int $hostIndex Host index. Defaults to null. If null, then the library will use $this->hostIndex instead + * @param array $variables Associative array of variables to pass to the host. Defaults to empty array. + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePet'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function updatePetRequest( + $pet, + ?int $hostIndex = null, + array $variables = [], + string $contentType = self::contentTypes['updatePet'][0] + ): Request; + /** + * Operation updatePetWithForm + * + * Updates a pet in the store with form data + * + * @param int $pet_id ID of pet that needs to be updated (required) + * @param string|null $name Updated name of the pet (optional) + * @param string|null $status Updated status of the pet (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function updatePetWithForm( + int $pet_id, + ?string $name = null, + ?string $status = null, + string $contentType = self::contentTypes['updatePetWithForm'][0] + ): void; + + /** + * Operation updatePetWithFormWithHttpInfo + * + * Updates a pet in the store with form data + * + * @param int $pet_id ID of pet that needs to be updated (required) + * @param string|null $name Updated name of the pet (optional) + * @param string|null $status Updated status of the pet (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function updatePetWithFormWithHttpInfo( + int $pet_id, + ?string $name = null, + ?string $status = null, + string $contentType = self::contentTypes['updatePetWithForm'][0] + ): array; + + /** + * Operation updatePetWithFormAsync + * + * Updates a pet in the store with form data + * + * @param int $pet_id ID of pet that needs to be updated (required) + * @param string|null $name Updated name of the pet (optional) + * @param string|null $status Updated status of the pet (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function updatePetWithFormAsync( + int $pet_id, + ?string $name = null, + ?string $status = null, + string $contentType = self::contentTypes['updatePetWithForm'][0] + ): PromiseInterface; + + /** + * Operation updatePetWithFormAsyncWithHttpInfo + * + * Updates a pet in the store with form data + * + * @param int $pet_id ID of pet that needs to be updated (required) + * @param string|null $name Updated name of the pet (optional) + * @param string|null $status Updated status of the pet (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function updatePetWithFormAsyncWithHttpInfo( + $pet_id, + $name = null, + $status = null, + string $contentType = self::contentTypes['updatePetWithForm'][0] + ): PromiseInterface; + + /** + * Create request for operation 'updatePetWithForm' + * + * @param int $pet_id ID of pet that needs to be updated (required) + * @param string|null $name Updated name of the pet (optional) + * @param string|null $status Updated status of the pet (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updatePetWithForm'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function updatePetWithFormRequest( + $pet_id, + $name = null, + $status = null, + string $contentType = self::contentTypes['updatePetWithForm'][0] + ): Request; + /** + * Operation uploadFile + * + * uploads an image + * + * @param int $pet_id ID of pet to update (required) + * @param string|null $additional_metadata Additional data to pass to server (optional) + * @param \SplFileObject|null $file file to upload (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\ApiResponse + */ + public function uploadFile( + int $pet_id, + ?string $additional_metadata = null, + ?\SplFileObject $file = null, + string $contentType = self::contentTypes['uploadFile'][0] + ): \OpenAPI\Client\Model\ApiResponse; + + /** + * Operation uploadFileWithHttpInfo + * + * uploads an image + * + * @param int $pet_id ID of pet to update (required) + * @param string|null $additional_metadata Additional data to pass to server (optional) + * @param \SplFileObject|null $file file to upload (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function uploadFileWithHttpInfo( + int $pet_id, + ?string $additional_metadata = null, + ?\SplFileObject $file = null, + string $contentType = self::contentTypes['uploadFile'][0] + ): array; + + /** + * Operation uploadFileAsync + * + * uploads an image + * + * @param int $pet_id ID of pet to update (required) + * @param string|null $additional_metadata Additional data to pass to server (optional) + * @param \SplFileObject|null $file file to upload (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function uploadFileAsync( + int $pet_id, + ?string $additional_metadata = null, + ?\SplFileObject $file = null, + string $contentType = self::contentTypes['uploadFile'][0] + ): PromiseInterface; + + /** + * Operation uploadFileAsyncWithHttpInfo + * + * uploads an image + * + * @param int $pet_id ID of pet to update (required) + * @param string|null $additional_metadata Additional data to pass to server (optional) + * @param \SplFileObject|null $file file to upload (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function uploadFileAsyncWithHttpInfo( + $pet_id, + $additional_metadata = null, + $file = null, + string $contentType = self::contentTypes['uploadFile'][0] + ): PromiseInterface; + + /** + * Create request for operation 'uploadFile' + * + * @param int $pet_id ID of pet to update (required) + * @param string|null $additional_metadata Additional data to pass to server (optional) + * @param \SplFileObject|null $file file to upload (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function uploadFileRequest( + $pet_id, + $additional_metadata = null, + $file = null, + string $contentType = self::contentTypes['uploadFile'][0] + ): Request; + /** + * Operation uploadFileWithRequiredFile + * + * uploads an image (required) + * + * @param int $pet_id ID of pet to update (required) + * @param \SplFileObject $required_file file to upload (required) + * @param string|null $additional_metadata Additional data to pass to server (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\ApiResponse + */ + public function uploadFileWithRequiredFile( + int $pet_id, + \SplFileObject $required_file, + ?string $additional_metadata = null, + string $contentType = self::contentTypes['uploadFileWithRequiredFile'][0] + ): \OpenAPI\Client\Model\ApiResponse; + + /** + * Operation uploadFileWithRequiredFileWithHttpInfo + * + * uploads an image (required) + * + * @param int $pet_id ID of pet to update (required) + * @param \SplFileObject $required_file file to upload (required) + * @param string|null $additional_metadata Additional data to pass to server (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\ApiResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function uploadFileWithRequiredFileWithHttpInfo( + int $pet_id, + \SplFileObject $required_file, + ?string $additional_metadata = null, + string $contentType = self::contentTypes['uploadFileWithRequiredFile'][0] + ): array; + + /** + * Operation uploadFileWithRequiredFileAsync + * + * uploads an image (required) + * + * @param int $pet_id ID of pet to update (required) + * @param \SplFileObject $required_file file to upload (required) + * @param string|null $additional_metadata Additional data to pass to server (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function uploadFileWithRequiredFileAsync( + int $pet_id, + \SplFileObject $required_file, + ?string $additional_metadata = null, + string $contentType = self::contentTypes['uploadFileWithRequiredFile'][0] + ): PromiseInterface; + + /** + * Operation uploadFileWithRequiredFileAsyncWithHttpInfo + * + * uploads an image (required) + * + * @param int $pet_id ID of pet to update (required) + * @param \SplFileObject $required_file file to upload (required) + * @param string|null $additional_metadata Additional data to pass to server (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function uploadFileWithRequiredFileAsyncWithHttpInfo( + $pet_id, + $required_file, + $additional_metadata = null, + string $contentType = self::contentTypes['uploadFileWithRequiredFile'][0] + ): PromiseInterface; + + /** + * Create request for operation 'uploadFileWithRequiredFile' + * + * @param int $pet_id ID of pet to update (required) + * @param \SplFileObject $required_file file to upload (required) + * @param string|null $additional_metadata Additional data to pass to server (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFileWithRequiredFile'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function uploadFileWithRequiredFileRequest( + $pet_id, + $required_file, + $additional_metadata = null, + string $contentType = self::contentTypes['uploadFileWithRequiredFile'][0] + ): Request; +} diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php index c61180ce49c15..4bb77975f5b80 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApi.php @@ -47,7 +47,7 @@ * @author OpenAPI Generator team * @link https://openapi-generator.tech */ -class StoreApi +class StoreApi implements StoreApiInterface { /** * @var ClientInterface @@ -69,22 +69,6 @@ class StoreApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ - public const contentTypes = [ - 'deleteOrder' => [ - 'application/json', - ], - 'getInventory' => [ - 'application/json', - ], - 'getOrderById' => [ - 'application/json', - ], - 'placeOrder' => [ - 'application/json', - ], - ]; - /** * @param ClientInterface|null $client * @param Configuration|null $config @@ -104,9 +88,7 @@ public function __construct( } /** - * Set the host index - * - * @param int $hostIndex Host index (required) + * {@inheritdoc} */ public function setHostIndex(int $hostIndex): void { @@ -114,9 +96,7 @@ public function setHostIndex(int $hostIndex): void } /** - * Get the host index - * - * @return int Host index + * {@inheritdoc} */ public function getHostIndex(): int { @@ -124,7 +104,7 @@ public function getHostIndex(): int } /** - * @return Configuration + * {@inheritdoc} */ public function getConfig(): Configuration { @@ -132,16 +112,7 @@ public function getConfig(): Configuration } /** - * Operation deleteOrder - * - * Delete purchase order by ID - * - * @param string $order_id ID of the order that needs to be deleted (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrder'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function deleteOrder( string $order_id, @@ -152,16 +123,7 @@ public function deleteOrder( } /** - * Operation deleteOrderWithHttpInfo - * - * Delete purchase order by ID - * - * @param string $order_id ID of the order that needs to be deleted (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrder'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function deleteOrderWithHttpInfo( string $order_id, @@ -215,15 +177,7 @@ public function deleteOrderWithHttpInfo( } /** - * Operation deleteOrderAsync - * - * Delete purchase order by ID - * - * @param string $order_id ID of the order that needs to be deleted (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrder'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function deleteOrderAsync( string $order_id, @@ -239,15 +193,7 @@ function ($response) { } /** - * Operation deleteOrderAsyncWithHttpInfo - * - * Delete purchase order by ID - * - * @param string $order_id ID of the order that needs to be deleted (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrder'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function deleteOrderAsyncWithHttpInfo( $order_id, @@ -281,13 +227,7 @@ function ($exception) { } /** - * Create request for operation 'deleteOrder' - * - * @param string $order_id ID of the order that needs to be deleted (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrder'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function deleteOrderRequest( $order_id, @@ -376,15 +316,7 @@ public function deleteOrderRequest( } /** - * Operation getInventory - * - * Returns pet inventories by status - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInventory'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array + * {@inheritdoc} */ public function getInventory( string $contentType = self::contentTypes['getInventory'][0] @@ -395,15 +327,7 @@ public function getInventory( } /** - * Operation getInventoryWithHttpInfo - * - * Returns pet inventories by status - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInventory'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of array, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function getInventoryWithHttpInfo( string $contentType = self::contentTypes['getInventory'][0] @@ -520,14 +444,7 @@ public function getInventoryWithHttpInfo( } /** - * Operation getInventoryAsync - * - * Returns pet inventories by status - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInventory'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function getInventoryAsync( string $contentType = self::contentTypes['getInventory'][0] @@ -542,14 +459,7 @@ function ($response) { } /** - * Operation getInventoryAsyncWithHttpInfo - * - * Returns pet inventories by status - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInventory'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function getInventoryAsyncWithHttpInfo( string $contentType = self::contentTypes['getInventory'][0] @@ -595,12 +505,7 @@ function ($exception) { } /** - * Create request for operation 'getInventory' - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInventory'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function getInventoryRequest( string $contentType = self::contentTypes['getInventory'][0] @@ -678,16 +583,7 @@ public function getInventoryRequest( } /** - * Operation getOrderById - * - * Find purchase order by ID - * - * @param int $order_id ID of pet that needs to be fetched (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrderById'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\Order + * {@inheritdoc} */ public function getOrderById( int $order_id, @@ -699,16 +595,7 @@ public function getOrderById( } /** - * Operation getOrderByIdWithHttpInfo - * - * Find purchase order by ID - * - * @param int $order_id ID of pet that needs to be fetched (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrderById'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\Order, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function getOrderByIdWithHttpInfo( int $order_id, @@ -826,15 +713,7 @@ public function getOrderByIdWithHttpInfo( } /** - * Operation getOrderByIdAsync - * - * Find purchase order by ID - * - * @param int $order_id ID of pet that needs to be fetched (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrderById'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function getOrderByIdAsync( int $order_id, @@ -850,15 +729,7 @@ function ($response) { } /** - * Operation getOrderByIdAsyncWithHttpInfo - * - * Find purchase order by ID - * - * @param int $order_id ID of pet that needs to be fetched (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrderById'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function getOrderByIdAsyncWithHttpInfo( $order_id, @@ -905,13 +776,7 @@ function ($exception) { } /** - * Create request for operation 'getOrderById' - * - * @param int $order_id ID of pet that needs to be fetched (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrderById'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function getOrderByIdRequest( $order_id, @@ -1006,16 +871,7 @@ public function getOrderByIdRequest( } /** - * Operation placeOrder - * - * Place an order for a pet - * - * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['placeOrder'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\Order + * {@inheritdoc} */ public function placeOrder( \OpenAPI\Client\Model\Order $order, @@ -1027,16 +883,7 @@ public function placeOrder( } /** - * Operation placeOrderWithHttpInfo - * - * Place an order for a pet - * - * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['placeOrder'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\Order, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function placeOrderWithHttpInfo( \OpenAPI\Client\Model\Order $order, @@ -1154,15 +1001,7 @@ public function placeOrderWithHttpInfo( } /** - * Operation placeOrderAsync - * - * Place an order for a pet - * - * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['placeOrder'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function placeOrderAsync( \OpenAPI\Client\Model\Order $order, @@ -1178,15 +1017,7 @@ function ($response) { } /** - * Operation placeOrderAsyncWithHttpInfo - * - * Place an order for a pet - * - * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['placeOrder'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function placeOrderAsyncWithHttpInfo( $order, @@ -1233,13 +1064,7 @@ function ($exception) { } /** - * Create request for operation 'placeOrder' - * - * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['placeOrder'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function placeOrderRequest( $order, diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApiInterface.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApiInterface.php new file mode 100644 index 0000000000000..aeba2d1b0b11f --- /dev/null +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/StoreApiInterface.php @@ -0,0 +1,385 @@ + [ + 'application/json', + ], + 'getInventory' => [ + 'application/json', + ], + 'getOrderById' => [ + 'application/json', + ], + 'placeOrder' => [ + 'application/json', + ], + ]; + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex(int $hostIndex): void; + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex(): int; + + /** + * @return Configuration + */ + public function getConfig(): Configuration; + + /** + * Operation deleteOrder + * + * Delete purchase order by ID + * + * @param string $order_id ID of the order that needs to be deleted (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrder'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function deleteOrder( + string $order_id, + string $contentType = self::contentTypes['deleteOrder'][0] + ): void; + + /** + * Operation deleteOrderWithHttpInfo + * + * Delete purchase order by ID + * + * @param string $order_id ID of the order that needs to be deleted (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrder'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteOrderWithHttpInfo( + string $order_id, + string $contentType = self::contentTypes['deleteOrder'][0] + ): array; + + /** + * Operation deleteOrderAsync + * + * Delete purchase order by ID + * + * @param string $order_id ID of the order that needs to be deleted (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrder'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function deleteOrderAsync( + string $order_id, + string $contentType = self::contentTypes['deleteOrder'][0] + ): PromiseInterface; + + /** + * Operation deleteOrderAsyncWithHttpInfo + * + * Delete purchase order by ID + * + * @param string $order_id ID of the order that needs to be deleted (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrder'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function deleteOrderAsyncWithHttpInfo( + $order_id, + string $contentType = self::contentTypes['deleteOrder'][0] + ): PromiseInterface; + + /** + * Create request for operation 'deleteOrder' + * + * @param string $order_id ID of the order that needs to be deleted (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteOrder'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function deleteOrderRequest( + $order_id, + string $contentType = self::contentTypes['deleteOrder'][0] + ): Request; + /** + * Operation getInventory + * + * Returns pet inventories by status + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInventory'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array + */ + public function getInventory( + string $contentType = self::contentTypes['getInventory'][0] + ): array; + + /** + * Operation getInventoryWithHttpInfo + * + * Returns pet inventories by status + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInventory'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of array, HTTP status code, HTTP response headers (array of strings) + */ + public function getInventoryWithHttpInfo( + string $contentType = self::contentTypes['getInventory'][0] + ): array; + + /** + * Operation getInventoryAsync + * + * Returns pet inventories by status + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInventory'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function getInventoryAsync( + string $contentType = self::contentTypes['getInventory'][0] + ): PromiseInterface; + + /** + * Operation getInventoryAsyncWithHttpInfo + * + * Returns pet inventories by status + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInventory'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function getInventoryAsyncWithHttpInfo( + string $contentType = self::contentTypes['getInventory'][0] + ): PromiseInterface; + + /** + * Create request for operation 'getInventory' + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getInventory'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getInventoryRequest( + string $contentType = self::contentTypes['getInventory'][0] + ): Request; + /** + * Operation getOrderById + * + * Find purchase order by ID + * + * @param int $order_id ID of pet that needs to be fetched (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrderById'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\Order + */ + public function getOrderById( + int $order_id, + string $contentType = self::contentTypes['getOrderById'][0] + ): \OpenAPI\Client\Model\Order; + + /** + * Operation getOrderByIdWithHttpInfo + * + * Find purchase order by ID + * + * @param int $order_id ID of pet that needs to be fetched (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrderById'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\Order, HTTP status code, HTTP response headers (array of strings) + */ + public function getOrderByIdWithHttpInfo( + int $order_id, + string $contentType = self::contentTypes['getOrderById'][0] + ): array; + + /** + * Operation getOrderByIdAsync + * + * Find purchase order by ID + * + * @param int $order_id ID of pet that needs to be fetched (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrderById'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function getOrderByIdAsync( + int $order_id, + string $contentType = self::contentTypes['getOrderById'][0] + ): PromiseInterface; + + /** + * Operation getOrderByIdAsyncWithHttpInfo + * + * Find purchase order by ID + * + * @param int $order_id ID of pet that needs to be fetched (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrderById'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function getOrderByIdAsyncWithHttpInfo( + $order_id, + string $contentType = self::contentTypes['getOrderById'][0] + ): PromiseInterface; + + /** + * Create request for operation 'getOrderById' + * + * @param int $order_id ID of pet that needs to be fetched (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getOrderById'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getOrderByIdRequest( + $order_id, + string $contentType = self::contentTypes['getOrderById'][0] + ): Request; + /** + * Operation placeOrder + * + * Place an order for a pet + * + * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['placeOrder'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\Order + */ + public function placeOrder( + \OpenAPI\Client\Model\Order $order, + string $contentType = self::contentTypes['placeOrder'][0] + ): \OpenAPI\Client\Model\Order; + + /** + * Operation placeOrderWithHttpInfo + * + * Place an order for a pet + * + * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['placeOrder'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\Order, HTTP status code, HTTP response headers (array of strings) + */ + public function placeOrderWithHttpInfo( + \OpenAPI\Client\Model\Order $order, + string $contentType = self::contentTypes['placeOrder'][0] + ): array; + + /** + * Operation placeOrderAsync + * + * Place an order for a pet + * + * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['placeOrder'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function placeOrderAsync( + \OpenAPI\Client\Model\Order $order, + string $contentType = self::contentTypes['placeOrder'][0] + ): PromiseInterface; + + /** + * Operation placeOrderAsyncWithHttpInfo + * + * Place an order for a pet + * + * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['placeOrder'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function placeOrderAsyncWithHttpInfo( + $order, + string $contentType = self::contentTypes['placeOrder'][0] + ): PromiseInterface; + + /** + * Create request for operation 'placeOrder' + * + * @param \OpenAPI\Client\Model\Order $order order placed for purchasing the pet (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['placeOrder'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function placeOrderRequest( + $order, + string $contentType = self::contentTypes['placeOrder'][0] + ): Request; +} diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApi.php index aa283f7e39576..020a7c485764e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApi.php @@ -47,7 +47,7 @@ * @author OpenAPI Generator team * @link https://openapi-generator.tech */ -class UserApi +class UserApi implements UserApiInterface { /** * @var ClientInterface @@ -69,34 +69,6 @@ class UserApi */ protected int $hostIndex; - /** @var string[] $contentTypes **/ - public const contentTypes = [ - 'createUser' => [ - 'application/json', - ], - 'createUsersWithArrayInput' => [ - 'application/json', - ], - 'createUsersWithListInput' => [ - 'application/json', - ], - 'deleteUser' => [ - 'application/json', - ], - 'getUserByName' => [ - 'application/json', - ], - 'loginUser' => [ - 'application/json', - ], - 'logoutUser' => [ - 'application/json', - ], - 'updateUser' => [ - 'application/json', - ], - ]; - /** * @param ClientInterface|null $client * @param Configuration|null $config @@ -116,9 +88,7 @@ public function __construct( } /** - * Set the host index - * - * @param int $hostIndex Host index (required) + * {@inheritdoc} */ public function setHostIndex(int $hostIndex): void { @@ -126,9 +96,7 @@ public function setHostIndex(int $hostIndex): void } /** - * Get the host index - * - * @return int Host index + * {@inheritdoc} */ public function getHostIndex(): int { @@ -136,7 +104,7 @@ public function getHostIndex(): int } /** - * @return Configuration + * {@inheritdoc} */ public function getConfig(): Configuration { @@ -144,16 +112,7 @@ public function getConfig(): Configuration } /** - * Operation createUser - * - * Create user - * - * @param \OpenAPI\Client\Model\User $user Created user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUser'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function createUser( \OpenAPI\Client\Model\User $user, @@ -164,16 +123,7 @@ public function createUser( } /** - * Operation createUserWithHttpInfo - * - * Create user - * - * @param \OpenAPI\Client\Model\User $user Created user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUser'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function createUserWithHttpInfo( \OpenAPI\Client\Model\User $user, @@ -227,15 +177,7 @@ public function createUserWithHttpInfo( } /** - * Operation createUserAsync - * - * Create user - * - * @param \OpenAPI\Client\Model\User $user Created user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function createUserAsync( \OpenAPI\Client\Model\User $user, @@ -251,15 +193,7 @@ function ($response) { } /** - * Operation createUserAsyncWithHttpInfo - * - * Create user - * - * @param \OpenAPI\Client\Model\User $user Created user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function createUserAsyncWithHttpInfo( $user, @@ -293,13 +227,7 @@ function ($exception) { } /** - * Create request for operation 'createUser' - * - * @param \OpenAPI\Client\Model\User $user Created user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function createUserRequest( $user, @@ -387,16 +315,7 @@ public function createUserRequest( } /** - * Operation createUsersWithArrayInput - * - * Creates list of users with given input array - * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithArrayInput'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function createUsersWithArrayInput( array $user, @@ -407,16 +326,7 @@ public function createUsersWithArrayInput( } /** - * Operation createUsersWithArrayInputWithHttpInfo - * - * Creates list of users with given input array - * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithArrayInput'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function createUsersWithArrayInputWithHttpInfo( array $user, @@ -470,15 +380,7 @@ public function createUsersWithArrayInputWithHttpInfo( } /** - * Operation createUsersWithArrayInputAsync - * - * Creates list of users with given input array - * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithArrayInput'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function createUsersWithArrayInputAsync( array $user, @@ -494,15 +396,7 @@ function ($response) { } /** - * Operation createUsersWithArrayInputAsyncWithHttpInfo - * - * Creates list of users with given input array - * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithArrayInput'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function createUsersWithArrayInputAsyncWithHttpInfo( $user, @@ -536,13 +430,7 @@ function ($exception) { } /** - * Create request for operation 'createUsersWithArrayInput' - * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithArrayInput'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function createUsersWithArrayInputRequest( $user, @@ -630,16 +518,7 @@ public function createUsersWithArrayInputRequest( } /** - * Operation createUsersWithListInput - * - * Creates list of users with given input array - * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithListInput'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function createUsersWithListInput( array $user, @@ -650,16 +529,7 @@ public function createUsersWithListInput( } /** - * Operation createUsersWithListInputWithHttpInfo - * - * Creates list of users with given input array - * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithListInput'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function createUsersWithListInputWithHttpInfo( array $user, @@ -713,15 +583,7 @@ public function createUsersWithListInputWithHttpInfo( } /** - * Operation createUsersWithListInputAsync - * - * Creates list of users with given input array - * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithListInput'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function createUsersWithListInputAsync( array $user, @@ -737,15 +599,7 @@ function ($response) { } /** - * Operation createUsersWithListInputAsyncWithHttpInfo - * - * Creates list of users with given input array - * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithListInput'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function createUsersWithListInputAsyncWithHttpInfo( $user, @@ -779,13 +633,7 @@ function ($exception) { } /** - * Create request for operation 'createUsersWithListInput' - * - * @param \OpenAPI\Client\Model\User[] $user List of user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithListInput'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function createUsersWithListInputRequest( $user, @@ -873,16 +721,7 @@ public function createUsersWithListInputRequest( } /** - * Operation deleteUser - * - * Delete user - * - * @param string $username The name that needs to be deleted (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteUser'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function deleteUser( string $username, @@ -893,16 +732,7 @@ public function deleteUser( } /** - * Operation deleteUserWithHttpInfo - * - * Delete user - * - * @param string $username The name that needs to be deleted (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteUser'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function deleteUserWithHttpInfo( string $username, @@ -956,15 +786,7 @@ public function deleteUserWithHttpInfo( } /** - * Operation deleteUserAsync - * - * Delete user - * - * @param string $username The name that needs to be deleted (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function deleteUserAsync( string $username, @@ -980,15 +802,7 @@ function ($response) { } /** - * Operation deleteUserAsyncWithHttpInfo - * - * Delete user - * - * @param string $username The name that needs to be deleted (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function deleteUserAsyncWithHttpInfo( $username, @@ -1022,13 +836,7 @@ function ($exception) { } /** - * Create request for operation 'deleteUser' - * - * @param string $username The name that needs to be deleted (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function deleteUserRequest( $username, @@ -1117,16 +925,7 @@ public function deleteUserRequest( } /** - * Operation getUserByName - * - * Get user by user name - * - * @param string $username The name that needs to be fetched. Use user1 for testing. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUserByName'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return \OpenAPI\Client\Model\User + * {@inheritdoc} */ public function getUserByName( string $username, @@ -1138,16 +937,7 @@ public function getUserByName( } /** - * Operation getUserByNameWithHttpInfo - * - * Get user by user name - * - * @param string $username The name that needs to be fetched. Use user1 for testing. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUserByName'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of \OpenAPI\Client\Model\User, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function getUserByNameWithHttpInfo( string $username, @@ -1265,15 +1055,7 @@ public function getUserByNameWithHttpInfo( } /** - * Operation getUserByNameAsync - * - * Get user by user name - * - * @param string $username The name that needs to be fetched. Use user1 for testing. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUserByName'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function getUserByNameAsync( string $username, @@ -1289,15 +1071,7 @@ function ($response) { } /** - * Operation getUserByNameAsyncWithHttpInfo - * - * Get user by user name - * - * @param string $username The name that needs to be fetched. Use user1 for testing. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUserByName'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function getUserByNameAsyncWithHttpInfo( $username, @@ -1344,13 +1118,7 @@ function ($exception) { } /** - * Create request for operation 'getUserByName' - * - * @param string $username The name that needs to be fetched. Use user1 for testing. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUserByName'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function getUserByNameRequest( $username, @@ -1439,17 +1207,7 @@ public function getUserByNameRequest( } /** - * Operation loginUser - * - * Logs user into the system - * - * @param string $username The user name for login (required) - * @param string $password The password for login in clear text (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['loginUser'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return string + * {@inheritdoc} */ public function loginUser( string $username, @@ -1462,17 +1220,7 @@ public function loginUser( } /** - * Operation loginUserWithHttpInfo - * - * Logs user into the system - * - * @param string $username The user name for login (required) - * @param string $password The password for login in clear text (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['loginUser'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of string, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function loginUserWithHttpInfo( string $username, @@ -1591,16 +1339,7 @@ public function loginUserWithHttpInfo( } /** - * Operation loginUserAsync - * - * Logs user into the system - * - * @param string $username The user name for login (required) - * @param string $password The password for login in clear text (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['loginUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function loginUserAsync( string $username, @@ -1617,16 +1356,7 @@ function ($response) { } /** - * Operation loginUserAsyncWithHttpInfo - * - * Logs user into the system - * - * @param string $username The user name for login (required) - * @param string $password The password for login in clear text (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['loginUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function loginUserAsyncWithHttpInfo( $username, @@ -1674,14 +1404,7 @@ function ($exception) { } /** - * Create request for operation 'loginUser' - * - * @param string $username The user name for login (required) - * @param string $password The password for login in clear text (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['loginUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function loginUserRequest( $username, @@ -1788,15 +1511,7 @@ public function loginUserRequest( } /** - * Operation logoutUser - * - * Logs out current logged in user session - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['logoutUser'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function logoutUser( string $contentType = self::contentTypes['logoutUser'][0] @@ -1806,15 +1521,7 @@ public function logoutUser( } /** - * Operation logoutUserWithHttpInfo - * - * Logs out current logged in user session - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['logoutUser'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function logoutUserWithHttpInfo( string $contentType = self::contentTypes['logoutUser'][0] @@ -1867,14 +1574,7 @@ public function logoutUserWithHttpInfo( } /** - * Operation logoutUserAsync - * - * Logs out current logged in user session - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['logoutUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function logoutUserAsync( string $contentType = self::contentTypes['logoutUser'][0] @@ -1889,14 +1589,7 @@ function ($response) { } /** - * Operation logoutUserAsyncWithHttpInfo - * - * Logs out current logged in user session - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['logoutUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function logoutUserAsyncWithHttpInfo( string $contentType = self::contentTypes['logoutUser'][0] @@ -1929,12 +1622,7 @@ function ($exception) { } /** - * Create request for operation 'logoutUser' - * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['logoutUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function logoutUserRequest( string $contentType = self::contentTypes['logoutUser'][0] @@ -2007,17 +1695,7 @@ public function logoutUserRequest( } /** - * Operation updateUser - * - * Updated user - * - * @param string $username name that need to be deleted (required) - * @param \OpenAPI\Client\Model\User $user Updated user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateUser'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return void + * {@inheritdoc} */ public function updateUser( string $username, @@ -2029,17 +1707,7 @@ public function updateUser( } /** - * Operation updateUserWithHttpInfo - * - * Updated user - * - * @param string $username name that need to be deleted (required) - * @param \OpenAPI\Client\Model\User $user Updated user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateUser'] to see the possible values for this operation - * - * @throws ApiException on non-2xx response or if the response body is not in the expected format - * @throws InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * {@inheritdoc} */ public function updateUserWithHttpInfo( string $username, @@ -2094,16 +1762,7 @@ public function updateUserWithHttpInfo( } /** - * Operation updateUserAsync - * - * Updated user - * - * @param string $username name that need to be deleted (required) - * @param \OpenAPI\Client\Model\User $user Updated user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function updateUserAsync( string $username, @@ -2120,16 +1779,7 @@ function ($response) { } /** - * Operation updateUserAsyncWithHttpInfo - * - * Updated user - * - * @param string $username name that need to be deleted (required) - * @param \OpenAPI\Client\Model\User $user Updated user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return PromiseInterface + * {@inheritdoc} */ public function updateUserAsyncWithHttpInfo( $username, @@ -2164,14 +1814,7 @@ function ($exception) { } /** - * Create request for operation 'updateUser' - * - * @param string $username name that need to be deleted (required) - * @param \OpenAPI\Client\Model\User $user Updated user object (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateUser'] to see the possible values for this operation - * - * @throws InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request + * {@inheritdoc} */ public function updateUserRequest( $username, diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApiInterface.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApiInterface.php new file mode 100644 index 0000000000000..9f4e446184d44 --- /dev/null +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/UserApiInterface.php @@ -0,0 +1,733 @@ + [ + 'application/json', + ], + 'createUsersWithArrayInput' => [ + 'application/json', + ], + 'createUsersWithListInput' => [ + 'application/json', + ], + 'deleteUser' => [ + 'application/json', + ], + 'getUserByName' => [ + 'application/json', + ], + 'loginUser' => [ + 'application/json', + ], + 'logoutUser' => [ + 'application/json', + ], + 'updateUser' => [ + 'application/json', + ], + ]; + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex(int $hostIndex): void; + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex(): int; + + /** + * @return Configuration + */ + public function getConfig(): Configuration; + + /** + * Operation createUser + * + * Create user + * + * @param \OpenAPI\Client\Model\User $user Created user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUser'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function createUser( + \OpenAPI\Client\Model\User $user, + string $contentType = self::contentTypes['createUser'][0] + ): void; + + /** + * Operation createUserWithHttpInfo + * + * Create user + * + * @param \OpenAPI\Client\Model\User $user Created user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUser'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function createUserWithHttpInfo( + \OpenAPI\Client\Model\User $user, + string $contentType = self::contentTypes['createUser'][0] + ): array; + + /** + * Operation createUserAsync + * + * Create user + * + * @param \OpenAPI\Client\Model\User $user Created user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function createUserAsync( + \OpenAPI\Client\Model\User $user, + string $contentType = self::contentTypes['createUser'][0] + ): PromiseInterface; + + /** + * Operation createUserAsyncWithHttpInfo + * + * Create user + * + * @param \OpenAPI\Client\Model\User $user Created user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function createUserAsyncWithHttpInfo( + $user, + string $contentType = self::contentTypes['createUser'][0] + ): PromiseInterface; + + /** + * Create request for operation 'createUser' + * + * @param \OpenAPI\Client\Model\User $user Created user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function createUserRequest( + $user, + string $contentType = self::contentTypes['createUser'][0] + ): Request; + /** + * Operation createUsersWithArrayInput + * + * Creates list of users with given input array + * + * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithArrayInput'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function createUsersWithArrayInput( + array $user, + string $contentType = self::contentTypes['createUsersWithArrayInput'][0] + ): void; + + /** + * Operation createUsersWithArrayInputWithHttpInfo + * + * Creates list of users with given input array + * + * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithArrayInput'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function createUsersWithArrayInputWithHttpInfo( + array $user, + string $contentType = self::contentTypes['createUsersWithArrayInput'][0] + ): array; + + /** + * Operation createUsersWithArrayInputAsync + * + * Creates list of users with given input array + * + * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithArrayInput'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function createUsersWithArrayInputAsync( + array $user, + string $contentType = self::contentTypes['createUsersWithArrayInput'][0] + ): PromiseInterface; + + /** + * Operation createUsersWithArrayInputAsyncWithHttpInfo + * + * Creates list of users with given input array + * + * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithArrayInput'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function createUsersWithArrayInputAsyncWithHttpInfo( + $user, + string $contentType = self::contentTypes['createUsersWithArrayInput'][0] + ): PromiseInterface; + + /** + * Create request for operation 'createUsersWithArrayInput' + * + * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithArrayInput'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function createUsersWithArrayInputRequest( + $user, + string $contentType = self::contentTypes['createUsersWithArrayInput'][0] + ): Request; + /** + * Operation createUsersWithListInput + * + * Creates list of users with given input array + * + * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithListInput'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function createUsersWithListInput( + array $user, + string $contentType = self::contentTypes['createUsersWithListInput'][0] + ): void; + + /** + * Operation createUsersWithListInputWithHttpInfo + * + * Creates list of users with given input array + * + * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithListInput'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function createUsersWithListInputWithHttpInfo( + array $user, + string $contentType = self::contentTypes['createUsersWithListInput'][0] + ): array; + + /** + * Operation createUsersWithListInputAsync + * + * Creates list of users with given input array + * + * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithListInput'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function createUsersWithListInputAsync( + array $user, + string $contentType = self::contentTypes['createUsersWithListInput'][0] + ): PromiseInterface; + + /** + * Operation createUsersWithListInputAsyncWithHttpInfo + * + * Creates list of users with given input array + * + * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithListInput'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function createUsersWithListInputAsyncWithHttpInfo( + $user, + string $contentType = self::contentTypes['createUsersWithListInput'][0] + ): PromiseInterface; + + /** + * Create request for operation 'createUsersWithListInput' + * + * @param \OpenAPI\Client\Model\User[] $user List of user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createUsersWithListInput'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function createUsersWithListInputRequest( + $user, + string $contentType = self::contentTypes['createUsersWithListInput'][0] + ): Request; + /** + * Operation deleteUser + * + * Delete user + * + * @param string $username The name that needs to be deleted (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteUser'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function deleteUser( + string $username, + string $contentType = self::contentTypes['deleteUser'][0] + ): void; + + /** + * Operation deleteUserWithHttpInfo + * + * Delete user + * + * @param string $username The name that needs to be deleted (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteUser'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteUserWithHttpInfo( + string $username, + string $contentType = self::contentTypes['deleteUser'][0] + ): array; + + /** + * Operation deleteUserAsync + * + * Delete user + * + * @param string $username The name that needs to be deleted (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function deleteUserAsync( + string $username, + string $contentType = self::contentTypes['deleteUser'][0] + ): PromiseInterface; + + /** + * Operation deleteUserAsyncWithHttpInfo + * + * Delete user + * + * @param string $username The name that needs to be deleted (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function deleteUserAsyncWithHttpInfo( + $username, + string $contentType = self::contentTypes['deleteUser'][0] + ): PromiseInterface; + + /** + * Create request for operation 'deleteUser' + * + * @param string $username The name that needs to be deleted (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function deleteUserRequest( + $username, + string $contentType = self::contentTypes['deleteUser'][0] + ): Request; + /** + * Operation getUserByName + * + * Get user by user name + * + * @param string $username The name that needs to be fetched. Use user1 for testing. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUserByName'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return \OpenAPI\Client\Model\User + */ + public function getUserByName( + string $username, + string $contentType = self::contentTypes['getUserByName'][0] + ): \OpenAPI\Client\Model\User; + + /** + * Operation getUserByNameWithHttpInfo + * + * Get user by user name + * + * @param string $username The name that needs to be fetched. Use user1 for testing. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUserByName'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of \OpenAPI\Client\Model\User, HTTP status code, HTTP response headers (array of strings) + */ + public function getUserByNameWithHttpInfo( + string $username, + string $contentType = self::contentTypes['getUserByName'][0] + ): array; + + /** + * Operation getUserByNameAsync + * + * Get user by user name + * + * @param string $username The name that needs to be fetched. Use user1 for testing. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUserByName'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function getUserByNameAsync( + string $username, + string $contentType = self::contentTypes['getUserByName'][0] + ): PromiseInterface; + + /** + * Operation getUserByNameAsyncWithHttpInfo + * + * Get user by user name + * + * @param string $username The name that needs to be fetched. Use user1 for testing. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUserByName'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function getUserByNameAsyncWithHttpInfo( + $username, + string $contentType = self::contentTypes['getUserByName'][0] + ): PromiseInterface; + + /** + * Create request for operation 'getUserByName' + * + * @param string $username The name that needs to be fetched. Use user1 for testing. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUserByName'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getUserByNameRequest( + $username, + string $contentType = self::contentTypes['getUserByName'][0] + ): Request; + /** + * Operation loginUser + * + * Logs user into the system + * + * @param string $username The user name for login (required) + * @param string $password The password for login in clear text (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['loginUser'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return string + */ + public function loginUser( + string $username, + string $password, + string $contentType = self::contentTypes['loginUser'][0] + ): string; + + /** + * Operation loginUserWithHttpInfo + * + * Logs user into the system + * + * @param string $username The user name for login (required) + * @param string $password The password for login in clear text (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['loginUser'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of string, HTTP status code, HTTP response headers (array of strings) + */ + public function loginUserWithHttpInfo( + string $username, + string $password, + string $contentType = self::contentTypes['loginUser'][0] + ): array; + + /** + * Operation loginUserAsync + * + * Logs user into the system + * + * @param string $username The user name for login (required) + * @param string $password The password for login in clear text (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['loginUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function loginUserAsync( + string $username, + string $password, + string $contentType = self::contentTypes['loginUser'][0] + ): PromiseInterface; + + /** + * Operation loginUserAsyncWithHttpInfo + * + * Logs user into the system + * + * @param string $username The user name for login (required) + * @param string $password The password for login in clear text (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['loginUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function loginUserAsyncWithHttpInfo( + $username, + $password, + string $contentType = self::contentTypes['loginUser'][0] + ): PromiseInterface; + + /** + * Create request for operation 'loginUser' + * + * @param string $username The user name for login (required) + * @param string $password The password for login in clear text (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['loginUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function loginUserRequest( + $username, + $password, + string $contentType = self::contentTypes['loginUser'][0] + ): Request; + /** + * Operation logoutUser + * + * Logs out current logged in user session + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['logoutUser'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function logoutUser( + string $contentType = self::contentTypes['logoutUser'][0] + ): void; + + /** + * Operation logoutUserWithHttpInfo + * + * Logs out current logged in user session + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['logoutUser'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function logoutUserWithHttpInfo( + string $contentType = self::contentTypes['logoutUser'][0] + ): array; + + /** + * Operation logoutUserAsync + * + * Logs out current logged in user session + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['logoutUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function logoutUserAsync( + string $contentType = self::contentTypes['logoutUser'][0] + ): PromiseInterface; + + /** + * Operation logoutUserAsyncWithHttpInfo + * + * Logs out current logged in user session + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['logoutUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function logoutUserAsyncWithHttpInfo( + string $contentType = self::contentTypes['logoutUser'][0] + ): PromiseInterface; + + /** + * Create request for operation 'logoutUser' + * + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['logoutUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function logoutUserRequest( + string $contentType = self::contentTypes['logoutUser'][0] + ): Request; + /** + * Operation updateUser + * + * Updated user + * + * @param string $username name that need to be deleted (required) + * @param \OpenAPI\Client\Model\User $user Updated user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateUser'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return void + */ + public function updateUser( + string $username, + \OpenAPI\Client\Model\User $user, + string $contentType = self::contentTypes['updateUser'][0] + ): void; + + /** + * Operation updateUserWithHttpInfo + * + * Updated user + * + * @param string $username name that need to be deleted (required) + * @param \OpenAPI\Client\Model\User $user Updated user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateUser'] to see the possible values for this operation + * + * @throws ApiException on non-2xx response or if the response body is not in the expected format + * @throws InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function updateUserWithHttpInfo( + string $username, + \OpenAPI\Client\Model\User $user, + string $contentType = self::contentTypes['updateUser'][0] + ): array; + + /** + * Operation updateUserAsync + * + * Updated user + * + * @param string $username name that need to be deleted (required) + * @param \OpenAPI\Client\Model\User $user Updated user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function updateUserAsync( + string $username, + \OpenAPI\Client\Model\User $user, + string $contentType = self::contentTypes['updateUser'][0] + ): PromiseInterface; + + /** + * Operation updateUserAsyncWithHttpInfo + * + * Updated user + * + * @param string $username name that need to be deleted (required) + * @param \OpenAPI\Client\Model\User $user Updated user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return PromiseInterface + */ + public function updateUserAsyncWithHttpInfo( + $username, + $user, + string $contentType = self::contentTypes['updateUser'][0] + ): PromiseInterface; + + /** + * Create request for operation 'updateUser' + * + * @param string $username name that need to be deleted (required) + * @param \OpenAPI\Client\Model\User $user Updated user object (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateUser'] to see the possible values for this operation + * + * @throws InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function updateUserRequest( + $username, + $user, + string $contentType = self::contentTypes['updateUser'][0] + ): Request; +}