forked from loafle/openapi-generator-original
update php samples
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
namespace OpenAPI\Client\Api;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\ClientInterface;
|
||||
use GuzzleHttp\Exception\ConnectException;
|
||||
@@ -35,6 +36,7 @@ use GuzzleHttp\Exception\RequestException;
|
||||
use GuzzleHttp\Psr7\MultipartStream;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\RequestOptions;
|
||||
use GuzzleHttp\Promise\PromiseInterface;
|
||||
use OpenAPI\Client\ApiException;
|
||||
use OpenAPI\Client\Configuration;
|
||||
use OpenAPI\Client\HeaderSelector;
|
||||
@@ -53,22 +55,22 @@ class AuthApi
|
||||
/**
|
||||
* @var ClientInterface
|
||||
*/
|
||||
protected $client;
|
||||
protected ClientInterface $client;
|
||||
|
||||
/**
|
||||
* @var Configuration
|
||||
*/
|
||||
protected $config;
|
||||
protected Configuration $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
protected HeaderSelector $headerSelector;
|
||||
|
||||
/**
|
||||
* @var int Host index
|
||||
*/
|
||||
protected $hostIndex;
|
||||
protected int $hostIndex;
|
||||
|
||||
/** @var string[] $contentTypes **/
|
||||
public const contentTypes = [
|
||||
@@ -77,17 +79,17 @@ class AuthApi
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
* @param HeaderSelector $selector
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
/**
|
||||
* @param ClientInterface|null $client
|
||||
* @param Configuration|null $config
|
||||
* @param HeaderSelector|null $selector
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
*/
|
||||
public function __construct(
|
||||
ClientInterface $client = null,
|
||||
Configuration $config = null,
|
||||
HeaderSelector $selector = null,
|
||||
$hostIndex = 0
|
||||
int $hostIndex = 0
|
||||
) {
|
||||
$this->client = $client ?: new Client();
|
||||
$this->config = $config ?: new Configuration();
|
||||
@@ -100,7 +102,7 @@ class AuthApi
|
||||
*
|
||||
* @param int $hostIndex Host index (required)
|
||||
*/
|
||||
public function setHostIndex($hostIndex): void
|
||||
public function setHostIndex(int $hostIndex): void
|
||||
{
|
||||
$this->hostIndex = $hostIndex;
|
||||
}
|
||||
@@ -110,7 +112,7 @@ class AuthApi
|
||||
*
|
||||
* @return int Host index
|
||||
*/
|
||||
public function getHostIndex()
|
||||
public function getHostIndex(): int
|
||||
{
|
||||
return $this->hostIndex;
|
||||
}
|
||||
@@ -118,7 +120,7 @@ class AuthApi
|
||||
/**
|
||||
* @return Configuration
|
||||
*/
|
||||
public function getConfig()
|
||||
public function getConfig(): Configuration
|
||||
{
|
||||
return $this->config;
|
||||
}
|
||||
@@ -130,11 +132,13 @@ class AuthApi
|
||||
*
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAuthHttpBasic'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testAuthHttpBasic(string $contentType = self::contentTypes['testAuthHttpBasic'][0])
|
||||
public function testAuthHttpBasic(
|
||||
string $contentType = self::contentTypes['testAuthHttpBasic'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testAuthHttpBasicWithHttpInfo($contentType);
|
||||
return $response;
|
||||
@@ -147,11 +151,13 @@ class AuthApi
|
||||
*
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAuthHttpBasic'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testAuthHttpBasicWithHttpInfo(string $contentType = self::contentTypes['testAuthHttpBasic'][0])
|
||||
public function testAuthHttpBasicWithHttpInfo(
|
||||
string $contentType = self::contentTypes['testAuthHttpBasic'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testAuthHttpBasicRequest($contentType);
|
||||
|
||||
@@ -246,10 +252,12 @@ class AuthApi
|
||||
*
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAuthHttpBasic'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testAuthHttpBasicAsync(string $contentType = self::contentTypes['testAuthHttpBasic'][0])
|
||||
public function testAuthHttpBasicAsync(
|
||||
string $contentType = self::contentTypes['testAuthHttpBasic'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testAuthHttpBasicAsyncWithHttpInfo($contentType)
|
||||
->then(
|
||||
@@ -266,10 +274,12 @@ class AuthApi
|
||||
*
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAuthHttpBasic'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testAuthHttpBasicAsyncWithHttpInfo(string $contentType = self::contentTypes['testAuthHttpBasic'][0])
|
||||
public function testAuthHttpBasicAsyncWithHttpInfo(
|
||||
string $contentType = self::contentTypes['testAuthHttpBasic'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testAuthHttpBasicRequest($contentType);
|
||||
@@ -315,10 +325,12 @@ class AuthApi
|
||||
*
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testAuthHttpBasic'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testAuthHttpBasicRequest(string $contentType = self::contentTypes['testAuthHttpBasic'][0])
|
||||
public function testAuthHttpBasicRequest(
|
||||
string $contentType = self::contentTypes['testAuthHttpBasic'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -396,7 +408,7 @@ class AuthApi
|
||||
* @throws \RuntimeException on file opening failure
|
||||
* @return array of http client options
|
||||
*/
|
||||
protected function createHttpClientOption()
|
||||
protected function createHttpClientOption(): array
|
||||
{
|
||||
$options = [];
|
||||
if ($this->config->getDebug()) {
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
namespace OpenAPI\Client\Api;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\ClientInterface;
|
||||
use GuzzleHttp\Exception\ConnectException;
|
||||
@@ -35,6 +36,7 @@ use GuzzleHttp\Exception\RequestException;
|
||||
use GuzzleHttp\Psr7\MultipartStream;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\RequestOptions;
|
||||
use GuzzleHttp\Promise\PromiseInterface;
|
||||
use OpenAPI\Client\ApiException;
|
||||
use OpenAPI\Client\Configuration;
|
||||
use OpenAPI\Client\HeaderSelector;
|
||||
@@ -53,22 +55,22 @@ class BodyApi
|
||||
/**
|
||||
* @var ClientInterface
|
||||
*/
|
||||
protected $client;
|
||||
protected ClientInterface $client;
|
||||
|
||||
/**
|
||||
* @var Configuration
|
||||
*/
|
||||
protected $config;
|
||||
protected Configuration $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
protected HeaderSelector $headerSelector;
|
||||
|
||||
/**
|
||||
* @var int Host index
|
||||
*/
|
||||
protected $hostIndex;
|
||||
protected int $hostIndex;
|
||||
|
||||
/** @var string[] $contentTypes **/
|
||||
public const contentTypes = [
|
||||
@@ -95,17 +97,17 @@ class BodyApi
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
* @param HeaderSelector $selector
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
/**
|
||||
* @param ClientInterface|null $client
|
||||
* @param Configuration|null $config
|
||||
* @param HeaderSelector|null $selector
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
*/
|
||||
public function __construct(
|
||||
ClientInterface $client = null,
|
||||
Configuration $config = null,
|
||||
HeaderSelector $selector = null,
|
||||
$hostIndex = 0
|
||||
int $hostIndex = 0
|
||||
) {
|
||||
$this->client = $client ?: new Client();
|
||||
$this->config = $config ?: new Configuration();
|
||||
@@ -118,7 +120,7 @@ class BodyApi
|
||||
*
|
||||
* @param int $hostIndex Host index (required)
|
||||
*/
|
||||
public function setHostIndex($hostIndex): void
|
||||
public function setHostIndex(int $hostIndex): void
|
||||
{
|
||||
$this->hostIndex = $hostIndex;
|
||||
}
|
||||
@@ -128,7 +130,7 @@ class BodyApi
|
||||
*
|
||||
* @return int Host index
|
||||
*/
|
||||
public function getHostIndex()
|
||||
public function getHostIndex(): int
|
||||
{
|
||||
return $this->hostIndex;
|
||||
}
|
||||
@@ -136,7 +138,7 @@ class BodyApi
|
||||
/**
|
||||
* @return Configuration
|
||||
*/
|
||||
public function getConfig()
|
||||
public function getConfig(): Configuration
|
||||
{
|
||||
return $this->config;
|
||||
}
|
||||
@@ -148,11 +150,13 @@ class BodyApi
|
||||
*
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBinaryGif'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return \SplFileObject
|
||||
*/
|
||||
public function testBinaryGif(string $contentType = self::contentTypes['testBinaryGif'][0])
|
||||
public function testBinaryGif(
|
||||
string $contentType = self::contentTypes['testBinaryGif'][0]
|
||||
): \SplFileObject
|
||||
{
|
||||
list($response) = $this->testBinaryGifWithHttpInfo($contentType);
|
||||
return $response;
|
||||
@@ -165,11 +169,13 @@ class BodyApi
|
||||
*
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBinaryGif'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testBinaryGifWithHttpInfo(string $contentType = self::contentTypes['testBinaryGif'][0])
|
||||
public function testBinaryGifWithHttpInfo(
|
||||
string $contentType = self::contentTypes['testBinaryGif'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testBinaryGifRequest($contentType);
|
||||
|
||||
@@ -264,10 +270,12 @@ class BodyApi
|
||||
*
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBinaryGif'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testBinaryGifAsync(string $contentType = self::contentTypes['testBinaryGif'][0])
|
||||
public function testBinaryGifAsync(
|
||||
string $contentType = self::contentTypes['testBinaryGif'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testBinaryGifAsyncWithHttpInfo($contentType)
|
||||
->then(
|
||||
@@ -284,10 +292,12 @@ class BodyApi
|
||||
*
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBinaryGif'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testBinaryGifAsyncWithHttpInfo(string $contentType = self::contentTypes['testBinaryGif'][0])
|
||||
public function testBinaryGifAsyncWithHttpInfo(
|
||||
string $contentType = self::contentTypes['testBinaryGif'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = '\SplFileObject';
|
||||
$request = $this->testBinaryGifRequest($contentType);
|
||||
@@ -333,10 +343,12 @@ class BodyApi
|
||||
*
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBinaryGif'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testBinaryGifRequest(string $contentType = self::contentTypes['testBinaryGif'][0])
|
||||
public function testBinaryGifRequest(
|
||||
string $contentType = self::contentTypes['testBinaryGif'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -409,14 +421,17 @@ class BodyApi
|
||||
*
|
||||
* Test body parameter(s)
|
||||
*
|
||||
* @param \SplFileObject $body body (optional)
|
||||
* @param \SplFileObject|null $body body (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyApplicationOctetstreamBinary'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testBodyApplicationOctetstreamBinary($body = null, string $contentType = self::contentTypes['testBodyApplicationOctetstreamBinary'][0])
|
||||
public function testBodyApplicationOctetstreamBinary(
|
||||
?\SplFileObject $body = null,
|
||||
string $contentType = self::contentTypes['testBodyApplicationOctetstreamBinary'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testBodyApplicationOctetstreamBinaryWithHttpInfo($body, $contentType);
|
||||
return $response;
|
||||
@@ -427,14 +442,17 @@ class BodyApi
|
||||
*
|
||||
* Test body parameter(s)
|
||||
*
|
||||
* @param \SplFileObject $body (optional)
|
||||
* @param \SplFileObject|null $body (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyApplicationOctetstreamBinary'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testBodyApplicationOctetstreamBinaryWithHttpInfo($body = null, string $contentType = self::contentTypes['testBodyApplicationOctetstreamBinary'][0])
|
||||
public function testBodyApplicationOctetstreamBinaryWithHttpInfo(
|
||||
?\SplFileObject $body = null,
|
||||
string $contentType = self::contentTypes['testBodyApplicationOctetstreamBinary'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testBodyApplicationOctetstreamBinaryRequest($body, $contentType);
|
||||
|
||||
@@ -527,13 +545,16 @@ class BodyApi
|
||||
*
|
||||
* Test body parameter(s)
|
||||
*
|
||||
* @param \SplFileObject $body (optional)
|
||||
* @param \SplFileObject|null $body (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyApplicationOctetstreamBinary'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testBodyApplicationOctetstreamBinaryAsync($body = null, string $contentType = self::contentTypes['testBodyApplicationOctetstreamBinary'][0])
|
||||
public function testBodyApplicationOctetstreamBinaryAsync(
|
||||
?\SplFileObject $body = null,
|
||||
string $contentType = self::contentTypes['testBodyApplicationOctetstreamBinary'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testBodyApplicationOctetstreamBinaryAsyncWithHttpInfo($body, $contentType)
|
||||
->then(
|
||||
@@ -548,13 +569,16 @@ class BodyApi
|
||||
*
|
||||
* Test body parameter(s)
|
||||
*
|
||||
* @param \SplFileObject $body (optional)
|
||||
* @param \SplFileObject|null $body (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyApplicationOctetstreamBinary'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testBodyApplicationOctetstreamBinaryAsyncWithHttpInfo($body = null, string $contentType = self::contentTypes['testBodyApplicationOctetstreamBinary'][0])
|
||||
public function testBodyApplicationOctetstreamBinaryAsyncWithHttpInfo(
|
||||
$body = null,
|
||||
string $contentType = self::contentTypes['testBodyApplicationOctetstreamBinary'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testBodyApplicationOctetstreamBinaryRequest($body, $contentType);
|
||||
@@ -598,13 +622,16 @@ class BodyApi
|
||||
/**
|
||||
* Create request for operation 'testBodyApplicationOctetstreamBinary'
|
||||
*
|
||||
* @param \SplFileObject $body (optional)
|
||||
* @param \SplFileObject|null $body (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyApplicationOctetstreamBinary'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testBodyApplicationOctetstreamBinaryRequest($body = null, string $contentType = self::contentTypes['testBodyApplicationOctetstreamBinary'][0])
|
||||
public function testBodyApplicationOctetstreamBinaryRequest(
|
||||
$body = null,
|
||||
string $contentType = self::contentTypes['testBodyApplicationOctetstreamBinary'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -688,11 +715,14 @@ class BodyApi
|
||||
* @param \SplFileObject[] $files files (required)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyMultipartFormdataArrayOfBinary'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testBodyMultipartFormdataArrayOfBinary($files, string $contentType = self::contentTypes['testBodyMultipartFormdataArrayOfBinary'][0])
|
||||
public function testBodyMultipartFormdataArrayOfBinary(
|
||||
array $files,
|
||||
string $contentType = self::contentTypes['testBodyMultipartFormdataArrayOfBinary'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testBodyMultipartFormdataArrayOfBinaryWithHttpInfo($files, $contentType);
|
||||
return $response;
|
||||
@@ -706,11 +736,14 @@ class BodyApi
|
||||
* @param \SplFileObject[] $files (required)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyMultipartFormdataArrayOfBinary'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testBodyMultipartFormdataArrayOfBinaryWithHttpInfo($files, string $contentType = self::contentTypes['testBodyMultipartFormdataArrayOfBinary'][0])
|
||||
public function testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(
|
||||
array $files,
|
||||
string $contentType = self::contentTypes['testBodyMultipartFormdataArrayOfBinary'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testBodyMultipartFormdataArrayOfBinaryRequest($files, $contentType);
|
||||
|
||||
@@ -806,10 +839,13 @@ class BodyApi
|
||||
* @param \SplFileObject[] $files (required)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyMultipartFormdataArrayOfBinary'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testBodyMultipartFormdataArrayOfBinaryAsync($files, string $contentType = self::contentTypes['testBodyMultipartFormdataArrayOfBinary'][0])
|
||||
public function testBodyMultipartFormdataArrayOfBinaryAsync(
|
||||
array $files,
|
||||
string $contentType = self::contentTypes['testBodyMultipartFormdataArrayOfBinary'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testBodyMultipartFormdataArrayOfBinaryAsyncWithHttpInfo($files, $contentType)
|
||||
->then(
|
||||
@@ -827,10 +863,13 @@ class BodyApi
|
||||
* @param \SplFileObject[] $files (required)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyMultipartFormdataArrayOfBinary'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testBodyMultipartFormdataArrayOfBinaryAsyncWithHttpInfo($files, string $contentType = self::contentTypes['testBodyMultipartFormdataArrayOfBinary'][0])
|
||||
public function testBodyMultipartFormdataArrayOfBinaryAsyncWithHttpInfo(
|
||||
$files,
|
||||
string $contentType = self::contentTypes['testBodyMultipartFormdataArrayOfBinary'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testBodyMultipartFormdataArrayOfBinaryRequest($files, $contentType);
|
||||
@@ -877,15 +916,18 @@ class BodyApi
|
||||
* @param \SplFileObject[] $files (required)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testBodyMultipartFormdataArrayOfBinary'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testBodyMultipartFormdataArrayOfBinaryRequest($files, string $contentType = self::contentTypes['testBodyMultipartFormdataArrayOfBinary'][0])
|
||||
public function testBodyMultipartFormdataArrayOfBinaryRequest(
|
||||
$files,
|
||||
string $contentType = self::contentTypes['testBodyMultipartFormdataArrayOfBinary'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
// verify the required parameter 'files' is set
|
||||
if ($files === null || (is_array($files) && count($files) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
throw new InvalidArgumentException(
|
||||
'Missing the required parameter $files when calling testBodyMultipartFormdataArrayOfBinary'
|
||||
);
|
||||
}
|
||||
@@ -972,14 +1014,17 @@ class BodyApi
|
||||
*
|
||||
* Test free form object
|
||||
*
|
||||
* @param object $body Free form object (optional)
|
||||
* @param object|null $body Free form object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyFreeFormObjectResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testEchoBodyFreeFormObjectResponseString($body = null, string $contentType = self::contentTypes['testEchoBodyFreeFormObjectResponseString'][0])
|
||||
public function testEchoBodyFreeFormObjectResponseString(
|
||||
?array $body = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyFreeFormObjectResponseString'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testEchoBodyFreeFormObjectResponseStringWithHttpInfo($body, $contentType);
|
||||
return $response;
|
||||
@@ -990,14 +1035,17 @@ class BodyApi
|
||||
*
|
||||
* Test free form object
|
||||
*
|
||||
* @param object $body Free form object (optional)
|
||||
* @param object|null $body Free form object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyFreeFormObjectResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testEchoBodyFreeFormObjectResponseStringWithHttpInfo($body = null, string $contentType = self::contentTypes['testEchoBodyFreeFormObjectResponseString'][0])
|
||||
public function testEchoBodyFreeFormObjectResponseStringWithHttpInfo(
|
||||
?array $body = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyFreeFormObjectResponseString'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testEchoBodyFreeFormObjectResponseStringRequest($body, $contentType);
|
||||
|
||||
@@ -1090,13 +1138,16 @@ class BodyApi
|
||||
*
|
||||
* Test free form object
|
||||
*
|
||||
* @param object $body Free form object (optional)
|
||||
* @param object|null $body Free form object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyFreeFormObjectResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testEchoBodyFreeFormObjectResponseStringAsync($body = null, string $contentType = self::contentTypes['testEchoBodyFreeFormObjectResponseString'][0])
|
||||
public function testEchoBodyFreeFormObjectResponseStringAsync(
|
||||
?array $body = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyFreeFormObjectResponseString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testEchoBodyFreeFormObjectResponseStringAsyncWithHttpInfo($body, $contentType)
|
||||
->then(
|
||||
@@ -1111,13 +1162,16 @@ class BodyApi
|
||||
*
|
||||
* Test free form object
|
||||
*
|
||||
* @param object $body Free form object (optional)
|
||||
* @param object|null $body Free form object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyFreeFormObjectResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testEchoBodyFreeFormObjectResponseStringAsyncWithHttpInfo($body = null, string $contentType = self::contentTypes['testEchoBodyFreeFormObjectResponseString'][0])
|
||||
public function testEchoBodyFreeFormObjectResponseStringAsyncWithHttpInfo(
|
||||
$body = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyFreeFormObjectResponseString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testEchoBodyFreeFormObjectResponseStringRequest($body, $contentType);
|
||||
@@ -1161,13 +1215,16 @@ class BodyApi
|
||||
/**
|
||||
* Create request for operation 'testEchoBodyFreeFormObjectResponseString'
|
||||
*
|
||||
* @param object $body Free form object (optional)
|
||||
* @param object|null $body Free form object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyFreeFormObjectResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testEchoBodyFreeFormObjectResponseStringRequest($body = null, string $contentType = self::contentTypes['testEchoBodyFreeFormObjectResponseString'][0])
|
||||
public function testEchoBodyFreeFormObjectResponseStringRequest(
|
||||
$body = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyFreeFormObjectResponseString'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -1248,14 +1305,17 @@ class BodyApi
|
||||
*
|
||||
* Test body parameter(s)
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (optional)
|
||||
* @param \OpenAPI\Client\Model\Pet|null $pet Pet object that needs to be added to the store (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyPet'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return \OpenAPI\Client\Model\Pet
|
||||
*/
|
||||
public function testEchoBodyPet($pet = null, string $contentType = self::contentTypes['testEchoBodyPet'][0])
|
||||
public function testEchoBodyPet(
|
||||
?\OpenAPI\Client\Model\Pet $pet = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyPet'][0]
|
||||
): \OpenAPI\Client\Model\Pet
|
||||
{
|
||||
list($response) = $this->testEchoBodyPetWithHttpInfo($pet, $contentType);
|
||||
return $response;
|
||||
@@ -1266,14 +1326,17 @@ class BodyApi
|
||||
*
|
||||
* Test body parameter(s)
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (optional)
|
||||
* @param \OpenAPI\Client\Model\Pet|null $pet Pet object that needs to be added to the store (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyPet'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of \OpenAPI\Client\Model\Pet, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testEchoBodyPetWithHttpInfo($pet = null, string $contentType = self::contentTypes['testEchoBodyPet'][0])
|
||||
public function testEchoBodyPetWithHttpInfo(
|
||||
?\OpenAPI\Client\Model\Pet $pet = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyPet'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testEchoBodyPetRequest($pet, $contentType);
|
||||
|
||||
@@ -1366,13 +1429,16 @@ class BodyApi
|
||||
*
|
||||
* Test body parameter(s)
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (optional)
|
||||
* @param \OpenAPI\Client\Model\Pet|null $pet Pet object that needs to be added to the store (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyPet'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testEchoBodyPetAsync($pet = null, string $contentType = self::contentTypes['testEchoBodyPet'][0])
|
||||
public function testEchoBodyPetAsync(
|
||||
?\OpenAPI\Client\Model\Pet $pet = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyPet'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testEchoBodyPetAsyncWithHttpInfo($pet, $contentType)
|
||||
->then(
|
||||
@@ -1387,13 +1453,16 @@ class BodyApi
|
||||
*
|
||||
* Test body parameter(s)
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (optional)
|
||||
* @param \OpenAPI\Client\Model\Pet|null $pet Pet object that needs to be added to the store (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyPet'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testEchoBodyPetAsyncWithHttpInfo($pet = null, string $contentType = self::contentTypes['testEchoBodyPet'][0])
|
||||
public function testEchoBodyPetAsyncWithHttpInfo(
|
||||
$pet = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyPet'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = '\OpenAPI\Client\Model\Pet';
|
||||
$request = $this->testEchoBodyPetRequest($pet, $contentType);
|
||||
@@ -1437,13 +1506,16 @@ class BodyApi
|
||||
/**
|
||||
* Create request for operation 'testEchoBodyPet'
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (optional)
|
||||
* @param \OpenAPI\Client\Model\Pet|null $pet Pet object that needs to be added to the store (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyPet'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testEchoBodyPetRequest($pet = null, string $contentType = self::contentTypes['testEchoBodyPet'][0])
|
||||
public function testEchoBodyPetRequest(
|
||||
$pet = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyPet'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -1524,14 +1596,17 @@ class BodyApi
|
||||
*
|
||||
* Test empty response body
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (optional)
|
||||
* @param \OpenAPI\Client\Model\Pet|null $pet Pet object that needs to be added to the store (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyPetResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testEchoBodyPetResponseString($pet = null, string $contentType = self::contentTypes['testEchoBodyPetResponseString'][0])
|
||||
public function testEchoBodyPetResponseString(
|
||||
?\OpenAPI\Client\Model\Pet $pet = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyPetResponseString'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testEchoBodyPetResponseStringWithHttpInfo($pet, $contentType);
|
||||
return $response;
|
||||
@@ -1542,14 +1617,17 @@ class BodyApi
|
||||
*
|
||||
* Test empty response body
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (optional)
|
||||
* @param \OpenAPI\Client\Model\Pet|null $pet Pet object that needs to be added to the store (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyPetResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testEchoBodyPetResponseStringWithHttpInfo($pet = null, string $contentType = self::contentTypes['testEchoBodyPetResponseString'][0])
|
||||
public function testEchoBodyPetResponseStringWithHttpInfo(
|
||||
?\OpenAPI\Client\Model\Pet $pet = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyPetResponseString'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testEchoBodyPetResponseStringRequest($pet, $contentType);
|
||||
|
||||
@@ -1642,13 +1720,16 @@ class BodyApi
|
||||
*
|
||||
* Test empty response body
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (optional)
|
||||
* @param \OpenAPI\Client\Model\Pet|null $pet Pet object that needs to be added to the store (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyPetResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testEchoBodyPetResponseStringAsync($pet = null, string $contentType = self::contentTypes['testEchoBodyPetResponseString'][0])
|
||||
public function testEchoBodyPetResponseStringAsync(
|
||||
?\OpenAPI\Client\Model\Pet $pet = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyPetResponseString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testEchoBodyPetResponseStringAsyncWithHttpInfo($pet, $contentType)
|
||||
->then(
|
||||
@@ -1663,13 +1744,16 @@ class BodyApi
|
||||
*
|
||||
* Test empty response body
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (optional)
|
||||
* @param \OpenAPI\Client\Model\Pet|null $pet Pet object that needs to be added to the store (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyPetResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testEchoBodyPetResponseStringAsyncWithHttpInfo($pet = null, string $contentType = self::contentTypes['testEchoBodyPetResponseString'][0])
|
||||
public function testEchoBodyPetResponseStringAsyncWithHttpInfo(
|
||||
$pet = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyPetResponseString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testEchoBodyPetResponseStringRequest($pet, $contentType);
|
||||
@@ -1713,13 +1797,16 @@ class BodyApi
|
||||
/**
|
||||
* Create request for operation 'testEchoBodyPetResponseString'
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Pet $pet Pet object that needs to be added to the store (optional)
|
||||
* @param \OpenAPI\Client\Model\Pet|null $pet Pet object that needs to be added to the store (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyPetResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testEchoBodyPetResponseStringRequest($pet = null, string $contentType = self::contentTypes['testEchoBodyPetResponseString'][0])
|
||||
public function testEchoBodyPetResponseStringRequest(
|
||||
$pet = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyPetResponseString'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -1800,14 +1887,17 @@ class BodyApi
|
||||
*
|
||||
* Test empty json (request body)
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Tag $tag Tag object (optional)
|
||||
* @param \OpenAPI\Client\Model\Tag|null $tag Tag object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyTagResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testEchoBodyTagResponseString($tag = null, string $contentType = self::contentTypes['testEchoBodyTagResponseString'][0])
|
||||
public function testEchoBodyTagResponseString(
|
||||
?\OpenAPI\Client\Model\Tag $tag = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyTagResponseString'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testEchoBodyTagResponseStringWithHttpInfo($tag, $contentType);
|
||||
return $response;
|
||||
@@ -1818,14 +1908,17 @@ class BodyApi
|
||||
*
|
||||
* Test empty json (request body)
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Tag $tag Tag object (optional)
|
||||
* @param \OpenAPI\Client\Model\Tag|null $tag Tag object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyTagResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testEchoBodyTagResponseStringWithHttpInfo($tag = null, string $contentType = self::contentTypes['testEchoBodyTagResponseString'][0])
|
||||
public function testEchoBodyTagResponseStringWithHttpInfo(
|
||||
?\OpenAPI\Client\Model\Tag $tag = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyTagResponseString'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testEchoBodyTagResponseStringRequest($tag, $contentType);
|
||||
|
||||
@@ -1918,13 +2011,16 @@ class BodyApi
|
||||
*
|
||||
* Test empty json (request body)
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Tag $tag Tag object (optional)
|
||||
* @param \OpenAPI\Client\Model\Tag|null $tag Tag object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyTagResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testEchoBodyTagResponseStringAsync($tag = null, string $contentType = self::contentTypes['testEchoBodyTagResponseString'][0])
|
||||
public function testEchoBodyTagResponseStringAsync(
|
||||
?\OpenAPI\Client\Model\Tag $tag = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyTagResponseString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testEchoBodyTagResponseStringAsyncWithHttpInfo($tag, $contentType)
|
||||
->then(
|
||||
@@ -1939,13 +2035,16 @@ class BodyApi
|
||||
*
|
||||
* Test empty json (request body)
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Tag $tag Tag object (optional)
|
||||
* @param \OpenAPI\Client\Model\Tag|null $tag Tag object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyTagResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testEchoBodyTagResponseStringAsyncWithHttpInfo($tag = null, string $contentType = self::contentTypes['testEchoBodyTagResponseString'][0])
|
||||
public function testEchoBodyTagResponseStringAsyncWithHttpInfo(
|
||||
$tag = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyTagResponseString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testEchoBodyTagResponseStringRequest($tag, $contentType);
|
||||
@@ -1989,13 +2088,16 @@ class BodyApi
|
||||
/**
|
||||
* Create request for operation 'testEchoBodyTagResponseString'
|
||||
*
|
||||
* @param \OpenAPI\Client\Model\Tag $tag Tag object (optional)
|
||||
* @param \OpenAPI\Client\Model\Tag|null $tag Tag object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyTagResponseString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testEchoBodyTagResponseStringRequest($tag = null, string $contentType = self::contentTypes['testEchoBodyTagResponseString'][0])
|
||||
public function testEchoBodyTagResponseStringRequest(
|
||||
$tag = null,
|
||||
string $contentType = self::contentTypes['testEchoBodyTagResponseString'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -2077,7 +2179,7 @@ class BodyApi
|
||||
* @throws \RuntimeException on file opening failure
|
||||
* @return array of http client options
|
||||
*/
|
||||
protected function createHttpClientOption()
|
||||
protected function createHttpClientOption(): array
|
||||
{
|
||||
$options = [];
|
||||
if ($this->config->getDebug()) {
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
namespace OpenAPI\Client\Api;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\ClientInterface;
|
||||
use GuzzleHttp\Exception\ConnectException;
|
||||
@@ -35,6 +36,7 @@ use GuzzleHttp\Exception\RequestException;
|
||||
use GuzzleHttp\Psr7\MultipartStream;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\RequestOptions;
|
||||
use GuzzleHttp\Promise\PromiseInterface;
|
||||
use OpenAPI\Client\ApiException;
|
||||
use OpenAPI\Client\Configuration;
|
||||
use OpenAPI\Client\HeaderSelector;
|
||||
@@ -53,22 +55,22 @@ class FormApi
|
||||
/**
|
||||
* @var ClientInterface
|
||||
*/
|
||||
protected $client;
|
||||
protected ClientInterface $client;
|
||||
|
||||
/**
|
||||
* @var Configuration
|
||||
*/
|
||||
protected $config;
|
||||
protected Configuration $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
protected HeaderSelector $headerSelector;
|
||||
|
||||
/**
|
||||
* @var int Host index
|
||||
*/
|
||||
protected $hostIndex;
|
||||
protected int $hostIndex;
|
||||
|
||||
/** @var string[] $contentTypes **/
|
||||
public const contentTypes = [
|
||||
@@ -80,17 +82,17 @@ class FormApi
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
* @param HeaderSelector $selector
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
/**
|
||||
* @param ClientInterface|null $client
|
||||
* @param Configuration|null $config
|
||||
* @param HeaderSelector|null $selector
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
*/
|
||||
public function __construct(
|
||||
ClientInterface $client = null,
|
||||
Configuration $config = null,
|
||||
HeaderSelector $selector = null,
|
||||
$hostIndex = 0
|
||||
int $hostIndex = 0
|
||||
) {
|
||||
$this->client = $client ?: new Client();
|
||||
$this->config = $config ?: new Configuration();
|
||||
@@ -103,7 +105,7 @@ class FormApi
|
||||
*
|
||||
* @param int $hostIndex Host index (required)
|
||||
*/
|
||||
public function setHostIndex($hostIndex): void
|
||||
public function setHostIndex(int $hostIndex): void
|
||||
{
|
||||
$this->hostIndex = $hostIndex;
|
||||
}
|
||||
@@ -113,7 +115,7 @@ class FormApi
|
||||
*
|
||||
* @return int Host index
|
||||
*/
|
||||
public function getHostIndex()
|
||||
public function getHostIndex(): int
|
||||
{
|
||||
return $this->hostIndex;
|
||||
}
|
||||
@@ -121,7 +123,7 @@ class FormApi
|
||||
/**
|
||||
* @return Configuration
|
||||
*/
|
||||
public function getConfig()
|
||||
public function getConfig(): Configuration
|
||||
{
|
||||
return $this->config;
|
||||
}
|
||||
@@ -131,16 +133,21 @@ class FormApi
|
||||
*
|
||||
* Test form parameter(s)
|
||||
*
|
||||
* @param int $integer_form integer_form (optional)
|
||||
* @param bool $boolean_form boolean_form (optional)
|
||||
* @param string $string_form string_form (optional)
|
||||
* @param int|null $integer_form integer_form (optional)
|
||||
* @param bool|null $boolean_form boolean_form (optional)
|
||||
* @param string|null $string_form string_form (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testFormIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testFormIntegerBooleanString($integer_form = null, $boolean_form = null, $string_form = null, string $contentType = self::contentTypes['testFormIntegerBooleanString'][0])
|
||||
public function testFormIntegerBooleanString(
|
||||
?int $integer_form = null,
|
||||
?bool $boolean_form = null,
|
||||
?string $string_form = null,
|
||||
string $contentType = self::contentTypes['testFormIntegerBooleanString'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testFormIntegerBooleanStringWithHttpInfo($integer_form, $boolean_form, $string_form, $contentType);
|
||||
return $response;
|
||||
@@ -151,16 +158,21 @@ class FormApi
|
||||
*
|
||||
* Test form parameter(s)
|
||||
*
|
||||
* @param int $integer_form (optional)
|
||||
* @param bool $boolean_form (optional)
|
||||
* @param string $string_form (optional)
|
||||
* @param int|null $integer_form (optional)
|
||||
* @param bool|null $boolean_form (optional)
|
||||
* @param string|null $string_form (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testFormIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testFormIntegerBooleanStringWithHttpInfo($integer_form = null, $boolean_form = null, $string_form = null, string $contentType = self::contentTypes['testFormIntegerBooleanString'][0])
|
||||
public function testFormIntegerBooleanStringWithHttpInfo(
|
||||
?int $integer_form = null,
|
||||
?bool $boolean_form = null,
|
||||
?string $string_form = null,
|
||||
string $contentType = self::contentTypes['testFormIntegerBooleanString'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testFormIntegerBooleanStringRequest($integer_form, $boolean_form, $string_form, $contentType);
|
||||
|
||||
@@ -253,15 +265,20 @@ class FormApi
|
||||
*
|
||||
* Test form parameter(s)
|
||||
*
|
||||
* @param int $integer_form (optional)
|
||||
* @param bool $boolean_form (optional)
|
||||
* @param string $string_form (optional)
|
||||
* @param int|null $integer_form (optional)
|
||||
* @param bool|null $boolean_form (optional)
|
||||
* @param string|null $string_form (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testFormIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testFormIntegerBooleanStringAsync($integer_form = null, $boolean_form = null, $string_form = null, string $contentType = self::contentTypes['testFormIntegerBooleanString'][0])
|
||||
public function testFormIntegerBooleanStringAsync(
|
||||
?int $integer_form = null,
|
||||
?bool $boolean_form = null,
|
||||
?string $string_form = null,
|
||||
string $contentType = self::contentTypes['testFormIntegerBooleanString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testFormIntegerBooleanStringAsyncWithHttpInfo($integer_form, $boolean_form, $string_form, $contentType)
|
||||
->then(
|
||||
@@ -276,15 +293,20 @@ class FormApi
|
||||
*
|
||||
* Test form parameter(s)
|
||||
*
|
||||
* @param int $integer_form (optional)
|
||||
* @param bool $boolean_form (optional)
|
||||
* @param string $string_form (optional)
|
||||
* @param int|null $integer_form (optional)
|
||||
* @param bool|null $boolean_form (optional)
|
||||
* @param string|null $string_form (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testFormIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testFormIntegerBooleanStringAsyncWithHttpInfo($integer_form = null, $boolean_form = null, $string_form = null, string $contentType = self::contentTypes['testFormIntegerBooleanString'][0])
|
||||
public function testFormIntegerBooleanStringAsyncWithHttpInfo(
|
||||
$integer_form = null,
|
||||
$boolean_form = null,
|
||||
$string_form = null,
|
||||
string $contentType = self::contentTypes['testFormIntegerBooleanString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testFormIntegerBooleanStringRequest($integer_form, $boolean_form, $string_form, $contentType);
|
||||
@@ -328,15 +350,20 @@ class FormApi
|
||||
/**
|
||||
* Create request for operation 'testFormIntegerBooleanString'
|
||||
*
|
||||
* @param int $integer_form (optional)
|
||||
* @param bool $boolean_form (optional)
|
||||
* @param string $string_form (optional)
|
||||
* @param int|null $integer_form (optional)
|
||||
* @param bool|null $boolean_form (optional)
|
||||
* @param string|null $string_form (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testFormIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testFormIntegerBooleanStringRequest($integer_form = null, $boolean_form = null, $string_form = null, string $contentType = self::contentTypes['testFormIntegerBooleanString'][0])
|
||||
public function testFormIntegerBooleanStringRequest(
|
||||
$integer_form = null,
|
||||
$boolean_form = null,
|
||||
$string_form = null,
|
||||
string $contentType = self::contentTypes['testFormIntegerBooleanString'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -424,19 +451,27 @@ class FormApi
|
||||
*
|
||||
* Test form parameter(s) for oneOf schema
|
||||
*
|
||||
* @param string $form1 form1 (optional)
|
||||
* @param int $form2 form2 (optional)
|
||||
* @param string $form3 form3 (optional)
|
||||
* @param bool $form4 form4 (optional)
|
||||
* @param int $id id (optional)
|
||||
* @param string $name name (optional)
|
||||
* @param string|null $form1 form1 (optional)
|
||||
* @param int|null $form2 form2 (optional)
|
||||
* @param string|null $form3 form3 (optional)
|
||||
* @param bool|null $form4 form4 (optional)
|
||||
* @param int|null $id id (optional)
|
||||
* @param string|null $name name (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testFormOneof'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testFormOneof($form1 = null, $form2 = null, $form3 = null, $form4 = null, $id = null, $name = null, string $contentType = self::contentTypes['testFormOneof'][0])
|
||||
public function testFormOneof(
|
||||
?string $form1 = null,
|
||||
?int $form2 = null,
|
||||
?string $form3 = null,
|
||||
?bool $form4 = null,
|
||||
?int $id = null,
|
||||
?string $name = null,
|
||||
string $contentType = self::contentTypes['testFormOneof'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testFormOneofWithHttpInfo($form1, $form2, $form3, $form4, $id, $name, $contentType);
|
||||
return $response;
|
||||
@@ -447,19 +482,27 @@ class FormApi
|
||||
*
|
||||
* Test form parameter(s) for oneOf schema
|
||||
*
|
||||
* @param string $form1 (optional)
|
||||
* @param int $form2 (optional)
|
||||
* @param string $form3 (optional)
|
||||
* @param bool $form4 (optional)
|
||||
* @param int $id (optional)
|
||||
* @param string $name (optional)
|
||||
* @param string|null $form1 (optional)
|
||||
* @param int|null $form2 (optional)
|
||||
* @param string|null $form3 (optional)
|
||||
* @param bool|null $form4 (optional)
|
||||
* @param int|null $id (optional)
|
||||
* @param string|null $name (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testFormOneof'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testFormOneofWithHttpInfo($form1 = null, $form2 = null, $form3 = null, $form4 = null, $id = null, $name = null, string $contentType = self::contentTypes['testFormOneof'][0])
|
||||
public function testFormOneofWithHttpInfo(
|
||||
?string $form1 = null,
|
||||
?int $form2 = null,
|
||||
?string $form3 = null,
|
||||
?bool $form4 = null,
|
||||
?int $id = null,
|
||||
?string $name = null,
|
||||
string $contentType = self::contentTypes['testFormOneof'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testFormOneofRequest($form1, $form2, $form3, $form4, $id, $name, $contentType);
|
||||
|
||||
@@ -552,18 +595,26 @@ class FormApi
|
||||
*
|
||||
* Test form parameter(s) for oneOf schema
|
||||
*
|
||||
* @param string $form1 (optional)
|
||||
* @param int $form2 (optional)
|
||||
* @param string $form3 (optional)
|
||||
* @param bool $form4 (optional)
|
||||
* @param int $id (optional)
|
||||
* @param string $name (optional)
|
||||
* @param string|null $form1 (optional)
|
||||
* @param int|null $form2 (optional)
|
||||
* @param string|null $form3 (optional)
|
||||
* @param bool|null $form4 (optional)
|
||||
* @param int|null $id (optional)
|
||||
* @param string|null $name (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testFormOneof'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testFormOneofAsync($form1 = null, $form2 = null, $form3 = null, $form4 = null, $id = null, $name = null, string $contentType = self::contentTypes['testFormOneof'][0])
|
||||
public function testFormOneofAsync(
|
||||
?string $form1 = null,
|
||||
?int $form2 = null,
|
||||
?string $form3 = null,
|
||||
?bool $form4 = null,
|
||||
?int $id = null,
|
||||
?string $name = null,
|
||||
string $contentType = self::contentTypes['testFormOneof'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testFormOneofAsyncWithHttpInfo($form1, $form2, $form3, $form4, $id, $name, $contentType)
|
||||
->then(
|
||||
@@ -578,18 +629,26 @@ class FormApi
|
||||
*
|
||||
* Test form parameter(s) for oneOf schema
|
||||
*
|
||||
* @param string $form1 (optional)
|
||||
* @param int $form2 (optional)
|
||||
* @param string $form3 (optional)
|
||||
* @param bool $form4 (optional)
|
||||
* @param int $id (optional)
|
||||
* @param string $name (optional)
|
||||
* @param string|null $form1 (optional)
|
||||
* @param int|null $form2 (optional)
|
||||
* @param string|null $form3 (optional)
|
||||
* @param bool|null $form4 (optional)
|
||||
* @param int|null $id (optional)
|
||||
* @param string|null $name (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testFormOneof'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testFormOneofAsyncWithHttpInfo($form1 = null, $form2 = null, $form3 = null, $form4 = null, $id = null, $name = null, string $contentType = self::contentTypes['testFormOneof'][0])
|
||||
public function testFormOneofAsyncWithHttpInfo(
|
||||
$form1 = null,
|
||||
$form2 = null,
|
||||
$form3 = null,
|
||||
$form4 = null,
|
||||
$id = null,
|
||||
$name = null,
|
||||
string $contentType = self::contentTypes['testFormOneof'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testFormOneofRequest($form1, $form2, $form3, $form4, $id, $name, $contentType);
|
||||
@@ -633,18 +692,26 @@ class FormApi
|
||||
/**
|
||||
* Create request for operation 'testFormOneof'
|
||||
*
|
||||
* @param string $form1 (optional)
|
||||
* @param int $form2 (optional)
|
||||
* @param string $form3 (optional)
|
||||
* @param bool $form4 (optional)
|
||||
* @param int $id (optional)
|
||||
* @param string $name (optional)
|
||||
* @param string|null $form1 (optional)
|
||||
* @param int|null $form2 (optional)
|
||||
* @param string|null $form3 (optional)
|
||||
* @param bool|null $form4 (optional)
|
||||
* @param int|null $id (optional)
|
||||
* @param string|null $name (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testFormOneof'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testFormOneofRequest($form1 = null, $form2 = null, $form3 = null, $form4 = null, $id = null, $name = null, string $contentType = self::contentTypes['testFormOneof'][0])
|
||||
public function testFormOneofRequest(
|
||||
$form1 = null,
|
||||
$form2 = null,
|
||||
$form3 = null,
|
||||
$form4 = null,
|
||||
$id = null,
|
||||
$name = null,
|
||||
string $contentType = self::contentTypes['testFormOneof'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -748,7 +815,7 @@ class FormApi
|
||||
* @throws \RuntimeException on file opening failure
|
||||
* @return array of http client options
|
||||
*/
|
||||
protected function createHttpClientOption()
|
||||
protected function createHttpClientOption(): array
|
||||
{
|
||||
$options = [];
|
||||
if ($this->config->getDebug()) {
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
namespace OpenAPI\Client\Api;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\ClientInterface;
|
||||
use GuzzleHttp\Exception\ConnectException;
|
||||
@@ -35,6 +36,7 @@ use GuzzleHttp\Exception\RequestException;
|
||||
use GuzzleHttp\Psr7\MultipartStream;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\RequestOptions;
|
||||
use GuzzleHttp\Promise\PromiseInterface;
|
||||
use OpenAPI\Client\ApiException;
|
||||
use OpenAPI\Client\Configuration;
|
||||
use OpenAPI\Client\HeaderSelector;
|
||||
@@ -53,22 +55,22 @@ class HeaderApi
|
||||
/**
|
||||
* @var ClientInterface
|
||||
*/
|
||||
protected $client;
|
||||
protected ClientInterface $client;
|
||||
|
||||
/**
|
||||
* @var Configuration
|
||||
*/
|
||||
protected $config;
|
||||
protected Configuration $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
protected HeaderSelector $headerSelector;
|
||||
|
||||
/**
|
||||
* @var int Host index
|
||||
*/
|
||||
protected $hostIndex;
|
||||
protected int $hostIndex;
|
||||
|
||||
/** @var string[] $contentTypes **/
|
||||
public const contentTypes = [
|
||||
@@ -77,17 +79,17 @@ class HeaderApi
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
* @param HeaderSelector $selector
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
/**
|
||||
* @param ClientInterface|null $client
|
||||
* @param Configuration|null $config
|
||||
* @param HeaderSelector|null $selector
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
*/
|
||||
public function __construct(
|
||||
ClientInterface $client = null,
|
||||
Configuration $config = null,
|
||||
HeaderSelector $selector = null,
|
||||
$hostIndex = 0
|
||||
int $hostIndex = 0
|
||||
) {
|
||||
$this->client = $client ?: new Client();
|
||||
$this->config = $config ?: new Configuration();
|
||||
@@ -100,7 +102,7 @@ class HeaderApi
|
||||
*
|
||||
* @param int $hostIndex Host index (required)
|
||||
*/
|
||||
public function setHostIndex($hostIndex): void
|
||||
public function setHostIndex(int $hostIndex): void
|
||||
{
|
||||
$this->hostIndex = $hostIndex;
|
||||
}
|
||||
@@ -110,7 +112,7 @@ class HeaderApi
|
||||
*
|
||||
* @return int Host index
|
||||
*/
|
||||
public function getHostIndex()
|
||||
public function getHostIndex(): int
|
||||
{
|
||||
return $this->hostIndex;
|
||||
}
|
||||
@@ -118,7 +120,7 @@ class HeaderApi
|
||||
/**
|
||||
* @return Configuration
|
||||
*/
|
||||
public function getConfig()
|
||||
public function getConfig(): Configuration
|
||||
{
|
||||
return $this->config;
|
||||
}
|
||||
@@ -128,16 +130,21 @@ class HeaderApi
|
||||
*
|
||||
* Test header parameter(s)
|
||||
*
|
||||
* @param int $integer_header integer_header (optional)
|
||||
* @param bool $boolean_header boolean_header (optional)
|
||||
* @param string $string_header string_header (optional)
|
||||
* @param int|null $integer_header integer_header (optional)
|
||||
* @param bool|null $boolean_header boolean_header (optional)
|
||||
* @param string|null $string_header string_header (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testHeaderIntegerBooleanString($integer_header = null, $boolean_header = null, $string_header = null, string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0])
|
||||
public function testHeaderIntegerBooleanString(
|
||||
?int $integer_header = null,
|
||||
?bool $boolean_header = null,
|
||||
?string $string_header = null,
|
||||
string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testHeaderIntegerBooleanStringWithHttpInfo($integer_header, $boolean_header, $string_header, $contentType);
|
||||
return $response;
|
||||
@@ -148,16 +155,21 @@ class HeaderApi
|
||||
*
|
||||
* Test header parameter(s)
|
||||
*
|
||||
* @param int $integer_header (optional)
|
||||
* @param bool $boolean_header (optional)
|
||||
* @param string $string_header (optional)
|
||||
* @param int|null $integer_header (optional)
|
||||
* @param bool|null $boolean_header (optional)
|
||||
* @param string|null $string_header (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testHeaderIntegerBooleanStringWithHttpInfo($integer_header = null, $boolean_header = null, $string_header = null, string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0])
|
||||
public function testHeaderIntegerBooleanStringWithHttpInfo(
|
||||
?int $integer_header = null,
|
||||
?bool $boolean_header = null,
|
||||
?string $string_header = null,
|
||||
string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testHeaderIntegerBooleanStringRequest($integer_header, $boolean_header, $string_header, $contentType);
|
||||
|
||||
@@ -250,15 +262,20 @@ class HeaderApi
|
||||
*
|
||||
* Test header parameter(s)
|
||||
*
|
||||
* @param int $integer_header (optional)
|
||||
* @param bool $boolean_header (optional)
|
||||
* @param string $string_header (optional)
|
||||
* @param int|null $integer_header (optional)
|
||||
* @param bool|null $boolean_header (optional)
|
||||
* @param string|null $string_header (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testHeaderIntegerBooleanStringAsync($integer_header = null, $boolean_header = null, $string_header = null, string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0])
|
||||
public function testHeaderIntegerBooleanStringAsync(
|
||||
?int $integer_header = null,
|
||||
?bool $boolean_header = null,
|
||||
?string $string_header = null,
|
||||
string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testHeaderIntegerBooleanStringAsyncWithHttpInfo($integer_header, $boolean_header, $string_header, $contentType)
|
||||
->then(
|
||||
@@ -273,15 +290,20 @@ class HeaderApi
|
||||
*
|
||||
* Test header parameter(s)
|
||||
*
|
||||
* @param int $integer_header (optional)
|
||||
* @param bool $boolean_header (optional)
|
||||
* @param string $string_header (optional)
|
||||
* @param int|null $integer_header (optional)
|
||||
* @param bool|null $boolean_header (optional)
|
||||
* @param string|null $string_header (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testHeaderIntegerBooleanStringAsyncWithHttpInfo($integer_header = null, $boolean_header = null, $string_header = null, string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0])
|
||||
public function testHeaderIntegerBooleanStringAsyncWithHttpInfo(
|
||||
$integer_header = null,
|
||||
$boolean_header = null,
|
||||
$string_header = null,
|
||||
string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testHeaderIntegerBooleanStringRequest($integer_header, $boolean_header, $string_header, $contentType);
|
||||
@@ -325,15 +347,20 @@ class HeaderApi
|
||||
/**
|
||||
* Create request for operation 'testHeaderIntegerBooleanString'
|
||||
*
|
||||
* @param int $integer_header (optional)
|
||||
* @param bool $boolean_header (optional)
|
||||
* @param string $string_header (optional)
|
||||
* @param int|null $integer_header (optional)
|
||||
* @param bool|null $boolean_header (optional)
|
||||
* @param string|null $string_header (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testHeaderIntegerBooleanStringRequest($integer_header = null, $boolean_header = null, $string_header = null, string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0])
|
||||
public function testHeaderIntegerBooleanStringRequest(
|
||||
$integer_header = null,
|
||||
$boolean_header = null,
|
||||
$string_header = null,
|
||||
string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -422,7 +449,7 @@ class HeaderApi
|
||||
* @throws \RuntimeException on file opening failure
|
||||
* @return array of http client options
|
||||
*/
|
||||
protected function createHttpClientOption()
|
||||
protected function createHttpClientOption(): array
|
||||
{
|
||||
$options = [];
|
||||
if ($this->config->getDebug()) {
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
namespace OpenAPI\Client\Api;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\ClientInterface;
|
||||
use GuzzleHttp\Exception\ConnectException;
|
||||
@@ -35,6 +36,7 @@ use GuzzleHttp\Exception\RequestException;
|
||||
use GuzzleHttp\Psr7\MultipartStream;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\RequestOptions;
|
||||
use GuzzleHttp\Promise\PromiseInterface;
|
||||
use OpenAPI\Client\ApiException;
|
||||
use OpenAPI\Client\Configuration;
|
||||
use OpenAPI\Client\HeaderSelector;
|
||||
@@ -53,22 +55,22 @@ class PathApi
|
||||
/**
|
||||
* @var ClientInterface
|
||||
*/
|
||||
protected $client;
|
||||
protected ClientInterface $client;
|
||||
|
||||
/**
|
||||
* @var Configuration
|
||||
*/
|
||||
protected $config;
|
||||
protected Configuration $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
protected HeaderSelector $headerSelector;
|
||||
|
||||
/**
|
||||
* @var int Host index
|
||||
*/
|
||||
protected $hostIndex;
|
||||
protected int $hostIndex;
|
||||
|
||||
/** @var string[] $contentTypes **/
|
||||
public const contentTypes = [
|
||||
@@ -77,17 +79,17 @@ class PathApi
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
* @param HeaderSelector $selector
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
/**
|
||||
* @param ClientInterface|null $client
|
||||
* @param Configuration|null $config
|
||||
* @param HeaderSelector|null $selector
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
*/
|
||||
public function __construct(
|
||||
ClientInterface $client = null,
|
||||
Configuration $config = null,
|
||||
HeaderSelector $selector = null,
|
||||
$hostIndex = 0
|
||||
int $hostIndex = 0
|
||||
) {
|
||||
$this->client = $client ?: new Client();
|
||||
$this->config = $config ?: new Configuration();
|
||||
@@ -100,7 +102,7 @@ class PathApi
|
||||
*
|
||||
* @param int $hostIndex Host index (required)
|
||||
*/
|
||||
public function setHostIndex($hostIndex): void
|
||||
public function setHostIndex(int $hostIndex): void
|
||||
{
|
||||
$this->hostIndex = $hostIndex;
|
||||
}
|
||||
@@ -110,7 +112,7 @@ class PathApi
|
||||
*
|
||||
* @return int Host index
|
||||
*/
|
||||
public function getHostIndex()
|
||||
public function getHostIndex(): int
|
||||
{
|
||||
return $this->hostIndex;
|
||||
}
|
||||
@@ -118,7 +120,7 @@ class PathApi
|
||||
/**
|
||||
* @return Configuration
|
||||
*/
|
||||
public function getConfig()
|
||||
public function getConfig(): Configuration
|
||||
{
|
||||
return $this->config;
|
||||
}
|
||||
@@ -132,11 +134,15 @@ class PathApi
|
||||
* @param int $path_integer path_integer (required)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathInteger'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testsPathStringPathStringIntegerPathInteger($path_string, $path_integer, string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0])
|
||||
public function testsPathStringPathStringIntegerPathInteger(
|
||||
string $path_string,
|
||||
int $path_integer,
|
||||
string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testsPathStringPathStringIntegerPathIntegerWithHttpInfo($path_string, $path_integer, $contentType);
|
||||
return $response;
|
||||
@@ -151,11 +157,15 @@ class PathApi
|
||||
* @param int $path_integer (required)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathInteger'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testsPathStringPathStringIntegerPathIntegerWithHttpInfo($path_string, $path_integer, string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0])
|
||||
public function testsPathStringPathStringIntegerPathIntegerWithHttpInfo(
|
||||
string $path_string,
|
||||
int $path_integer,
|
||||
string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testsPathStringPathStringIntegerPathIntegerRequest($path_string, $path_integer, $contentType);
|
||||
|
||||
@@ -252,10 +262,14 @@ class PathApi
|
||||
* @param int $path_integer (required)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathInteger'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testsPathStringPathStringIntegerPathIntegerAsync($path_string, $path_integer, string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0])
|
||||
public function testsPathStringPathStringIntegerPathIntegerAsync(
|
||||
string $path_string,
|
||||
int $path_integer,
|
||||
string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testsPathStringPathStringIntegerPathIntegerAsyncWithHttpInfo($path_string, $path_integer, $contentType)
|
||||
->then(
|
||||
@@ -274,10 +288,14 @@ class PathApi
|
||||
* @param int $path_integer (required)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathInteger'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testsPathStringPathStringIntegerPathIntegerAsyncWithHttpInfo($path_string, $path_integer, string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0])
|
||||
public function testsPathStringPathStringIntegerPathIntegerAsyncWithHttpInfo(
|
||||
$path_string,
|
||||
$path_integer,
|
||||
string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testsPathStringPathStringIntegerPathIntegerRequest($path_string, $path_integer, $contentType);
|
||||
@@ -325,22 +343,26 @@ class PathApi
|
||||
* @param int $path_integer (required)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathInteger'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testsPathStringPathStringIntegerPathIntegerRequest($path_string, $path_integer, string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0])
|
||||
public function testsPathStringPathStringIntegerPathIntegerRequest(
|
||||
$path_string,
|
||||
$path_integer,
|
||||
string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
// verify the required parameter 'path_string' is set
|
||||
if ($path_string === null || (is_array($path_string) && count($path_string) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
throw new InvalidArgumentException(
|
||||
'Missing the required parameter $path_string when calling testsPathStringPathStringIntegerPathInteger'
|
||||
);
|
||||
}
|
||||
|
||||
// verify the required parameter 'path_integer' is set
|
||||
if ($path_integer === null || (is_array($path_integer) && count($path_integer) === 0)) {
|
||||
throw new \InvalidArgumentException(
|
||||
throw new InvalidArgumentException(
|
||||
'Missing the required parameter $path_integer when calling testsPathStringPathStringIntegerPathInteger'
|
||||
);
|
||||
}
|
||||
@@ -432,7 +454,7 @@ class PathApi
|
||||
* @throws \RuntimeException on file opening failure
|
||||
* @return array of http client options
|
||||
*/
|
||||
protected function createHttpClientOption()
|
||||
protected function createHttpClientOption(): array
|
||||
{
|
||||
$options = [];
|
||||
if ($this->config->getDebug()) {
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
namespace OpenAPI\Client\Api;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\ClientInterface;
|
||||
use GuzzleHttp\Exception\ConnectException;
|
||||
@@ -35,6 +36,7 @@ use GuzzleHttp\Exception\RequestException;
|
||||
use GuzzleHttp\Psr7\MultipartStream;
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\RequestOptions;
|
||||
use GuzzleHttp\Promise\PromiseInterface;
|
||||
use OpenAPI\Client\ApiException;
|
||||
use OpenAPI\Client\Configuration;
|
||||
use OpenAPI\Client\HeaderSelector;
|
||||
@@ -53,22 +55,22 @@ class QueryApi
|
||||
/**
|
||||
* @var ClientInterface
|
||||
*/
|
||||
protected $client;
|
||||
protected ClientInterface $client;
|
||||
|
||||
/**
|
||||
* @var Configuration
|
||||
*/
|
||||
protected $config;
|
||||
protected Configuration $config;
|
||||
|
||||
/**
|
||||
* @var HeaderSelector
|
||||
*/
|
||||
protected $headerSelector;
|
||||
protected HeaderSelector $headerSelector;
|
||||
|
||||
/**
|
||||
* @var int Host index
|
||||
*/
|
||||
protected $hostIndex;
|
||||
protected int $hostIndex;
|
||||
|
||||
/** @var string[] $contentTypes **/
|
||||
public const contentTypes = [
|
||||
@@ -98,17 +100,17 @@ class QueryApi
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client
|
||||
* @param Configuration $config
|
||||
* @param HeaderSelector $selector
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
/**
|
||||
* @param ClientInterface|null $client
|
||||
* @param Configuration|null $config
|
||||
* @param HeaderSelector|null $selector
|
||||
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
|
||||
*/
|
||||
public function __construct(
|
||||
ClientInterface $client = null,
|
||||
Configuration $config = null,
|
||||
HeaderSelector $selector = null,
|
||||
$hostIndex = 0
|
||||
int $hostIndex = 0
|
||||
) {
|
||||
$this->client = $client ?: new Client();
|
||||
$this->config = $config ?: new Configuration();
|
||||
@@ -121,7 +123,7 @@ class QueryApi
|
||||
*
|
||||
* @param int $hostIndex Host index (required)
|
||||
*/
|
||||
public function setHostIndex($hostIndex): void
|
||||
public function setHostIndex(int $hostIndex): void
|
||||
{
|
||||
$this->hostIndex = $hostIndex;
|
||||
}
|
||||
@@ -131,7 +133,7 @@ class QueryApi
|
||||
*
|
||||
* @return int Host index
|
||||
*/
|
||||
public function getHostIndex()
|
||||
public function getHostIndex(): int
|
||||
{
|
||||
return $this->hostIndex;
|
||||
}
|
||||
@@ -139,7 +141,7 @@ class QueryApi
|
||||
/**
|
||||
* @return Configuration
|
||||
*/
|
||||
public function getConfig()
|
||||
public function getConfig(): Configuration
|
||||
{
|
||||
return $this->config;
|
||||
}
|
||||
@@ -149,14 +151,17 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param StringEnumRef $enum_ref_string_query enum_ref_string_query (optional)
|
||||
* @param StringEnumRef|null $enum_ref_string_query enum_ref_string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumRefString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testEnumRefString($enum_ref_string_query = null, string $contentType = self::contentTypes['testEnumRefString'][0])
|
||||
public function testEnumRefString(
|
||||
?StringEnumRef $enum_ref_string_query = null,
|
||||
string $contentType = self::contentTypes['testEnumRefString'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testEnumRefStringWithHttpInfo($enum_ref_string_query, $contentType);
|
||||
return $response;
|
||||
@@ -167,14 +172,17 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param StringEnumRef $enum_ref_string_query (optional)
|
||||
* @param StringEnumRef|null $enum_ref_string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumRefString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testEnumRefStringWithHttpInfo($enum_ref_string_query = null, string $contentType = self::contentTypes['testEnumRefString'][0])
|
||||
public function testEnumRefStringWithHttpInfo(
|
||||
?StringEnumRef $enum_ref_string_query = null,
|
||||
string $contentType = self::contentTypes['testEnumRefString'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testEnumRefStringRequest($enum_ref_string_query, $contentType);
|
||||
|
||||
@@ -267,13 +275,16 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param StringEnumRef $enum_ref_string_query (optional)
|
||||
* @param StringEnumRef|null $enum_ref_string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumRefString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testEnumRefStringAsync($enum_ref_string_query = null, string $contentType = self::contentTypes['testEnumRefString'][0])
|
||||
public function testEnumRefStringAsync(
|
||||
?StringEnumRef $enum_ref_string_query = null,
|
||||
string $contentType = self::contentTypes['testEnumRefString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testEnumRefStringAsyncWithHttpInfo($enum_ref_string_query, $contentType)
|
||||
->then(
|
||||
@@ -288,13 +299,16 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param StringEnumRef $enum_ref_string_query (optional)
|
||||
* @param StringEnumRef|null $enum_ref_string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumRefString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testEnumRefStringAsyncWithHttpInfo($enum_ref_string_query = null, string $contentType = self::contentTypes['testEnumRefString'][0])
|
||||
public function testEnumRefStringAsyncWithHttpInfo(
|
||||
$enum_ref_string_query = null,
|
||||
string $contentType = self::contentTypes['testEnumRefString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testEnumRefStringRequest($enum_ref_string_query, $contentType);
|
||||
@@ -338,13 +352,16 @@ class QueryApi
|
||||
/**
|
||||
* Create request for operation 'testEnumRefString'
|
||||
*
|
||||
* @param StringEnumRef $enum_ref_string_query (optional)
|
||||
* @param StringEnumRef|null $enum_ref_string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumRefString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testEnumRefStringRequest($enum_ref_string_query = null, string $contentType = self::contentTypes['testEnumRefString'][0])
|
||||
public function testEnumRefStringRequest(
|
||||
$enum_ref_string_query = null,
|
||||
string $contentType = self::contentTypes['testEnumRefString'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -427,16 +444,21 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param \DateTime $datetime_query datetime_query (optional)
|
||||
* @param \DateTime $date_query date_query (optional)
|
||||
* @param string $string_query string_query (optional)
|
||||
* @param \DateTime|null $datetime_query datetime_query (optional)
|
||||
* @param \DateTime|null $date_query date_query (optional)
|
||||
* @param string|null $string_query string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryDatetimeDateString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testQueryDatetimeDateString($datetime_query = null, $date_query = null, $string_query = null, string $contentType = self::contentTypes['testQueryDatetimeDateString'][0])
|
||||
public function testQueryDatetimeDateString(
|
||||
?\DateTime $datetime_query = null,
|
||||
?\DateTime $date_query = null,
|
||||
?string $string_query = null,
|
||||
string $contentType = self::contentTypes['testQueryDatetimeDateString'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testQueryDatetimeDateStringWithHttpInfo($datetime_query, $date_query, $string_query, $contentType);
|
||||
return $response;
|
||||
@@ -447,16 +469,21 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param \DateTime $datetime_query (optional)
|
||||
* @param \DateTime $date_query (optional)
|
||||
* @param string $string_query (optional)
|
||||
* @param \DateTime|null $datetime_query (optional)
|
||||
* @param \DateTime|null $date_query (optional)
|
||||
* @param string|null $string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryDatetimeDateString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testQueryDatetimeDateStringWithHttpInfo($datetime_query = null, $date_query = null, $string_query = null, string $contentType = self::contentTypes['testQueryDatetimeDateString'][0])
|
||||
public function testQueryDatetimeDateStringWithHttpInfo(
|
||||
?\DateTime $datetime_query = null,
|
||||
?\DateTime $date_query = null,
|
||||
?string $string_query = null,
|
||||
string $contentType = self::contentTypes['testQueryDatetimeDateString'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testQueryDatetimeDateStringRequest($datetime_query, $date_query, $string_query, $contentType);
|
||||
|
||||
@@ -549,15 +576,20 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param \DateTime $datetime_query (optional)
|
||||
* @param \DateTime $date_query (optional)
|
||||
* @param string $string_query (optional)
|
||||
* @param \DateTime|null $datetime_query (optional)
|
||||
* @param \DateTime|null $date_query (optional)
|
||||
* @param string|null $string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryDatetimeDateString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryDatetimeDateStringAsync($datetime_query = null, $date_query = null, $string_query = null, string $contentType = self::contentTypes['testQueryDatetimeDateString'][0])
|
||||
public function testQueryDatetimeDateStringAsync(
|
||||
?\DateTime $datetime_query = null,
|
||||
?\DateTime $date_query = null,
|
||||
?string $string_query = null,
|
||||
string $contentType = self::contentTypes['testQueryDatetimeDateString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testQueryDatetimeDateStringAsyncWithHttpInfo($datetime_query, $date_query, $string_query, $contentType)
|
||||
->then(
|
||||
@@ -572,15 +604,20 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param \DateTime $datetime_query (optional)
|
||||
* @param \DateTime $date_query (optional)
|
||||
* @param string $string_query (optional)
|
||||
* @param \DateTime|null $datetime_query (optional)
|
||||
* @param \DateTime|null $date_query (optional)
|
||||
* @param string|null $string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryDatetimeDateString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryDatetimeDateStringAsyncWithHttpInfo($datetime_query = null, $date_query = null, $string_query = null, string $contentType = self::contentTypes['testQueryDatetimeDateString'][0])
|
||||
public function testQueryDatetimeDateStringAsyncWithHttpInfo(
|
||||
$datetime_query = null,
|
||||
$date_query = null,
|
||||
$string_query = null,
|
||||
string $contentType = self::contentTypes['testQueryDatetimeDateString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testQueryDatetimeDateStringRequest($datetime_query, $date_query, $string_query, $contentType);
|
||||
@@ -624,15 +661,20 @@ class QueryApi
|
||||
/**
|
||||
* Create request for operation 'testQueryDatetimeDateString'
|
||||
*
|
||||
* @param \DateTime $datetime_query (optional)
|
||||
* @param \DateTime $date_query (optional)
|
||||
* @param string $string_query (optional)
|
||||
* @param \DateTime|null $datetime_query (optional)
|
||||
* @param \DateTime|null $date_query (optional)
|
||||
* @param string|null $string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryDatetimeDateString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testQueryDatetimeDateStringRequest($datetime_query = null, $date_query = null, $string_query = null, string $contentType = self::contentTypes['testQueryDatetimeDateString'][0])
|
||||
public function testQueryDatetimeDateStringRequest(
|
||||
$datetime_query = null,
|
||||
$date_query = null,
|
||||
$string_query = null,
|
||||
string $contentType = self::contentTypes['testQueryDatetimeDateString'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -735,16 +777,21 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param int $integer_query integer_query (optional)
|
||||
* @param bool $boolean_query boolean_query (optional)
|
||||
* @param string $string_query string_query (optional)
|
||||
* @param int|null $integer_query integer_query (optional)
|
||||
* @param bool|null $boolean_query boolean_query (optional)
|
||||
* @param string|null $string_query string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testQueryIntegerBooleanString($integer_query = null, $boolean_query = null, $string_query = null, string $contentType = self::contentTypes['testQueryIntegerBooleanString'][0])
|
||||
public function testQueryIntegerBooleanString(
|
||||
?int $integer_query = null,
|
||||
?bool $boolean_query = null,
|
||||
?string $string_query = null,
|
||||
string $contentType = self::contentTypes['testQueryIntegerBooleanString'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testQueryIntegerBooleanStringWithHttpInfo($integer_query, $boolean_query, $string_query, $contentType);
|
||||
return $response;
|
||||
@@ -755,16 +802,21 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param int $integer_query (optional)
|
||||
* @param bool $boolean_query (optional)
|
||||
* @param string $string_query (optional)
|
||||
* @param int|null $integer_query (optional)
|
||||
* @param bool|null $boolean_query (optional)
|
||||
* @param string|null $string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testQueryIntegerBooleanStringWithHttpInfo($integer_query = null, $boolean_query = null, $string_query = null, string $contentType = self::contentTypes['testQueryIntegerBooleanString'][0])
|
||||
public function testQueryIntegerBooleanStringWithHttpInfo(
|
||||
?int $integer_query = null,
|
||||
?bool $boolean_query = null,
|
||||
?string $string_query = null,
|
||||
string $contentType = self::contentTypes['testQueryIntegerBooleanString'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testQueryIntegerBooleanStringRequest($integer_query, $boolean_query, $string_query, $contentType);
|
||||
|
||||
@@ -857,15 +909,20 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param int $integer_query (optional)
|
||||
* @param bool $boolean_query (optional)
|
||||
* @param string $string_query (optional)
|
||||
* @param int|null $integer_query (optional)
|
||||
* @param bool|null $boolean_query (optional)
|
||||
* @param string|null $string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryIntegerBooleanStringAsync($integer_query = null, $boolean_query = null, $string_query = null, string $contentType = self::contentTypes['testQueryIntegerBooleanString'][0])
|
||||
public function testQueryIntegerBooleanStringAsync(
|
||||
?int $integer_query = null,
|
||||
?bool $boolean_query = null,
|
||||
?string $string_query = null,
|
||||
string $contentType = self::contentTypes['testQueryIntegerBooleanString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testQueryIntegerBooleanStringAsyncWithHttpInfo($integer_query, $boolean_query, $string_query, $contentType)
|
||||
->then(
|
||||
@@ -880,15 +937,20 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param int $integer_query (optional)
|
||||
* @param bool $boolean_query (optional)
|
||||
* @param string $string_query (optional)
|
||||
* @param int|null $integer_query (optional)
|
||||
* @param bool|null $boolean_query (optional)
|
||||
* @param string|null $string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryIntegerBooleanStringAsyncWithHttpInfo($integer_query = null, $boolean_query = null, $string_query = null, string $contentType = self::contentTypes['testQueryIntegerBooleanString'][0])
|
||||
public function testQueryIntegerBooleanStringAsyncWithHttpInfo(
|
||||
$integer_query = null,
|
||||
$boolean_query = null,
|
||||
$string_query = null,
|
||||
string $contentType = self::contentTypes['testQueryIntegerBooleanString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testQueryIntegerBooleanStringRequest($integer_query, $boolean_query, $string_query, $contentType);
|
||||
@@ -932,15 +994,20 @@ class QueryApi
|
||||
/**
|
||||
* Create request for operation 'testQueryIntegerBooleanString'
|
||||
*
|
||||
* @param int $integer_query (optional)
|
||||
* @param bool $boolean_query (optional)
|
||||
* @param string $string_query (optional)
|
||||
* @param int|null $integer_query (optional)
|
||||
* @param bool|null $boolean_query (optional)
|
||||
* @param string|null $string_query (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryIntegerBooleanString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testQueryIntegerBooleanStringRequest($integer_query = null, $boolean_query = null, $string_query = null, string $contentType = self::contentTypes['testQueryIntegerBooleanString'][0])
|
||||
public function testQueryIntegerBooleanStringRequest(
|
||||
$integer_query = null,
|
||||
$boolean_query = null,
|
||||
$string_query = null,
|
||||
string $contentType = self::contentTypes['testQueryIntegerBooleanString'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -1043,14 +1110,17 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param Pet $query_object query_object (optional)
|
||||
* @param Pet|null $query_object query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testQueryStyleDeepObjectExplodeTrueObject($query_object = null, string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'][0])
|
||||
public function testQueryStyleDeepObjectExplodeTrueObject(
|
||||
?Pet $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo($query_object, $contentType);
|
||||
return $response;
|
||||
@@ -1061,14 +1131,17 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param Pet $query_object (optional)
|
||||
* @param Pet|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo($query_object = null, string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'][0])
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(
|
||||
?Pet $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testQueryStyleDeepObjectExplodeTrueObjectRequest($query_object, $contentType);
|
||||
|
||||
@@ -1161,13 +1234,16 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param Pet $query_object (optional)
|
||||
* @param Pet|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAsync($query_object = null, string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'][0])
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAsync(
|
||||
?Pet $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testQueryStyleDeepObjectExplodeTrueObjectAsyncWithHttpInfo($query_object, $contentType)
|
||||
->then(
|
||||
@@ -1182,13 +1258,16 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param Pet $query_object (optional)
|
||||
* @param Pet|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAsyncWithHttpInfo($query_object = null, string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'][0])
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAsyncWithHttpInfo(
|
||||
$query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testQueryStyleDeepObjectExplodeTrueObjectRequest($query_object, $contentType);
|
||||
@@ -1232,13 +1311,16 @@ class QueryApi
|
||||
/**
|
||||
* Create request for operation 'testQueryStyleDeepObjectExplodeTrueObject'
|
||||
*
|
||||
* @param Pet $query_object (optional)
|
||||
* @param Pet|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectRequest($query_object = null, string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'][0])
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectRequest(
|
||||
$query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObject'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -1321,14 +1403,17 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter $query_object query_object (optional)
|
||||
* @param TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter|null $query_object query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAllOf($query_object = null, string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'][0])
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAllOf(
|
||||
?TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo($query_object, $contentType);
|
||||
return $response;
|
||||
@@ -1339,14 +1424,17 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter $query_object (optional)
|
||||
* @param TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo($query_object = null, string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'][0])
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(
|
||||
?TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testQueryStyleDeepObjectExplodeTrueObjectAllOfRequest($query_object, $contentType);
|
||||
|
||||
@@ -1439,13 +1527,16 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter $query_object (optional)
|
||||
* @param TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAllOfAsync($query_object = null, string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'][0])
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAllOfAsync(
|
||||
?TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testQueryStyleDeepObjectExplodeTrueObjectAllOfAsyncWithHttpInfo($query_object, $contentType)
|
||||
->then(
|
||||
@@ -1460,13 +1551,16 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter $query_object (optional)
|
||||
* @param TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAllOfAsyncWithHttpInfo($query_object = null, string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'][0])
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAllOfAsyncWithHttpInfo(
|
||||
$query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testQueryStyleDeepObjectExplodeTrueObjectAllOfRequest($query_object, $contentType);
|
||||
@@ -1510,13 +1604,16 @@ class QueryApi
|
||||
/**
|
||||
* Create request for operation 'testQueryStyleDeepObjectExplodeTrueObjectAllOf'
|
||||
*
|
||||
* @param TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter $query_object (optional)
|
||||
* @param TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAllOfRequest($query_object = null, string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'][0])
|
||||
public function testQueryStyleDeepObjectExplodeTrueObjectAllOfRequest(
|
||||
$query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleDeepObjectExplodeTrueObjectAllOf'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -1599,14 +1696,17 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter $query_object query_object (optional)
|
||||
* @param TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter|null $query_object query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueArrayString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueArrayString($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueArrayString'][0])
|
||||
public function testQueryStyleFormExplodeTrueArrayString(
|
||||
?TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueArrayString'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testQueryStyleFormExplodeTrueArrayStringWithHttpInfo($query_object, $contentType);
|
||||
return $response;
|
||||
@@ -1617,14 +1717,17 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter $query_object (optional)
|
||||
* @param TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueArrayString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueArrayStringWithHttpInfo($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueArrayString'][0])
|
||||
public function testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(
|
||||
?TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueArrayString'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testQueryStyleFormExplodeTrueArrayStringRequest($query_object, $contentType);
|
||||
|
||||
@@ -1717,13 +1820,16 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter $query_object (optional)
|
||||
* @param TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueArrayString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueArrayStringAsync($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueArrayString'][0])
|
||||
public function testQueryStyleFormExplodeTrueArrayStringAsync(
|
||||
?TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueArrayString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testQueryStyleFormExplodeTrueArrayStringAsyncWithHttpInfo($query_object, $contentType)
|
||||
->then(
|
||||
@@ -1738,13 +1844,16 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter $query_object (optional)
|
||||
* @param TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueArrayString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueArrayStringAsyncWithHttpInfo($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueArrayString'][0])
|
||||
public function testQueryStyleFormExplodeTrueArrayStringAsyncWithHttpInfo(
|
||||
$query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueArrayString'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testQueryStyleFormExplodeTrueArrayStringRequest($query_object, $contentType);
|
||||
@@ -1788,13 +1897,16 @@ class QueryApi
|
||||
/**
|
||||
* Create request for operation 'testQueryStyleFormExplodeTrueArrayString'
|
||||
*
|
||||
* @param TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter $query_object (optional)
|
||||
* @param TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueArrayString'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueArrayStringRequest($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueArrayString'][0])
|
||||
public function testQueryStyleFormExplodeTrueArrayStringRequest(
|
||||
$query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueArrayString'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -1877,14 +1989,17 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param Pet $query_object query_object (optional)
|
||||
* @param Pet|null $query_object query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueObject'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueObject($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObject'][0])
|
||||
public function testQueryStyleFormExplodeTrueObject(
|
||||
?Pet $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObject'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testQueryStyleFormExplodeTrueObjectWithHttpInfo($query_object, $contentType);
|
||||
return $response;
|
||||
@@ -1895,14 +2010,17 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param Pet $query_object (optional)
|
||||
* @param Pet|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueObject'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueObjectWithHttpInfo($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObject'][0])
|
||||
public function testQueryStyleFormExplodeTrueObjectWithHttpInfo(
|
||||
?Pet $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObject'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testQueryStyleFormExplodeTrueObjectRequest($query_object, $contentType);
|
||||
|
||||
@@ -1995,13 +2113,16 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param Pet $query_object (optional)
|
||||
* @param Pet|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueObject'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueObjectAsync($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObject'][0])
|
||||
public function testQueryStyleFormExplodeTrueObjectAsync(
|
||||
?Pet $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObject'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testQueryStyleFormExplodeTrueObjectAsyncWithHttpInfo($query_object, $contentType)
|
||||
->then(
|
||||
@@ -2016,13 +2137,16 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param Pet $query_object (optional)
|
||||
* @param Pet|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueObject'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueObjectAsyncWithHttpInfo($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObject'][0])
|
||||
public function testQueryStyleFormExplodeTrueObjectAsyncWithHttpInfo(
|
||||
$query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObject'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testQueryStyleFormExplodeTrueObjectRequest($query_object, $contentType);
|
||||
@@ -2066,13 +2190,16 @@ class QueryApi
|
||||
/**
|
||||
* Create request for operation 'testQueryStyleFormExplodeTrueObject'
|
||||
*
|
||||
* @param Pet $query_object (optional)
|
||||
* @param Pet|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueObject'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueObjectRequest($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObject'][0])
|
||||
public function testQueryStyleFormExplodeTrueObjectRequest(
|
||||
$query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObject'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -2155,14 +2282,17 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param DataQuery $query_object query_object (optional)
|
||||
* @param DataQuery|null $query_object query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return string
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueObjectAllOf($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'][0])
|
||||
public function testQueryStyleFormExplodeTrueObjectAllOf(
|
||||
?DataQuery $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'][0]
|
||||
): string
|
||||
{
|
||||
list($response) = $this->testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo($query_object, $contentType);
|
||||
return $response;
|
||||
@@ -2173,14 +2303,17 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param DataQuery $query_object (optional)
|
||||
* @param DataQuery|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \OpenAPI\Client\ApiException on non-2xx response
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws ApiException on non-2xx response
|
||||
* @throws InvalidArgumentException
|
||||
* @return array of string, HTTP status code, HTTP response headers (array of strings)
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'][0])
|
||||
public function testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(
|
||||
?DataQuery $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'][0]
|
||||
): array
|
||||
{
|
||||
$request = $this->testQueryStyleFormExplodeTrueObjectAllOfRequest($query_object, $contentType);
|
||||
|
||||
@@ -2273,13 +2406,16 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param DataQuery $query_object (optional)
|
||||
* @param DataQuery|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueObjectAllOfAsync($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'][0])
|
||||
public function testQueryStyleFormExplodeTrueObjectAllOfAsync(
|
||||
?DataQuery $query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
return $this->testQueryStyleFormExplodeTrueObjectAllOfAsyncWithHttpInfo($query_object, $contentType)
|
||||
->then(
|
||||
@@ -2294,13 +2430,16 @@ class QueryApi
|
||||
*
|
||||
* Test query parameter(s)
|
||||
*
|
||||
* @param DataQuery $query_object (optional)
|
||||
* @param DataQuery|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||
* @throws InvalidArgumentException
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueObjectAllOfAsyncWithHttpInfo($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'][0])
|
||||
public function testQueryStyleFormExplodeTrueObjectAllOfAsyncWithHttpInfo(
|
||||
$query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'][0]
|
||||
): PromiseInterface
|
||||
{
|
||||
$returnType = 'string';
|
||||
$request = $this->testQueryStyleFormExplodeTrueObjectAllOfRequest($query_object, $contentType);
|
||||
@@ -2344,13 +2483,16 @@ class QueryApi
|
||||
/**
|
||||
* Create request for operation 'testQueryStyleFormExplodeTrueObjectAllOf'
|
||||
*
|
||||
* @param DataQuery $query_object (optional)
|
||||
* @param DataQuery|null $query_object (optional)
|
||||
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'] to see the possible values for this operation
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
* @throws InvalidArgumentException
|
||||
* @return \GuzzleHttp\Psr7\Request
|
||||
*/
|
||||
public function testQueryStyleFormExplodeTrueObjectAllOfRequest($query_object = null, string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'][0])
|
||||
public function testQueryStyleFormExplodeTrueObjectAllOfRequest(
|
||||
$query_object = null,
|
||||
string $contentType = self::contentTypes['testQueryStyleFormExplodeTrueObjectAllOf'][0]
|
||||
): Request
|
||||
{
|
||||
|
||||
|
||||
@@ -2434,7 +2576,7 @@ class QueryApi
|
||||
* @throws \RuntimeException on file opening failure
|
||||
* @return array of http client options
|
||||
*/
|
||||
protected function createHttpClientOption()
|
||||
protected function createHttpClientOption(): array
|
||||
{
|
||||
$options = [];
|
||||
if ($this->config->getDebug()) {
|
||||
|
||||
Reference in New Issue
Block a user