From c55b73bc6a51f84de5d9af27a46229d0037a0a1e Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Tue, 20 Aug 2024 08:01:16 +0200 Subject: [PATCH] Fix parameters. --- lib/Api/AppsApi.php | 768 +++++++++++++++--------------------- lib/Api/AssetsApi.php | 432 +++++++++----------- lib/Api/BackupsApi.php | 96 ++--- lib/Api/ContentsApi.php | 624 ++++++++++++----------------- lib/Api/HistoryApi.php | 24 +- lib/Api/JobsApi.php | 48 +-- lib/Api/PingApi.php | 24 +- lib/Api/PlansApi.php | 48 +-- lib/Api/RulesApi.php | 384 ++++++++---------- lib/Api/SchemasApi.php | 744 +++++++++++++++------------------- lib/Api/SearchApi.php | 24 +- lib/Api/StatisticsApi.php | 96 ++--- lib/Api/TranslationsApi.php | 24 +- openapi.json | 417 +++++++++++++------- 14 files changed, 1668 insertions(+), 2085 deletions(-) diff --git a/lib/Api/AppsApi.php b/lib/Api/AppsApi.php index 2a3a64f..9ff3299 100644 --- a/lib/Api/AppsApi.php +++ b/lib/Api/AppsApi.php @@ -226,16 +226,15 @@ public function getConfig() * * Get the app asset scripts. * - * @param string $app The name of the app to get the asset scripts for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetScripts'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetScriptsDto|\Squidex\Client\Model\ErrorDto */ - public function getAssetScripts($app, string $contentType = self::contentTypes['getAssetScripts'][0]) + public function getAssetScripts(string $contentType = self::contentTypes['getAssetScripts'][0]) { - list($response) = $this->getAssetScriptsWithHttpInfo($app, $contentType); + list($response) = $this->getAssetScriptsWithHttpInfo($contentType); return $response; } @@ -244,16 +243,15 @@ public function getAssetScripts($app, string $contentType = self::contentTypes[' * * Get the app asset scripts. * - * @param string $app The name of the app to get the asset scripts for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetScripts'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetScriptsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetScriptsWithHttpInfo($app, string $contentType = self::contentTypes['getAssetScripts'][0]) + public function getAssetScriptsWithHttpInfo(string $contentType = self::contentTypes['getAssetScripts'][0]) { - $request = $this->getAssetScriptsRequest($app, $contentType); + $request = $this->getAssetScriptsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -367,15 +365,14 @@ public function getAssetScriptsWithHttpInfo($app, string $contentType = self::co * * Get the app asset scripts. * - * @param string $app The name of the app to get the asset scripts for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetScripts'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetScriptsAsync($app, string $contentType = self::contentTypes['getAssetScripts'][0]) + public function getAssetScriptsAsync(string $contentType = self::contentTypes['getAssetScripts'][0]) { - return $this->getAssetScriptsAsyncWithHttpInfo($app, $contentType) + return $this->getAssetScriptsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -388,16 +385,15 @@ function ($response) { * * Get the app asset scripts. * - * @param string $app The name of the app to get the asset scripts for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetScripts'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetScriptsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getAssetScripts'][0]) + public function getAssetScriptsAsyncWithHttpInfo(string $contentType = self::contentTypes['getAssetScripts'][0]) { $returnType = '\Squidex\Client\Model\AssetScriptsDto'; - $request = $this->getAssetScriptsRequest($app, $contentType); + $request = $this->getAssetScriptsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -438,16 +434,16 @@ function ($exception) { /** * Create request for operation 'getAssetScripts' * - * @param string $app The name of the app to get the asset scripts for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetScripts'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAssetScriptsRequest($app, string $contentType = self::contentTypes['getAssetScripts'][0]) + public function getAssetScriptsRequest(string $contentType = self::contentTypes['getAssetScripts'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -532,7 +528,6 @@ public function getAssetScriptsRequest($app, string $contentType = self::content * * Update the asset scripts. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAssetScriptsDto $update_asset_scripts_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetScripts'] to see the possible values for this operation * @@ -540,9 +535,9 @@ public function getAssetScriptsRequest($app, string $contentType = self::content * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetScriptsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAssetScripts($app, $update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) + public function putAssetScripts($update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) { - list($response) = $this->putAssetScriptsWithHttpInfo($app, $update_asset_scripts_dto, $contentType); + list($response) = $this->putAssetScriptsWithHttpInfo($update_asset_scripts_dto, $contentType); return $response; } @@ -551,7 +546,6 @@ public function putAssetScripts($app, $update_asset_scripts_dto, string $content * * Update the asset scripts. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAssetScriptsDto $update_asset_scripts_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetScripts'] to see the possible values for this operation * @@ -559,9 +553,9 @@ public function putAssetScripts($app, $update_asset_scripts_dto, string $content * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetScriptsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAssetScriptsWithHttpInfo($app, $update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) + public function putAssetScriptsWithHttpInfo($update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) { - $request = $this->putAssetScriptsRequest($app, $update_asset_scripts_dto, $contentType); + $request = $this->putAssetScriptsRequest($update_asset_scripts_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -698,16 +692,15 @@ public function putAssetScriptsWithHttpInfo($app, $update_asset_scripts_dto, str * * Update the asset scripts. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAssetScriptsDto $update_asset_scripts_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetScripts'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetScriptsAsync($app, $update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) + public function putAssetScriptsAsync($update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) { - return $this->putAssetScriptsAsyncWithHttpInfo($app, $update_asset_scripts_dto, $contentType) + return $this->putAssetScriptsAsyncWithHttpInfo($update_asset_scripts_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -720,17 +713,16 @@ function ($response) { * * Update the asset scripts. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAssetScriptsDto $update_asset_scripts_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetScripts'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetScriptsAsyncWithHttpInfo($app, $update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) + public function putAssetScriptsAsyncWithHttpInfo($update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) { $returnType = '\Squidex\Client\Model\AssetScriptsDto'; - $request = $this->putAssetScriptsRequest($app, $update_asset_scripts_dto, $contentType); + $request = $this->putAssetScriptsRequest($update_asset_scripts_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -771,17 +763,17 @@ function ($exception) { /** * Create request for operation 'putAssetScripts' * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAssetScriptsDto $update_asset_scripts_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetScripts'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAssetScriptsRequest($app, $update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) + public function putAssetScriptsRequest($update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -880,7 +872,6 @@ public function putAssetScriptsRequest($app, $update_asset_scripts_dto, string $ * * Revoke an app client. * - * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteClient'] to see the possible values for this operation * @@ -888,9 +879,9 @@ public function putAssetScriptsRequest($app, $update_asset_scripts_dto, string $ * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteClient($app, $id, string $contentType = self::contentTypes['deleteClient'][0]) + public function deleteClient($id, string $contentType = self::contentTypes['deleteClient'][0]) { - list($response) = $this->deleteClientWithHttpInfo($app, $id, $contentType); + list($response) = $this->deleteClientWithHttpInfo($id, $contentType); return $response; } @@ -899,7 +890,6 @@ public function deleteClient($app, $id, string $contentType = self::contentTypes * * Revoke an app client. * - * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteClient'] to see the possible values for this operation * @@ -907,9 +897,9 @@ public function deleteClient($app, $id, string $contentType = self::contentTypes * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteClientWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteClient'][0]) + public function deleteClientWithHttpInfo($id, string $contentType = self::contentTypes['deleteClient'][0]) { - $request = $this->deleteClientRequest($app, $id, $contentType); + $request = $this->deleteClientRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1046,16 +1036,15 @@ public function deleteClientWithHttpInfo($app, $id, string $contentType = self:: * * Revoke an app client. * - * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteClient'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteClientAsync($app, $id, string $contentType = self::contentTypes['deleteClient'][0]) + public function deleteClientAsync($id, string $contentType = self::contentTypes['deleteClient'][0]) { - return $this->deleteClientAsyncWithHttpInfo($app, $id, $contentType) + return $this->deleteClientAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -1068,17 +1057,16 @@ function ($response) { * * Revoke an app client. * - * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteClient'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteClientAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteClient'][0]) + public function deleteClientAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteClient'][0]) { $returnType = '\Squidex\Client\Model\ClientsDto'; - $request = $this->deleteClientRequest($app, $id, $contentType); + $request = $this->deleteClientRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1119,17 +1107,17 @@ function ($exception) { /** * Create request for operation 'deleteClient' * - * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteClient'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteClientRequest($app, $id, string $contentType = self::contentTypes['deleteClient'][0]) + public function deleteClientRequest($id, string $contentType = self::contentTypes['deleteClient'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1229,16 +1217,15 @@ public function deleteClientRequest($app, $id, string $contentType = self::conte * * Get app clients. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getClients'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto */ - public function getClients($app, string $contentType = self::contentTypes['getClients'][0]) + public function getClients(string $contentType = self::contentTypes['getClients'][0]) { - list($response) = $this->getClientsWithHttpInfo($app, $contentType); + list($response) = $this->getClientsWithHttpInfo($contentType); return $response; } @@ -1247,16 +1234,15 @@ public function getClients($app, string $contentType = self::contentTypes['getCl * * Get app clients. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getClients'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getClientsWithHttpInfo($app, string $contentType = self::contentTypes['getClients'][0]) + public function getClientsWithHttpInfo(string $contentType = self::contentTypes['getClients'][0]) { - $request = $this->getClientsRequest($app, $contentType); + $request = $this->getClientsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -1370,15 +1356,14 @@ public function getClientsWithHttpInfo($app, string $contentType = self::content * * Get app clients. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getClients'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getClientsAsync($app, string $contentType = self::contentTypes['getClients'][0]) + public function getClientsAsync(string $contentType = self::contentTypes['getClients'][0]) { - return $this->getClientsAsyncWithHttpInfo($app, $contentType) + return $this->getClientsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -1391,16 +1376,15 @@ function ($response) { * * Get app clients. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getClients'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getClientsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getClients'][0]) + public function getClientsAsyncWithHttpInfo(string $contentType = self::contentTypes['getClients'][0]) { $returnType = '\Squidex\Client\Model\ClientsDto'; - $request = $this->getClientsRequest($app, $contentType); + $request = $this->getClientsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1441,16 +1425,16 @@ function ($exception) { /** * Create request for operation 'getClients' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getClients'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getClientsRequest($app, string $contentType = self::contentTypes['getClients'][0]) + public function getClientsRequest(string $contentType = self::contentTypes['getClients'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1535,7 +1519,6 @@ public function getClientsRequest($app, string $contentType = self::contentTypes * * Create a new app client. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateClientDto $create_client_dto Client object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postClient'] to see the possible values for this operation * @@ -1543,9 +1526,9 @@ public function getClientsRequest($app, string $contentType = self::contentTypes * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postClient($app, $create_client_dto, string $contentType = self::contentTypes['postClient'][0]) + public function postClient($create_client_dto, string $contentType = self::contentTypes['postClient'][0]) { - list($response) = $this->postClientWithHttpInfo($app, $create_client_dto, $contentType); + list($response) = $this->postClientWithHttpInfo($create_client_dto, $contentType); return $response; } @@ -1554,7 +1537,6 @@ public function postClient($app, $create_client_dto, string $contentType = self: * * Create a new app client. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateClientDto $create_client_dto Client object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postClient'] to see the possible values for this operation * @@ -1562,9 +1544,9 @@ public function postClient($app, $create_client_dto, string $contentType = self: * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postClientWithHttpInfo($app, $create_client_dto, string $contentType = self::contentTypes['postClient'][0]) + public function postClientWithHttpInfo($create_client_dto, string $contentType = self::contentTypes['postClient'][0]) { - $request = $this->postClientRequest($app, $create_client_dto, $contentType); + $request = $this->postClientRequest($create_client_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -1701,16 +1683,15 @@ public function postClientWithHttpInfo($app, $create_client_dto, string $content * * Create a new app client. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateClientDto $create_client_dto Client object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postClient'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postClientAsync($app, $create_client_dto, string $contentType = self::contentTypes['postClient'][0]) + public function postClientAsync($create_client_dto, string $contentType = self::contentTypes['postClient'][0]) { - return $this->postClientAsyncWithHttpInfo($app, $create_client_dto, $contentType) + return $this->postClientAsyncWithHttpInfo($create_client_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -1723,17 +1704,16 @@ function ($response) { * * Create a new app client. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateClientDto $create_client_dto Client object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postClient'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postClientAsyncWithHttpInfo($app, $create_client_dto, string $contentType = self::contentTypes['postClient'][0]) + public function postClientAsyncWithHttpInfo($create_client_dto, string $contentType = self::contentTypes['postClient'][0]) { $returnType = '\Squidex\Client\Model\ClientsDto'; - $request = $this->postClientRequest($app, $create_client_dto, $contentType); + $request = $this->postClientRequest($create_client_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1774,17 +1754,17 @@ function ($exception) { /** * Create request for operation 'postClient' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateClientDto $create_client_dto Client object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postClient'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postClientRequest($app, $create_client_dto, string $contentType = self::contentTypes['postClient'][0]) + public function postClientRequest($create_client_dto, string $contentType = self::contentTypes['postClient'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1883,7 +1863,6 @@ public function postClientRequest($app, $create_client_dto, string $contentType * * Updates an app client. * - * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be updated. (required) * @param \Squidex\Client\Model\UpdateClientDto $update_client_dto Client object that needs to be updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putClient'] to see the possible values for this operation @@ -1892,9 +1871,9 @@ public function postClientRequest($app, $create_client_dto, string $contentType * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putClient($app, $id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) + public function putClient($id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) { - list($response) = $this->putClientWithHttpInfo($app, $id, $update_client_dto, $contentType); + list($response) = $this->putClientWithHttpInfo($id, $update_client_dto, $contentType); return $response; } @@ -1903,7 +1882,6 @@ public function putClient($app, $id, $update_client_dto, string $contentType = s * * Updates an app client. * - * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be updated. (required) * @param \Squidex\Client\Model\UpdateClientDto $update_client_dto Client object that needs to be updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putClient'] to see the possible values for this operation @@ -1912,9 +1890,9 @@ public function putClient($app, $id, $update_client_dto, string $contentType = s * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putClientWithHttpInfo($app, $id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) + public function putClientWithHttpInfo($id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) { - $request = $this->putClientRequest($app, $id, $update_client_dto, $contentType); + $request = $this->putClientRequest($id, $update_client_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -2051,7 +2029,6 @@ public function putClientWithHttpInfo($app, $id, $update_client_dto, string $con * * Updates an app client. * - * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be updated. (required) * @param \Squidex\Client\Model\UpdateClientDto $update_client_dto Client object that needs to be updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putClient'] to see the possible values for this operation @@ -2059,9 +2036,9 @@ public function putClientWithHttpInfo($app, $id, $update_client_dto, string $con * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putClientAsync($app, $id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) + public function putClientAsync($id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) { - return $this->putClientAsyncWithHttpInfo($app, $id, $update_client_dto, $contentType) + return $this->putClientAsyncWithHttpInfo($id, $update_client_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -2074,7 +2051,6 @@ function ($response) { * * Updates an app client. * - * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be updated. (required) * @param \Squidex\Client\Model\UpdateClientDto $update_client_dto Client object that needs to be updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putClient'] to see the possible values for this operation @@ -2082,10 +2058,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putClientAsyncWithHttpInfo($app, $id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) + public function putClientAsyncWithHttpInfo($id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) { $returnType = '\Squidex\Client\Model\ClientsDto'; - $request = $this->putClientRequest($app, $id, $update_client_dto, $contentType); + $request = $this->putClientRequest($id, $update_client_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2126,7 +2102,6 @@ function ($exception) { /** * Create request for operation 'putClient' * - * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be updated. (required) * @param \Squidex\Client\Model\UpdateClientDto $update_client_dto Client object that needs to be updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putClient'] to see the possible values for this operation @@ -2134,10 +2109,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putClientRequest($app, $id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) + public function putClientRequest($id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -2251,7 +2227,6 @@ public function putClientRequest($app, $id, $update_client_dto, string $contentT * * Remove contributor. * - * @param string $app The name of the app. (required) * @param string $id The ID of the contributor. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContributor'] to see the possible values for this operation * @@ -2259,9 +2234,9 @@ public function putClientRequest($app, $id, $update_client_dto, string $contentT * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteContributor($app, $id, string $contentType = self::contentTypes['deleteContributor'][0]) + public function deleteContributor($id, string $contentType = self::contentTypes['deleteContributor'][0]) { - list($response) = $this->deleteContributorWithHttpInfo($app, $id, $contentType); + list($response) = $this->deleteContributorWithHttpInfo($id, $contentType); return $response; } @@ -2270,7 +2245,6 @@ public function deleteContributor($app, $id, string $contentType = self::content * * Remove contributor. * - * @param string $app The name of the app. (required) * @param string $id The ID of the contributor. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContributor'] to see the possible values for this operation * @@ -2278,9 +2252,9 @@ public function deleteContributor($app, $id, string $contentType = self::content * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteContributorWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteContributor'][0]) + public function deleteContributorWithHttpInfo($id, string $contentType = self::contentTypes['deleteContributor'][0]) { - $request = $this->deleteContributorRequest($app, $id, $contentType); + $request = $this->deleteContributorRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -2417,16 +2391,15 @@ public function deleteContributorWithHttpInfo($app, $id, string $contentType = s * * Remove contributor. * - * @param string $app The name of the app. (required) * @param string $id The ID of the contributor. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContributor'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteContributorAsync($app, $id, string $contentType = self::contentTypes['deleteContributor'][0]) + public function deleteContributorAsync($id, string $contentType = self::contentTypes['deleteContributor'][0]) { - return $this->deleteContributorAsyncWithHttpInfo($app, $id, $contentType) + return $this->deleteContributorAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -2439,17 +2412,16 @@ function ($response) { * * Remove contributor. * - * @param string $app The name of the app. (required) * @param string $id The ID of the contributor. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContributor'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteContributorAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteContributor'][0]) + public function deleteContributorAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteContributor'][0]) { $returnType = '\Squidex\Client\Model\ContributorsDto'; - $request = $this->deleteContributorRequest($app, $id, $contentType); + $request = $this->deleteContributorRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2490,17 +2462,17 @@ function ($exception) { /** * Create request for operation 'deleteContributor' * - * @param string $app The name of the app. (required) * @param string $id The ID of the contributor. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContributor'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteContributorRequest($app, $id, string $contentType = self::contentTypes['deleteContributor'][0]) + public function deleteContributorRequest($id, string $contentType = self::contentTypes['deleteContributor'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -2600,16 +2572,15 @@ public function deleteContributorRequest($app, $id, string $contentType = self:: * * Remove yourself. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteMyself'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteMyself($app, string $contentType = self::contentTypes['deleteMyself'][0]) + public function deleteMyself(string $contentType = self::contentTypes['deleteMyself'][0]) { - list($response) = $this->deleteMyselfWithHttpInfo($app, $contentType); + list($response) = $this->deleteMyselfWithHttpInfo($contentType); return $response; } @@ -2618,16 +2589,15 @@ public function deleteMyself($app, string $contentType = self::contentTypes['del * * Remove yourself. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteMyself'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteMyselfWithHttpInfo($app, string $contentType = self::contentTypes['deleteMyself'][0]) + public function deleteMyselfWithHttpInfo(string $contentType = self::contentTypes['deleteMyself'][0]) { - $request = $this->deleteMyselfRequest($app, $contentType); + $request = $this->deleteMyselfRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -2764,15 +2734,14 @@ public function deleteMyselfWithHttpInfo($app, string $contentType = self::conte * * Remove yourself. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteMyself'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteMyselfAsync($app, string $contentType = self::contentTypes['deleteMyself'][0]) + public function deleteMyselfAsync(string $contentType = self::contentTypes['deleteMyself'][0]) { - return $this->deleteMyselfAsyncWithHttpInfo($app, $contentType) + return $this->deleteMyselfAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -2785,16 +2754,15 @@ function ($response) { * * Remove yourself. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteMyself'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteMyselfAsyncWithHttpInfo($app, string $contentType = self::contentTypes['deleteMyself'][0]) + public function deleteMyselfAsyncWithHttpInfo(string $contentType = self::contentTypes['deleteMyself'][0]) { $returnType = '\Squidex\Client\Model\ContributorsDto'; - $request = $this->deleteMyselfRequest($app, $contentType); + $request = $this->deleteMyselfRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2835,16 +2803,16 @@ function ($exception) { /** * Create request for operation 'deleteMyself' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteMyself'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteMyselfRequest($app, string $contentType = self::contentTypes['deleteMyself'][0]) + public function deleteMyselfRequest(string $contentType = self::contentTypes['deleteMyself'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -2929,16 +2897,15 @@ public function deleteMyselfRequest($app, string $contentType = self::contentTyp * * Get app contributors. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContributors'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto */ - public function getContributors($app, string $contentType = self::contentTypes['getContributors'][0]) + public function getContributors(string $contentType = self::contentTypes['getContributors'][0]) { - list($response) = $this->getContributorsWithHttpInfo($app, $contentType); + list($response) = $this->getContributorsWithHttpInfo($contentType); return $response; } @@ -2947,16 +2914,15 @@ public function getContributors($app, string $contentType = self::contentTypes[' * * Get app contributors. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContributors'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getContributorsWithHttpInfo($app, string $contentType = self::contentTypes['getContributors'][0]) + public function getContributorsWithHttpInfo(string $contentType = self::contentTypes['getContributors'][0]) { - $request = $this->getContributorsRequest($app, $contentType); + $request = $this->getContributorsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -3070,15 +3036,14 @@ public function getContributorsWithHttpInfo($app, string $contentType = self::co * * Get app contributors. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContributors'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContributorsAsync($app, string $contentType = self::contentTypes['getContributors'][0]) + public function getContributorsAsync(string $contentType = self::contentTypes['getContributors'][0]) { - return $this->getContributorsAsyncWithHttpInfo($app, $contentType) + return $this->getContributorsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -3091,16 +3056,15 @@ function ($response) { * * Get app contributors. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContributors'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContributorsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getContributors'][0]) + public function getContributorsAsyncWithHttpInfo(string $contentType = self::contentTypes['getContributors'][0]) { $returnType = '\Squidex\Client\Model\ContributorsDto'; - $request = $this->getContributorsRequest($app, $contentType); + $request = $this->getContributorsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3141,16 +3105,16 @@ function ($exception) { /** * Create request for operation 'getContributors' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContributors'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getContributorsRequest($app, string $contentType = self::contentTypes['getContributors'][0]) + public function getContributorsRequest(string $contentType = self::contentTypes['getContributors'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3235,7 +3199,6 @@ public function getContributorsRequest($app, string $contentType = self::content * * Assign contributor to app. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AssignContributorDto $assign_contributor_dto Contributor object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContributor'] to see the possible values for this operation * @@ -3243,9 +3206,9 @@ public function getContributorsRequest($app, string $contentType = self::content * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postContributor($app, $assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) + public function postContributor($assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) { - list($response) = $this->postContributorWithHttpInfo($app, $assign_contributor_dto, $contentType); + list($response) = $this->postContributorWithHttpInfo($assign_contributor_dto, $contentType); return $response; } @@ -3254,7 +3217,6 @@ public function postContributor($app, $assign_contributor_dto, string $contentTy * * Assign contributor to app. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AssignContributorDto $assign_contributor_dto Contributor object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContributor'] to see the possible values for this operation * @@ -3262,9 +3224,9 @@ public function postContributor($app, $assign_contributor_dto, string $contentTy * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postContributorWithHttpInfo($app, $assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) + public function postContributorWithHttpInfo($assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) { - $request = $this->postContributorRequest($app, $assign_contributor_dto, $contentType); + $request = $this->postContributorRequest($assign_contributor_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -3401,16 +3363,15 @@ public function postContributorWithHttpInfo($app, $assign_contributor_dto, strin * * Assign contributor to app. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AssignContributorDto $assign_contributor_dto Contributor object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContributor'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postContributorAsync($app, $assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) + public function postContributorAsync($assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) { - return $this->postContributorAsyncWithHttpInfo($app, $assign_contributor_dto, $contentType) + return $this->postContributorAsyncWithHttpInfo($assign_contributor_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -3423,17 +3384,16 @@ function ($response) { * * Assign contributor to app. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AssignContributorDto $assign_contributor_dto Contributor object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContributor'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postContributorAsyncWithHttpInfo($app, $assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) + public function postContributorAsyncWithHttpInfo($assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) { $returnType = '\Squidex\Client\Model\ContributorsDto'; - $request = $this->postContributorRequest($app, $assign_contributor_dto, $contentType); + $request = $this->postContributorRequest($assign_contributor_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3474,17 +3434,17 @@ function ($exception) { /** * Create request for operation 'postContributor' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AssignContributorDto $assign_contributor_dto Contributor object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContributor'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postContributorRequest($app, $assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) + public function postContributorRequest($assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3583,16 +3543,15 @@ public function postContributorRequest($app, $assign_contributor_dto, string $co * * Get the app image. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getImage'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \SplFileObject|\Squidex\Client\Model\ErrorDto */ - public function getImage($app, string $contentType = self::contentTypes['getImage'][0]) + public function getImage(string $contentType = self::contentTypes['getImage'][0]) { - list($response) = $this->getImageWithHttpInfo($app, $contentType); + list($response) = $this->getImageWithHttpInfo($contentType); return $response; } @@ -3601,16 +3560,15 @@ public function getImage($app, string $contentType = self::contentTypes['getImag * * Get the app image. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getImage'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \SplFileObject|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getImageWithHttpInfo($app, string $contentType = self::contentTypes['getImage'][0]) + public function getImageWithHttpInfo(string $contentType = self::contentTypes['getImage'][0]) { - $request = $this->getImageRequest($app, $contentType); + $request = $this->getImageRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -3724,15 +3682,14 @@ public function getImageWithHttpInfo($app, string $contentType = self::contentTy * * Get the app image. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getImageAsync($app, string $contentType = self::contentTypes['getImage'][0]) + public function getImageAsync(string $contentType = self::contentTypes['getImage'][0]) { - return $this->getImageAsyncWithHttpInfo($app, $contentType) + return $this->getImageAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -3745,16 +3702,15 @@ function ($response) { * * Get the app image. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getImageAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getImage'][0]) + public function getImageAsyncWithHttpInfo(string $contentType = self::contentTypes['getImage'][0]) { $returnType = '\SplFileObject'; - $request = $this->getImageRequest($app, $contentType); + $request = $this->getImageRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3795,16 +3751,16 @@ function ($exception) { /** * Create request for operation 'getImage' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getImageRequest($app, string $contentType = self::contentTypes['getImage'][0]) + public function getImageRequest(string $contentType = self::contentTypes['getImage'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3889,7 +3845,6 @@ public function getImageRequest($app, string $contentType = self::contentTypes[' * * Deletes an app language. * - * @param string $app The name of the app. (required) * @param string $language The language to delete from the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteLanguage'] to see the possible values for this operation * @@ -3897,9 +3852,9 @@ public function getImageRequest($app, string $contentType = self::contentTypes[' * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteLanguage($app, $language, string $contentType = self::contentTypes['deleteLanguage'][0]) + public function deleteLanguage($language, string $contentType = self::contentTypes['deleteLanguage'][0]) { - list($response) = $this->deleteLanguageWithHttpInfo($app, $language, $contentType); + list($response) = $this->deleteLanguageWithHttpInfo($language, $contentType); return $response; } @@ -3908,7 +3863,6 @@ public function deleteLanguage($app, $language, string $contentType = self::cont * * Deletes an app language. * - * @param string $app The name of the app. (required) * @param string $language The language to delete from the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteLanguage'] to see the possible values for this operation * @@ -3916,9 +3870,9 @@ public function deleteLanguage($app, $language, string $contentType = self::cont * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteLanguageWithHttpInfo($app, $language, string $contentType = self::contentTypes['deleteLanguage'][0]) + public function deleteLanguageWithHttpInfo($language, string $contentType = self::contentTypes['deleteLanguage'][0]) { - $request = $this->deleteLanguageRequest($app, $language, $contentType); + $request = $this->deleteLanguageRequest($language, $contentType); try { $options = $this->createHttpClientOption(); @@ -4055,16 +4009,15 @@ public function deleteLanguageWithHttpInfo($app, $language, string $contentType * * Deletes an app language. * - * @param string $app The name of the app. (required) * @param string $language The language to delete from the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteLanguage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteLanguageAsync($app, $language, string $contentType = self::contentTypes['deleteLanguage'][0]) + public function deleteLanguageAsync($language, string $contentType = self::contentTypes['deleteLanguage'][0]) { - return $this->deleteLanguageAsyncWithHttpInfo($app, $language, $contentType) + return $this->deleteLanguageAsyncWithHttpInfo($language, $contentType) ->then( function ($response) { return $response[0]; @@ -4077,17 +4030,16 @@ function ($response) { * * Deletes an app language. * - * @param string $app The name of the app. (required) * @param string $language The language to delete from the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteLanguage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteLanguageAsyncWithHttpInfo($app, $language, string $contentType = self::contentTypes['deleteLanguage'][0]) + public function deleteLanguageAsyncWithHttpInfo($language, string $contentType = self::contentTypes['deleteLanguage'][0]) { $returnType = '\Squidex\Client\Model\AppLanguagesDto'; - $request = $this->deleteLanguageRequest($app, $language, $contentType); + $request = $this->deleteLanguageRequest($language, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4128,17 +4080,17 @@ function ($exception) { /** * Create request for operation 'deleteLanguage' * - * @param string $app The name of the app. (required) * @param string $language The language to delete from the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteLanguage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteLanguageRequest($app, $language, string $contentType = self::contentTypes['deleteLanguage'][0]) + public function deleteLanguageRequest($language, string $contentType = self::contentTypes['deleteLanguage'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4238,16 +4190,15 @@ public function deleteLanguageRequest($app, $language, string $contentType = sel * * Get app languages. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLanguages'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto */ - public function getLanguages($app, string $contentType = self::contentTypes['getLanguages'][0]) + public function getLanguages(string $contentType = self::contentTypes['getLanguages'][0]) { - list($response) = $this->getLanguagesWithHttpInfo($app, $contentType); + list($response) = $this->getLanguagesWithHttpInfo($contentType); return $response; } @@ -4256,16 +4207,15 @@ public function getLanguages($app, string $contentType = self::contentTypes['get * * Get app languages. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLanguages'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getLanguagesWithHttpInfo($app, string $contentType = self::contentTypes['getLanguages'][0]) + public function getLanguagesWithHttpInfo(string $contentType = self::contentTypes['getLanguages'][0]) { - $request = $this->getLanguagesRequest($app, $contentType); + $request = $this->getLanguagesRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -4379,15 +4329,14 @@ public function getLanguagesWithHttpInfo($app, string $contentType = self::conte * * Get app languages. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLanguages'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getLanguagesAsync($app, string $contentType = self::contentTypes['getLanguages'][0]) + public function getLanguagesAsync(string $contentType = self::contentTypes['getLanguages'][0]) { - return $this->getLanguagesAsyncWithHttpInfo($app, $contentType) + return $this->getLanguagesAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -4400,16 +4349,15 @@ function ($response) { * * Get app languages. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLanguages'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getLanguagesAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getLanguages'][0]) + public function getLanguagesAsyncWithHttpInfo(string $contentType = self::contentTypes['getLanguages'][0]) { $returnType = '\Squidex\Client\Model\AppLanguagesDto'; - $request = $this->getLanguagesRequest($app, $contentType); + $request = $this->getLanguagesRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4450,16 +4398,16 @@ function ($exception) { /** * Create request for operation 'getLanguages' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLanguages'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getLanguagesRequest($app, string $contentType = self::contentTypes['getLanguages'][0]) + public function getLanguagesRequest(string $contentType = self::contentTypes['getLanguages'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4544,7 +4492,6 @@ public function getLanguagesRequest($app, string $contentType = self::contentTyp * * Add an app language. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddLanguageDto $add_language_dto The language to add to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postLanguage'] to see the possible values for this operation * @@ -4552,9 +4499,9 @@ public function getLanguagesRequest($app, string $contentType = self::contentTyp * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postLanguage($app, $add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) + public function postLanguage($add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) { - list($response) = $this->postLanguageWithHttpInfo($app, $add_language_dto, $contentType); + list($response) = $this->postLanguageWithHttpInfo($add_language_dto, $contentType); return $response; } @@ -4563,7 +4510,6 @@ public function postLanguage($app, $add_language_dto, string $contentType = self * * Add an app language. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddLanguageDto $add_language_dto The language to add to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postLanguage'] to see the possible values for this operation * @@ -4571,9 +4517,9 @@ public function postLanguage($app, $add_language_dto, string $contentType = self * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postLanguageWithHttpInfo($app, $add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) + public function postLanguageWithHttpInfo($add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) { - $request = $this->postLanguageRequest($app, $add_language_dto, $contentType); + $request = $this->postLanguageRequest($add_language_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -4710,16 +4656,15 @@ public function postLanguageWithHttpInfo($app, $add_language_dto, string $conten * * Add an app language. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddLanguageDto $add_language_dto The language to add to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postLanguage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postLanguageAsync($app, $add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) + public function postLanguageAsync($add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) { - return $this->postLanguageAsyncWithHttpInfo($app, $add_language_dto, $contentType) + return $this->postLanguageAsyncWithHttpInfo($add_language_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -4732,17 +4677,16 @@ function ($response) { * * Add an app language. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddLanguageDto $add_language_dto The language to add to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postLanguage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postLanguageAsyncWithHttpInfo($app, $add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) + public function postLanguageAsyncWithHttpInfo($add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) { $returnType = '\Squidex\Client\Model\AppLanguagesDto'; - $request = $this->postLanguageRequest($app, $add_language_dto, $contentType); + $request = $this->postLanguageRequest($add_language_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4783,17 +4727,17 @@ function ($exception) { /** * Create request for operation 'postLanguage' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddLanguageDto $add_language_dto The language to add to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postLanguage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postLanguageRequest($app, $add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) + public function postLanguageRequest($add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4892,7 +4836,6 @@ public function postLanguageRequest($app, $add_language_dto, string $contentType * * Updates an app language. * - * @param string $app The name of the app. (required) * @param string $language The language to update. (required) * @param \Squidex\Client\Model\UpdateLanguageDto $update_language_dto The language object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putLanguage'] to see the possible values for this operation @@ -4901,9 +4844,9 @@ public function postLanguageRequest($app, $add_language_dto, string $contentType * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putLanguage($app, $language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) + public function putLanguage($language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) { - list($response) = $this->putLanguageWithHttpInfo($app, $language, $update_language_dto, $contentType); + list($response) = $this->putLanguageWithHttpInfo($language, $update_language_dto, $contentType); return $response; } @@ -4912,7 +4855,6 @@ public function putLanguage($app, $language, $update_language_dto, string $conte * * Updates an app language. * - * @param string $app The name of the app. (required) * @param string $language The language to update. (required) * @param \Squidex\Client\Model\UpdateLanguageDto $update_language_dto The language object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putLanguage'] to see the possible values for this operation @@ -4921,9 +4863,9 @@ public function putLanguage($app, $language, $update_language_dto, string $conte * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putLanguageWithHttpInfo($app, $language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) + public function putLanguageWithHttpInfo($language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) { - $request = $this->putLanguageRequest($app, $language, $update_language_dto, $contentType); + $request = $this->putLanguageRequest($language, $update_language_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -5060,7 +5002,6 @@ public function putLanguageWithHttpInfo($app, $language, $update_language_dto, s * * Updates an app language. * - * @param string $app The name of the app. (required) * @param string $language The language to update. (required) * @param \Squidex\Client\Model\UpdateLanguageDto $update_language_dto The language object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putLanguage'] to see the possible values for this operation @@ -5068,9 +5009,9 @@ public function putLanguageWithHttpInfo($app, $language, $update_language_dto, s * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putLanguageAsync($app, $language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) + public function putLanguageAsync($language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) { - return $this->putLanguageAsyncWithHttpInfo($app, $language, $update_language_dto, $contentType) + return $this->putLanguageAsyncWithHttpInfo($language, $update_language_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -5083,7 +5024,6 @@ function ($response) { * * Updates an app language. * - * @param string $app The name of the app. (required) * @param string $language The language to update. (required) * @param \Squidex\Client\Model\UpdateLanguageDto $update_language_dto The language object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putLanguage'] to see the possible values for this operation @@ -5091,10 +5031,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putLanguageAsyncWithHttpInfo($app, $language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) + public function putLanguageAsyncWithHttpInfo($language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) { $returnType = '\Squidex\Client\Model\AppLanguagesDto'; - $request = $this->putLanguageRequest($app, $language, $update_language_dto, $contentType); + $request = $this->putLanguageRequest($language, $update_language_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5135,7 +5075,6 @@ function ($exception) { /** * Create request for operation 'putLanguage' * - * @param string $app The name of the app. (required) * @param string $language The language to update. (required) * @param \Squidex\Client\Model\UpdateLanguageDto $update_language_dto The language object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putLanguage'] to see the possible values for this operation @@ -5143,10 +5082,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putLanguageRequest($app, $language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) + public function putLanguageRequest($language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5260,7 +5200,6 @@ public function putLanguageRequest($app, $language, $update_language_dto, string * * Remove role from app. * - * @param string $app The name of the app. (required) * @param string $role_name The name of the role. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRole'] to see the possible values for this operation * @@ -5268,9 +5207,9 @@ public function putLanguageRequest($app, $language, $update_language_dto, string * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteRole($app, $role_name, string $contentType = self::contentTypes['deleteRole'][0]) + public function deleteRole($role_name, string $contentType = self::contentTypes['deleteRole'][0]) { - list($response) = $this->deleteRoleWithHttpInfo($app, $role_name, $contentType); + list($response) = $this->deleteRoleWithHttpInfo($role_name, $contentType); return $response; } @@ -5279,7 +5218,6 @@ public function deleteRole($app, $role_name, string $contentType = self::content * * Remove role from app. * - * @param string $app The name of the app. (required) * @param string $role_name The name of the role. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRole'] to see the possible values for this operation * @@ -5287,9 +5225,9 @@ public function deleteRole($app, $role_name, string $contentType = self::content * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteRoleWithHttpInfo($app, $role_name, string $contentType = self::contentTypes['deleteRole'][0]) + public function deleteRoleWithHttpInfo($role_name, string $contentType = self::contentTypes['deleteRole'][0]) { - $request = $this->deleteRoleRequest($app, $role_name, $contentType); + $request = $this->deleteRoleRequest($role_name, $contentType); try { $options = $this->createHttpClientOption(); @@ -5426,16 +5364,15 @@ public function deleteRoleWithHttpInfo($app, $role_name, string $contentType = s * * Remove role from app. * - * @param string $app The name of the app. (required) * @param string $role_name The name of the role. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRole'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRoleAsync($app, $role_name, string $contentType = self::contentTypes['deleteRole'][0]) + public function deleteRoleAsync($role_name, string $contentType = self::contentTypes['deleteRole'][0]) { - return $this->deleteRoleAsyncWithHttpInfo($app, $role_name, $contentType) + return $this->deleteRoleAsyncWithHttpInfo($role_name, $contentType) ->then( function ($response) { return $response[0]; @@ -5448,17 +5385,16 @@ function ($response) { * * Remove role from app. * - * @param string $app The name of the app. (required) * @param string $role_name The name of the role. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRole'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRoleAsyncWithHttpInfo($app, $role_name, string $contentType = self::contentTypes['deleteRole'][0]) + public function deleteRoleAsyncWithHttpInfo($role_name, string $contentType = self::contentTypes['deleteRole'][0]) { $returnType = '\Squidex\Client\Model\RolesDto'; - $request = $this->deleteRoleRequest($app, $role_name, $contentType); + $request = $this->deleteRoleRequest($role_name, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5499,17 +5435,17 @@ function ($exception) { /** * Create request for operation 'deleteRole' * - * @param string $app The name of the app. (required) * @param string $role_name The name of the role. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRole'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteRoleRequest($app, $role_name, string $contentType = self::contentTypes['deleteRole'][0]) + public function deleteRoleRequest($role_name, string $contentType = self::contentTypes['deleteRole'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5609,16 +5545,15 @@ public function deleteRoleRequest($app, $role_name, string $contentType = self:: * * Get app permissions. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPermissions'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return string[]|\Squidex\Client\Model\ErrorDto */ - public function getPermissions($app, string $contentType = self::contentTypes['getPermissions'][0]) + public function getPermissions(string $contentType = self::contentTypes['getPermissions'][0]) { - list($response) = $this->getPermissionsWithHttpInfo($app, $contentType); + list($response) = $this->getPermissionsWithHttpInfo($contentType); return $response; } @@ -5627,16 +5562,15 @@ public function getPermissions($app, string $contentType = self::contentTypes['g * * Get app permissions. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPermissions'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of string[]|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getPermissionsWithHttpInfo($app, string $contentType = self::contentTypes['getPermissions'][0]) + public function getPermissionsWithHttpInfo(string $contentType = self::contentTypes['getPermissions'][0]) { - $request = $this->getPermissionsRequest($app, $contentType); + $request = $this->getPermissionsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -5750,15 +5684,14 @@ public function getPermissionsWithHttpInfo($app, string $contentType = self::con * * Get app permissions. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPermissions'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPermissionsAsync($app, string $contentType = self::contentTypes['getPermissions'][0]) + public function getPermissionsAsync(string $contentType = self::contentTypes['getPermissions'][0]) { - return $this->getPermissionsAsyncWithHttpInfo($app, $contentType) + return $this->getPermissionsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -5771,16 +5704,15 @@ function ($response) { * * Get app permissions. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPermissions'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPermissionsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getPermissions'][0]) + public function getPermissionsAsyncWithHttpInfo(string $contentType = self::contentTypes['getPermissions'][0]) { $returnType = 'string[]'; - $request = $this->getPermissionsRequest($app, $contentType); + $request = $this->getPermissionsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5821,16 +5753,16 @@ function ($exception) { /** * Create request for operation 'getPermissions' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPermissions'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getPermissionsRequest($app, string $contentType = self::contentTypes['getPermissions'][0]) + public function getPermissionsRequest(string $contentType = self::contentTypes['getPermissions'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5915,16 +5847,15 @@ public function getPermissionsRequest($app, string $contentType = self::contentT * * Get app roles. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRoles'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto */ - public function getRoles($app, string $contentType = self::contentTypes['getRoles'][0]) + public function getRoles(string $contentType = self::contentTypes['getRoles'][0]) { - list($response) = $this->getRolesWithHttpInfo($app, $contentType); + list($response) = $this->getRolesWithHttpInfo($contentType); return $response; } @@ -5933,16 +5864,15 @@ public function getRoles($app, string $contentType = self::contentTypes['getRole * * Get app roles. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRoles'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getRolesWithHttpInfo($app, string $contentType = self::contentTypes['getRoles'][0]) + public function getRolesWithHttpInfo(string $contentType = self::contentTypes['getRoles'][0]) { - $request = $this->getRolesRequest($app, $contentType); + $request = $this->getRolesRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -6056,15 +5986,14 @@ public function getRolesWithHttpInfo($app, string $contentType = self::contentTy * * Get app roles. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRoles'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getRolesAsync($app, string $contentType = self::contentTypes['getRoles'][0]) + public function getRolesAsync(string $contentType = self::contentTypes['getRoles'][0]) { - return $this->getRolesAsyncWithHttpInfo($app, $contentType) + return $this->getRolesAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -6077,16 +6006,15 @@ function ($response) { * * Get app roles. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRoles'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getRolesAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getRoles'][0]) + public function getRolesAsyncWithHttpInfo(string $contentType = self::contentTypes['getRoles'][0]) { $returnType = '\Squidex\Client\Model\RolesDto'; - $request = $this->getRolesRequest($app, $contentType); + $request = $this->getRolesRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6127,16 +6055,16 @@ function ($exception) { /** * Create request for operation 'getRoles' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRoles'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getRolesRequest($app, string $contentType = self::contentTypes['getRoles'][0]) + public function getRolesRequest(string $contentType = self::contentTypes['getRoles'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -6221,7 +6149,6 @@ public function getRolesRequest($app, string $contentType = self::contentTypes[' * * Add role to app. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddRoleDto $add_role_dto Role object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRole'] to see the possible values for this operation * @@ -6229,9 +6156,9 @@ public function getRolesRequest($app, string $contentType = self::contentTypes[' * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postRole($app, $add_role_dto, string $contentType = self::contentTypes['postRole'][0]) + public function postRole($add_role_dto, string $contentType = self::contentTypes['postRole'][0]) { - list($response) = $this->postRoleWithHttpInfo($app, $add_role_dto, $contentType); + list($response) = $this->postRoleWithHttpInfo($add_role_dto, $contentType); return $response; } @@ -6240,7 +6167,6 @@ public function postRole($app, $add_role_dto, string $contentType = self::conten * * Add role to app. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddRoleDto $add_role_dto Role object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRole'] to see the possible values for this operation * @@ -6248,9 +6174,9 @@ public function postRole($app, $add_role_dto, string $contentType = self::conten * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postRoleWithHttpInfo($app, $add_role_dto, string $contentType = self::contentTypes['postRole'][0]) + public function postRoleWithHttpInfo($add_role_dto, string $contentType = self::contentTypes['postRole'][0]) { - $request = $this->postRoleRequest($app, $add_role_dto, $contentType); + $request = $this->postRoleRequest($add_role_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -6387,16 +6313,15 @@ public function postRoleWithHttpInfo($app, $add_role_dto, string $contentType = * * Add role to app. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddRoleDto $add_role_dto Role object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRole'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postRoleAsync($app, $add_role_dto, string $contentType = self::contentTypes['postRole'][0]) + public function postRoleAsync($add_role_dto, string $contentType = self::contentTypes['postRole'][0]) { - return $this->postRoleAsyncWithHttpInfo($app, $add_role_dto, $contentType) + return $this->postRoleAsyncWithHttpInfo($add_role_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -6409,17 +6334,16 @@ function ($response) { * * Add role to app. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddRoleDto $add_role_dto Role object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRole'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postRoleAsyncWithHttpInfo($app, $add_role_dto, string $contentType = self::contentTypes['postRole'][0]) + public function postRoleAsyncWithHttpInfo($add_role_dto, string $contentType = self::contentTypes['postRole'][0]) { $returnType = '\Squidex\Client\Model\RolesDto'; - $request = $this->postRoleRequest($app, $add_role_dto, $contentType); + $request = $this->postRoleRequest($add_role_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6460,17 +6384,17 @@ function ($exception) { /** * Create request for operation 'postRole' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddRoleDto $add_role_dto Role object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRole'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postRoleRequest($app, $add_role_dto, string $contentType = self::contentTypes['postRole'][0]) + public function postRoleRequest($add_role_dto, string $contentType = self::contentTypes['postRole'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -6569,7 +6493,6 @@ public function postRoleRequest($app, $add_role_dto, string $contentType = self: * * Update an app role. * - * @param string $app The name of the app. (required) * @param string $role_name The name of the role to be updated. (required) * @param \Squidex\Client\Model\UpdateRoleDto $update_role_dto Role to be updated for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRole'] to see the possible values for this operation @@ -6578,9 +6501,9 @@ public function postRoleRequest($app, $add_role_dto, string $contentType = self: * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putRole($app, $role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) + public function putRole($role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) { - list($response) = $this->putRoleWithHttpInfo($app, $role_name, $update_role_dto, $contentType); + list($response) = $this->putRoleWithHttpInfo($role_name, $update_role_dto, $contentType); return $response; } @@ -6589,7 +6512,6 @@ public function putRole($app, $role_name, $update_role_dto, string $contentType * * Update an app role. * - * @param string $app The name of the app. (required) * @param string $role_name The name of the role to be updated. (required) * @param \Squidex\Client\Model\UpdateRoleDto $update_role_dto Role to be updated for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRole'] to see the possible values for this operation @@ -6598,9 +6520,9 @@ public function putRole($app, $role_name, $update_role_dto, string $contentType * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putRoleWithHttpInfo($app, $role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) + public function putRoleWithHttpInfo($role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) { - $request = $this->putRoleRequest($app, $role_name, $update_role_dto, $contentType); + $request = $this->putRoleRequest($role_name, $update_role_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -6737,7 +6659,6 @@ public function putRoleWithHttpInfo($app, $role_name, $update_role_dto, string $ * * Update an app role. * - * @param string $app The name of the app. (required) * @param string $role_name The name of the role to be updated. (required) * @param \Squidex\Client\Model\UpdateRoleDto $update_role_dto Role to be updated for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRole'] to see the possible values for this operation @@ -6745,9 +6666,9 @@ public function putRoleWithHttpInfo($app, $role_name, $update_role_dto, string $ * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRoleAsync($app, $role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) + public function putRoleAsync($role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) { - return $this->putRoleAsyncWithHttpInfo($app, $role_name, $update_role_dto, $contentType) + return $this->putRoleAsyncWithHttpInfo($role_name, $update_role_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -6760,7 +6681,6 @@ function ($response) { * * Update an app role. * - * @param string $app The name of the app. (required) * @param string $role_name The name of the role to be updated. (required) * @param \Squidex\Client\Model\UpdateRoleDto $update_role_dto Role to be updated for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRole'] to see the possible values for this operation @@ -6768,10 +6688,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRoleAsyncWithHttpInfo($app, $role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) + public function putRoleAsyncWithHttpInfo($role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) { $returnType = '\Squidex\Client\Model\RolesDto'; - $request = $this->putRoleRequest($app, $role_name, $update_role_dto, $contentType); + $request = $this->putRoleRequest($role_name, $update_role_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6812,7 +6732,6 @@ function ($exception) { /** * Create request for operation 'putRole' * - * @param string $app The name of the app. (required) * @param string $role_name The name of the role to be updated. (required) * @param \Squidex\Client\Model\UpdateRoleDto $update_role_dto Role to be updated for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRole'] to see the possible values for this operation @@ -6820,10 +6739,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putRoleRequest($app, $role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) + public function putRoleRequest($role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -6937,16 +6857,15 @@ public function putRoleRequest($app, $role_name, $update_role_dto, string $conte * * Get the app settings. * - * @param string $app The name of the app to get the settings for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSettings'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppSettingsDto|\Squidex\Client\Model\ErrorDto */ - public function getSettings($app, string $contentType = self::contentTypes['getSettings'][0]) + public function getSettings(string $contentType = self::contentTypes['getSettings'][0]) { - list($response) = $this->getSettingsWithHttpInfo($app, $contentType); + list($response) = $this->getSettingsWithHttpInfo($contentType); return $response; } @@ -6955,16 +6874,15 @@ public function getSettings($app, string $contentType = self::contentTypes['getS * * Get the app settings. * - * @param string $app The name of the app to get the settings for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSettings'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppSettingsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getSettingsWithHttpInfo($app, string $contentType = self::contentTypes['getSettings'][0]) + public function getSettingsWithHttpInfo(string $contentType = self::contentTypes['getSettings'][0]) { - $request = $this->getSettingsRequest($app, $contentType); + $request = $this->getSettingsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -7078,15 +6996,14 @@ public function getSettingsWithHttpInfo($app, string $contentType = self::conten * * Get the app settings. * - * @param string $app The name of the app to get the settings for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSettings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSettingsAsync($app, string $contentType = self::contentTypes['getSettings'][0]) + public function getSettingsAsync(string $contentType = self::contentTypes['getSettings'][0]) { - return $this->getSettingsAsyncWithHttpInfo($app, $contentType) + return $this->getSettingsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -7099,16 +7016,15 @@ function ($response) { * * Get the app settings. * - * @param string $app The name of the app to get the settings for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSettings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSettingsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getSettings'][0]) + public function getSettingsAsyncWithHttpInfo(string $contentType = self::contentTypes['getSettings'][0]) { $returnType = '\Squidex\Client\Model\AppSettingsDto'; - $request = $this->getSettingsRequest($app, $contentType); + $request = $this->getSettingsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7149,16 +7065,16 @@ function ($exception) { /** * Create request for operation 'getSettings' * - * @param string $app The name of the app to get the settings for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSettings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getSettingsRequest($app, string $contentType = self::contentTypes['getSettings'][0]) + public function getSettingsRequest(string $contentType = self::contentTypes['getSettings'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -7243,7 +7159,6 @@ public function getSettingsRequest($app, string $contentType = self::contentType * * Update the settings. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppSettingsDto $update_app_settings_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSettings'] to see the possible values for this operation * @@ -7251,9 +7166,9 @@ public function getSettingsRequest($app, string $contentType = self::contentType * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppSettingsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putSettings($app, $update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) + public function putSettings($update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) { - list($response) = $this->putSettingsWithHttpInfo($app, $update_app_settings_dto, $contentType); + list($response) = $this->putSettingsWithHttpInfo($update_app_settings_dto, $contentType); return $response; } @@ -7262,7 +7177,6 @@ public function putSettings($app, $update_app_settings_dto, string $contentType * * Update the settings. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppSettingsDto $update_app_settings_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSettings'] to see the possible values for this operation * @@ -7270,9 +7184,9 @@ public function putSettings($app, $update_app_settings_dto, string $contentType * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppSettingsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putSettingsWithHttpInfo($app, $update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) + public function putSettingsWithHttpInfo($update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) { - $request = $this->putSettingsRequest($app, $update_app_settings_dto, $contentType); + $request = $this->putSettingsRequest($update_app_settings_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -7409,16 +7323,15 @@ public function putSettingsWithHttpInfo($app, $update_app_settings_dto, string $ * * Update the settings. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppSettingsDto $update_app_settings_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSettings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSettingsAsync($app, $update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) + public function putSettingsAsync($update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) { - return $this->putSettingsAsyncWithHttpInfo($app, $update_app_settings_dto, $contentType) + return $this->putSettingsAsyncWithHttpInfo($update_app_settings_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -7431,17 +7344,16 @@ function ($response) { * * Update the settings. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppSettingsDto $update_app_settings_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSettings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSettingsAsyncWithHttpInfo($app, $update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) + public function putSettingsAsyncWithHttpInfo($update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) { $returnType = '\Squidex\Client\Model\AppSettingsDto'; - $request = $this->putSettingsRequest($app, $update_app_settings_dto, $contentType); + $request = $this->putSettingsRequest($update_app_settings_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7482,17 +7394,17 @@ function ($exception) { /** * Create request for operation 'putSettings' * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppSettingsDto $update_app_settings_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSettings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putSettingsRequest($app, $update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) + public function putSettingsRequest($update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -7591,7 +7503,6 @@ public function putSettingsRequest($app, $update_app_settings_dto, string $conte * * Delete a workflow. * - * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteWorkflow'] to see the possible values for this operation * @@ -7599,9 +7510,9 @@ public function putSettingsRequest($app, $update_app_settings_dto, string $conte * @throws \InvalidArgumentException * @return \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteWorkflow($app, $id, string $contentType = self::contentTypes['deleteWorkflow'][0]) + public function deleteWorkflow($id, string $contentType = self::contentTypes['deleteWorkflow'][0]) { - list($response) = $this->deleteWorkflowWithHttpInfo($app, $id, $contentType); + list($response) = $this->deleteWorkflowWithHttpInfo($id, $contentType); return $response; } @@ -7610,7 +7521,6 @@ public function deleteWorkflow($app, $id, string $contentType = self::contentTyp * * Delete a workflow. * - * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteWorkflow'] to see the possible values for this operation * @@ -7618,9 +7528,9 @@ public function deleteWorkflow($app, $id, string $contentType = self::contentTyp * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteWorkflowWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteWorkflow'][0]) + public function deleteWorkflowWithHttpInfo($id, string $contentType = self::contentTypes['deleteWorkflow'][0]) { - $request = $this->deleteWorkflowRequest($app, $id, $contentType); + $request = $this->deleteWorkflowRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -7757,16 +7667,15 @@ public function deleteWorkflowWithHttpInfo($app, $id, string $contentType = self * * Delete a workflow. * - * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteWorkflow'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteWorkflowAsync($app, $id, string $contentType = self::contentTypes['deleteWorkflow'][0]) + public function deleteWorkflowAsync($id, string $contentType = self::contentTypes['deleteWorkflow'][0]) { - return $this->deleteWorkflowAsyncWithHttpInfo($app, $id, $contentType) + return $this->deleteWorkflowAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -7779,17 +7688,16 @@ function ($response) { * * Delete a workflow. * - * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteWorkflow'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteWorkflowAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteWorkflow'][0]) + public function deleteWorkflowAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteWorkflow'][0]) { $returnType = '\Squidex\Client\Model\WorkflowsDto'; - $request = $this->deleteWorkflowRequest($app, $id, $contentType); + $request = $this->deleteWorkflowRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7830,17 +7738,17 @@ function ($exception) { /** * Create request for operation 'deleteWorkflow' * - * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteWorkflow'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteWorkflowRequest($app, $id, string $contentType = self::contentTypes['deleteWorkflow'][0]) + public function deleteWorkflowRequest($id, string $contentType = self::contentTypes['deleteWorkflow'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -7940,16 +7848,15 @@ public function deleteWorkflowRequest($app, $id, string $contentType = self::con * * Get app workflow. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWorkflows'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto */ - public function getWorkflows($app, string $contentType = self::contentTypes['getWorkflows'][0]) + public function getWorkflows(string $contentType = self::contentTypes['getWorkflows'][0]) { - list($response) = $this->getWorkflowsWithHttpInfo($app, $contentType); + list($response) = $this->getWorkflowsWithHttpInfo($contentType); return $response; } @@ -7958,16 +7865,15 @@ public function getWorkflows($app, string $contentType = self::contentTypes['get * * Get app workflow. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWorkflows'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getWorkflowsWithHttpInfo($app, string $contentType = self::contentTypes['getWorkflows'][0]) + public function getWorkflowsWithHttpInfo(string $contentType = self::contentTypes['getWorkflows'][0]) { - $request = $this->getWorkflowsRequest($app, $contentType); + $request = $this->getWorkflowsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -8081,15 +7987,14 @@ public function getWorkflowsWithHttpInfo($app, string $contentType = self::conte * * Get app workflow. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWorkflows'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getWorkflowsAsync($app, string $contentType = self::contentTypes['getWorkflows'][0]) + public function getWorkflowsAsync(string $contentType = self::contentTypes['getWorkflows'][0]) { - return $this->getWorkflowsAsyncWithHttpInfo($app, $contentType) + return $this->getWorkflowsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -8102,16 +8007,15 @@ function ($response) { * * Get app workflow. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWorkflows'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getWorkflowsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getWorkflows'][0]) + public function getWorkflowsAsyncWithHttpInfo(string $contentType = self::contentTypes['getWorkflows'][0]) { $returnType = '\Squidex\Client\Model\WorkflowsDto'; - $request = $this->getWorkflowsRequest($app, $contentType); + $request = $this->getWorkflowsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8152,16 +8056,16 @@ function ($exception) { /** * Create request for operation 'getWorkflows' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWorkflows'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getWorkflowsRequest($app, string $contentType = self::contentTypes['getWorkflows'][0]) + public function getWorkflowsRequest(string $contentType = self::contentTypes['getWorkflows'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -8246,7 +8150,6 @@ public function getWorkflowsRequest($app, string $contentType = self::contentTyp * * Create a workflow. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddWorkflowDto $add_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postWorkflow'] to see the possible values for this operation * @@ -8254,9 +8157,9 @@ public function getWorkflowsRequest($app, string $contentType = self::contentTyp * @throws \InvalidArgumentException * @return \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postWorkflow($app, $add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) + public function postWorkflow($add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) { - list($response) = $this->postWorkflowWithHttpInfo($app, $add_workflow_dto, $contentType); + list($response) = $this->postWorkflowWithHttpInfo($add_workflow_dto, $contentType); return $response; } @@ -8265,7 +8168,6 @@ public function postWorkflow($app, $add_workflow_dto, string $contentType = self * * Create a workflow. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddWorkflowDto $add_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postWorkflow'] to see the possible values for this operation * @@ -8273,9 +8175,9 @@ public function postWorkflow($app, $add_workflow_dto, string $contentType = self * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postWorkflowWithHttpInfo($app, $add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) + public function postWorkflowWithHttpInfo($add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) { - $request = $this->postWorkflowRequest($app, $add_workflow_dto, $contentType); + $request = $this->postWorkflowRequest($add_workflow_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -8412,16 +8314,15 @@ public function postWorkflowWithHttpInfo($app, $add_workflow_dto, string $conten * * Create a workflow. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddWorkflowDto $add_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postWorkflow'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postWorkflowAsync($app, $add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) + public function postWorkflowAsync($add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) { - return $this->postWorkflowAsyncWithHttpInfo($app, $add_workflow_dto, $contentType) + return $this->postWorkflowAsyncWithHttpInfo($add_workflow_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -8434,17 +8335,16 @@ function ($response) { * * Create a workflow. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddWorkflowDto $add_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postWorkflow'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postWorkflowAsyncWithHttpInfo($app, $add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) + public function postWorkflowAsyncWithHttpInfo($add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) { $returnType = '\Squidex\Client\Model\WorkflowsDto'; - $request = $this->postWorkflowRequest($app, $add_workflow_dto, $contentType); + $request = $this->postWorkflowRequest($add_workflow_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8485,17 +8385,17 @@ function ($exception) { /** * Create request for operation 'postWorkflow' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddWorkflowDto $add_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postWorkflow'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postWorkflowRequest($app, $add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) + public function postWorkflowRequest($add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -8594,7 +8494,6 @@ public function postWorkflowRequest($app, $add_workflow_dto, string $contentType * * Update a workflow. * - * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param \Squidex\Client\Model\UpdateWorkflowDto $update_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putWorkflow'] to see the possible values for this operation @@ -8603,9 +8502,9 @@ public function postWorkflowRequest($app, $add_workflow_dto, string $contentType * @throws \InvalidArgumentException * @return \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putWorkflow($app, $id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) + public function putWorkflow($id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) { - list($response) = $this->putWorkflowWithHttpInfo($app, $id, $update_workflow_dto, $contentType); + list($response) = $this->putWorkflowWithHttpInfo($id, $update_workflow_dto, $contentType); return $response; } @@ -8614,7 +8513,6 @@ public function putWorkflow($app, $id, $update_workflow_dto, string $contentType * * Update a workflow. * - * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param \Squidex\Client\Model\UpdateWorkflowDto $update_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putWorkflow'] to see the possible values for this operation @@ -8623,9 +8521,9 @@ public function putWorkflow($app, $id, $update_workflow_dto, string $contentType * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putWorkflowWithHttpInfo($app, $id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) + public function putWorkflowWithHttpInfo($id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) { - $request = $this->putWorkflowRequest($app, $id, $update_workflow_dto, $contentType); + $request = $this->putWorkflowRequest($id, $update_workflow_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -8762,7 +8660,6 @@ public function putWorkflowWithHttpInfo($app, $id, $update_workflow_dto, string * * Update a workflow. * - * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param \Squidex\Client\Model\UpdateWorkflowDto $update_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putWorkflow'] to see the possible values for this operation @@ -8770,9 +8667,9 @@ public function putWorkflowWithHttpInfo($app, $id, $update_workflow_dto, string * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putWorkflowAsync($app, $id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) + public function putWorkflowAsync($id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) { - return $this->putWorkflowAsyncWithHttpInfo($app, $id, $update_workflow_dto, $contentType) + return $this->putWorkflowAsyncWithHttpInfo($id, $update_workflow_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -8785,7 +8682,6 @@ function ($response) { * * Update a workflow. * - * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param \Squidex\Client\Model\UpdateWorkflowDto $update_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putWorkflow'] to see the possible values for this operation @@ -8793,10 +8689,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putWorkflowAsyncWithHttpInfo($app, $id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) + public function putWorkflowAsyncWithHttpInfo($id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) { $returnType = '\Squidex\Client\Model\WorkflowsDto'; - $request = $this->putWorkflowRequest($app, $id, $update_workflow_dto, $contentType); + $request = $this->putWorkflowRequest($id, $update_workflow_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8837,7 +8733,6 @@ function ($exception) { /** * Create request for operation 'putWorkflow' * - * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param \Squidex\Client\Model\UpdateWorkflowDto $update_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putWorkflow'] to see the possible values for this operation @@ -8845,10 +8740,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putWorkflowRequest($app, $id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) + public function putWorkflowRequest($id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -8962,16 +8858,15 @@ public function putWorkflowRequest($app, $id, $update_workflow_dto, string $cont * * Delete the app. * - * @param string $app The name of the app to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApp'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function deleteApp($app, string $contentType = self::contentTypes['deleteApp'][0]) + public function deleteApp(string $contentType = self::contentTypes['deleteApp'][0]) { - $this->deleteAppWithHttpInfo($app, $contentType); + $this->deleteAppWithHttpInfo($contentType); } /** @@ -8979,16 +8874,15 @@ public function deleteApp($app, string $contentType = self::contentTypes['delete * * Delete the app. * - * @param string $app The name of the app to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApp'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteAppWithHttpInfo($app, string $contentType = self::contentTypes['deleteApp'][0]) + public function deleteAppWithHttpInfo(string $contentType = self::contentTypes['deleteApp'][0]) { - $request = $this->deleteAppRequest($app, $contentType); + $request = $this->deleteAppRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -9055,15 +8949,14 @@ public function deleteAppWithHttpInfo($app, string $contentType = self::contentT * * Delete the app. * - * @param string $app The name of the app to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAppAsync($app, string $contentType = self::contentTypes['deleteApp'][0]) + public function deleteAppAsync(string $contentType = self::contentTypes['deleteApp'][0]) { - return $this->deleteAppAsyncWithHttpInfo($app, $contentType) + return $this->deleteAppAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -9076,16 +8969,15 @@ function ($response) { * * Delete the app. * - * @param string $app The name of the app to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAppAsyncWithHttpInfo($app, string $contentType = self::contentTypes['deleteApp'][0]) + public function deleteAppAsyncWithHttpInfo(string $contentType = self::contentTypes['deleteApp'][0]) { $returnType = ''; - $request = $this->deleteAppRequest($app, $contentType); + $request = $this->deleteAppRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9113,16 +9005,16 @@ function ($exception) { /** * Create request for operation 'deleteApp' * - * @param string $app The name of the app to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteAppRequest($app, string $contentType = self::contentTypes['deleteApp'][0]) + public function deleteAppRequest(string $contentType = self::contentTypes['deleteApp'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -9207,16 +9099,15 @@ public function deleteAppRequest($app, string $contentType = self::contentTypes[ * * Remove the app image. * - * @param string $app The name of the app to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteImage'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteImage($app, string $contentType = self::contentTypes['deleteImage'][0]) + public function deleteImage(string $contentType = self::contentTypes['deleteImage'][0]) { - list($response) = $this->deleteImageWithHttpInfo($app, $contentType); + list($response) = $this->deleteImageWithHttpInfo($contentType); return $response; } @@ -9225,16 +9116,15 @@ public function deleteImage($app, string $contentType = self::contentTypes['dele * * Remove the app image. * - * @param string $app The name of the app to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteImage'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteImageWithHttpInfo($app, string $contentType = self::contentTypes['deleteImage'][0]) + public function deleteImageWithHttpInfo(string $contentType = self::contentTypes['deleteImage'][0]) { - $request = $this->deleteImageRequest($app, $contentType); + $request = $this->deleteImageRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -9371,15 +9261,14 @@ public function deleteImageWithHttpInfo($app, string $contentType = self::conten * * Remove the app image. * - * @param string $app The name of the app to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteImageAsync($app, string $contentType = self::contentTypes['deleteImage'][0]) + public function deleteImageAsync(string $contentType = self::contentTypes['deleteImage'][0]) { - return $this->deleteImageAsyncWithHttpInfo($app, $contentType) + return $this->deleteImageAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -9392,16 +9281,15 @@ function ($response) { * * Remove the app image. * - * @param string $app The name of the app to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteImageAsyncWithHttpInfo($app, string $contentType = self::contentTypes['deleteImage'][0]) + public function deleteImageAsyncWithHttpInfo(string $contentType = self::contentTypes['deleteImage'][0]) { $returnType = '\Squidex\Client\Model\AppDto'; - $request = $this->deleteImageRequest($app, $contentType); + $request = $this->deleteImageRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9442,16 +9330,16 @@ function ($exception) { /** * Create request for operation 'deleteImage' * - * @param string $app The name of the app to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteImageRequest($app, string $contentType = self::contentTypes['deleteImage'][0]) + public function deleteImageRequest(string $contentType = self::contentTypes['deleteImage'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -9536,16 +9424,15 @@ public function deleteImageRequest($app, string $contentType = self::contentType * * Get an app by name. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getApp'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto */ - public function getApp($app, string $contentType = self::contentTypes['getApp'][0]) + public function getApp(string $contentType = self::contentTypes['getApp'][0]) { - list($response) = $this->getAppWithHttpInfo($app, $contentType); + list($response) = $this->getAppWithHttpInfo($contentType); return $response; } @@ -9554,16 +9441,15 @@ public function getApp($app, string $contentType = self::contentTypes['getApp'][ * * Get an app by name. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getApp'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAppWithHttpInfo($app, string $contentType = self::contentTypes['getApp'][0]) + public function getAppWithHttpInfo(string $contentType = self::contentTypes['getApp'][0]) { - $request = $this->getAppRequest($app, $contentType); + $request = $this->getAppRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -9677,15 +9563,14 @@ public function getAppWithHttpInfo($app, string $contentType = self::contentType * * Get an app by name. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAppAsync($app, string $contentType = self::contentTypes['getApp'][0]) + public function getAppAsync(string $contentType = self::contentTypes['getApp'][0]) { - return $this->getAppAsyncWithHttpInfo($app, $contentType) + return $this->getAppAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -9698,16 +9583,15 @@ function ($response) { * * Get an app by name. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAppAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getApp'][0]) + public function getAppAsyncWithHttpInfo(string $contentType = self::contentTypes['getApp'][0]) { $returnType = '\Squidex\Client\Model\AppDto'; - $request = $this->getAppRequest($app, $contentType); + $request = $this->getAppRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9748,16 +9632,16 @@ function ($exception) { /** * Create request for operation 'getApp' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAppRequest($app, string $contentType = self::contentTypes['getApp'][0]) + public function getAppRequest(string $contentType = self::contentTypes['getApp'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -10785,7 +10669,6 @@ public function postAppRequest($create_app_dto, string $contentType = self::cont * * Update the app. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppDto $update_app_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putApp'] to see the possible values for this operation * @@ -10793,9 +10676,9 @@ public function postAppRequest($create_app_dto, string $contentType = self::cont * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putApp($app, $update_app_dto, string $contentType = self::contentTypes['putApp'][0]) + public function putApp($update_app_dto, string $contentType = self::contentTypes['putApp'][0]) { - list($response) = $this->putAppWithHttpInfo($app, $update_app_dto, $contentType); + list($response) = $this->putAppWithHttpInfo($update_app_dto, $contentType); return $response; } @@ -10804,7 +10687,6 @@ public function putApp($app, $update_app_dto, string $contentType = self::conten * * Update the app. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppDto $update_app_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putApp'] to see the possible values for this operation * @@ -10812,9 +10694,9 @@ public function putApp($app, $update_app_dto, string $contentType = self::conten * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAppWithHttpInfo($app, $update_app_dto, string $contentType = self::contentTypes['putApp'][0]) + public function putAppWithHttpInfo($update_app_dto, string $contentType = self::contentTypes['putApp'][0]) { - $request = $this->putAppRequest($app, $update_app_dto, $contentType); + $request = $this->putAppRequest($update_app_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -10951,16 +10833,15 @@ public function putAppWithHttpInfo($app, $update_app_dto, string $contentType = * * Update the app. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppDto $update_app_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAppAsync($app, $update_app_dto, string $contentType = self::contentTypes['putApp'][0]) + public function putAppAsync($update_app_dto, string $contentType = self::contentTypes['putApp'][0]) { - return $this->putAppAsyncWithHttpInfo($app, $update_app_dto, $contentType) + return $this->putAppAsyncWithHttpInfo($update_app_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -10973,17 +10854,16 @@ function ($response) { * * Update the app. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppDto $update_app_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAppAsyncWithHttpInfo($app, $update_app_dto, string $contentType = self::contentTypes['putApp'][0]) + public function putAppAsyncWithHttpInfo($update_app_dto, string $contentType = self::contentTypes['putApp'][0]) { $returnType = '\Squidex\Client\Model\AppDto'; - $request = $this->putAppRequest($app, $update_app_dto, $contentType); + $request = $this->putAppRequest($update_app_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -11024,17 +10904,17 @@ function ($exception) { /** * Create request for operation 'putApp' * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppDto $update_app_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAppRequest($app, $update_app_dto, string $contentType = self::contentTypes['putApp'][0]) + public function putAppRequest($update_app_dto, string $contentType = self::contentTypes['putApp'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -11133,7 +11013,6 @@ public function putAppRequest($app, $update_app_dto, string $contentType = self: * * Transfer the app. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\TransferToTeamDto $transfer_to_team_dto The team information. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAppTeam'] to see the possible values for this operation * @@ -11141,9 +11020,9 @@ public function putAppRequest($app, $update_app_dto, string $contentType = self: * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAppTeam($app, $transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) + public function putAppTeam($transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) { - list($response) = $this->putAppTeamWithHttpInfo($app, $transfer_to_team_dto, $contentType); + list($response) = $this->putAppTeamWithHttpInfo($transfer_to_team_dto, $contentType); return $response; } @@ -11152,7 +11031,6 @@ public function putAppTeam($app, $transfer_to_team_dto, string $contentType = se * * Transfer the app. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\TransferToTeamDto $transfer_to_team_dto The team information. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAppTeam'] to see the possible values for this operation * @@ -11160,9 +11038,9 @@ public function putAppTeam($app, $transfer_to_team_dto, string $contentType = se * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAppTeamWithHttpInfo($app, $transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) + public function putAppTeamWithHttpInfo($transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) { - $request = $this->putAppTeamRequest($app, $transfer_to_team_dto, $contentType); + $request = $this->putAppTeamRequest($transfer_to_team_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -11299,16 +11177,15 @@ public function putAppTeamWithHttpInfo($app, $transfer_to_team_dto, string $cont * * Transfer the app. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\TransferToTeamDto $transfer_to_team_dto The team information. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAppTeam'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAppTeamAsync($app, $transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) + public function putAppTeamAsync($transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) { - return $this->putAppTeamAsyncWithHttpInfo($app, $transfer_to_team_dto, $contentType) + return $this->putAppTeamAsyncWithHttpInfo($transfer_to_team_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -11321,17 +11198,16 @@ function ($response) { * * Transfer the app. * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\TransferToTeamDto $transfer_to_team_dto The team information. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAppTeam'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAppTeamAsyncWithHttpInfo($app, $transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) + public function putAppTeamAsyncWithHttpInfo($transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) { $returnType = '\Squidex\Client\Model\AppDto'; - $request = $this->putAppTeamRequest($app, $transfer_to_team_dto, $contentType); + $request = $this->putAppTeamRequest($transfer_to_team_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -11372,17 +11248,17 @@ function ($exception) { /** * Create request for operation 'putAppTeam' * - * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\TransferToTeamDto $transfer_to_team_dto The team information. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAppTeam'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAppTeamRequest($app, $transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) + public function putAppTeamRequest($transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -11481,7 +11357,6 @@ public function putAppTeamRequest($app, $transfer_to_team_dto, string $contentTy * * Upload the app image. * - * @param string $app The name of the app to update. (required) * @param \SplFileObject $file file (optional) * @param string $file_url file_url (optional) * @param string $file_name file_name (optional) @@ -11491,9 +11366,9 @@ public function putAppTeamRequest($app, $transfer_to_team_dto, string $contentTy * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function uploadImage($app, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['uploadImage'][0]) + public function uploadImage($file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['uploadImage'][0]) { - list($response) = $this->uploadImageWithHttpInfo($app, $file, $file_url, $file_name, $contentType); + list($response) = $this->uploadImageWithHttpInfo($file, $file_url, $file_name, $contentType); return $response; } @@ -11502,7 +11377,6 @@ public function uploadImage($app, $file = null, $file_url = null, $file_name = n * * Upload the app image. * - * @param string $app The name of the app to update. (required) * @param \SplFileObject $file (optional) * @param string $file_url (optional) * @param string $file_name (optional) @@ -11512,9 +11386,9 @@ public function uploadImage($app, $file = null, $file_url = null, $file_name = n * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function uploadImageWithHttpInfo($app, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['uploadImage'][0]) + public function uploadImageWithHttpInfo($file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['uploadImage'][0]) { - $request = $this->uploadImageRequest($app, $file, $file_url, $file_name, $contentType); + $request = $this->uploadImageRequest($file, $file_url, $file_name, $contentType); try { $options = $this->createHttpClientOption(); @@ -11651,7 +11525,6 @@ public function uploadImageWithHttpInfo($app, $file = null, $file_url = null, $f * * Upload the app image. * - * @param string $app The name of the app to update. (required) * @param \SplFileObject $file (optional) * @param string $file_url (optional) * @param string $file_name (optional) @@ -11660,9 +11533,9 @@ public function uploadImageWithHttpInfo($app, $file = null, $file_url = null, $f * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function uploadImageAsync($app, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['uploadImage'][0]) + public function uploadImageAsync($file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['uploadImage'][0]) { - return $this->uploadImageAsyncWithHttpInfo($app, $file, $file_url, $file_name, $contentType) + return $this->uploadImageAsyncWithHttpInfo($file, $file_url, $file_name, $contentType) ->then( function ($response) { return $response[0]; @@ -11675,7 +11548,6 @@ function ($response) { * * Upload the app image. * - * @param string $app The name of the app to update. (required) * @param \SplFileObject $file (optional) * @param string $file_url (optional) * @param string $file_name (optional) @@ -11684,10 +11556,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function uploadImageAsyncWithHttpInfo($app, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['uploadImage'][0]) + public function uploadImageAsyncWithHttpInfo($file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['uploadImage'][0]) { $returnType = '\Squidex\Client\Model\AppDto'; - $request = $this->uploadImageRequest($app, $file, $file_url, $file_name, $contentType); + $request = $this->uploadImageRequest($file, $file_url, $file_name, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -11728,7 +11600,6 @@ function ($exception) { /** * Create request for operation 'uploadImage' * - * @param string $app The name of the app to update. (required) * @param \SplFileObject $file (optional) * @param string $file_url (optional) * @param string $file_name (optional) @@ -11737,10 +11608,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function uploadImageRequest($app, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['uploadImage'][0]) + public function uploadImageRequest($file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['uploadImage'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/lib/Api/AssetsApi.php b/lib/Api/AssetsApi.php index e8cbc61..a4371dd 100644 --- a/lib/Api/AssetsApi.php +++ b/lib/Api/AssetsApi.php @@ -714,7 +714,6 @@ public function getAssetContentRequest($id, $version = null, $cache = null, $dow * * Get the asset content. * - * @param string $app The name of the app. (required) * @param string $id_or_slug The id or slug of the asset. (required) * @param string $more Optional suffix that can be used to seo-optimize the link to the image Has not effect. (required) * @param int $version The optional version of the asset. (optional) @@ -738,9 +737,9 @@ public function getAssetContentRequest($id, $version = null, $cache = null, $dow * @throws \InvalidArgumentException * @return \SplFileObject|\Squidex\Client\Model\ErrorDto */ - public function getAssetContentBySlug($app, $id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) + public function getAssetContentBySlug($id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) { - list($response) = $this->getAssetContentBySlugWithHttpInfo($app, $id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType); + list($response) = $this->getAssetContentBySlugWithHttpInfo($id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType); return $response; } @@ -749,7 +748,6 @@ public function getAssetContentBySlug($app, $id_or_slug, $more, $version = null, * * Get the asset content. * - * @param string $app The name of the app. (required) * @param string $id_or_slug The id or slug of the asset. (required) * @param string $more Optional suffix that can be used to seo-optimize the link to the image Has not effect. (required) * @param int $version The optional version of the asset. (optional) @@ -773,9 +771,9 @@ public function getAssetContentBySlug($app, $id_or_slug, $more, $version = null, * @throws \InvalidArgumentException * @return array of \SplFileObject|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetContentBySlugWithHttpInfo($app, $id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) + public function getAssetContentBySlugWithHttpInfo($id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) { - $request = $this->getAssetContentBySlugRequest($app, $id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType); + $request = $this->getAssetContentBySlugRequest($id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType); try { $options = $this->createHttpClientOption(); @@ -889,7 +887,6 @@ public function getAssetContentBySlugWithHttpInfo($app, $id_or_slug, $more, $ver * * Get the asset content. * - * @param string $app The name of the app. (required) * @param string $id_or_slug The id or slug of the asset. (required) * @param string $more Optional suffix that can be used to seo-optimize the link to the image Has not effect. (required) * @param int $version The optional version of the asset. (optional) @@ -912,9 +909,9 @@ public function getAssetContentBySlugWithHttpInfo($app, $id_or_slug, $more, $ver * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetContentBySlugAsync($app, $id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) + public function getAssetContentBySlugAsync($id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) { - return $this->getAssetContentBySlugAsyncWithHttpInfo($app, $id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType) + return $this->getAssetContentBySlugAsyncWithHttpInfo($id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType) ->then( function ($response) { return $response[0]; @@ -927,7 +924,6 @@ function ($response) { * * Get the asset content. * - * @param string $app The name of the app. (required) * @param string $id_or_slug The id or slug of the asset. (required) * @param string $more Optional suffix that can be used to seo-optimize the link to the image Has not effect. (required) * @param int $version The optional version of the asset. (optional) @@ -950,10 +946,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetContentBySlugAsyncWithHttpInfo($app, $id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) + public function getAssetContentBySlugAsyncWithHttpInfo($id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) { $returnType = '\SplFileObject'; - $request = $this->getAssetContentBySlugRequest($app, $id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType); + $request = $this->getAssetContentBySlugRequest($id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -994,7 +990,6 @@ function ($exception) { /** * Create request for operation 'getAssetContentBySlug' * - * @param string $app The name of the app. (required) * @param string $id_or_slug The id or slug of the asset. (required) * @param string $more Optional suffix that can be used to seo-optimize the link to the image Has not effect. (required) * @param int $version The optional version of the asset. (optional) @@ -1017,10 +1012,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAssetContentBySlugRequest($app, $id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) + public function getAssetContentBySlugRequest($id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1285,7 +1281,6 @@ public function getAssetContentBySlugRequest($app, $id_or_slug, $more, $version * * Delete an asset folder. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAssetFolder'] to see the possible values for this operation * @@ -1293,9 +1288,9 @@ public function getAssetContentBySlugRequest($app, $id_or_slug, $more, $version * @throws \InvalidArgumentException * @return void */ - public function deleteAssetFolder($app, $id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) + public function deleteAssetFolder($id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) { - $this->deleteAssetFolderWithHttpInfo($app, $id, $contentType); + $this->deleteAssetFolderWithHttpInfo($id, $contentType); } /** @@ -1303,7 +1298,6 @@ public function deleteAssetFolder($app, $id, string $contentType = self::content * * Delete an asset folder. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAssetFolder'] to see the possible values for this operation * @@ -1311,9 +1305,9 @@ public function deleteAssetFolder($app, $id, string $contentType = self::content * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteAssetFolderWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) + public function deleteAssetFolderWithHttpInfo($id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) { - $request = $this->deleteAssetFolderRequest($app, $id, $contentType); + $request = $this->deleteAssetFolderRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1380,16 +1374,15 @@ public function deleteAssetFolderWithHttpInfo($app, $id, string $contentType = s * * Delete an asset folder. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAssetFolder'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAssetFolderAsync($app, $id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) + public function deleteAssetFolderAsync($id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) { - return $this->deleteAssetFolderAsyncWithHttpInfo($app, $id, $contentType) + return $this->deleteAssetFolderAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -1402,17 +1395,16 @@ function ($response) { * * Delete an asset folder. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAssetFolder'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAssetFolderAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) + public function deleteAssetFolderAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) { $returnType = ''; - $request = $this->deleteAssetFolderRequest($app, $id, $contentType); + $request = $this->deleteAssetFolderRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1440,17 +1432,17 @@ function ($exception) { /** * Create request for operation 'deleteAssetFolder' * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAssetFolder'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteAssetFolderRequest($app, $id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) + public function deleteAssetFolderRequest($id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1550,7 +1542,6 @@ public function deleteAssetFolderRequest($app, $id, string $contentType = self:: * * Get asset folders. * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param AssetFolderScope $scope The scope of the query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetFolders'] to see the possible values for this operation @@ -1559,9 +1550,9 @@ public function deleteAssetFolderRequest($app, $id, string $contentType = self:: * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetFoldersDto|\Squidex\Client\Model\ErrorDto */ - public function getAssetFolders($app, $parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) + public function getAssetFolders($parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) { - list($response) = $this->getAssetFoldersWithHttpInfo($app, $parent_id, $scope, $contentType); + list($response) = $this->getAssetFoldersWithHttpInfo($parent_id, $scope, $contentType); return $response; } @@ -1570,7 +1561,6 @@ public function getAssetFolders($app, $parent_id = null, $scope = null, string $ * * Get asset folders. * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param AssetFolderScope $scope The scope of the query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetFolders'] to see the possible values for this operation @@ -1579,9 +1569,9 @@ public function getAssetFolders($app, $parent_id = null, $scope = null, string $ * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetFoldersDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetFoldersWithHttpInfo($app, $parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) + public function getAssetFoldersWithHttpInfo($parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) { - $request = $this->getAssetFoldersRequest($app, $parent_id, $scope, $contentType); + $request = $this->getAssetFoldersRequest($parent_id, $scope, $contentType); try { $options = $this->createHttpClientOption(); @@ -1695,7 +1685,6 @@ public function getAssetFoldersWithHttpInfo($app, $parent_id = null, $scope = nu * * Get asset folders. * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param AssetFolderScope $scope The scope of the query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetFolders'] to see the possible values for this operation @@ -1703,9 +1692,9 @@ public function getAssetFoldersWithHttpInfo($app, $parent_id = null, $scope = nu * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetFoldersAsync($app, $parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) + public function getAssetFoldersAsync($parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) { - return $this->getAssetFoldersAsyncWithHttpInfo($app, $parent_id, $scope, $contentType) + return $this->getAssetFoldersAsyncWithHttpInfo($parent_id, $scope, $contentType) ->then( function ($response) { return $response[0]; @@ -1718,7 +1707,6 @@ function ($response) { * * Get asset folders. * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param AssetFolderScope $scope The scope of the query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetFolders'] to see the possible values for this operation @@ -1726,10 +1714,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetFoldersAsyncWithHttpInfo($app, $parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) + public function getAssetFoldersAsyncWithHttpInfo($parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) { $returnType = '\Squidex\Client\Model\AssetFoldersDto'; - $request = $this->getAssetFoldersRequest($app, $parent_id, $scope, $contentType); + $request = $this->getAssetFoldersRequest($parent_id, $scope, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1770,7 +1758,6 @@ function ($exception) { /** * Create request for operation 'getAssetFolders' * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param AssetFolderScope $scope The scope of the query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetFolders'] to see the possible values for this operation @@ -1778,10 +1765,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAssetFoldersRequest($app, $parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) + public function getAssetFoldersRequest($parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1886,7 +1874,6 @@ public function getAssetFoldersRequest($app, $parent_id = null, $scope = null, s * * Create an asset folder. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateAssetFolderDto $create_asset_folder_dto The asset folder object that needs to be added to the App. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postAssetFolder'] to see the possible values for this operation * @@ -1894,9 +1881,9 @@ public function getAssetFoldersRequest($app, $parent_id = null, $scope = null, s * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetFolderDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postAssetFolder($app, $create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) + public function postAssetFolder($create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) { - list($response) = $this->postAssetFolderWithHttpInfo($app, $create_asset_folder_dto, $contentType); + list($response) = $this->postAssetFolderWithHttpInfo($create_asset_folder_dto, $contentType); return $response; } @@ -1905,7 +1892,6 @@ public function postAssetFolder($app, $create_asset_folder_dto, string $contentT * * Create an asset folder. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateAssetFolderDto $create_asset_folder_dto The asset folder object that needs to be added to the App. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postAssetFolder'] to see the possible values for this operation * @@ -1913,9 +1899,9 @@ public function postAssetFolder($app, $create_asset_folder_dto, string $contentT * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetFolderDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postAssetFolderWithHttpInfo($app, $create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) + public function postAssetFolderWithHttpInfo($create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) { - $request = $this->postAssetFolderRequest($app, $create_asset_folder_dto, $contentType); + $request = $this->postAssetFolderRequest($create_asset_folder_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -2052,16 +2038,15 @@ public function postAssetFolderWithHttpInfo($app, $create_asset_folder_dto, stri * * Create an asset folder. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateAssetFolderDto $create_asset_folder_dto The asset folder object that needs to be added to the App. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postAssetFolder'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postAssetFolderAsync($app, $create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) + public function postAssetFolderAsync($create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) { - return $this->postAssetFolderAsyncWithHttpInfo($app, $create_asset_folder_dto, $contentType) + return $this->postAssetFolderAsyncWithHttpInfo($create_asset_folder_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -2074,17 +2059,16 @@ function ($response) { * * Create an asset folder. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateAssetFolderDto $create_asset_folder_dto The asset folder object that needs to be added to the App. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postAssetFolder'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postAssetFolderAsyncWithHttpInfo($app, $create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) + public function postAssetFolderAsyncWithHttpInfo($create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) { $returnType = '\Squidex\Client\Model\AssetFolderDto'; - $request = $this->postAssetFolderRequest($app, $create_asset_folder_dto, $contentType); + $request = $this->postAssetFolderRequest($create_asset_folder_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2125,17 +2109,17 @@ function ($exception) { /** * Create request for operation 'postAssetFolder' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateAssetFolderDto $create_asset_folder_dto The asset folder object that needs to be added to the App. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postAssetFolder'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postAssetFolderRequest($app, $create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) + public function postAssetFolderRequest($create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -2234,7 +2218,6 @@ public function postAssetFolderRequest($app, $create_asset_folder_dto, string $c * * Update an asset folder. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\RenameAssetFolderDto $rename_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolder'] to see the possible values for this operation @@ -2243,9 +2226,9 @@ public function postAssetFolderRequest($app, $create_asset_folder_dto, string $c * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetFolderDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAssetFolder($app, $id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) + public function putAssetFolder($id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) { - list($response) = $this->putAssetFolderWithHttpInfo($app, $id, $rename_asset_folder_dto, $contentType); + list($response) = $this->putAssetFolderWithHttpInfo($id, $rename_asset_folder_dto, $contentType); return $response; } @@ -2254,7 +2237,6 @@ public function putAssetFolder($app, $id, $rename_asset_folder_dto, string $cont * * Update an asset folder. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\RenameAssetFolderDto $rename_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolder'] to see the possible values for this operation @@ -2263,9 +2245,9 @@ public function putAssetFolder($app, $id, $rename_asset_folder_dto, string $cont * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetFolderDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAssetFolderWithHttpInfo($app, $id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) + public function putAssetFolderWithHttpInfo($id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) { - $request = $this->putAssetFolderRequest($app, $id, $rename_asset_folder_dto, $contentType); + $request = $this->putAssetFolderRequest($id, $rename_asset_folder_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -2402,7 +2384,6 @@ public function putAssetFolderWithHttpInfo($app, $id, $rename_asset_folder_dto, * * Update an asset folder. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\RenameAssetFolderDto $rename_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolder'] to see the possible values for this operation @@ -2410,9 +2391,9 @@ public function putAssetFolderWithHttpInfo($app, $id, $rename_asset_folder_dto, * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetFolderAsync($app, $id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) + public function putAssetFolderAsync($id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) { - return $this->putAssetFolderAsyncWithHttpInfo($app, $id, $rename_asset_folder_dto, $contentType) + return $this->putAssetFolderAsyncWithHttpInfo($id, $rename_asset_folder_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -2425,7 +2406,6 @@ function ($response) { * * Update an asset folder. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\RenameAssetFolderDto $rename_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolder'] to see the possible values for this operation @@ -2433,10 +2413,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetFolderAsyncWithHttpInfo($app, $id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) + public function putAssetFolderAsyncWithHttpInfo($id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) { $returnType = '\Squidex\Client\Model\AssetFolderDto'; - $request = $this->putAssetFolderRequest($app, $id, $rename_asset_folder_dto, $contentType); + $request = $this->putAssetFolderRequest($id, $rename_asset_folder_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2477,7 +2457,6 @@ function ($exception) { /** * Create request for operation 'putAssetFolder' * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\RenameAssetFolderDto $rename_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolder'] to see the possible values for this operation @@ -2485,10 +2464,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAssetFolderRequest($app, $id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) + public function putAssetFolderRequest($id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -2602,7 +2582,6 @@ public function putAssetFolderRequest($app, $id, $rename_asset_folder_dto, strin * * Move an asset folder. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\MoveAssetFolderDto $move_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolderParent'] to see the possible values for this operation @@ -2611,9 +2590,9 @@ public function putAssetFolderRequest($app, $id, $rename_asset_folder_dto, strin * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetFolderDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAssetFolderParent($app, $id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) + public function putAssetFolderParent($id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) { - list($response) = $this->putAssetFolderParentWithHttpInfo($app, $id, $move_asset_folder_dto, $contentType); + list($response) = $this->putAssetFolderParentWithHttpInfo($id, $move_asset_folder_dto, $contentType); return $response; } @@ -2622,7 +2601,6 @@ public function putAssetFolderParent($app, $id, $move_asset_folder_dto, string $ * * Move an asset folder. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\MoveAssetFolderDto $move_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolderParent'] to see the possible values for this operation @@ -2631,9 +2609,9 @@ public function putAssetFolderParent($app, $id, $move_asset_folder_dto, string $ * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetFolderDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAssetFolderParentWithHttpInfo($app, $id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) + public function putAssetFolderParentWithHttpInfo($id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) { - $request = $this->putAssetFolderParentRequest($app, $id, $move_asset_folder_dto, $contentType); + $request = $this->putAssetFolderParentRequest($id, $move_asset_folder_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -2770,7 +2748,6 @@ public function putAssetFolderParentWithHttpInfo($app, $id, $move_asset_folder_d * * Move an asset folder. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\MoveAssetFolderDto $move_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolderParent'] to see the possible values for this operation @@ -2778,9 +2755,9 @@ public function putAssetFolderParentWithHttpInfo($app, $id, $move_asset_folder_d * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetFolderParentAsync($app, $id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) + public function putAssetFolderParentAsync($id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) { - return $this->putAssetFolderParentAsyncWithHttpInfo($app, $id, $move_asset_folder_dto, $contentType) + return $this->putAssetFolderParentAsyncWithHttpInfo($id, $move_asset_folder_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -2793,7 +2770,6 @@ function ($response) { * * Move an asset folder. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\MoveAssetFolderDto $move_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolderParent'] to see the possible values for this operation @@ -2801,10 +2777,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetFolderParentAsyncWithHttpInfo($app, $id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) + public function putAssetFolderParentAsyncWithHttpInfo($id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) { $returnType = '\Squidex\Client\Model\AssetFolderDto'; - $request = $this->putAssetFolderParentRequest($app, $id, $move_asset_folder_dto, $contentType); + $request = $this->putAssetFolderParentRequest($id, $move_asset_folder_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2845,7 +2821,6 @@ function ($exception) { /** * Create request for operation 'putAssetFolderParent' * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\MoveAssetFolderDto $move_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolderParent'] to see the possible values for this operation @@ -2853,10 +2828,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAssetFolderParentRequest($app, $id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) + public function putAssetFolderParentRequest($id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -2970,7 +2946,6 @@ public function putAssetFolderParentRequest($app, $id, $move_asset_folder_dto, s * * Bulk update assets. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateAssetsDto $bulk_update_assets_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAssets'] to see the possible values for this operation * @@ -2978,9 +2953,9 @@ public function putAssetFolderParentRequest($app, $id, $move_asset_folder_dto, s * @throws \InvalidArgumentException * @return \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function bulkUpdateAssets($app, $bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) + public function bulkUpdateAssets($bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) { - list($response) = $this->bulkUpdateAssetsWithHttpInfo($app, $bulk_update_assets_dto, $contentType); + list($response) = $this->bulkUpdateAssetsWithHttpInfo($bulk_update_assets_dto, $contentType); return $response; } @@ -2989,7 +2964,6 @@ public function bulkUpdateAssets($app, $bulk_update_assets_dto, string $contentT * * Bulk update assets. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateAssetsDto $bulk_update_assets_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAssets'] to see the possible values for this operation * @@ -2997,9 +2971,9 @@ public function bulkUpdateAssets($app, $bulk_update_assets_dto, string $contentT * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function bulkUpdateAssetsWithHttpInfo($app, $bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) + public function bulkUpdateAssetsWithHttpInfo($bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) { - $request = $this->bulkUpdateAssetsRequest($app, $bulk_update_assets_dto, $contentType); + $request = $this->bulkUpdateAssetsRequest($bulk_update_assets_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -3136,16 +3110,15 @@ public function bulkUpdateAssetsWithHttpInfo($app, $bulk_update_assets_dto, stri * * Bulk update assets. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateAssetsDto $bulk_update_assets_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAssets'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function bulkUpdateAssetsAsync($app, $bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) + public function bulkUpdateAssetsAsync($bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) { - return $this->bulkUpdateAssetsAsyncWithHttpInfo($app, $bulk_update_assets_dto, $contentType) + return $this->bulkUpdateAssetsAsyncWithHttpInfo($bulk_update_assets_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -3158,17 +3131,16 @@ function ($response) { * * Bulk update assets. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateAssetsDto $bulk_update_assets_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAssets'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function bulkUpdateAssetsAsyncWithHttpInfo($app, $bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) + public function bulkUpdateAssetsAsyncWithHttpInfo($bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) { $returnType = '\Squidex\Client\Model\BulkResultDto[]'; - $request = $this->bulkUpdateAssetsRequest($app, $bulk_update_assets_dto, $contentType); + $request = $this->bulkUpdateAssetsRequest($bulk_update_assets_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3209,17 +3181,17 @@ function ($exception) { /** * Create request for operation 'bulkUpdateAssets' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateAssetsDto $bulk_update_assets_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAssets'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function bulkUpdateAssetsRequest($app, $bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) + public function bulkUpdateAssetsRequest($bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3318,7 +3290,6 @@ public function bulkUpdateAssetsRequest($app, $bulk_update_assets_dto, string $c * * Delete an asset. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset to delete. (required) * @param bool $check_referrers True to check referrers of this asset. (optional) * @param bool $permanent True to delete the asset permanently. (optional) @@ -3328,9 +3299,9 @@ public function bulkUpdateAssetsRequest($app, $bulk_update_assets_dto, string $c * @throws \InvalidArgumentException * @return void */ - public function deleteAsset($app, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) + public function deleteAsset($id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) { - $this->deleteAssetWithHttpInfo($app, $id, $check_referrers, $permanent, $contentType); + $this->deleteAssetWithHttpInfo($id, $check_referrers, $permanent, $contentType); } /** @@ -3338,7 +3309,6 @@ public function deleteAsset($app, $id, $check_referrers = null, $permanent = nul * * Delete an asset. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset to delete. (required) * @param bool $check_referrers True to check referrers of this asset. (optional) * @param bool $permanent True to delete the asset permanently. (optional) @@ -3348,9 +3318,9 @@ public function deleteAsset($app, $id, $check_referrers = null, $permanent = nul * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteAssetWithHttpInfo($app, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) + public function deleteAssetWithHttpInfo($id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) { - $request = $this->deleteAssetRequest($app, $id, $check_referrers, $permanent, $contentType); + $request = $this->deleteAssetRequest($id, $check_referrers, $permanent, $contentType); try { $options = $this->createHttpClientOption(); @@ -3417,7 +3387,6 @@ public function deleteAssetWithHttpInfo($app, $id, $check_referrers = null, $per * * Delete an asset. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset to delete. (required) * @param bool $check_referrers True to check referrers of this asset. (optional) * @param bool $permanent True to delete the asset permanently. (optional) @@ -3426,9 +3395,9 @@ public function deleteAssetWithHttpInfo($app, $id, $check_referrers = null, $per * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAssetAsync($app, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) + public function deleteAssetAsync($id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) { - return $this->deleteAssetAsyncWithHttpInfo($app, $id, $check_referrers, $permanent, $contentType) + return $this->deleteAssetAsyncWithHttpInfo($id, $check_referrers, $permanent, $contentType) ->then( function ($response) { return $response[0]; @@ -3441,7 +3410,6 @@ function ($response) { * * Delete an asset. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset to delete. (required) * @param bool $check_referrers True to check referrers of this asset. (optional) * @param bool $permanent True to delete the asset permanently. (optional) @@ -3450,10 +3418,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAssetAsyncWithHttpInfo($app, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) + public function deleteAssetAsyncWithHttpInfo($id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) { $returnType = ''; - $request = $this->deleteAssetRequest($app, $id, $check_referrers, $permanent, $contentType); + $request = $this->deleteAssetRequest($id, $check_referrers, $permanent, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3481,7 +3449,6 @@ function ($exception) { /** * Create request for operation 'deleteAsset' * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset to delete. (required) * @param bool $check_referrers True to check referrers of this asset. (optional) * @param bool $permanent True to delete the asset permanently. (optional) @@ -3490,10 +3457,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteAssetRequest($app, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) + public function deleteAssetRequest($id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3613,7 +3581,6 @@ public function deleteAssetRequest($app, $id, $check_referrers = null, $permanen * * Get an asset by id. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAsset'] to see the possible values for this operation * @@ -3621,9 +3588,9 @@ public function deleteAssetRequest($app, $id, $check_referrers = null, $permanen * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto */ - public function getAsset($app, $id, string $contentType = self::contentTypes['getAsset'][0]) + public function getAsset($id, string $contentType = self::contentTypes['getAsset'][0]) { - list($response) = $this->getAssetWithHttpInfo($app, $id, $contentType); + list($response) = $this->getAssetWithHttpInfo($id, $contentType); return $response; } @@ -3632,7 +3599,6 @@ public function getAsset($app, $id, string $contentType = self::contentTypes['ge * * Get an asset by id. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAsset'] to see the possible values for this operation * @@ -3640,9 +3606,9 @@ public function getAsset($app, $id, string $contentType = self::contentTypes['ge * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetWithHttpInfo($app, $id, string $contentType = self::contentTypes['getAsset'][0]) + public function getAssetWithHttpInfo($id, string $contentType = self::contentTypes['getAsset'][0]) { - $request = $this->getAssetRequest($app, $id, $contentType); + $request = $this->getAssetRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -3756,16 +3722,15 @@ public function getAssetWithHttpInfo($app, $id, string $contentType = self::cont * * Get an asset by id. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAsset'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetAsync($app, $id, string $contentType = self::contentTypes['getAsset'][0]) + public function getAssetAsync($id, string $contentType = self::contentTypes['getAsset'][0]) { - return $this->getAssetAsyncWithHttpInfo($app, $id, $contentType) + return $this->getAssetAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -3778,17 +3743,16 @@ function ($response) { * * Get an asset by id. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAsset'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['getAsset'][0]) + public function getAssetAsyncWithHttpInfo($id, string $contentType = self::contentTypes['getAsset'][0]) { $returnType = '\Squidex\Client\Model\AssetDto'; - $request = $this->getAssetRequest($app, $id, $contentType); + $request = $this->getAssetRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3829,17 +3793,17 @@ function ($exception) { /** * Create request for operation 'getAsset' * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAsset'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAssetRequest($app, $id, string $contentType = self::contentTypes['getAsset'][0]) + public function getAssetRequest($id, string $contentType = self::contentTypes['getAsset'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3939,7 +3903,6 @@ public function getAssetRequest($app, $id, string $contentType = self::contentTy * * Get assets. * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $ids The optional asset ids. (optional) * @param string $q The optional json query. (optional) @@ -3955,9 +3918,9 @@ public function getAssetRequest($app, $id, string $contentType = self::contentTy * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetsDto|\Squidex\Client\Model\ErrorDto */ - public function getAssets($app, $parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) + public function getAssets($parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) { - list($response) = $this->getAssetsWithHttpInfo($app, $parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType); + list($response) = $this->getAssetsWithHttpInfo($parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType); return $response; } @@ -3966,7 +3929,6 @@ public function getAssets($app, $parent_id = null, $ids = null, $q = null, $top * * Get assets. * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $ids The optional asset ids. (optional) * @param string $q The optional json query. (optional) @@ -3982,9 +3944,9 @@ public function getAssets($app, $parent_id = null, $ids = null, $q = null, $top * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetsWithHttpInfo($app, $parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) + public function getAssetsWithHttpInfo($parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) { - $request = $this->getAssetsRequest($app, $parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType); + $request = $this->getAssetsRequest($parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType); try { $options = $this->createHttpClientOption(); @@ -4098,7 +4060,6 @@ public function getAssetsWithHttpInfo($app, $parent_id = null, $ids = null, $q = * * Get assets. * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $ids The optional asset ids. (optional) * @param string $q The optional json query. (optional) @@ -4113,9 +4074,9 @@ public function getAssetsWithHttpInfo($app, $parent_id = null, $ids = null, $q = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetsAsync($app, $parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) + public function getAssetsAsync($parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) { - return $this->getAssetsAsyncWithHttpInfo($app, $parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType) + return $this->getAssetsAsyncWithHttpInfo($parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType) ->then( function ($response) { return $response[0]; @@ -4128,7 +4089,6 @@ function ($response) { * * Get assets. * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $ids The optional asset ids. (optional) * @param string $q The optional json query. (optional) @@ -4143,10 +4103,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetsAsyncWithHttpInfo($app, $parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) + public function getAssetsAsyncWithHttpInfo($parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) { $returnType = '\Squidex\Client\Model\AssetsDto'; - $request = $this->getAssetsRequest($app, $parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType); + $request = $this->getAssetsRequest($parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4187,7 +4147,6 @@ function ($exception) { /** * Create request for operation 'getAssets' * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $ids The optional asset ids. (optional) * @param string $q The optional json query. (optional) @@ -4202,10 +4161,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAssetsRequest($app, $parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) + public function getAssetsRequest($parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4370,7 +4330,6 @@ public function getAssetsRequest($app, $parent_id = null, $ids = null, $q = null * * Get assets. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) @@ -4380,9 +4339,9 @@ public function getAssetsRequest($app, $parent_id = null, $ids = null, $q = null * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function getAssetsPost($app, $query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) + public function getAssetsPost($query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) { - list($response) = $this->getAssetsPostWithHttpInfo($app, $query_dto, $x_no_total, $x_no_slow_total, $contentType); + list($response) = $this->getAssetsPostWithHttpInfo($query_dto, $x_no_total, $x_no_slow_total, $contentType); return $response; } @@ -4391,7 +4350,6 @@ public function getAssetsPost($app, $query_dto, $x_no_total = null, $x_no_slow_t * * Get assets. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) @@ -4401,9 +4359,9 @@ public function getAssetsPost($app, $query_dto, $x_no_total = null, $x_no_slow_t * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetsPostWithHttpInfo($app, $query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) + public function getAssetsPostWithHttpInfo($query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) { - $request = $this->getAssetsPostRequest($app, $query_dto, $x_no_total, $x_no_slow_total, $contentType); + $request = $this->getAssetsPostRequest($query_dto, $x_no_total, $x_no_slow_total, $contentType); try { $options = $this->createHttpClientOption(); @@ -4540,7 +4498,6 @@ public function getAssetsPostWithHttpInfo($app, $query_dto, $x_no_total = null, * * Get assets. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) @@ -4549,9 +4506,9 @@ public function getAssetsPostWithHttpInfo($app, $query_dto, $x_no_total = null, * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetsPostAsync($app, $query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) + public function getAssetsPostAsync($query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) { - return $this->getAssetsPostAsyncWithHttpInfo($app, $query_dto, $x_no_total, $x_no_slow_total, $contentType) + return $this->getAssetsPostAsyncWithHttpInfo($query_dto, $x_no_total, $x_no_slow_total, $contentType) ->then( function ($response) { return $response[0]; @@ -4564,7 +4521,6 @@ function ($response) { * * Get assets. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) @@ -4573,10 +4529,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetsPostAsyncWithHttpInfo($app, $query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) + public function getAssetsPostAsyncWithHttpInfo($query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) { $returnType = '\Squidex\Client\Model\AssetsDto'; - $request = $this->getAssetsPostRequest($app, $query_dto, $x_no_total, $x_no_slow_total, $contentType); + $request = $this->getAssetsPostRequest($query_dto, $x_no_total, $x_no_slow_total, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4617,7 +4573,6 @@ function ($exception) { /** * Create request for operation 'getAssetsPost' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) @@ -4626,10 +4581,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAssetsPostRequest($app, $query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) + public function getAssetsPostRequest($query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4738,16 +4694,15 @@ public function getAssetsPostRequest($app, $query_dto, $x_no_total = null, $x_no * * Get assets tags. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTags'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array|\Squidex\Client\Model\ErrorDto */ - public function getTags($app, string $contentType = self::contentTypes['getTags'][0]) + public function getTags(string $contentType = self::contentTypes['getTags'][0]) { - list($response) = $this->getTagsWithHttpInfo($app, $contentType); + list($response) = $this->getTagsWithHttpInfo($contentType); return $response; } @@ -4756,16 +4711,15 @@ public function getTags($app, string $contentType = self::contentTypes['getTags' * * Get assets tags. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTags'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of array|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getTagsWithHttpInfo($app, string $contentType = self::contentTypes['getTags'][0]) + public function getTagsWithHttpInfo(string $contentType = self::contentTypes['getTags'][0]) { - $request = $this->getTagsRequest($app, $contentType); + $request = $this->getTagsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -4879,15 +4833,14 @@ public function getTagsWithHttpInfo($app, string $contentType = self::contentTyp * * Get assets tags. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTags'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTagsAsync($app, string $contentType = self::contentTypes['getTags'][0]) + public function getTagsAsync(string $contentType = self::contentTypes['getTags'][0]) { - return $this->getTagsAsyncWithHttpInfo($app, $contentType) + return $this->getTagsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -4900,16 +4853,15 @@ function ($response) { * * Get assets tags. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTags'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTagsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getTags'][0]) + public function getTagsAsyncWithHttpInfo(string $contentType = self::contentTypes['getTags'][0]) { $returnType = 'array'; - $request = $this->getTagsRequest($app, $contentType); + $request = $this->getTagsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4950,16 +4902,16 @@ function ($exception) { /** * Create request for operation 'getTags' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTags'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getTagsRequest($app, string $contentType = self::contentTypes['getTags'][0]) + public function getTagsRequest(string $contentType = self::contentTypes['getTags'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5044,7 +4996,6 @@ public function getTagsRequest($app, string $contentType = self::contentTypes['g * * Upload a new asset. * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $id The optional custom asset id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5057,9 +5008,9 @@ public function getTagsRequest($app, string $contentType = self::contentTypes['g * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postAsset($app, $parent_id = null, $id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postAsset'][0]) + public function postAsset($parent_id = null, $id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postAsset'][0]) { - list($response) = $this->postAssetWithHttpInfo($app, $parent_id, $id, $duplicate, $file, $file_url, $file_name, $contentType); + list($response) = $this->postAssetWithHttpInfo($parent_id, $id, $duplicate, $file, $file_url, $file_name, $contentType); return $response; } @@ -5068,7 +5019,6 @@ public function postAsset($app, $parent_id = null, $id = null, $duplicate = null * * Upload a new asset. * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $id The optional custom asset id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5081,9 +5031,9 @@ public function postAsset($app, $parent_id = null, $id = null, $duplicate = null * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postAssetWithHttpInfo($app, $parent_id = null, $id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postAsset'][0]) + public function postAssetWithHttpInfo($parent_id = null, $id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postAsset'][0]) { - $request = $this->postAssetRequest($app, $parent_id, $id, $duplicate, $file, $file_url, $file_name, $contentType); + $request = $this->postAssetRequest($parent_id, $id, $duplicate, $file, $file_url, $file_name, $contentType); try { $options = $this->createHttpClientOption(); @@ -5243,7 +5193,6 @@ public function postAssetWithHttpInfo($app, $parent_id = null, $id = null, $dupl * * Upload a new asset. * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $id The optional custom asset id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5255,9 +5204,9 @@ public function postAssetWithHttpInfo($app, $parent_id = null, $id = null, $dupl * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postAssetAsync($app, $parent_id = null, $id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postAsset'][0]) + public function postAssetAsync($parent_id = null, $id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postAsset'][0]) { - return $this->postAssetAsyncWithHttpInfo($app, $parent_id, $id, $duplicate, $file, $file_url, $file_name, $contentType) + return $this->postAssetAsyncWithHttpInfo($parent_id, $id, $duplicate, $file, $file_url, $file_name, $contentType) ->then( function ($response) { return $response[0]; @@ -5270,7 +5219,6 @@ function ($response) { * * Upload a new asset. * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $id The optional custom asset id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5282,10 +5230,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postAssetAsyncWithHttpInfo($app, $parent_id = null, $id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postAsset'][0]) + public function postAssetAsyncWithHttpInfo($parent_id = null, $id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postAsset'][0]) { $returnType = '\Squidex\Client\Model\AssetDto'; - $request = $this->postAssetRequest($app, $parent_id, $id, $duplicate, $file, $file_url, $file_name, $contentType); + $request = $this->postAssetRequest($parent_id, $id, $duplicate, $file, $file_url, $file_name, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5326,7 +5274,6 @@ function ($exception) { /** * Create request for operation 'postAsset' * - * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $id The optional custom asset id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5338,10 +5285,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postAssetRequest($app, $parent_id = null, $id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postAsset'][0]) + public function postAssetRequest($parent_id = null, $id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postAsset'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5479,7 +5427,6 @@ public function postAssetRequest($app, $parent_id = null, $id = null, $duplicate * * Upsert an asset. * - * @param string $app The name of the app. (required) * @param string $id The optional custom asset id. (required) * @param string $parent_id The optional parent folder id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5492,9 +5439,9 @@ public function postAssetRequest($app, $parent_id = null, $id = null, $duplicate * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postUpsertAsset($app, $id, $parent_id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) + public function postUpsertAsset($id, $parent_id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) { - list($response) = $this->postUpsertAssetWithHttpInfo($app, $id, $parent_id, $duplicate, $file, $file_url, $file_name, $contentType); + list($response) = $this->postUpsertAssetWithHttpInfo($id, $parent_id, $duplicate, $file, $file_url, $file_name, $contentType); return $response; } @@ -5503,7 +5450,6 @@ public function postUpsertAsset($app, $id, $parent_id = null, $duplicate = null, * * Upsert an asset. * - * @param string $app The name of the app. (required) * @param string $id The optional custom asset id. (required) * @param string $parent_id The optional parent folder id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5516,9 +5462,9 @@ public function postUpsertAsset($app, $id, $parent_id = null, $duplicate = null, * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postUpsertAssetWithHttpInfo($app, $id, $parent_id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) + public function postUpsertAssetWithHttpInfo($id, $parent_id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) { - $request = $this->postUpsertAssetRequest($app, $id, $parent_id, $duplicate, $file, $file_url, $file_name, $contentType); + $request = $this->postUpsertAssetRequest($id, $parent_id, $duplicate, $file, $file_url, $file_name, $contentType); try { $options = $this->createHttpClientOption(); @@ -5678,7 +5624,6 @@ public function postUpsertAssetWithHttpInfo($app, $id, $parent_id = null, $dupli * * Upsert an asset. * - * @param string $app The name of the app. (required) * @param string $id The optional custom asset id. (required) * @param string $parent_id The optional parent folder id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5690,9 +5635,9 @@ public function postUpsertAssetWithHttpInfo($app, $id, $parent_id = null, $dupli * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postUpsertAssetAsync($app, $id, $parent_id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) + public function postUpsertAssetAsync($id, $parent_id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) { - return $this->postUpsertAssetAsyncWithHttpInfo($app, $id, $parent_id, $duplicate, $file, $file_url, $file_name, $contentType) + return $this->postUpsertAssetAsyncWithHttpInfo($id, $parent_id, $duplicate, $file, $file_url, $file_name, $contentType) ->then( function ($response) { return $response[0]; @@ -5705,7 +5650,6 @@ function ($response) { * * Upsert an asset. * - * @param string $app The name of the app. (required) * @param string $id The optional custom asset id. (required) * @param string $parent_id The optional parent folder id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5717,10 +5661,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postUpsertAssetAsyncWithHttpInfo($app, $id, $parent_id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) + public function postUpsertAssetAsyncWithHttpInfo($id, $parent_id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) { $returnType = '\Squidex\Client\Model\AssetDto'; - $request = $this->postUpsertAssetRequest($app, $id, $parent_id, $duplicate, $file, $file_url, $file_name, $contentType); + $request = $this->postUpsertAssetRequest($id, $parent_id, $duplicate, $file, $file_url, $file_name, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5761,7 +5705,6 @@ function ($exception) { /** * Create request for operation 'postUpsertAsset' * - * @param string $app The name of the app. (required) * @param string $id The optional custom asset id. (required) * @param string $parent_id The optional parent folder id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5773,10 +5716,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postUpsertAssetRequest($app, $id, $parent_id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) + public function postUpsertAssetRequest($id, $parent_id = null, $duplicate = null, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5919,7 +5863,6 @@ public function postUpsertAssetRequest($app, $id, $parent_id = null, $duplicate * * Update an asset. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\AnnotateAssetDto $annotate_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAsset'] to see the possible values for this operation @@ -5928,9 +5871,9 @@ public function postUpsertAssetRequest($app, $id, $parent_id = null, $duplicate * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAsset($app, $id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) + public function putAsset($id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) { - list($response) = $this->putAssetWithHttpInfo($app, $id, $annotate_asset_dto, $contentType); + list($response) = $this->putAssetWithHttpInfo($id, $annotate_asset_dto, $contentType); return $response; } @@ -5939,7 +5882,6 @@ public function putAsset($app, $id, $annotate_asset_dto, string $contentType = s * * Update an asset. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\AnnotateAssetDto $annotate_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAsset'] to see the possible values for this operation @@ -5948,9 +5890,9 @@ public function putAsset($app, $id, $annotate_asset_dto, string $contentType = s * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAssetWithHttpInfo($app, $id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) + public function putAssetWithHttpInfo($id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) { - $request = $this->putAssetRequest($app, $id, $annotate_asset_dto, $contentType); + $request = $this->putAssetRequest($id, $annotate_asset_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -6087,7 +6029,6 @@ public function putAssetWithHttpInfo($app, $id, $annotate_asset_dto, string $con * * Update an asset. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\AnnotateAssetDto $annotate_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAsset'] to see the possible values for this operation @@ -6095,9 +6036,9 @@ public function putAssetWithHttpInfo($app, $id, $annotate_asset_dto, string $con * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetAsync($app, $id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) + public function putAssetAsync($id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) { - return $this->putAssetAsyncWithHttpInfo($app, $id, $annotate_asset_dto, $contentType) + return $this->putAssetAsyncWithHttpInfo($id, $annotate_asset_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -6110,7 +6051,6 @@ function ($response) { * * Update an asset. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\AnnotateAssetDto $annotate_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAsset'] to see the possible values for this operation @@ -6118,10 +6058,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetAsyncWithHttpInfo($app, $id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) + public function putAssetAsyncWithHttpInfo($id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) { $returnType = '\Squidex\Client\Model\AssetDto'; - $request = $this->putAssetRequest($app, $id, $annotate_asset_dto, $contentType); + $request = $this->putAssetRequest($id, $annotate_asset_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6162,7 +6102,6 @@ function ($exception) { /** * Create request for operation 'putAsset' * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\AnnotateAssetDto $annotate_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAsset'] to see the possible values for this operation @@ -6170,10 +6109,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAssetRequest($app, $id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) + public function putAssetRequest($id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -6287,7 +6227,6 @@ public function putAssetRequest($app, $id, $annotate_asset_dto, string $contentT * * Replace asset content. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \SplFileObject $file file (optional) * @param string $file_url file_url (optional) @@ -6298,9 +6237,9 @@ public function putAssetRequest($app, $id, $annotate_asset_dto, string $contentT * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAssetContent($app, $id, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['putAssetContent'][0]) + public function putAssetContent($id, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['putAssetContent'][0]) { - list($response) = $this->putAssetContentWithHttpInfo($app, $id, $file, $file_url, $file_name, $contentType); + list($response) = $this->putAssetContentWithHttpInfo($id, $file, $file_url, $file_name, $contentType); return $response; } @@ -6309,7 +6248,6 @@ public function putAssetContent($app, $id, $file = null, $file_url = null, $file * * Replace asset content. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \SplFileObject $file (optional) * @param string $file_url (optional) @@ -6320,9 +6258,9 @@ public function putAssetContent($app, $id, $file = null, $file_url = null, $file * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAssetContentWithHttpInfo($app, $id, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['putAssetContent'][0]) + public function putAssetContentWithHttpInfo($id, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['putAssetContent'][0]) { - $request = $this->putAssetContentRequest($app, $id, $file, $file_url, $file_name, $contentType); + $request = $this->putAssetContentRequest($id, $file, $file_url, $file_name, $contentType); try { $options = $this->createHttpClientOption(); @@ -6482,7 +6420,6 @@ public function putAssetContentWithHttpInfo($app, $id, $file = null, $file_url = * * Replace asset content. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \SplFileObject $file (optional) * @param string $file_url (optional) @@ -6492,9 +6429,9 @@ public function putAssetContentWithHttpInfo($app, $id, $file = null, $file_url = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetContentAsync($app, $id, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['putAssetContent'][0]) + public function putAssetContentAsync($id, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['putAssetContent'][0]) { - return $this->putAssetContentAsyncWithHttpInfo($app, $id, $file, $file_url, $file_name, $contentType) + return $this->putAssetContentAsyncWithHttpInfo($id, $file, $file_url, $file_name, $contentType) ->then( function ($response) { return $response[0]; @@ -6507,7 +6444,6 @@ function ($response) { * * Replace asset content. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \SplFileObject $file (optional) * @param string $file_url (optional) @@ -6517,10 +6453,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetContentAsyncWithHttpInfo($app, $id, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['putAssetContent'][0]) + public function putAssetContentAsyncWithHttpInfo($id, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['putAssetContent'][0]) { $returnType = '\Squidex\Client\Model\AssetDto'; - $request = $this->putAssetContentRequest($app, $id, $file, $file_url, $file_name, $contentType); + $request = $this->putAssetContentRequest($id, $file, $file_url, $file_name, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6561,7 +6497,6 @@ function ($exception) { /** * Create request for operation 'putAssetContent' * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \SplFileObject $file (optional) * @param string $file_url (optional) @@ -6571,10 +6506,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAssetContentRequest($app, $id, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['putAssetContent'][0]) + public function putAssetContentRequest($id, $file = null, $file_url = null, $file_name = null, string $contentType = self::contentTypes['putAssetContent'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -6697,7 +6633,6 @@ public function putAssetContentRequest($app, $id, $file = null, $file_url = null * * Moves the asset. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\MoveAssetDto $move_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetParent'] to see the possible values for this operation @@ -6706,9 +6641,9 @@ public function putAssetContentRequest($app, $id, $file = null, $file_url = null * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAssetParent($app, $id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) + public function putAssetParent($id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) { - list($response) = $this->putAssetParentWithHttpInfo($app, $id, $move_asset_dto, $contentType); + list($response) = $this->putAssetParentWithHttpInfo($id, $move_asset_dto, $contentType); return $response; } @@ -6717,7 +6652,6 @@ public function putAssetParent($app, $id, $move_asset_dto, string $contentType = * * Moves the asset. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\MoveAssetDto $move_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetParent'] to see the possible values for this operation @@ -6726,9 +6660,9 @@ public function putAssetParent($app, $id, $move_asset_dto, string $contentType = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAssetParentWithHttpInfo($app, $id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) + public function putAssetParentWithHttpInfo($id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) { - $request = $this->putAssetParentRequest($app, $id, $move_asset_dto, $contentType); + $request = $this->putAssetParentRequest($id, $move_asset_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -6865,7 +6799,6 @@ public function putAssetParentWithHttpInfo($app, $id, $move_asset_dto, string $c * * Moves the asset. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\MoveAssetDto $move_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetParent'] to see the possible values for this operation @@ -6873,9 +6806,9 @@ public function putAssetParentWithHttpInfo($app, $id, $move_asset_dto, string $c * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetParentAsync($app, $id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) + public function putAssetParentAsync($id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) { - return $this->putAssetParentAsyncWithHttpInfo($app, $id, $move_asset_dto, $contentType) + return $this->putAssetParentAsyncWithHttpInfo($id, $move_asset_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -6888,7 +6821,6 @@ function ($response) { * * Moves the asset. * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\MoveAssetDto $move_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetParent'] to see the possible values for this operation @@ -6896,10 +6828,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetParentAsyncWithHttpInfo($app, $id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) + public function putAssetParentAsyncWithHttpInfo($id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) { $returnType = '\Squidex\Client\Model\AssetDto'; - $request = $this->putAssetParentRequest($app, $id, $move_asset_dto, $contentType); + $request = $this->putAssetParentRequest($id, $move_asset_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6940,7 +6872,6 @@ function ($exception) { /** * Create request for operation 'putAssetParent' * - * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\MoveAssetDto $move_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetParent'] to see the possible values for this operation @@ -6948,10 +6879,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAssetParentRequest($app, $id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) + public function putAssetParentRequest($id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -7065,7 +6997,6 @@ public function putAssetParentRequest($app, $id, $move_asset_dto, string $conten * * Rename an asset tag. * - * @param string $app The name of the app. (required) * @param string $name The tag to return. (required) * @param \Squidex\Client\Model\RenameTagDto $rename_tag_dto The required request object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putTag'] to see the possible values for this operation @@ -7074,9 +7005,9 @@ public function putAssetParentRequest($app, $id, $move_asset_dto, string $conten * @throws \InvalidArgumentException * @return array|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putTag($app, $name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) + public function putTag($name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) { - list($response) = $this->putTagWithHttpInfo($app, $name, $rename_tag_dto, $contentType); + list($response) = $this->putTagWithHttpInfo($name, $rename_tag_dto, $contentType); return $response; } @@ -7085,7 +7016,6 @@ public function putTag($app, $name, $rename_tag_dto, string $contentType = self: * * Rename an asset tag. * - * @param string $app The name of the app. (required) * @param string $name The tag to return. (required) * @param \Squidex\Client\Model\RenameTagDto $rename_tag_dto The required request object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putTag'] to see the possible values for this operation @@ -7094,9 +7024,9 @@ public function putTag($app, $name, $rename_tag_dto, string $contentType = self: * @throws \InvalidArgumentException * @return array of array|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putTagWithHttpInfo($app, $name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) + public function putTagWithHttpInfo($name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) { - $request = $this->putTagRequest($app, $name, $rename_tag_dto, $contentType); + $request = $this->putTagRequest($name, $rename_tag_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -7233,7 +7163,6 @@ public function putTagWithHttpInfo($app, $name, $rename_tag_dto, string $content * * Rename an asset tag. * - * @param string $app The name of the app. (required) * @param string $name The tag to return. (required) * @param \Squidex\Client\Model\RenameTagDto $rename_tag_dto The required request object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putTag'] to see the possible values for this operation @@ -7241,9 +7170,9 @@ public function putTagWithHttpInfo($app, $name, $rename_tag_dto, string $content * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putTagAsync($app, $name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) + public function putTagAsync($name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) { - return $this->putTagAsyncWithHttpInfo($app, $name, $rename_tag_dto, $contentType) + return $this->putTagAsyncWithHttpInfo($name, $rename_tag_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -7256,7 +7185,6 @@ function ($response) { * * Rename an asset tag. * - * @param string $app The name of the app. (required) * @param string $name The tag to return. (required) * @param \Squidex\Client\Model\RenameTagDto $rename_tag_dto The required request object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putTag'] to see the possible values for this operation @@ -7264,10 +7192,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putTagAsyncWithHttpInfo($app, $name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) + public function putTagAsyncWithHttpInfo($name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) { $returnType = 'array'; - $request = $this->putTagRequest($app, $name, $rename_tag_dto, $contentType); + $request = $this->putTagRequest($name, $rename_tag_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7308,7 +7236,6 @@ function ($exception) { /** * Create request for operation 'putTag' * - * @param string $app The name of the app. (required) * @param string $name The tag to return. (required) * @param \Squidex\Client\Model\RenameTagDto $rename_tag_dto The required request object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putTag'] to see the possible values for this operation @@ -7316,10 +7243,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putTagRequest($app, $name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) + public function putTagRequest($name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/lib/Api/BackupsApi.php b/lib/Api/BackupsApi.php index 955ee6a..4717c57 100644 --- a/lib/Api/BackupsApi.php +++ b/lib/Api/BackupsApi.php @@ -142,7 +142,6 @@ public function getConfig() * * Get the backup content. * - * @param string $app The name of the app. (required) * @param string $id The ID of the backup. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContent'] to see the possible values for this operation * @@ -151,9 +150,9 @@ public function getConfig() * @return \SplFileObject|\Squidex\Client\Model\ErrorDto * @deprecated */ - public function getBackupContent($app, $id, string $contentType = self::contentTypes['getBackupContent'][0]) + public function getBackupContent($id, string $contentType = self::contentTypes['getBackupContent'][0]) { - list($response) = $this->getBackupContentWithHttpInfo($app, $id, $contentType); + list($response) = $this->getBackupContentWithHttpInfo($id, $contentType); return $response; } @@ -162,7 +161,6 @@ public function getBackupContent($app, $id, string $contentType = self::contentT * * Get the backup content. * - * @param string $app The name of the app. (required) * @param string $id The ID of the backup. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContent'] to see the possible values for this operation * @@ -171,9 +169,9 @@ public function getBackupContent($app, $id, string $contentType = self::contentT * @return array of \SplFileObject|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) * @deprecated */ - public function getBackupContentWithHttpInfo($app, $id, string $contentType = self::contentTypes['getBackupContent'][0]) + public function getBackupContentWithHttpInfo($id, string $contentType = self::contentTypes['getBackupContent'][0]) { - $request = $this->getBackupContentRequest($app, $id, $contentType); + $request = $this->getBackupContentRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -287,7 +285,6 @@ public function getBackupContentWithHttpInfo($app, $id, string $contentType = se * * Get the backup content. * - * @param string $app The name of the app. (required) * @param string $id The ID of the backup. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContent'] to see the possible values for this operation * @@ -295,9 +292,9 @@ public function getBackupContentWithHttpInfo($app, $id, string $contentType = se * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function getBackupContentAsync($app, $id, string $contentType = self::contentTypes['getBackupContent'][0]) + public function getBackupContentAsync($id, string $contentType = self::contentTypes['getBackupContent'][0]) { - return $this->getBackupContentAsyncWithHttpInfo($app, $id, $contentType) + return $this->getBackupContentAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -310,7 +307,6 @@ function ($response) { * * Get the backup content. * - * @param string $app The name of the app. (required) * @param string $id The ID of the backup. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContent'] to see the possible values for this operation * @@ -318,10 +314,10 @@ function ($response) { * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function getBackupContentAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['getBackupContent'][0]) + public function getBackupContentAsyncWithHttpInfo($id, string $contentType = self::contentTypes['getBackupContent'][0]) { $returnType = '\SplFileObject'; - $request = $this->getBackupContentRequest($app, $id, $contentType); + $request = $this->getBackupContentRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -362,7 +358,6 @@ function ($exception) { /** * Create request for operation 'getBackupContent' * - * @param string $app The name of the app. (required) * @param string $id The ID of the backup. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContent'] to see the possible values for this operation * @@ -370,10 +365,11 @@ function ($exception) { * @return \GuzzleHttp\Psr7\Request * @deprecated */ - public function getBackupContentRequest($app, $id, string $contentType = self::contentTypes['getBackupContent'][0]) + public function getBackupContentRequest($id, string $contentType = self::contentTypes['getBackupContent'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -814,7 +810,6 @@ public function getBackupContentV2Request($id, $app_id = null, $app = '', string * * Delete a backup. * - * @param string $app The name of the app. (required) * @param string $id The ID of the backup to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBackup'] to see the possible values for this operation * @@ -823,9 +818,9 @@ public function getBackupContentV2Request($id, $app_id = null, $app = '', string * @return void * @deprecated */ - public function deleteBackup($app, $id, string $contentType = self::contentTypes['deleteBackup'][0]) + public function deleteBackup($id, string $contentType = self::contentTypes['deleteBackup'][0]) { - $this->deleteBackupWithHttpInfo($app, $id, $contentType); + $this->deleteBackupWithHttpInfo($id, $contentType); } /** @@ -833,7 +828,6 @@ public function deleteBackup($app, $id, string $contentType = self::contentTypes * * Delete a backup. * - * @param string $app The name of the app. (required) * @param string $id The ID of the backup to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBackup'] to see the possible values for this operation * @@ -842,9 +836,9 @@ public function deleteBackup($app, $id, string $contentType = self::contentTypes * @return array of null, HTTP status code, HTTP response headers (array of strings) * @deprecated */ - public function deleteBackupWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteBackup'][0]) + public function deleteBackupWithHttpInfo($id, string $contentType = self::contentTypes['deleteBackup'][0]) { - $request = $this->deleteBackupRequest($app, $id, $contentType); + $request = $this->deleteBackupRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -911,7 +905,6 @@ public function deleteBackupWithHttpInfo($app, $id, string $contentType = self:: * * Delete a backup. * - * @param string $app The name of the app. (required) * @param string $id The ID of the backup to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBackup'] to see the possible values for this operation * @@ -919,9 +912,9 @@ public function deleteBackupWithHttpInfo($app, $id, string $contentType = self:: * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function deleteBackupAsync($app, $id, string $contentType = self::contentTypes['deleteBackup'][0]) + public function deleteBackupAsync($id, string $contentType = self::contentTypes['deleteBackup'][0]) { - return $this->deleteBackupAsyncWithHttpInfo($app, $id, $contentType) + return $this->deleteBackupAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -934,7 +927,6 @@ function ($response) { * * Delete a backup. * - * @param string $app The name of the app. (required) * @param string $id The ID of the backup to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBackup'] to see the possible values for this operation * @@ -942,10 +934,10 @@ function ($response) { * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function deleteBackupAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteBackup'][0]) + public function deleteBackupAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteBackup'][0]) { $returnType = ''; - $request = $this->deleteBackupRequest($app, $id, $contentType); + $request = $this->deleteBackupRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -973,7 +965,6 @@ function ($exception) { /** * Create request for operation 'deleteBackup' * - * @param string $app The name of the app. (required) * @param string $id The ID of the backup to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBackup'] to see the possible values for this operation * @@ -981,10 +972,11 @@ function ($exception) { * @return \GuzzleHttp\Psr7\Request * @deprecated */ - public function deleteBackupRequest($app, $id, string $contentType = self::contentTypes['deleteBackup'][0]) + public function deleteBackupRequest($id, string $contentType = self::contentTypes['deleteBackup'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1084,7 +1076,6 @@ public function deleteBackupRequest($app, $id, string $contentType = self::conte * * Get all backup jobs. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackups'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response @@ -1092,9 +1083,9 @@ public function deleteBackupRequest($app, $id, string $contentType = self::conte * @return \Squidex\Client\Model\BackupJobsDto|\Squidex\Client\Model\ErrorDto * @deprecated */ - public function getBackups($app, string $contentType = self::contentTypes['getBackups'][0]) + public function getBackups(string $contentType = self::contentTypes['getBackups'][0]) { - list($response) = $this->getBackupsWithHttpInfo($app, $contentType); + list($response) = $this->getBackupsWithHttpInfo($contentType); return $response; } @@ -1103,7 +1094,6 @@ public function getBackups($app, string $contentType = self::contentTypes['getBa * * Get all backup jobs. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackups'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response @@ -1111,9 +1101,9 @@ public function getBackups($app, string $contentType = self::contentTypes['getBa * @return array of \Squidex\Client\Model\BackupJobsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) * @deprecated */ - public function getBackupsWithHttpInfo($app, string $contentType = self::contentTypes['getBackups'][0]) + public function getBackupsWithHttpInfo(string $contentType = self::contentTypes['getBackups'][0]) { - $request = $this->getBackupsRequest($app, $contentType); + $request = $this->getBackupsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -1227,16 +1217,15 @@ public function getBackupsWithHttpInfo($app, string $contentType = self::content * * Get all backup jobs. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackups'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function getBackupsAsync($app, string $contentType = self::contentTypes['getBackups'][0]) + public function getBackupsAsync(string $contentType = self::contentTypes['getBackups'][0]) { - return $this->getBackupsAsyncWithHttpInfo($app, $contentType) + return $this->getBackupsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -1249,17 +1238,16 @@ function ($response) { * * Get all backup jobs. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackups'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function getBackupsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getBackups'][0]) + public function getBackupsAsyncWithHttpInfo(string $contentType = self::contentTypes['getBackups'][0]) { $returnType = '\Squidex\Client\Model\BackupJobsDto'; - $request = $this->getBackupsRequest($app, $contentType); + $request = $this->getBackupsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1300,17 +1288,17 @@ function ($exception) { /** * Create request for operation 'getBackups' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackups'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request * @deprecated */ - public function getBackupsRequest($app, string $contentType = self::contentTypes['getBackups'][0]) + public function getBackupsRequest(string $contentType = self::contentTypes['getBackups'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1395,16 +1383,15 @@ public function getBackupsRequest($app, string $contentType = self::contentTypes * * Start a new backup. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postBackup'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function postBackup($app, string $contentType = self::contentTypes['postBackup'][0]) + public function postBackup(string $contentType = self::contentTypes['postBackup'][0]) { - $this->postBackupWithHttpInfo($app, $contentType); + $this->postBackupWithHttpInfo($contentType); } /** @@ -1412,16 +1399,15 @@ public function postBackup($app, string $contentType = self::contentTypes['postB * * Start a new backup. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postBackup'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function postBackupWithHttpInfo($app, string $contentType = self::contentTypes['postBackup'][0]) + public function postBackupWithHttpInfo(string $contentType = self::contentTypes['postBackup'][0]) { - $request = $this->postBackupRequest($app, $contentType); + $request = $this->postBackupRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -1488,15 +1474,14 @@ public function postBackupWithHttpInfo($app, string $contentType = self::content * * Start a new backup. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postBackup'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postBackupAsync($app, string $contentType = self::contentTypes['postBackup'][0]) + public function postBackupAsync(string $contentType = self::contentTypes['postBackup'][0]) { - return $this->postBackupAsyncWithHttpInfo($app, $contentType) + return $this->postBackupAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -1509,16 +1494,15 @@ function ($response) { * * Start a new backup. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postBackup'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postBackupAsyncWithHttpInfo($app, string $contentType = self::contentTypes['postBackup'][0]) + public function postBackupAsyncWithHttpInfo(string $contentType = self::contentTypes['postBackup'][0]) { $returnType = ''; - $request = $this->postBackupRequest($app, $contentType); + $request = $this->postBackupRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1546,16 +1530,16 @@ function ($exception) { /** * Create request for operation 'postBackup' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postBackup'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postBackupRequest($app, string $contentType = self::contentTypes['postBackup'][0]) + public function postBackupRequest(string $contentType = self::contentTypes['postBackup'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/lib/Api/ContentsApi.php b/lib/Api/ContentsApi.php index e941b8e..e1e78bd 100644 --- a/lib/Api/ContentsApi.php +++ b/lib/Api/ContentsApi.php @@ -199,7 +199,6 @@ public function getConfig() * * Bulk update content items. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation @@ -208,9 +207,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function bulkUpdateContents($app, $schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + public function bulkUpdateContents($schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) { - list($response) = $this->bulkUpdateContentsWithHttpInfo($app, $schema, $bulk_update_contents_dto, $contentType); + list($response) = $this->bulkUpdateContentsWithHttpInfo($schema, $bulk_update_contents_dto, $contentType); return $response; } @@ -219,7 +218,6 @@ public function bulkUpdateContents($app, $schema, $bulk_update_contents_dto, str * * Bulk update content items. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation @@ -228,9 +226,9 @@ public function bulkUpdateContents($app, $schema, $bulk_update_contents_dto, str * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function bulkUpdateContentsWithHttpInfo($app, $schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + public function bulkUpdateContentsWithHttpInfo($schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) { - $request = $this->bulkUpdateContentsRequest($app, $schema, $bulk_update_contents_dto, $contentType); + $request = $this->bulkUpdateContentsRequest($schema, $bulk_update_contents_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -367,7 +365,6 @@ public function bulkUpdateContentsWithHttpInfo($app, $schema, $bulk_update_conte * * Bulk update content items. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation @@ -375,9 +372,9 @@ public function bulkUpdateContentsWithHttpInfo($app, $schema, $bulk_update_conte * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function bulkUpdateContentsAsync($app, $schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + public function bulkUpdateContentsAsync($schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) { - return $this->bulkUpdateContentsAsyncWithHttpInfo($app, $schema, $bulk_update_contents_dto, $contentType) + return $this->bulkUpdateContentsAsyncWithHttpInfo($schema, $bulk_update_contents_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -390,7 +387,6 @@ function ($response) { * * Bulk update content items. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation @@ -398,10 +394,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function bulkUpdateContentsAsyncWithHttpInfo($app, $schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + public function bulkUpdateContentsAsyncWithHttpInfo($schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) { $returnType = '\Squidex\Client\Model\BulkResultDto[]'; - $request = $this->bulkUpdateContentsRequest($app, $schema, $bulk_update_contents_dto, $contentType); + $request = $this->bulkUpdateContentsRequest($schema, $bulk_update_contents_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -442,7 +438,6 @@ function ($exception) { /** * Create request for operation 'bulkUpdateContents' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation @@ -450,10 +445,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function bulkUpdateContentsRequest($app, $schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + public function bulkUpdateContentsRequest($schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -567,7 +563,6 @@ public function bulkUpdateContentsRequest($app, $schema, $bulk_update_contents_d * * Create a new draft version. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to create the draft for. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -578,9 +573,9 @@ public function bulkUpdateContentsRequest($app, $schema, $bulk_update_contents_d * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function createDraft($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) + public function createDraft($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) { - list($response) = $this->createDraftWithHttpInfo($app, $schema, $id, $x_unpublished, $x_languages, $contentType); + list($response) = $this->createDraftWithHttpInfo($schema, $id, $x_unpublished, $x_languages, $contentType); return $response; } @@ -589,7 +584,6 @@ public function createDraft($app, $schema, $id, $x_unpublished = null, $x_langua * * Create a new draft version. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to create the draft for. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -600,9 +594,9 @@ public function createDraft($app, $schema, $id, $x_unpublished = null, $x_langua * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function createDraftWithHttpInfo($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) + public function createDraftWithHttpInfo($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) { - $request = $this->createDraftRequest($app, $schema, $id, $x_unpublished, $x_languages, $contentType); + $request = $this->createDraftRequest($schema, $id, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -739,7 +733,6 @@ public function createDraftWithHttpInfo($app, $schema, $id, $x_unpublished = nul * * Create a new draft version. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to create the draft for. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -749,9 +742,9 @@ public function createDraftWithHttpInfo($app, $schema, $id, $x_unpublished = nul * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createDraftAsync($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) + public function createDraftAsync($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) { - return $this->createDraftAsyncWithHttpInfo($app, $schema, $id, $x_unpublished, $x_languages, $contentType) + return $this->createDraftAsyncWithHttpInfo($schema, $id, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -764,7 +757,6 @@ function ($response) { * * Create a new draft version. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to create the draft for. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -774,10 +766,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createDraftAsyncWithHttpInfo($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) + public function createDraftAsyncWithHttpInfo($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->createDraftRequest($app, $schema, $id, $x_unpublished, $x_languages, $contentType); + $request = $this->createDraftRequest($schema, $id, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -818,7 +810,6 @@ function ($exception) { /** * Create request for operation 'createDraft' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to create the draft for. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -828,10 +819,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function createDraftRequest($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) + public function createDraftRequest($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -956,7 +948,6 @@ public function createDraftRequest($app, $schema, $id, $x_unpublished = null, $x * * Delete a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete. (required) * @param bool $check_referrers True to check referrers of this content. (optional) @@ -967,9 +958,9 @@ public function createDraftRequest($app, $schema, $id, $x_unpublished = null, $x * @throws \InvalidArgumentException * @return void */ - public function deleteContent($app, $schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) + public function deleteContent($schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) { - $this->deleteContentWithHttpInfo($app, $schema, $id, $check_referrers, $permanent, $contentType); + $this->deleteContentWithHttpInfo($schema, $id, $check_referrers, $permanent, $contentType); } /** @@ -977,7 +968,6 @@ public function deleteContent($app, $schema, $id, $check_referrers = null, $perm * * Delete a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete. (required) * @param bool $check_referrers True to check referrers of this content. (optional) @@ -988,9 +978,9 @@ public function deleteContent($app, $schema, $id, $check_referrers = null, $perm * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteContentWithHttpInfo($app, $schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) + public function deleteContentWithHttpInfo($schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) { - $request = $this->deleteContentRequest($app, $schema, $id, $check_referrers, $permanent, $contentType); + $request = $this->deleteContentRequest($schema, $id, $check_referrers, $permanent, $contentType); try { $options = $this->createHttpClientOption(); @@ -1057,7 +1047,6 @@ public function deleteContentWithHttpInfo($app, $schema, $id, $check_referrers = * * Delete a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete. (required) * @param bool $check_referrers True to check referrers of this content. (optional) @@ -1067,9 +1056,9 @@ public function deleteContentWithHttpInfo($app, $schema, $id, $check_referrers = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteContentAsync($app, $schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) + public function deleteContentAsync($schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) { - return $this->deleteContentAsyncWithHttpInfo($app, $schema, $id, $check_referrers, $permanent, $contentType) + return $this->deleteContentAsyncWithHttpInfo($schema, $id, $check_referrers, $permanent, $contentType) ->then( function ($response) { return $response[0]; @@ -1082,7 +1071,6 @@ function ($response) { * * Delete a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete. (required) * @param bool $check_referrers True to check referrers of this content. (optional) @@ -1092,10 +1080,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteContentAsyncWithHttpInfo($app, $schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) + public function deleteContentAsyncWithHttpInfo($schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) { $returnType = ''; - $request = $this->deleteContentRequest($app, $schema, $id, $check_referrers, $permanent, $contentType); + $request = $this->deleteContentRequest($schema, $id, $check_referrers, $permanent, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1123,7 +1111,6 @@ function ($exception) { /** * Create request for operation 'deleteContent' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete. (required) * @param bool $check_referrers True to check referrers of this content. (optional) @@ -1133,10 +1120,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteContentRequest($app, $schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) + public function deleteContentRequest($schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1271,7 +1259,6 @@ public function deleteContentRequest($app, $schema, $id, $check_referrers = null * * Cancel status change of a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to cancel. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -1282,9 +1269,9 @@ public function deleteContentRequest($app, $schema, $id, $check_referrers = null * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteContentStatus($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) + public function deleteContentStatus($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) { - list($response) = $this->deleteContentStatusWithHttpInfo($app, $schema, $id, $x_unpublished, $x_languages, $contentType); + list($response) = $this->deleteContentStatusWithHttpInfo($schema, $id, $x_unpublished, $x_languages, $contentType); return $response; } @@ -1293,7 +1280,6 @@ public function deleteContentStatus($app, $schema, $id, $x_unpublished = null, $ * * Cancel status change of a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to cancel. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -1304,9 +1290,9 @@ public function deleteContentStatus($app, $schema, $id, $x_unpublished = null, $ * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteContentStatusWithHttpInfo($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) + public function deleteContentStatusWithHttpInfo($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) { - $request = $this->deleteContentStatusRequest($app, $schema, $id, $x_unpublished, $x_languages, $contentType); + $request = $this->deleteContentStatusRequest($schema, $id, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -1443,7 +1429,6 @@ public function deleteContentStatusWithHttpInfo($app, $schema, $id, $x_unpublish * * Cancel status change of a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to cancel. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -1453,9 +1438,9 @@ public function deleteContentStatusWithHttpInfo($app, $schema, $id, $x_unpublish * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteContentStatusAsync($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) + public function deleteContentStatusAsync($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) { - return $this->deleteContentStatusAsyncWithHttpInfo($app, $schema, $id, $x_unpublished, $x_languages, $contentType) + return $this->deleteContentStatusAsyncWithHttpInfo($schema, $id, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -1468,7 +1453,6 @@ function ($response) { * * Cancel status change of a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to cancel. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -1478,10 +1462,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteContentStatusAsyncWithHttpInfo($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) + public function deleteContentStatusAsyncWithHttpInfo($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->deleteContentStatusRequest($app, $schema, $id, $x_unpublished, $x_languages, $contentType); + $request = $this->deleteContentStatusRequest($schema, $id, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1522,7 +1506,6 @@ function ($exception) { /** * Create request for operation 'deleteContentStatus' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to cancel. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -1532,10 +1515,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteContentStatusRequest($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) + public function deleteContentStatusRequest($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1660,7 +1644,6 @@ public function deleteContentStatusRequest($app, $schema, $id, $x_unpublished = * * Delete the draft version. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete the draft from. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -1671,9 +1654,9 @@ public function deleteContentStatusRequest($app, $schema, $id, $x_unpublished = * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteVersion($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) + public function deleteVersion($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) { - list($response) = $this->deleteVersionWithHttpInfo($app, $schema, $id, $x_unpublished, $x_languages, $contentType); + list($response) = $this->deleteVersionWithHttpInfo($schema, $id, $x_unpublished, $x_languages, $contentType); return $response; } @@ -1682,7 +1665,6 @@ public function deleteVersion($app, $schema, $id, $x_unpublished = null, $x_lang * * Delete the draft version. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete the draft from. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -1693,9 +1675,9 @@ public function deleteVersion($app, $schema, $id, $x_unpublished = null, $x_lang * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteVersionWithHttpInfo($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) + public function deleteVersionWithHttpInfo($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) { - $request = $this->deleteVersionRequest($app, $schema, $id, $x_unpublished, $x_languages, $contentType); + $request = $this->deleteVersionRequest($schema, $id, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -1832,7 +1814,6 @@ public function deleteVersionWithHttpInfo($app, $schema, $id, $x_unpublished = n * * Delete the draft version. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete the draft from. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -1842,9 +1823,9 @@ public function deleteVersionWithHttpInfo($app, $schema, $id, $x_unpublished = n * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteVersionAsync($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) + public function deleteVersionAsync($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) { - return $this->deleteVersionAsyncWithHttpInfo($app, $schema, $id, $x_unpublished, $x_languages, $contentType) + return $this->deleteVersionAsyncWithHttpInfo($schema, $id, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -1857,7 +1838,6 @@ function ($response) { * * Delete the draft version. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete the draft from. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -1867,10 +1847,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteVersionAsyncWithHttpInfo($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) + public function deleteVersionAsyncWithHttpInfo($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->deleteVersionRequest($app, $schema, $id, $x_unpublished, $x_languages, $contentType); + $request = $this->deleteVersionRequest($schema, $id, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1911,7 +1891,6 @@ function ($exception) { /** * Create request for operation 'deleteVersion' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete the draft from. (required) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -1921,10 +1900,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteVersionRequest($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) + public function deleteVersionRequest($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -2049,7 +2029,6 @@ public function deleteVersionRequest($app, $schema, $id, $x_unpublished = null, * * Get a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The optional version. (optional, default to -2) @@ -2063,9 +2042,9 @@ public function deleteVersionRequest($app, $schema, $id, $x_unpublished = null, * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto */ - public function getContent($app, $schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) + public function getContent($schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) { - list($response) = $this->getContentWithHttpInfo($app, $schema, $id, $version, $x_fields, $x_flatten, $x_languages, $x_unpublished, $contentType); + list($response) = $this->getContentWithHttpInfo($schema, $id, $version, $x_fields, $x_flatten, $x_languages, $x_unpublished, $contentType); return $response; } @@ -2074,7 +2053,6 @@ public function getContent($app, $schema, $id, $version = -2, $x_fields = null, * * Get a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The optional version. (optional, default to -2) @@ -2088,9 +2066,9 @@ public function getContent($app, $schema, $id, $version = -2, $x_fields = null, * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getContentWithHttpInfo($app, $schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) + public function getContentWithHttpInfo($schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) { - $request = $this->getContentRequest($app, $schema, $id, $version, $x_fields, $x_flatten, $x_languages, $x_unpublished, $contentType); + $request = $this->getContentRequest($schema, $id, $version, $x_fields, $x_flatten, $x_languages, $x_unpublished, $contentType); try { $options = $this->createHttpClientOption(); @@ -2204,7 +2182,6 @@ public function getContentWithHttpInfo($app, $schema, $id, $version = -2, $x_fie * * Get a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The optional version. (optional, default to -2) @@ -2217,9 +2194,9 @@ public function getContentWithHttpInfo($app, $schema, $id, $version = -2, $x_fie * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentAsync($app, $schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) + public function getContentAsync($schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) { - return $this->getContentAsyncWithHttpInfo($app, $schema, $id, $version, $x_fields, $x_flatten, $x_languages, $x_unpublished, $contentType) + return $this->getContentAsyncWithHttpInfo($schema, $id, $version, $x_fields, $x_flatten, $x_languages, $x_unpublished, $contentType) ->then( function ($response) { return $response[0]; @@ -2232,7 +2209,6 @@ function ($response) { * * Get a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The optional version. (optional, default to -2) @@ -2245,10 +2221,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentAsyncWithHttpInfo($app, $schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) + public function getContentAsyncWithHttpInfo($schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->getContentRequest($app, $schema, $id, $version, $x_fields, $x_flatten, $x_languages, $x_unpublished, $contentType); + $request = $this->getContentRequest($schema, $id, $version, $x_fields, $x_flatten, $x_languages, $x_unpublished, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2289,7 +2265,6 @@ function ($exception) { /** * Create request for operation 'getContent' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The optional version. (optional, default to -2) @@ -2302,10 +2277,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getContentRequest($app, $schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) + public function getContentRequest($schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -2450,7 +2426,6 @@ public function getContentRequest($app, $schema, $id, $version = -2, $x_fields = * * Get a content item validity. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentValidity'] to see the possible values for this operation @@ -2459,9 +2434,9 @@ public function getContentRequest($app, $schema, $id, $version = -2, $x_fields = * @throws \InvalidArgumentException * @return void */ - public function getContentValidity($app, $schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) + public function getContentValidity($schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) { - $this->getContentValidityWithHttpInfo($app, $schema, $id, $contentType); + $this->getContentValidityWithHttpInfo($schema, $id, $contentType); } /** @@ -2469,7 +2444,6 @@ public function getContentValidity($app, $schema, $id, string $contentType = sel * * Get a content item validity. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentValidity'] to see the possible values for this operation @@ -2478,9 +2452,9 @@ public function getContentValidity($app, $schema, $id, string $contentType = sel * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function getContentValidityWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) + public function getContentValidityWithHttpInfo($schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) { - $request = $this->getContentValidityRequest($app, $schema, $id, $contentType); + $request = $this->getContentValidityRequest($schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -2547,7 +2521,6 @@ public function getContentValidityWithHttpInfo($app, $schema, $id, string $conte * * Get a content item validity. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentValidity'] to see the possible values for this operation @@ -2555,9 +2528,9 @@ public function getContentValidityWithHttpInfo($app, $schema, $id, string $conte * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentValidityAsync($app, $schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) + public function getContentValidityAsync($schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) { - return $this->getContentValidityAsyncWithHttpInfo($app, $schema, $id, $contentType) + return $this->getContentValidityAsyncWithHttpInfo($schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -2570,7 +2543,6 @@ function ($response) { * * Get a content item validity. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentValidity'] to see the possible values for this operation @@ -2578,10 +2550,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentValidityAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) + public function getContentValidityAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) { $returnType = ''; - $request = $this->getContentValidityRequest($app, $schema, $id, $contentType); + $request = $this->getContentValidityRequest($schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2609,7 +2581,6 @@ function ($exception) { /** * Create request for operation 'getContentValidity' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentValidity'] to see the possible values for this operation @@ -2617,10 +2588,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getContentValidityRequest($app, $schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) + public function getContentValidityRequest($schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -2735,7 +2707,6 @@ public function getContentValidityRequest($app, $schema, $id, string $contentTyp * * Get a content by version. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The version fo the content to fetch. (required) @@ -2748,9 +2719,9 @@ public function getContentValidityRequest($app, $schema, $id, string $contentTyp * @return \SplFileObject|\Squidex\Client\Model\ErrorDto * @deprecated */ - public function getContentVersion($app, $schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) + public function getContentVersion($schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) { - list($response) = $this->getContentVersionWithHttpInfo($app, $schema, $id, $version, $x_unpublished, $x_languages, $contentType); + list($response) = $this->getContentVersionWithHttpInfo($schema, $id, $version, $x_unpublished, $x_languages, $contentType); return $response; } @@ -2759,7 +2730,6 @@ public function getContentVersion($app, $schema, $id, $version, $x_unpublished = * * Get a content by version. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The version fo the content to fetch. (required) @@ -2772,9 +2742,9 @@ public function getContentVersion($app, $schema, $id, $version, $x_unpublished = * @return array of \SplFileObject|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) * @deprecated */ - public function getContentVersionWithHttpInfo($app, $schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) + public function getContentVersionWithHttpInfo($schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) { - $request = $this->getContentVersionRequest($app, $schema, $id, $version, $x_unpublished, $x_languages, $contentType); + $request = $this->getContentVersionRequest($schema, $id, $version, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -2888,7 +2858,6 @@ public function getContentVersionWithHttpInfo($app, $schema, $id, $version, $x_u * * Get a content by version. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The version fo the content to fetch. (required) @@ -2900,9 +2869,9 @@ public function getContentVersionWithHttpInfo($app, $schema, $id, $version, $x_u * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function getContentVersionAsync($app, $schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) + public function getContentVersionAsync($schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) { - return $this->getContentVersionAsyncWithHttpInfo($app, $schema, $id, $version, $x_unpublished, $x_languages, $contentType) + return $this->getContentVersionAsyncWithHttpInfo($schema, $id, $version, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -2915,7 +2884,6 @@ function ($response) { * * Get a content by version. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The version fo the content to fetch. (required) @@ -2927,10 +2895,10 @@ function ($response) { * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function getContentVersionAsyncWithHttpInfo($app, $schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) + public function getContentVersionAsyncWithHttpInfo($schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) { $returnType = '\SplFileObject'; - $request = $this->getContentVersionRequest($app, $schema, $id, $version, $x_unpublished, $x_languages, $contentType); + $request = $this->getContentVersionRequest($schema, $id, $version, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2971,7 +2939,6 @@ function ($exception) { /** * Create request for operation 'getContentVersion' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The version fo the content to fetch. (required) @@ -2983,10 +2950,11 @@ function ($exception) { * @return \GuzzleHttp\Psr7\Request * @deprecated */ - public function getContentVersionRequest($app, $schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) + public function getContentVersionRequest($schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3126,7 +3094,6 @@ public function getContentVersionRequest($app, $schema, $id, $version, $x_unpubl * * Queries contents. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $ids The optional ids of the content to fetch. (optional) * @param string $q The optional json query. (optional) @@ -3147,9 +3114,9 @@ public function getContentVersionRequest($app, $schema, $id, $version, $x_unpubl * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto */ - public function getContents($app, $schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) + public function getContents($schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) { - list($response) = $this->getContentsWithHttpInfo($app, $schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + list($response) = $this->getContentsWithHttpInfo($schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); return $response; } @@ -3158,7 +3125,6 @@ public function getContents($app, $schema, $ids = null, $q = null, $search = nul * * Queries contents. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $ids The optional ids of the content to fetch. (optional) * @param string $q The optional json query. (optional) @@ -3179,9 +3145,9 @@ public function getContents($app, $schema, $ids = null, $q = null, $search = nul * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getContentsWithHttpInfo($app, $schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) + public function getContentsWithHttpInfo($schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) { - $request = $this->getContentsRequest($app, $schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + $request = $this->getContentsRequest($schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); try { $options = $this->createHttpClientOption(); @@ -3295,7 +3261,6 @@ public function getContentsWithHttpInfo($app, $schema, $ids = null, $q = null, $ * * Queries contents. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $ids The optional ids of the content to fetch. (optional) * @param string $q The optional json query. (optional) @@ -3315,9 +3280,9 @@ public function getContentsWithHttpInfo($app, $schema, $ids = null, $q = null, $ * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentsAsync($app, $schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) + public function getContentsAsync($schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) { - return $this->getContentsAsyncWithHttpInfo($app, $schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) + return $this->getContentsAsyncWithHttpInfo($schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) ->then( function ($response) { return $response[0]; @@ -3330,7 +3295,6 @@ function ($response) { * * Queries contents. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $ids The optional ids of the content to fetch. (optional) * @param string $q The optional json query. (optional) @@ -3350,10 +3314,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentsAsyncWithHttpInfo($app, $schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) + public function getContentsAsyncWithHttpInfo($schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) { $returnType = '\Squidex\Client\Model\ContentsDto'; - $request = $this->getContentsRequest($app, $schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + $request = $this->getContentsRequest($schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3394,7 +3358,6 @@ function ($exception) { /** * Create request for operation 'getContents' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $ids The optional ids of the content to fetch. (optional) * @param string $q The optional json query. (optional) @@ -3414,10 +3377,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getContentsRequest($app, $schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) + public function getContentsRequest($schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3617,7 +3581,6 @@ public function getContentsRequest($app, $schema, $ids = null, $q = null, $searc * * Queries contents. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param string $x_fields The list of content fields (comma-separated). (optional) @@ -3632,9 +3595,9 @@ public function getContentsRequest($app, $schema, $ids = null, $q = null, $searc * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function getContentsPost($app, $schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) + public function getContentsPost($schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) { - list($response) = $this->getContentsPostWithHttpInfo($app, $schema, $query_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + list($response) = $this->getContentsPostWithHttpInfo($schema, $query_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); return $response; } @@ -3643,7 +3606,6 @@ public function getContentsPost($app, $schema, $query_dto, $x_fields = null, $x_ * * Queries contents. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param string $x_fields The list of content fields (comma-separated). (optional) @@ -3658,9 +3620,9 @@ public function getContentsPost($app, $schema, $query_dto, $x_fields = null, $x_ * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getContentsPostWithHttpInfo($app, $schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) + public function getContentsPostWithHttpInfo($schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) { - $request = $this->getContentsPostRequest($app, $schema, $query_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + $request = $this->getContentsPostRequest($schema, $query_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); try { $options = $this->createHttpClientOption(); @@ -3797,7 +3759,6 @@ public function getContentsPostWithHttpInfo($app, $schema, $query_dto, $x_fields * * Queries contents. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param string $x_fields The list of content fields (comma-separated). (optional) @@ -3811,9 +3772,9 @@ public function getContentsPostWithHttpInfo($app, $schema, $query_dto, $x_fields * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentsPostAsync($app, $schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) + public function getContentsPostAsync($schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) { - return $this->getContentsPostAsyncWithHttpInfo($app, $schema, $query_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) + return $this->getContentsPostAsyncWithHttpInfo($schema, $query_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) ->then( function ($response) { return $response[0]; @@ -3826,7 +3787,6 @@ function ($response) { * * Queries contents. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param string $x_fields The list of content fields (comma-separated). (optional) @@ -3840,10 +3800,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentsPostAsyncWithHttpInfo($app, $schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) + public function getContentsPostAsyncWithHttpInfo($schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) { $returnType = '\Squidex\Client\Model\ContentsDto'; - $request = $this->getContentsPostRequest($app, $schema, $query_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + $request = $this->getContentsPostRequest($schema, $query_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3884,7 +3844,6 @@ function ($exception) { /** * Create request for operation 'getContentsPost' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param string $x_fields The list of content fields (comma-separated). (optional) @@ -3898,10 +3857,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getContentsPostRequest($app, $schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) + public function getContentsPostRequest($schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4045,7 +4005,6 @@ public function getContentsPostRequest($app, $schema, $query_dto, $x_fields = nu * * Get all references of a content. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) @@ -4061,9 +4020,9 @@ public function getContentsPostRequest($app, $schema, $query_dto, $x_fields = nu * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto */ - public function getReferences($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) + public function getReferences($schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) { - list($response) = $this->getReferencesWithHttpInfo($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); + list($response) = $this->getReferencesWithHttpInfo($schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); return $response; } @@ -4072,7 +4031,6 @@ public function getReferences($app, $schema, $id, $q = null, $x_fields = null, $ * * Get all references of a content. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) @@ -4088,9 +4046,9 @@ public function getReferences($app, $schema, $id, $q = null, $x_fields = null, $ * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getReferencesWithHttpInfo($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) + public function getReferencesWithHttpInfo($schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) { - $request = $this->getReferencesRequest($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); + $request = $this->getReferencesRequest($schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); try { $options = $this->createHttpClientOption(); @@ -4204,7 +4162,6 @@ public function getReferencesWithHttpInfo($app, $schema, $id, $q = null, $x_fiel * * Get all references of a content. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) @@ -4219,9 +4176,9 @@ public function getReferencesWithHttpInfo($app, $schema, $id, $q = null, $x_fiel * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getReferencesAsync($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) + public function getReferencesAsync($schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) { - return $this->getReferencesAsyncWithHttpInfo($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType) + return $this->getReferencesAsyncWithHttpInfo($schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType) ->then( function ($response) { return $response[0]; @@ -4234,7 +4191,6 @@ function ($response) { * * Get all references of a content. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) @@ -4249,10 +4205,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getReferencesAsyncWithHttpInfo($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) + public function getReferencesAsyncWithHttpInfo($schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) { $returnType = '\Squidex\Client\Model\ContentsDto'; - $request = $this->getReferencesRequest($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); + $request = $this->getReferencesRequest($schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4293,7 +4249,6 @@ function ($exception) { /** * Create request for operation 'getReferences' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) @@ -4308,10 +4263,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getReferencesRequest($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) + public function getReferencesRequest($schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4466,7 +4422,6 @@ public function getReferencesRequest($app, $schema, $id, $q = null, $x_fields = * * Get a referencing contents of a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) @@ -4482,9 +4437,9 @@ public function getReferencesRequest($app, $schema, $id, $q = null, $x_fields = * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto */ - public function getReferencing($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) + public function getReferencing($schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) { - list($response) = $this->getReferencingWithHttpInfo($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); + list($response) = $this->getReferencingWithHttpInfo($schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); return $response; } @@ -4493,7 +4448,6 @@ public function getReferencing($app, $schema, $id, $q = null, $x_fields = null, * * Get a referencing contents of a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) @@ -4509,9 +4463,9 @@ public function getReferencing($app, $schema, $id, $q = null, $x_fields = null, * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getReferencingWithHttpInfo($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) + public function getReferencingWithHttpInfo($schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) { - $request = $this->getReferencingRequest($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); + $request = $this->getReferencingRequest($schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); try { $options = $this->createHttpClientOption(); @@ -4625,7 +4579,6 @@ public function getReferencingWithHttpInfo($app, $schema, $id, $q = null, $x_fie * * Get a referencing contents of a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) @@ -4640,9 +4593,9 @@ public function getReferencingWithHttpInfo($app, $schema, $id, $q = null, $x_fie * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getReferencingAsync($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) + public function getReferencingAsync($schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) { - return $this->getReferencingAsyncWithHttpInfo($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType) + return $this->getReferencingAsyncWithHttpInfo($schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType) ->then( function ($response) { return $response[0]; @@ -4655,7 +4608,6 @@ function ($response) { * * Get a referencing contents of a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) @@ -4670,10 +4622,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getReferencingAsyncWithHttpInfo($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) + public function getReferencingAsyncWithHttpInfo($schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) { $returnType = '\Squidex\Client\Model\ContentsDto'; - $request = $this->getReferencingRequest($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); + $request = $this->getReferencingRequest($schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4714,7 +4666,6 @@ function ($exception) { /** * Create request for operation 'getReferencing' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) @@ -4729,10 +4680,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getReferencingRequest($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) + public function getReferencingRequest($schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4887,7 +4839,6 @@ public function getReferencingRequest($app, $schema, $id, $q = null, $x_fields = * * Patchs a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to patch. (required) * @param array $request_body The patch for the content item. (required) @@ -4899,9 +4850,9 @@ public function getReferencingRequest($app, $schema, $id, $q = null, $x_fields = * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function patchContent($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) + public function patchContent($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) { - list($response) = $this->patchContentWithHttpInfo($app, $schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); + list($response) = $this->patchContentWithHttpInfo($schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); return $response; } @@ -4910,7 +4861,6 @@ public function patchContent($app, $schema, $id, $request_body, $x_unpublished = * * Patchs a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to patch. (required) * @param array $request_body The patch for the content item. (required) @@ -4922,9 +4872,9 @@ public function patchContent($app, $schema, $id, $request_body, $x_unpublished = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function patchContentWithHttpInfo($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) + public function patchContentWithHttpInfo($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) { - $request = $this->patchContentRequest($app, $schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); + $request = $this->patchContentRequest($schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -5061,7 +5011,6 @@ public function patchContentWithHttpInfo($app, $schema, $id, $request_body, $x_u * * Patchs a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to patch. (required) * @param array $request_body The patch for the content item. (required) @@ -5072,9 +5021,9 @@ public function patchContentWithHttpInfo($app, $schema, $id, $request_body, $x_u * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function patchContentAsync($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) + public function patchContentAsync($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) { - return $this->patchContentAsyncWithHttpInfo($app, $schema, $id, $request_body, $x_unpublished, $x_languages, $contentType) + return $this->patchContentAsyncWithHttpInfo($schema, $id, $request_body, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -5087,7 +5036,6 @@ function ($response) { * * Patchs a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to patch. (required) * @param array $request_body The patch for the content item. (required) @@ -5098,10 +5046,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function patchContentAsyncWithHttpInfo($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) + public function patchContentAsyncWithHttpInfo($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->patchContentRequest($app, $schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); + $request = $this->patchContentRequest($schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5142,7 +5090,6 @@ function ($exception) { /** * Create request for operation 'patchContent' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to patch. (required) * @param array $request_body The patch for the content item. (required) @@ -5153,10 +5100,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function patchContentRequest($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) + public function patchContentRequest($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5295,7 +5243,6 @@ public function patchContentRequest($app, $schema, $id, $request_body, $x_unpubl * * Create a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The full data for the content item. (required) * @param string $status The initial status. (optional) @@ -5309,9 +5256,9 @@ public function patchContentRequest($app, $schema, $id, $request_body, $x_unpubl * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postContent($app, $schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) + public function postContent($schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) { - list($response) = $this->postContentWithHttpInfo($app, $schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType); + list($response) = $this->postContentWithHttpInfo($schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType); return $response; } @@ -5320,7 +5267,6 @@ public function postContent($app, $schema, $request_body, $status = null, $id = * * Create a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The full data for the content item. (required) * @param string $status The initial status. (optional) @@ -5334,9 +5280,9 @@ public function postContent($app, $schema, $request_body, $status = null, $id = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postContentWithHttpInfo($app, $schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) + public function postContentWithHttpInfo($schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) { - $request = $this->postContentRequest($app, $schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType); + $request = $this->postContentRequest($schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -5473,7 +5419,6 @@ public function postContentWithHttpInfo($app, $schema, $request_body, $status = * * Create a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The full data for the content item. (required) * @param string $status The initial status. (optional) @@ -5486,9 +5431,9 @@ public function postContentWithHttpInfo($app, $schema, $request_body, $status = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postContentAsync($app, $schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) + public function postContentAsync($schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) { - return $this->postContentAsyncWithHttpInfo($app, $schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType) + return $this->postContentAsyncWithHttpInfo($schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -5501,7 +5446,6 @@ function ($response) { * * Create a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The full data for the content item. (required) * @param string $status The initial status. (optional) @@ -5514,10 +5458,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postContentAsyncWithHttpInfo($app, $schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) + public function postContentAsyncWithHttpInfo($schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->postContentRequest($app, $schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType); + $request = $this->postContentRequest($schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5558,7 +5502,6 @@ function ($exception) { /** * Create request for operation 'postContent' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The full data for the content item. (required) * @param string $status The initial status. (optional) @@ -5571,10 +5514,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postContentRequest($app, $schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) + public function postContentRequest($schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5728,7 +5672,6 @@ public function postContentRequest($app, $schema, $request_body, $status = null, * * Import content items. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ImportContentsDto $import_contents_dto The import request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContents'] to see the possible values for this operation @@ -5738,9 +5681,9 @@ public function postContentRequest($app, $schema, $request_body, $status = null, * @return \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto * @deprecated */ - public function postContents($app, $schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) + public function postContents($schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) { - list($response) = $this->postContentsWithHttpInfo($app, $schema, $import_contents_dto, $contentType); + list($response) = $this->postContentsWithHttpInfo($schema, $import_contents_dto, $contentType); return $response; } @@ -5749,7 +5692,6 @@ public function postContents($app, $schema, $import_contents_dto, string $conten * * Import content items. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ImportContentsDto $import_contents_dto The import request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContents'] to see the possible values for this operation @@ -5759,9 +5701,9 @@ public function postContents($app, $schema, $import_contents_dto, string $conten * @return array of \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) * @deprecated */ - public function postContentsWithHttpInfo($app, $schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) + public function postContentsWithHttpInfo($schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) { - $request = $this->postContentsRequest($app, $schema, $import_contents_dto, $contentType); + $request = $this->postContentsRequest($schema, $import_contents_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -5898,7 +5840,6 @@ public function postContentsWithHttpInfo($app, $schema, $import_contents_dto, st * * Import content items. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ImportContentsDto $import_contents_dto The import request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContents'] to see the possible values for this operation @@ -5907,9 +5848,9 @@ public function postContentsWithHttpInfo($app, $schema, $import_contents_dto, st * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function postContentsAsync($app, $schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) + public function postContentsAsync($schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) { - return $this->postContentsAsyncWithHttpInfo($app, $schema, $import_contents_dto, $contentType) + return $this->postContentsAsyncWithHttpInfo($schema, $import_contents_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -5922,7 +5863,6 @@ function ($response) { * * Import content items. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ImportContentsDto $import_contents_dto The import request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContents'] to see the possible values for this operation @@ -5931,10 +5871,10 @@ function ($response) { * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function postContentsAsyncWithHttpInfo($app, $schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) + public function postContentsAsyncWithHttpInfo($schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) { $returnType = '\Squidex\Client\Model\BulkResultDto[]'; - $request = $this->postContentsRequest($app, $schema, $import_contents_dto, $contentType); + $request = $this->postContentsRequest($schema, $import_contents_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5975,7 +5915,6 @@ function ($exception) { /** * Create request for operation 'postContents' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ImportContentsDto $import_contents_dto The import request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContents'] to see the possible values for this operation @@ -5984,10 +5923,11 @@ function ($exception) { * @return \GuzzleHttp\Psr7\Request * @deprecated */ - public function postContentsRequest($app, $schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) + public function postContentsRequest($schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -6101,7 +6041,6 @@ public function postContentsRequest($app, $schema, $import_contents_dto, string * * Upsert a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6117,9 +6056,9 @@ public function postContentsRequest($app, $schema, $import_contents_dto, string * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postUpsertContent($app, $schema, $id, $request_body, $status = null, $patch = null, $enrich_defaults = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) + public function postUpsertContent($schema, $id, $request_body, $status = null, $patch = null, $enrich_defaults = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) { - list($response) = $this->postUpsertContentWithHttpInfo($app, $schema, $id, $request_body, $status, $patch, $enrich_defaults, $publish, $x_unpublished, $x_languages, $contentType); + list($response) = $this->postUpsertContentWithHttpInfo($schema, $id, $request_body, $status, $patch, $enrich_defaults, $publish, $x_unpublished, $x_languages, $contentType); return $response; } @@ -6128,7 +6067,6 @@ public function postUpsertContent($app, $schema, $id, $request_body, $status = n * * Upsert a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6144,9 +6082,9 @@ public function postUpsertContent($app, $schema, $id, $request_body, $status = n * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postUpsertContentWithHttpInfo($app, $schema, $id, $request_body, $status = null, $patch = null, $enrich_defaults = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) + public function postUpsertContentWithHttpInfo($schema, $id, $request_body, $status = null, $patch = null, $enrich_defaults = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) { - $request = $this->postUpsertContentRequest($app, $schema, $id, $request_body, $status, $patch, $enrich_defaults, $publish, $x_unpublished, $x_languages, $contentType); + $request = $this->postUpsertContentRequest($schema, $id, $request_body, $status, $patch, $enrich_defaults, $publish, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -6283,7 +6221,6 @@ public function postUpsertContentWithHttpInfo($app, $schema, $id, $request_body, * * Upsert a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6298,9 +6235,9 @@ public function postUpsertContentWithHttpInfo($app, $schema, $id, $request_body, * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postUpsertContentAsync($app, $schema, $id, $request_body, $status = null, $patch = null, $enrich_defaults = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) + public function postUpsertContentAsync($schema, $id, $request_body, $status = null, $patch = null, $enrich_defaults = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) { - return $this->postUpsertContentAsyncWithHttpInfo($app, $schema, $id, $request_body, $status, $patch, $enrich_defaults, $publish, $x_unpublished, $x_languages, $contentType) + return $this->postUpsertContentAsyncWithHttpInfo($schema, $id, $request_body, $status, $patch, $enrich_defaults, $publish, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -6313,7 +6250,6 @@ function ($response) { * * Upsert a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6328,10 +6264,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postUpsertContentAsyncWithHttpInfo($app, $schema, $id, $request_body, $status = null, $patch = null, $enrich_defaults = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) + public function postUpsertContentAsyncWithHttpInfo($schema, $id, $request_body, $status = null, $patch = null, $enrich_defaults = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->postUpsertContentRequest($app, $schema, $id, $request_body, $status, $patch, $enrich_defaults, $publish, $x_unpublished, $x_languages, $contentType); + $request = $this->postUpsertContentRequest($schema, $id, $request_body, $status, $patch, $enrich_defaults, $publish, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6372,7 +6308,6 @@ function ($exception) { /** * Create request for operation 'postUpsertContent' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6387,10 +6322,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postUpsertContentRequest($app, $schema, $id, $request_body, $status = null, $patch = null, $enrich_defaults = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) + public function postUpsertContentRequest($schema, $id, $request_body, $status = null, $patch = null, $enrich_defaults = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -6569,7 +6505,6 @@ public function postUpsertContentRequest($app, $schema, $id, $request_body, $sta * * Update a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6582,9 +6517,9 @@ public function postUpsertContentRequest($app, $schema, $id, $request_body, $sta * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putContent($app, $schema, $id, $request_body, $enrich_defaults = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) + public function putContent($schema, $id, $request_body, $enrich_defaults = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) { - list($response) = $this->putContentWithHttpInfo($app, $schema, $id, $request_body, $enrich_defaults, $x_unpublished, $x_languages, $contentType); + list($response) = $this->putContentWithHttpInfo($schema, $id, $request_body, $enrich_defaults, $x_unpublished, $x_languages, $contentType); return $response; } @@ -6593,7 +6528,6 @@ public function putContent($app, $schema, $id, $request_body, $enrich_defaults = * * Update a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6606,9 +6540,9 @@ public function putContent($app, $schema, $id, $request_body, $enrich_defaults = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putContentWithHttpInfo($app, $schema, $id, $request_body, $enrich_defaults = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) + public function putContentWithHttpInfo($schema, $id, $request_body, $enrich_defaults = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) { - $request = $this->putContentRequest($app, $schema, $id, $request_body, $enrich_defaults, $x_unpublished, $x_languages, $contentType); + $request = $this->putContentRequest($schema, $id, $request_body, $enrich_defaults, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -6745,7 +6679,6 @@ public function putContentWithHttpInfo($app, $schema, $id, $request_body, $enric * * Update a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6757,9 +6690,9 @@ public function putContentWithHttpInfo($app, $schema, $id, $request_body, $enric * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putContentAsync($app, $schema, $id, $request_body, $enrich_defaults = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) + public function putContentAsync($schema, $id, $request_body, $enrich_defaults = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) { - return $this->putContentAsyncWithHttpInfo($app, $schema, $id, $request_body, $enrich_defaults, $x_unpublished, $x_languages, $contentType) + return $this->putContentAsyncWithHttpInfo($schema, $id, $request_body, $enrich_defaults, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -6772,7 +6705,6 @@ function ($response) { * * Update a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6784,10 +6716,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putContentAsyncWithHttpInfo($app, $schema, $id, $request_body, $enrich_defaults = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) + public function putContentAsyncWithHttpInfo($schema, $id, $request_body, $enrich_defaults = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->putContentRequest($app, $schema, $id, $request_body, $enrich_defaults, $x_unpublished, $x_languages, $contentType); + $request = $this->putContentRequest($schema, $id, $request_body, $enrich_defaults, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6828,7 +6760,6 @@ function ($exception) { /** * Create request for operation 'putContent' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6840,10 +6771,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putContentRequest($app, $schema, $id, $request_body, $enrich_defaults = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) + public function putContentRequest($schema, $id, $request_body, $enrich_defaults = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -6992,7 +6924,6 @@ public function putContentRequest($app, $schema, $id, $request_body, $enrich_def * * Enrich a content item with defaults. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param bool $enrich_required_fields True, to also enrich required fields. Default: false. (optional) @@ -7004,9 +6935,9 @@ public function putContentRequest($app, $schema, $id, $request_body, $enrich_def * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putContentDefaults($app, $schema, $id, $enrich_required_fields = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentDefaults'][0]) + public function putContentDefaults($schema, $id, $enrich_required_fields = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentDefaults'][0]) { - list($response) = $this->putContentDefaultsWithHttpInfo($app, $schema, $id, $enrich_required_fields, $x_unpublished, $x_languages, $contentType); + list($response) = $this->putContentDefaultsWithHttpInfo($schema, $id, $enrich_required_fields, $x_unpublished, $x_languages, $contentType); return $response; } @@ -7015,7 +6946,6 @@ public function putContentDefaults($app, $schema, $id, $enrich_required_fields = * * Enrich a content item with defaults. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param bool $enrich_required_fields True, to also enrich required fields. Default: false. (optional) @@ -7027,9 +6957,9 @@ public function putContentDefaults($app, $schema, $id, $enrich_required_fields = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putContentDefaultsWithHttpInfo($app, $schema, $id, $enrich_required_fields = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentDefaults'][0]) + public function putContentDefaultsWithHttpInfo($schema, $id, $enrich_required_fields = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentDefaults'][0]) { - $request = $this->putContentDefaultsRequest($app, $schema, $id, $enrich_required_fields, $x_unpublished, $x_languages, $contentType); + $request = $this->putContentDefaultsRequest($schema, $id, $enrich_required_fields, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -7166,7 +7096,6 @@ public function putContentDefaultsWithHttpInfo($app, $schema, $id, $enrich_requi * * Enrich a content item with defaults. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param bool $enrich_required_fields True, to also enrich required fields. Default: false. (optional) @@ -7177,9 +7106,9 @@ public function putContentDefaultsWithHttpInfo($app, $schema, $id, $enrich_requi * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putContentDefaultsAsync($app, $schema, $id, $enrich_required_fields = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentDefaults'][0]) + public function putContentDefaultsAsync($schema, $id, $enrich_required_fields = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentDefaults'][0]) { - return $this->putContentDefaultsAsyncWithHttpInfo($app, $schema, $id, $enrich_required_fields, $x_unpublished, $x_languages, $contentType) + return $this->putContentDefaultsAsyncWithHttpInfo($schema, $id, $enrich_required_fields, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -7192,7 +7121,6 @@ function ($response) { * * Enrich a content item with defaults. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param bool $enrich_required_fields True, to also enrich required fields. Default: false. (optional) @@ -7203,10 +7131,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putContentDefaultsAsyncWithHttpInfo($app, $schema, $id, $enrich_required_fields = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentDefaults'][0]) + public function putContentDefaultsAsyncWithHttpInfo($schema, $id, $enrich_required_fields = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentDefaults'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->putContentDefaultsRequest($app, $schema, $id, $enrich_required_fields, $x_unpublished, $x_languages, $contentType); + $request = $this->putContentDefaultsRequest($schema, $id, $enrich_required_fields, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7247,7 +7175,6 @@ function ($exception) { /** * Create request for operation 'putContentDefaults' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param bool $enrich_required_fields True, to also enrich required fields. Default: false. (optional) @@ -7258,10 +7185,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putContentDefaultsRequest($app, $schema, $id, $enrich_required_fields = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentDefaults'][0]) + public function putContentDefaultsRequest($schema, $id, $enrich_required_fields = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentDefaults'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -7396,7 +7324,6 @@ public function putContentDefaultsRequest($app, $schema, $id, $enrich_required_f * * Change status of a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to change. (required) * @param \Squidex\Client\Model\ChangeStatusDto $change_status_dto The status request. (required) @@ -7408,9 +7335,9 @@ public function putContentDefaultsRequest($app, $schema, $id, $enrich_required_f * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putContentStatus($app, $schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) + public function putContentStatus($schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) { - list($response) = $this->putContentStatusWithHttpInfo($app, $schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType); + list($response) = $this->putContentStatusWithHttpInfo($schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType); return $response; } @@ -7419,7 +7346,6 @@ public function putContentStatus($app, $schema, $id, $change_status_dto, $x_unpu * * Change status of a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to change. (required) * @param \Squidex\Client\Model\ChangeStatusDto $change_status_dto The status request. (required) @@ -7431,9 +7357,9 @@ public function putContentStatus($app, $schema, $id, $change_status_dto, $x_unpu * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putContentStatusWithHttpInfo($app, $schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) + public function putContentStatusWithHttpInfo($schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) { - $request = $this->putContentStatusRequest($app, $schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType); + $request = $this->putContentStatusRequest($schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -7570,7 +7496,6 @@ public function putContentStatusWithHttpInfo($app, $schema, $id, $change_status_ * * Change status of a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to change. (required) * @param \Squidex\Client\Model\ChangeStatusDto $change_status_dto The status request. (required) @@ -7581,9 +7506,9 @@ public function putContentStatusWithHttpInfo($app, $schema, $id, $change_status_ * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putContentStatusAsync($app, $schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) + public function putContentStatusAsync($schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) { - return $this->putContentStatusAsyncWithHttpInfo($app, $schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType) + return $this->putContentStatusAsyncWithHttpInfo($schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -7596,7 +7521,6 @@ function ($response) { * * Change status of a content item. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to change. (required) * @param \Squidex\Client\Model\ChangeStatusDto $change_status_dto The status request. (required) @@ -7607,10 +7531,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putContentStatusAsyncWithHttpInfo($app, $schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) + public function putContentStatusAsyncWithHttpInfo($schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->putContentStatusRequest($app, $schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType); + $request = $this->putContentStatusRequest($schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7651,7 +7575,6 @@ function ($exception) { /** * Create request for operation 'putContentStatus' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to change. (required) * @param \Squidex\Client\Model\ChangeStatusDto $change_status_dto The status request. (required) @@ -7662,10 +7585,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putContentStatusRequest($app, $schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) + public function putContentStatusRequest($schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -7804,7 +7728,6 @@ public function putContentStatusRequest($app, $schema, $id, $change_status_dto, * * Bulk update content items. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $schema The name of the schema. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAllContents'] to see the possible values for this operation @@ -7813,9 +7736,9 @@ public function putContentStatusRequest($app, $schema, $id, $change_status_dto, * @throws \InvalidArgumentException * @return \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function bulkUpdateAllContents($app, $bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateAllContents'][0]) + public function bulkUpdateAllContents($bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateAllContents'][0]) { - list($response) = $this->bulkUpdateAllContentsWithHttpInfo($app, $bulk_update_contents_dto, $schema, $contentType); + list($response) = $this->bulkUpdateAllContentsWithHttpInfo($bulk_update_contents_dto, $schema, $contentType); return $response; } @@ -7824,7 +7747,6 @@ public function bulkUpdateAllContents($app, $bulk_update_contents_dto, $schema = * * Bulk update content items. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $schema The name of the schema. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAllContents'] to see the possible values for this operation @@ -7833,9 +7755,9 @@ public function bulkUpdateAllContents($app, $bulk_update_contents_dto, $schema = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function bulkUpdateAllContentsWithHttpInfo($app, $bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateAllContents'][0]) + public function bulkUpdateAllContentsWithHttpInfo($bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateAllContents'][0]) { - $request = $this->bulkUpdateAllContentsRequest($app, $bulk_update_contents_dto, $schema, $contentType); + $request = $this->bulkUpdateAllContentsRequest($bulk_update_contents_dto, $schema, $contentType); try { $options = $this->createHttpClientOption(); @@ -7972,7 +7894,6 @@ public function bulkUpdateAllContentsWithHttpInfo($app, $bulk_update_contents_dt * * Bulk update content items. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $schema The name of the schema. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAllContents'] to see the possible values for this operation @@ -7980,9 +7901,9 @@ public function bulkUpdateAllContentsWithHttpInfo($app, $bulk_update_contents_dt * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function bulkUpdateAllContentsAsync($app, $bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateAllContents'][0]) + public function bulkUpdateAllContentsAsync($bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateAllContents'][0]) { - return $this->bulkUpdateAllContentsAsyncWithHttpInfo($app, $bulk_update_contents_dto, $schema, $contentType) + return $this->bulkUpdateAllContentsAsyncWithHttpInfo($bulk_update_contents_dto, $schema, $contentType) ->then( function ($response) { return $response[0]; @@ -7995,7 +7916,6 @@ function ($response) { * * Bulk update content items. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $schema The name of the schema. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAllContents'] to see the possible values for this operation @@ -8003,10 +7923,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function bulkUpdateAllContentsAsyncWithHttpInfo($app, $bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateAllContents'][0]) + public function bulkUpdateAllContentsAsyncWithHttpInfo($bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateAllContents'][0]) { $returnType = '\Squidex\Client\Model\BulkResultDto[]'; - $request = $this->bulkUpdateAllContentsRequest($app, $bulk_update_contents_dto, $schema, $contentType); + $request = $this->bulkUpdateAllContentsRequest($bulk_update_contents_dto, $schema, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8047,7 +7967,6 @@ function ($exception) { /** * Create request for operation 'bulkUpdateAllContents' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $schema The name of the schema. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAllContents'] to see the possible values for this operation @@ -8055,10 +7974,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function bulkUpdateAllContentsRequest($app, $bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateAllContents'][0]) + public function bulkUpdateAllContentsRequest($bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateAllContents'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -8167,7 +8087,6 @@ public function bulkUpdateAllContentsRequest($app, $bulk_update_contents_dto, $s * * Queries contents. * - * @param string $app The name of the app. (required) * @param string $ids The list of ids to query. (optional) * @param \DateTime $schedule_from The start of the schedule. (optional) * @param \DateTime $schedule_to The end of the schedule. (optional) @@ -8186,9 +8105,9 @@ public function bulkUpdateAllContentsRequest($app, $bulk_update_contents_dto, $s * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto */ - public function getAllContents($app, $ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) + public function getAllContents($ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) { - list($response) = $this->getAllContentsWithHttpInfo($app, $ids, $schedule_from, $schedule_to, $referencing, $references, $q, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + list($response) = $this->getAllContentsWithHttpInfo($ids, $schedule_from, $schedule_to, $referencing, $references, $q, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); return $response; } @@ -8197,7 +8116,6 @@ public function getAllContents($app, $ids = null, $schedule_from = null, $schedu * * Queries contents. * - * @param string $app The name of the app. (required) * @param string $ids The list of ids to query. (optional) * @param \DateTime $schedule_from The start of the schedule. (optional) * @param \DateTime $schedule_to The end of the schedule. (optional) @@ -8216,9 +8134,9 @@ public function getAllContents($app, $ids = null, $schedule_from = null, $schedu * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAllContentsWithHttpInfo($app, $ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) + public function getAllContentsWithHttpInfo($ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) { - $request = $this->getAllContentsRequest($app, $ids, $schedule_from, $schedule_to, $referencing, $references, $q, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + $request = $this->getAllContentsRequest($ids, $schedule_from, $schedule_to, $referencing, $references, $q, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); try { $options = $this->createHttpClientOption(); @@ -8332,7 +8250,6 @@ public function getAllContentsWithHttpInfo($app, $ids = null, $schedule_from = n * * Queries contents. * - * @param string $app The name of the app. (required) * @param string $ids The list of ids to query. (optional) * @param \DateTime $schedule_from The start of the schedule. (optional) * @param \DateTime $schedule_to The end of the schedule. (optional) @@ -8350,9 +8267,9 @@ public function getAllContentsWithHttpInfo($app, $ids = null, $schedule_from = n * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAllContentsAsync($app, $ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) + public function getAllContentsAsync($ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) { - return $this->getAllContentsAsyncWithHttpInfo($app, $ids, $schedule_from, $schedule_to, $referencing, $references, $q, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) + return $this->getAllContentsAsyncWithHttpInfo($ids, $schedule_from, $schedule_to, $referencing, $references, $q, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) ->then( function ($response) { return $response[0]; @@ -8365,7 +8282,6 @@ function ($response) { * * Queries contents. * - * @param string $app The name of the app. (required) * @param string $ids The list of ids to query. (optional) * @param \DateTime $schedule_from The start of the schedule. (optional) * @param \DateTime $schedule_to The end of the schedule. (optional) @@ -8383,10 +8299,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAllContentsAsyncWithHttpInfo($app, $ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) + public function getAllContentsAsyncWithHttpInfo($ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) { $returnType = '\Squidex\Client\Model\ContentsDto'; - $request = $this->getAllContentsRequest($app, $ids, $schedule_from, $schedule_to, $referencing, $references, $q, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + $request = $this->getAllContentsRequest($ids, $schedule_from, $schedule_to, $referencing, $references, $q, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8427,7 +8343,6 @@ function ($exception) { /** * Create request for operation 'getAllContents' * - * @param string $app The name of the app. (required) * @param string $ids The list of ids to query. (optional) * @param \DateTime $schedule_from The start of the schedule. (optional) * @param \DateTime $schedule_to The end of the schedule. (optional) @@ -8445,10 +8360,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAllContentsRequest($app, $ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) + public function getAllContentsRequest($ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -8623,7 +8539,6 @@ public function getAllContentsRequest($app, $ids = null, $schedule_from = null, * * Queries contents. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AllContentsByPostDto $all_contents_by_post_dto The required query object. (required) * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) @@ -8637,9 +8552,9 @@ public function getAllContentsRequest($app, $ids = null, $schedule_from = null, * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function getAllContentsPost($app, $all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) + public function getAllContentsPost($all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) { - list($response) = $this->getAllContentsPostWithHttpInfo($app, $all_contents_by_post_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + list($response) = $this->getAllContentsPostWithHttpInfo($all_contents_by_post_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); return $response; } @@ -8648,7 +8563,6 @@ public function getAllContentsPost($app, $all_contents_by_post_dto, $x_fields = * * Queries contents. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AllContentsByPostDto $all_contents_by_post_dto The required query object. (required) * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) @@ -8662,9 +8576,9 @@ public function getAllContentsPost($app, $all_contents_by_post_dto, $x_fields = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAllContentsPostWithHttpInfo($app, $all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) + public function getAllContentsPostWithHttpInfo($all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) { - $request = $this->getAllContentsPostRequest($app, $all_contents_by_post_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + $request = $this->getAllContentsPostRequest($all_contents_by_post_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); try { $options = $this->createHttpClientOption(); @@ -8801,7 +8715,6 @@ public function getAllContentsPostWithHttpInfo($app, $all_contents_by_post_dto, * * Queries contents. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AllContentsByPostDto $all_contents_by_post_dto The required query object. (required) * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) @@ -8814,9 +8727,9 @@ public function getAllContentsPostWithHttpInfo($app, $all_contents_by_post_dto, * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAllContentsPostAsync($app, $all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) + public function getAllContentsPostAsync($all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) { - return $this->getAllContentsPostAsyncWithHttpInfo($app, $all_contents_by_post_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) + return $this->getAllContentsPostAsyncWithHttpInfo($all_contents_by_post_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) ->then( function ($response) { return $response[0]; @@ -8829,7 +8742,6 @@ function ($response) { * * Queries contents. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AllContentsByPostDto $all_contents_by_post_dto The required query object. (required) * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) @@ -8842,10 +8754,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAllContentsPostAsyncWithHttpInfo($app, $all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) + public function getAllContentsPostAsyncWithHttpInfo($all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) { $returnType = '\Squidex\Client\Model\ContentsDto'; - $request = $this->getAllContentsPostRequest($app, $all_contents_by_post_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + $request = $this->getAllContentsPostRequest($all_contents_by_post_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8886,7 +8798,6 @@ function ($exception) { /** * Create request for operation 'getAllContentsPost' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AllContentsByPostDto $all_contents_by_post_dto The required query object. (required) * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) @@ -8899,10 +8810,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAllContentsPostRequest($app, $all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) + public function getAllContentsPostRequest($all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -9031,7 +8943,6 @@ public function getAllContentsPostRequest($app, $all_contents_by_post_dto, $x_fi * * GraphQL endpoint. * - * @param string $app The name of the app. (required) * @param string $the_query_string The optional version of the asset. (optional) * @param string $variables The optional operation variables. (optional) * @param string $operation_name The optional operation name. (optional) @@ -9042,9 +8953,9 @@ public function getAllContentsPostRequest($app, $all_contents_by_post_dto, $x_fi * @throws \InvalidArgumentException * @return mixed|\Squidex\Client\Model\ErrorDto */ - public function getGraphQL($app, $the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) + public function getGraphQL($the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) { - list($response) = $this->getGraphQLWithHttpInfo($app, $the_query_string, $variables, $operation_name, $x_unpublished, $contentType); + list($response) = $this->getGraphQLWithHttpInfo($the_query_string, $variables, $operation_name, $x_unpublished, $contentType); return $response; } @@ -9053,7 +8964,6 @@ public function getGraphQL($app, $the_query_string = null, $variables = null, $o * * GraphQL endpoint. * - * @param string $app The name of the app. (required) * @param string $the_query_string The optional version of the asset. (optional) * @param string $variables The optional operation variables. (optional) * @param string $operation_name The optional operation name. (optional) @@ -9064,9 +8974,9 @@ public function getGraphQL($app, $the_query_string = null, $variables = null, $o * @throws \InvalidArgumentException * @return array of mixed|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getGraphQLWithHttpInfo($app, $the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) + public function getGraphQLWithHttpInfo($the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) { - $request = $this->getGraphQLRequest($app, $the_query_string, $variables, $operation_name, $x_unpublished, $contentType); + $request = $this->getGraphQLRequest($the_query_string, $variables, $operation_name, $x_unpublished, $contentType); try { $options = $this->createHttpClientOption(); @@ -9180,7 +9090,6 @@ public function getGraphQLWithHttpInfo($app, $the_query_string = null, $variable * * GraphQL endpoint. * - * @param string $app The name of the app. (required) * @param string $the_query_string The optional version of the asset. (optional) * @param string $variables The optional operation variables. (optional) * @param string $operation_name The optional operation name. (optional) @@ -9190,9 +9099,9 @@ public function getGraphQLWithHttpInfo($app, $the_query_string = null, $variable * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getGraphQLAsync($app, $the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) + public function getGraphQLAsync($the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) { - return $this->getGraphQLAsyncWithHttpInfo($app, $the_query_string, $variables, $operation_name, $x_unpublished, $contentType) + return $this->getGraphQLAsyncWithHttpInfo($the_query_string, $variables, $operation_name, $x_unpublished, $contentType) ->then( function ($response) { return $response[0]; @@ -9205,7 +9114,6 @@ function ($response) { * * GraphQL endpoint. * - * @param string $app The name of the app. (required) * @param string $the_query_string The optional version of the asset. (optional) * @param string $variables The optional operation variables. (optional) * @param string $operation_name The optional operation name. (optional) @@ -9215,10 +9123,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getGraphQLAsyncWithHttpInfo($app, $the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) + public function getGraphQLAsyncWithHttpInfo($the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) { $returnType = 'mixed'; - $request = $this->getGraphQLRequest($app, $the_query_string, $variables, $operation_name, $x_unpublished, $contentType); + $request = $this->getGraphQLRequest($the_query_string, $variables, $operation_name, $x_unpublished, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9259,7 +9167,6 @@ function ($exception) { /** * Create request for operation 'getGraphQL' * - * @param string $app The name of the app. (required) * @param string $the_query_string The optional version of the asset. (optional) * @param string $variables The optional operation variables. (optional) * @param string $operation_name The optional operation name. (optional) @@ -9269,10 +9176,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getGraphQLRequest($app, $the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) + public function getGraphQLRequest($the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -9392,7 +9300,6 @@ public function getGraphQLRequest($app, $the_query_string = null, $variables = n * * GraphQL batch endpoint. * - * @param string $app The name of the app. (required) * @param string $the_query_string The optional version of the asset. (optional) * @param string $variables The optional operation variables. (optional) * @param string $operation_name The optional operation name. (optional) @@ -9403,9 +9310,9 @@ public function getGraphQLRequest($app, $the_query_string = null, $variables = n * @throws \InvalidArgumentException * @return mixed|\Squidex\Client\Model\ErrorDto */ - public function getGraphQLBatch($app, $the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQLBatch'][0]) + public function getGraphQLBatch($the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQLBatch'][0]) { - list($response) = $this->getGraphQLBatchWithHttpInfo($app, $the_query_string, $variables, $operation_name, $x_unpublished, $contentType); + list($response) = $this->getGraphQLBatchWithHttpInfo($the_query_string, $variables, $operation_name, $x_unpublished, $contentType); return $response; } @@ -9414,7 +9321,6 @@ public function getGraphQLBatch($app, $the_query_string = null, $variables = nul * * GraphQL batch endpoint. * - * @param string $app The name of the app. (required) * @param string $the_query_string The optional version of the asset. (optional) * @param string $variables The optional operation variables. (optional) * @param string $operation_name The optional operation name. (optional) @@ -9425,9 +9331,9 @@ public function getGraphQLBatch($app, $the_query_string = null, $variables = nul * @throws \InvalidArgumentException * @return array of mixed|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getGraphQLBatchWithHttpInfo($app, $the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQLBatch'][0]) + public function getGraphQLBatchWithHttpInfo($the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQLBatch'][0]) { - $request = $this->getGraphQLBatchRequest($app, $the_query_string, $variables, $operation_name, $x_unpublished, $contentType); + $request = $this->getGraphQLBatchRequest($the_query_string, $variables, $operation_name, $x_unpublished, $contentType); try { $options = $this->createHttpClientOption(); @@ -9541,7 +9447,6 @@ public function getGraphQLBatchWithHttpInfo($app, $the_query_string = null, $var * * GraphQL batch endpoint. * - * @param string $app The name of the app. (required) * @param string $the_query_string The optional version of the asset. (optional) * @param string $variables The optional operation variables. (optional) * @param string $operation_name The optional operation name. (optional) @@ -9551,9 +9456,9 @@ public function getGraphQLBatchWithHttpInfo($app, $the_query_string = null, $var * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getGraphQLBatchAsync($app, $the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQLBatch'][0]) + public function getGraphQLBatchAsync($the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQLBatch'][0]) { - return $this->getGraphQLBatchAsyncWithHttpInfo($app, $the_query_string, $variables, $operation_name, $x_unpublished, $contentType) + return $this->getGraphQLBatchAsyncWithHttpInfo($the_query_string, $variables, $operation_name, $x_unpublished, $contentType) ->then( function ($response) { return $response[0]; @@ -9566,7 +9471,6 @@ function ($response) { * * GraphQL batch endpoint. * - * @param string $app The name of the app. (required) * @param string $the_query_string The optional version of the asset. (optional) * @param string $variables The optional operation variables. (optional) * @param string $operation_name The optional operation name. (optional) @@ -9576,10 +9480,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getGraphQLBatchAsyncWithHttpInfo($app, $the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQLBatch'][0]) + public function getGraphQLBatchAsyncWithHttpInfo($the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQLBatch'][0]) { $returnType = 'mixed'; - $request = $this->getGraphQLBatchRequest($app, $the_query_string, $variables, $operation_name, $x_unpublished, $contentType); + $request = $this->getGraphQLBatchRequest($the_query_string, $variables, $operation_name, $x_unpublished, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9620,7 +9524,6 @@ function ($exception) { /** * Create request for operation 'getGraphQLBatch' * - * @param string $app The name of the app. (required) * @param string $the_query_string The optional version of the asset. (optional) * @param string $variables The optional operation variables. (optional) * @param string $operation_name The optional operation name. (optional) @@ -9630,10 +9533,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getGraphQLBatchRequest($app, $the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQLBatch'][0]) + public function getGraphQLBatchRequest($the_query_string = null, $variables = null, $operation_name = null, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQLBatch'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -9753,7 +9657,6 @@ public function getGraphQLBatchRequest($app, $the_query_string = null, $variable * * GraphQL endpoint. * - * @param string $app The name of the app. (required) * @param bool $x_unpublished Return unpublished content items. (optional) * @param mixed $body The graphql request. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postGraphQL'] to see the possible values for this operation @@ -9762,9 +9665,9 @@ public function getGraphQLBatchRequest($app, $the_query_string = null, $variable * @throws \InvalidArgumentException * @return mixed|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postGraphQL($app, $x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQL'][0]) + public function postGraphQL($x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQL'][0]) { - list($response) = $this->postGraphQLWithHttpInfo($app, $x_unpublished, $body, $contentType); + list($response) = $this->postGraphQLWithHttpInfo($x_unpublished, $body, $contentType); return $response; } @@ -9773,7 +9676,6 @@ public function postGraphQL($app, $x_unpublished = null, $body = null, string $c * * GraphQL endpoint. * - * @param string $app The name of the app. (required) * @param bool $x_unpublished Return unpublished content items. (optional) * @param mixed $body The graphql request. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postGraphQL'] to see the possible values for this operation @@ -9782,9 +9684,9 @@ public function postGraphQL($app, $x_unpublished = null, $body = null, string $c * @throws \InvalidArgumentException * @return array of mixed|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postGraphQLWithHttpInfo($app, $x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQL'][0]) + public function postGraphQLWithHttpInfo($x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQL'][0]) { - $request = $this->postGraphQLRequest($app, $x_unpublished, $body, $contentType); + $request = $this->postGraphQLRequest($x_unpublished, $body, $contentType); try { $options = $this->createHttpClientOption(); @@ -9921,7 +9823,6 @@ public function postGraphQLWithHttpInfo($app, $x_unpublished = null, $body = nul * * GraphQL endpoint. * - * @param string $app The name of the app. (required) * @param bool $x_unpublished Return unpublished content items. (optional) * @param mixed $body The graphql request. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postGraphQL'] to see the possible values for this operation @@ -9929,9 +9830,9 @@ public function postGraphQLWithHttpInfo($app, $x_unpublished = null, $body = nul * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postGraphQLAsync($app, $x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQL'][0]) + public function postGraphQLAsync($x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQL'][0]) { - return $this->postGraphQLAsyncWithHttpInfo($app, $x_unpublished, $body, $contentType) + return $this->postGraphQLAsyncWithHttpInfo($x_unpublished, $body, $contentType) ->then( function ($response) { return $response[0]; @@ -9944,7 +9845,6 @@ function ($response) { * * GraphQL endpoint. * - * @param string $app The name of the app. (required) * @param bool $x_unpublished Return unpublished content items. (optional) * @param mixed $body The graphql request. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postGraphQL'] to see the possible values for this operation @@ -9952,10 +9852,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postGraphQLAsyncWithHttpInfo($app, $x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQL'][0]) + public function postGraphQLAsyncWithHttpInfo($x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQL'][0]) { $returnType = 'mixed'; - $request = $this->postGraphQLRequest($app, $x_unpublished, $body, $contentType); + $request = $this->postGraphQLRequest($x_unpublished, $body, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9996,7 +9896,6 @@ function ($exception) { /** * Create request for operation 'postGraphQL' * - * @param string $app The name of the app. (required) * @param bool $x_unpublished Return unpublished content items. (optional) * @param mixed $body The graphql request. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postGraphQL'] to see the possible values for this operation @@ -10004,10 +9903,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postGraphQLRequest($app, $x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQL'][0]) + public function postGraphQLRequest($x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQL'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -10105,7 +10005,6 @@ public function postGraphQLRequest($app, $x_unpublished = null, $body = null, st * * GraphQL batch endpoint. * - * @param string $app The name of the app. (required) * @param bool $x_unpublished Return unpublished content items. (optional) * @param mixed $body The graphql request. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postGraphQLBatch'] to see the possible values for this operation @@ -10114,9 +10013,9 @@ public function postGraphQLRequest($app, $x_unpublished = null, $body = null, st * @throws \InvalidArgumentException * @return mixed|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postGraphQLBatch($app, $x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQLBatch'][0]) + public function postGraphQLBatch($x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQLBatch'][0]) { - list($response) = $this->postGraphQLBatchWithHttpInfo($app, $x_unpublished, $body, $contentType); + list($response) = $this->postGraphQLBatchWithHttpInfo($x_unpublished, $body, $contentType); return $response; } @@ -10125,7 +10024,6 @@ public function postGraphQLBatch($app, $x_unpublished = null, $body = null, stri * * GraphQL batch endpoint. * - * @param string $app The name of the app. (required) * @param bool $x_unpublished Return unpublished content items. (optional) * @param mixed $body The graphql request. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postGraphQLBatch'] to see the possible values for this operation @@ -10134,9 +10032,9 @@ public function postGraphQLBatch($app, $x_unpublished = null, $body = null, stri * @throws \InvalidArgumentException * @return array of mixed|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postGraphQLBatchWithHttpInfo($app, $x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQLBatch'][0]) + public function postGraphQLBatchWithHttpInfo($x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQLBatch'][0]) { - $request = $this->postGraphQLBatchRequest($app, $x_unpublished, $body, $contentType); + $request = $this->postGraphQLBatchRequest($x_unpublished, $body, $contentType); try { $options = $this->createHttpClientOption(); @@ -10273,7 +10171,6 @@ public function postGraphQLBatchWithHttpInfo($app, $x_unpublished = null, $body * * GraphQL batch endpoint. * - * @param string $app The name of the app. (required) * @param bool $x_unpublished Return unpublished content items. (optional) * @param mixed $body The graphql request. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postGraphQLBatch'] to see the possible values for this operation @@ -10281,9 +10178,9 @@ public function postGraphQLBatchWithHttpInfo($app, $x_unpublished = null, $body * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postGraphQLBatchAsync($app, $x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQLBatch'][0]) + public function postGraphQLBatchAsync($x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQLBatch'][0]) { - return $this->postGraphQLBatchAsyncWithHttpInfo($app, $x_unpublished, $body, $contentType) + return $this->postGraphQLBatchAsyncWithHttpInfo($x_unpublished, $body, $contentType) ->then( function ($response) { return $response[0]; @@ -10296,7 +10193,6 @@ function ($response) { * * GraphQL batch endpoint. * - * @param string $app The name of the app. (required) * @param bool $x_unpublished Return unpublished content items. (optional) * @param mixed $body The graphql request. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postGraphQLBatch'] to see the possible values for this operation @@ -10304,10 +10200,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postGraphQLBatchAsyncWithHttpInfo($app, $x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQLBatch'][0]) + public function postGraphQLBatchAsyncWithHttpInfo($x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQLBatch'][0]) { $returnType = 'mixed'; - $request = $this->postGraphQLBatchRequest($app, $x_unpublished, $body, $contentType); + $request = $this->postGraphQLBatchRequest($x_unpublished, $body, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -10348,7 +10244,6 @@ function ($exception) { /** * Create request for operation 'postGraphQLBatch' * - * @param string $app The name of the app. (required) * @param bool $x_unpublished Return unpublished content items. (optional) * @param mixed $body The graphql request. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postGraphQLBatch'] to see the possible values for this operation @@ -10356,10 +10251,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postGraphQLBatchRequest($app, $x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQLBatch'][0]) + public function postGraphQLBatchRequest($x_unpublished = null, $body = null, string $contentType = self::contentTypes['postGraphQLBatch'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/lib/Api/HistoryApi.php b/lib/Api/HistoryApi.php index 9875830..daef8dd 100644 --- a/lib/Api/HistoryApi.php +++ b/lib/Api/HistoryApi.php @@ -127,7 +127,6 @@ public function getConfig() * * Get the app history. * - * @param string $app The name of the app. (required) * @param string $channel The name of the channel. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppHistory'] to see the possible values for this operation * @@ -135,9 +134,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \Squidex\Client\Model\HistoryEventDto[]|\Squidex\Client\Model\ErrorDto */ - public function getAppHistory($app, $channel = null, string $contentType = self::contentTypes['getAppHistory'][0]) + public function getAppHistory($channel = null, string $contentType = self::contentTypes['getAppHistory'][0]) { - list($response) = $this->getAppHistoryWithHttpInfo($app, $channel, $contentType); + list($response) = $this->getAppHistoryWithHttpInfo($channel, $contentType); return $response; } @@ -146,7 +145,6 @@ public function getAppHistory($app, $channel = null, string $contentType = self: * * Get the app history. * - * @param string $app The name of the app. (required) * @param string $channel The name of the channel. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppHistory'] to see the possible values for this operation * @@ -154,9 +152,9 @@ public function getAppHistory($app, $channel = null, string $contentType = self: * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\HistoryEventDto[]|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAppHistoryWithHttpInfo($app, $channel = null, string $contentType = self::contentTypes['getAppHistory'][0]) + public function getAppHistoryWithHttpInfo($channel = null, string $contentType = self::contentTypes['getAppHistory'][0]) { - $request = $this->getAppHistoryRequest($app, $channel, $contentType); + $request = $this->getAppHistoryRequest($channel, $contentType); try { $options = $this->createHttpClientOption(); @@ -270,16 +268,15 @@ public function getAppHistoryWithHttpInfo($app, $channel = null, string $content * * Get the app history. * - * @param string $app The name of the app. (required) * @param string $channel The name of the channel. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppHistory'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAppHistoryAsync($app, $channel = null, string $contentType = self::contentTypes['getAppHistory'][0]) + public function getAppHistoryAsync($channel = null, string $contentType = self::contentTypes['getAppHistory'][0]) { - return $this->getAppHistoryAsyncWithHttpInfo($app, $channel, $contentType) + return $this->getAppHistoryAsyncWithHttpInfo($channel, $contentType) ->then( function ($response) { return $response[0]; @@ -292,17 +289,16 @@ function ($response) { * * Get the app history. * - * @param string $app The name of the app. (required) * @param string $channel The name of the channel. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppHistory'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAppHistoryAsyncWithHttpInfo($app, $channel = null, string $contentType = self::contentTypes['getAppHistory'][0]) + public function getAppHistoryAsyncWithHttpInfo($channel = null, string $contentType = self::contentTypes['getAppHistory'][0]) { $returnType = '\Squidex\Client\Model\HistoryEventDto[]'; - $request = $this->getAppHistoryRequest($app, $channel, $contentType); + $request = $this->getAppHistoryRequest($channel, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -343,17 +339,17 @@ function ($exception) { /** * Create request for operation 'getAppHistory' * - * @param string $app The name of the app. (required) * @param string $channel The name of the channel. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppHistory'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAppHistoryRequest($app, $channel = null, string $contentType = self::contentTypes['getAppHistory'][0]) + public function getAppHistoryRequest($channel = null, string $contentType = self::contentTypes['getAppHistory'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/lib/Api/JobsApi.php b/lib/Api/JobsApi.php index dc18941..d2f8903 100644 --- a/lib/Api/JobsApi.php +++ b/lib/Api/JobsApi.php @@ -451,7 +451,6 @@ public function getJobContentRequest($id, $app_id = null, string $contentType = * * Delete a job. * - * @param string $app The name of the app. (required) * @param string $id The ID of the jobs to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteJob'] to see the possible values for this operation * @@ -459,9 +458,9 @@ public function getJobContentRequest($id, $app_id = null, string $contentType = * @throws \InvalidArgumentException * @return void */ - public function deleteJob($app, $id, string $contentType = self::contentTypes['deleteJob'][0]) + public function deleteJob($id, string $contentType = self::contentTypes['deleteJob'][0]) { - $this->deleteJobWithHttpInfo($app, $id, $contentType); + $this->deleteJobWithHttpInfo($id, $contentType); } /** @@ -469,7 +468,6 @@ public function deleteJob($app, $id, string $contentType = self::contentTypes['d * * Delete a job. * - * @param string $app The name of the app. (required) * @param string $id The ID of the jobs to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteJob'] to see the possible values for this operation * @@ -477,9 +475,9 @@ public function deleteJob($app, $id, string $contentType = self::contentTypes['d * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteJobWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteJob'][0]) + public function deleteJobWithHttpInfo($id, string $contentType = self::contentTypes['deleteJob'][0]) { - $request = $this->deleteJobRequest($app, $id, $contentType); + $request = $this->deleteJobRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -546,16 +544,15 @@ public function deleteJobWithHttpInfo($app, $id, string $contentType = self::con * * Delete a job. * - * @param string $app The name of the app. (required) * @param string $id The ID of the jobs to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteJob'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteJobAsync($app, $id, string $contentType = self::contentTypes['deleteJob'][0]) + public function deleteJobAsync($id, string $contentType = self::contentTypes['deleteJob'][0]) { - return $this->deleteJobAsyncWithHttpInfo($app, $id, $contentType) + return $this->deleteJobAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -568,17 +565,16 @@ function ($response) { * * Delete a job. * - * @param string $app The name of the app. (required) * @param string $id The ID of the jobs to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteJob'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteJobAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteJob'][0]) + public function deleteJobAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteJob'][0]) { $returnType = ''; - $request = $this->deleteJobRequest($app, $id, $contentType); + $request = $this->deleteJobRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -606,17 +602,17 @@ function ($exception) { /** * Create request for operation 'deleteJob' * - * @param string $app The name of the app. (required) * @param string $id The ID of the jobs to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteJob'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteJobRequest($app, $id, string $contentType = self::contentTypes['deleteJob'][0]) + public function deleteJobRequest($id, string $contentType = self::contentTypes['deleteJob'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -716,16 +712,15 @@ public function deleteJobRequest($app, $id, string $contentType = self::contentT * * Get all jobs. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getJobs'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\JobsDto|\Squidex\Client\Model\ErrorDto */ - public function getJobs($app, string $contentType = self::contentTypes['getJobs'][0]) + public function getJobs(string $contentType = self::contentTypes['getJobs'][0]) { - list($response) = $this->getJobsWithHttpInfo($app, $contentType); + list($response) = $this->getJobsWithHttpInfo($contentType); return $response; } @@ -734,16 +729,15 @@ public function getJobs($app, string $contentType = self::contentTypes['getJobs' * * Get all jobs. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getJobs'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\JobsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getJobsWithHttpInfo($app, string $contentType = self::contentTypes['getJobs'][0]) + public function getJobsWithHttpInfo(string $contentType = self::contentTypes['getJobs'][0]) { - $request = $this->getJobsRequest($app, $contentType); + $request = $this->getJobsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -857,15 +851,14 @@ public function getJobsWithHttpInfo($app, string $contentType = self::contentTyp * * Get all jobs. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getJobs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getJobsAsync($app, string $contentType = self::contentTypes['getJobs'][0]) + public function getJobsAsync(string $contentType = self::contentTypes['getJobs'][0]) { - return $this->getJobsAsyncWithHttpInfo($app, $contentType) + return $this->getJobsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -878,16 +871,15 @@ function ($response) { * * Get all jobs. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getJobs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getJobsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getJobs'][0]) + public function getJobsAsyncWithHttpInfo(string $contentType = self::contentTypes['getJobs'][0]) { $returnType = '\Squidex\Client\Model\JobsDto'; - $request = $this->getJobsRequest($app, $contentType); + $request = $this->getJobsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -928,16 +920,16 @@ function ($exception) { /** * Create request for operation 'getJobs' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getJobs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getJobsRequest($app, string $contentType = self::contentTypes['getJobs'][0]) + public function getJobsRequest(string $contentType = self::contentTypes['getJobs'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/lib/Api/PingApi.php b/lib/Api/PingApi.php index ba1a253..f276759 100644 --- a/lib/Api/PingApi.php +++ b/lib/Api/PingApi.php @@ -130,16 +130,15 @@ public function getConfig() * * Get ping status. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppPing'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function getAppPing($app, string $contentType = self::contentTypes['getAppPing'][0]) + public function getAppPing(string $contentType = self::contentTypes['getAppPing'][0]) { - $this->getAppPingWithHttpInfo($app, $contentType); + $this->getAppPingWithHttpInfo($contentType); } /** @@ -147,16 +146,15 @@ public function getAppPing($app, string $contentType = self::contentTypes['getAp * * Get ping status. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppPing'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function getAppPingWithHttpInfo($app, string $contentType = self::contentTypes['getAppPing'][0]) + public function getAppPingWithHttpInfo(string $contentType = self::contentTypes['getAppPing'][0]) { - $request = $this->getAppPingRequest($app, $contentType); + $request = $this->getAppPingRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -215,15 +213,14 @@ public function getAppPingWithHttpInfo($app, string $contentType = self::content * * Get ping status. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppPing'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAppPingAsync($app, string $contentType = self::contentTypes['getAppPing'][0]) + public function getAppPingAsync(string $contentType = self::contentTypes['getAppPing'][0]) { - return $this->getAppPingAsyncWithHttpInfo($app, $contentType) + return $this->getAppPingAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -236,16 +233,15 @@ function ($response) { * * Get ping status. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppPing'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAppPingAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getAppPing'][0]) + public function getAppPingAsyncWithHttpInfo(string $contentType = self::contentTypes['getAppPing'][0]) { $returnType = ''; - $request = $this->getAppPingRequest($app, $contentType); + $request = $this->getAppPingRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -273,16 +269,16 @@ function ($exception) { /** * Create request for operation 'getAppPing' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppPing'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAppPingRequest($app, string $contentType = self::contentTypes['getAppPing'][0]) + public function getAppPingRequest(string $contentType = self::contentTypes['getAppPing'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/lib/Api/PlansApi.php b/lib/Api/PlansApi.php index 7af8e46..4559d03 100644 --- a/lib/Api/PlansApi.php +++ b/lib/Api/PlansApi.php @@ -133,16 +133,15 @@ public function getConfig() * * Get app plan information. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPlans'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\PlansDto|\Squidex\Client\Model\ErrorDto */ - public function getPlans($app, string $contentType = self::contentTypes['getPlans'][0]) + public function getPlans(string $contentType = self::contentTypes['getPlans'][0]) { - list($response) = $this->getPlansWithHttpInfo($app, $contentType); + list($response) = $this->getPlansWithHttpInfo($contentType); return $response; } @@ -151,16 +150,15 @@ public function getPlans($app, string $contentType = self::contentTypes['getPlan * * Get app plan information. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPlans'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\PlansDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getPlansWithHttpInfo($app, string $contentType = self::contentTypes['getPlans'][0]) + public function getPlansWithHttpInfo(string $contentType = self::contentTypes['getPlans'][0]) { - $request = $this->getPlansRequest($app, $contentType); + $request = $this->getPlansRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -274,15 +272,14 @@ public function getPlansWithHttpInfo($app, string $contentType = self::contentTy * * Get app plan information. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPlans'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPlansAsync($app, string $contentType = self::contentTypes['getPlans'][0]) + public function getPlansAsync(string $contentType = self::contentTypes['getPlans'][0]) { - return $this->getPlansAsyncWithHttpInfo($app, $contentType) + return $this->getPlansAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -295,16 +292,15 @@ function ($response) { * * Get app plan information. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPlans'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPlansAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getPlans'][0]) + public function getPlansAsyncWithHttpInfo(string $contentType = self::contentTypes['getPlans'][0]) { $returnType = '\Squidex\Client\Model\PlansDto'; - $request = $this->getPlansRequest($app, $contentType); + $request = $this->getPlansRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -345,16 +341,16 @@ function ($exception) { /** * Create request for operation 'getPlans' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPlans'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getPlansRequest($app, string $contentType = self::contentTypes['getPlans'][0]) + public function getPlansRequest(string $contentType = self::contentTypes['getPlans'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -439,7 +435,6 @@ public function getPlansRequest($app, string $contentType = self::contentTypes[' * * Change the app plan. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\ChangePlanDto $change_plan_dto Plan object that needs to be changed. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPlan'] to see the possible values for this operation * @@ -447,9 +442,9 @@ public function getPlansRequest($app, string $contentType = self::contentTypes[' * @throws \InvalidArgumentException * @return \Squidex\Client\Model\PlanChangedDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putPlan($app, $change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) + public function putPlan($change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) { - list($response) = $this->putPlanWithHttpInfo($app, $change_plan_dto, $contentType); + list($response) = $this->putPlanWithHttpInfo($change_plan_dto, $contentType); return $response; } @@ -458,7 +453,6 @@ public function putPlan($app, $change_plan_dto, string $contentType = self::cont * * Change the app plan. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\ChangePlanDto $change_plan_dto Plan object that needs to be changed. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPlan'] to see the possible values for this operation * @@ -466,9 +460,9 @@ public function putPlan($app, $change_plan_dto, string $contentType = self::cont * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\PlanChangedDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putPlanWithHttpInfo($app, $change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) + public function putPlanWithHttpInfo($change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) { - $request = $this->putPlanRequest($app, $change_plan_dto, $contentType); + $request = $this->putPlanRequest($change_plan_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -605,16 +599,15 @@ public function putPlanWithHttpInfo($app, $change_plan_dto, string $contentType * * Change the app plan. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\ChangePlanDto $change_plan_dto Plan object that needs to be changed. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPlan'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putPlanAsync($app, $change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) + public function putPlanAsync($change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) { - return $this->putPlanAsyncWithHttpInfo($app, $change_plan_dto, $contentType) + return $this->putPlanAsyncWithHttpInfo($change_plan_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -627,17 +620,16 @@ function ($response) { * * Change the app plan. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\ChangePlanDto $change_plan_dto Plan object that needs to be changed. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPlan'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putPlanAsyncWithHttpInfo($app, $change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) + public function putPlanAsyncWithHttpInfo($change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) { $returnType = '\Squidex\Client\Model\PlanChangedDto'; - $request = $this->putPlanRequest($app, $change_plan_dto, $contentType); + $request = $this->putPlanRequest($change_plan_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -678,17 +670,17 @@ function ($exception) { /** * Create request for operation 'putPlan' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\ChangePlanDto $change_plan_dto Plan object that needs to be changed. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPlan'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putPlanRequest($app, $change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) + public function putPlanRequest($change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/lib/Api/RulesApi.php b/lib/Api/RulesApi.php index 0b130d9..cb06105 100644 --- a/lib/Api/RulesApi.php +++ b/lib/Api/RulesApi.php @@ -178,7 +178,6 @@ public function getConfig() * * Cancels an event. * - * @param string $app The name of the app. (required) * @param string $id The event to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvent'] to see the possible values for this operation * @@ -186,9 +185,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return void */ - public function deleteEvent($app, $id, string $contentType = self::contentTypes['deleteEvent'][0]) + public function deleteEvent($id, string $contentType = self::contentTypes['deleteEvent'][0]) { - $this->deleteEventWithHttpInfo($app, $id, $contentType); + $this->deleteEventWithHttpInfo($id, $contentType); } /** @@ -196,7 +195,6 @@ public function deleteEvent($app, $id, string $contentType = self::contentTypes[ * * Cancels an event. * - * @param string $app The name of the app. (required) * @param string $id The event to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvent'] to see the possible values for this operation * @@ -204,9 +202,9 @@ public function deleteEvent($app, $id, string $contentType = self::contentTypes[ * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteEventWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteEvent'][0]) + public function deleteEventWithHttpInfo($id, string $contentType = self::contentTypes['deleteEvent'][0]) { - $request = $this->deleteEventRequest($app, $id, $contentType); + $request = $this->deleteEventRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -273,16 +271,15 @@ public function deleteEventWithHttpInfo($app, $id, string $contentType = self::c * * Cancels an event. * - * @param string $app The name of the app. (required) * @param string $id The event to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteEventAsync($app, $id, string $contentType = self::contentTypes['deleteEvent'][0]) + public function deleteEventAsync($id, string $contentType = self::contentTypes['deleteEvent'][0]) { - return $this->deleteEventAsyncWithHttpInfo($app, $id, $contentType) + return $this->deleteEventAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -295,17 +292,16 @@ function ($response) { * * Cancels an event. * - * @param string $app The name of the app. (required) * @param string $id The event to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteEventAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteEvent'][0]) + public function deleteEventAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteEvent'][0]) { $returnType = ''; - $request = $this->deleteEventRequest($app, $id, $contentType); + $request = $this->deleteEventRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -333,17 +329,17 @@ function ($exception) { /** * Create request for operation 'deleteEvent' * - * @param string $app The name of the app. (required) * @param string $id The event to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteEventRequest($app, $id, string $contentType = self::contentTypes['deleteEvent'][0]) + public function deleteEventRequest($id, string $contentType = self::contentTypes['deleteEvent'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -443,16 +439,15 @@ public function deleteEventRequest($app, $id, string $contentType = self::conten * * Cancels all events. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvents'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function deleteEvents($app, string $contentType = self::contentTypes['deleteEvents'][0]) + public function deleteEvents(string $contentType = self::contentTypes['deleteEvents'][0]) { - $this->deleteEventsWithHttpInfo($app, $contentType); + $this->deleteEventsWithHttpInfo($contentType); } /** @@ -460,16 +455,15 @@ public function deleteEvents($app, string $contentType = self::contentTypes['del * * Cancels all events. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvents'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteEventsWithHttpInfo($app, string $contentType = self::contentTypes['deleteEvents'][0]) + public function deleteEventsWithHttpInfo(string $contentType = self::contentTypes['deleteEvents'][0]) { - $request = $this->deleteEventsRequest($app, $contentType); + $request = $this->deleteEventsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -536,15 +530,14 @@ public function deleteEventsWithHttpInfo($app, string $contentType = self::conte * * Cancels all events. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvents'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteEventsAsync($app, string $contentType = self::contentTypes['deleteEvents'][0]) + public function deleteEventsAsync(string $contentType = self::contentTypes['deleteEvents'][0]) { - return $this->deleteEventsAsyncWithHttpInfo($app, $contentType) + return $this->deleteEventsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -557,16 +550,15 @@ function ($response) { * * Cancels all events. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvents'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteEventsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['deleteEvents'][0]) + public function deleteEventsAsyncWithHttpInfo(string $contentType = self::contentTypes['deleteEvents'][0]) { $returnType = ''; - $request = $this->deleteEventsRequest($app, $contentType); + $request = $this->deleteEventsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -594,16 +586,16 @@ function ($exception) { /** * Create request for operation 'deleteEvents' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvents'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteEventsRequest($app, string $contentType = self::contentTypes['deleteEvents'][0]) + public function deleteEventsRequest(string $contentType = self::contentTypes['deleteEvents'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -688,7 +680,6 @@ public function deleteEventsRequest($app, string $contentType = self::contentTyp * * Delete a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRule'] to see the possible values for this operation * @@ -696,9 +687,9 @@ public function deleteEventsRequest($app, string $contentType = self::contentTyp * @throws \InvalidArgumentException * @return void */ - public function deleteRule($app, $id, string $contentType = self::contentTypes['deleteRule'][0]) + public function deleteRule($id, string $contentType = self::contentTypes['deleteRule'][0]) { - $this->deleteRuleWithHttpInfo($app, $id, $contentType); + $this->deleteRuleWithHttpInfo($id, $contentType); } /** @@ -706,7 +697,6 @@ public function deleteRule($app, $id, string $contentType = self::contentTypes[' * * Delete a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRule'] to see the possible values for this operation * @@ -714,9 +704,9 @@ public function deleteRule($app, $id, string $contentType = self::contentTypes[' * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteRuleWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteRule'][0]) + public function deleteRuleWithHttpInfo($id, string $contentType = self::contentTypes['deleteRule'][0]) { - $request = $this->deleteRuleRequest($app, $id, $contentType); + $request = $this->deleteRuleRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -783,16 +773,15 @@ public function deleteRuleWithHttpInfo($app, $id, string $contentType = self::co * * Delete a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRuleAsync($app, $id, string $contentType = self::contentTypes['deleteRule'][0]) + public function deleteRuleAsync($id, string $contentType = self::contentTypes['deleteRule'][0]) { - return $this->deleteRuleAsyncWithHttpInfo($app, $id, $contentType) + return $this->deleteRuleAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -805,17 +794,16 @@ function ($response) { * * Delete a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRuleAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteRule'][0]) + public function deleteRuleAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteRule'][0]) { $returnType = ''; - $request = $this->deleteRuleRequest($app, $id, $contentType); + $request = $this->deleteRuleRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -843,17 +831,17 @@ function ($exception) { /** * Create request for operation 'deleteRule' * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteRuleRequest($app, $id, string $contentType = self::contentTypes['deleteRule'][0]) + public function deleteRuleRequest($id, string $contentType = self::contentTypes['deleteRule'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -953,7 +941,6 @@ public function deleteRuleRequest($app, $id, string $contentType = self::content * * Cancels all rule events. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleEvents'] to see the possible values for this operation * @@ -961,9 +948,9 @@ public function deleteRuleRequest($app, $id, string $contentType = self::content * @throws \InvalidArgumentException * @return void */ - public function deleteRuleEvents($app, $id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) + public function deleteRuleEvents($id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) { - $this->deleteRuleEventsWithHttpInfo($app, $id, $contentType); + $this->deleteRuleEventsWithHttpInfo($id, $contentType); } /** @@ -971,7 +958,6 @@ public function deleteRuleEvents($app, $id, string $contentType = self::contentT * * Cancels all rule events. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleEvents'] to see the possible values for this operation * @@ -979,9 +965,9 @@ public function deleteRuleEvents($app, $id, string $contentType = self::contentT * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteRuleEventsWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) + public function deleteRuleEventsWithHttpInfo($id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) { - $request = $this->deleteRuleEventsRequest($app, $id, $contentType); + $request = $this->deleteRuleEventsRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1048,16 +1034,15 @@ public function deleteRuleEventsWithHttpInfo($app, $id, string $contentType = se * * Cancels all rule events. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleEvents'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRuleEventsAsync($app, $id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) + public function deleteRuleEventsAsync($id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) { - return $this->deleteRuleEventsAsyncWithHttpInfo($app, $id, $contentType) + return $this->deleteRuleEventsAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -1070,17 +1055,16 @@ function ($response) { * * Cancels all rule events. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleEvents'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRuleEventsAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) + public function deleteRuleEventsAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) { $returnType = ''; - $request = $this->deleteRuleEventsRequest($app, $id, $contentType); + $request = $this->deleteRuleEventsRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1108,17 +1092,17 @@ function ($exception) { /** * Create request for operation 'deleteRuleEvents' * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleEvents'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteRuleEventsRequest($app, $id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) + public function deleteRuleEventsRequest($id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1218,16 +1202,15 @@ public function deleteRuleEventsRequest($app, $id, string $contentType = self::c * * Cancel the current run. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleRun'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function deleteRuleRun($app, string $contentType = self::contentTypes['deleteRuleRun'][0]) + public function deleteRuleRun(string $contentType = self::contentTypes['deleteRuleRun'][0]) { - $this->deleteRuleRunWithHttpInfo($app, $contentType); + $this->deleteRuleRunWithHttpInfo($contentType); } /** @@ -1235,16 +1218,15 @@ public function deleteRuleRun($app, string $contentType = self::contentTypes['de * * Cancel the current run. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleRun'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteRuleRunWithHttpInfo($app, string $contentType = self::contentTypes['deleteRuleRun'][0]) + public function deleteRuleRunWithHttpInfo(string $contentType = self::contentTypes['deleteRuleRun'][0]) { - $request = $this->deleteRuleRunRequest($app, $contentType); + $request = $this->deleteRuleRunRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -1311,15 +1293,14 @@ public function deleteRuleRunWithHttpInfo($app, string $contentType = self::cont * * Cancel the current run. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleRun'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRuleRunAsync($app, string $contentType = self::contentTypes['deleteRuleRun'][0]) + public function deleteRuleRunAsync(string $contentType = self::contentTypes['deleteRuleRun'][0]) { - return $this->deleteRuleRunAsyncWithHttpInfo($app, $contentType) + return $this->deleteRuleRunAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -1332,16 +1313,15 @@ function ($response) { * * Cancel the current run. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleRun'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRuleRunAsyncWithHttpInfo($app, string $contentType = self::contentTypes['deleteRuleRun'][0]) + public function deleteRuleRunAsyncWithHttpInfo(string $contentType = self::contentTypes['deleteRuleRun'][0]) { $returnType = ''; - $request = $this->deleteRuleRunRequest($app, $contentType); + $request = $this->deleteRuleRunRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1369,16 +1349,16 @@ function ($exception) { /** * Create request for operation 'deleteRuleRun' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleRun'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteRuleRunRequest($app, string $contentType = self::contentTypes['deleteRuleRun'][0]) + public function deleteRuleRunRequest(string $contentType = self::contentTypes['deleteRuleRun'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1463,7 +1443,6 @@ public function deleteRuleRunRequest($app, string $contentType = self::contentTy * * Disable a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableRule'] to see the possible values for this operation * @@ -1471,9 +1450,9 @@ public function deleteRuleRunRequest($app, string $contentType = self::contentTy * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function disableRule($app, $id, string $contentType = self::contentTypes['disableRule'][0]) + public function disableRule($id, string $contentType = self::contentTypes['disableRule'][0]) { - list($response) = $this->disableRuleWithHttpInfo($app, $id, $contentType); + list($response) = $this->disableRuleWithHttpInfo($id, $contentType); return $response; } @@ -1482,7 +1461,6 @@ public function disableRule($app, $id, string $contentType = self::contentTypes[ * * Disable a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableRule'] to see the possible values for this operation * @@ -1490,9 +1468,9 @@ public function disableRule($app, $id, string $contentType = self::contentTypes[ * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function disableRuleWithHttpInfo($app, $id, string $contentType = self::contentTypes['disableRule'][0]) + public function disableRuleWithHttpInfo($id, string $contentType = self::contentTypes['disableRule'][0]) { - $request = $this->disableRuleRequest($app, $id, $contentType); + $request = $this->disableRuleRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1629,16 +1607,15 @@ public function disableRuleWithHttpInfo($app, $id, string $contentType = self::c * * Disable a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function disableRuleAsync($app, $id, string $contentType = self::contentTypes['disableRule'][0]) + public function disableRuleAsync($id, string $contentType = self::contentTypes['disableRule'][0]) { - return $this->disableRuleAsyncWithHttpInfo($app, $id, $contentType) + return $this->disableRuleAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -1651,17 +1628,16 @@ function ($response) { * * Disable a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function disableRuleAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['disableRule'][0]) + public function disableRuleAsyncWithHttpInfo($id, string $contentType = self::contentTypes['disableRule'][0]) { $returnType = '\Squidex\Client\Model\RuleDto'; - $request = $this->disableRuleRequest($app, $id, $contentType); + $request = $this->disableRuleRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1702,17 +1678,17 @@ function ($exception) { /** * Create request for operation 'disableRule' * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function disableRuleRequest($app, $id, string $contentType = self::contentTypes['disableRule'][0]) + public function disableRuleRequest($id, string $contentType = self::contentTypes['disableRule'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1812,7 +1788,6 @@ public function disableRuleRequest($app, $id, string $contentType = self::conten * * Enable a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableRule'] to see the possible values for this operation * @@ -1820,9 +1795,9 @@ public function disableRuleRequest($app, $id, string $contentType = self::conten * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function enableRule($app, $id, string $contentType = self::contentTypes['enableRule'][0]) + public function enableRule($id, string $contentType = self::contentTypes['enableRule'][0]) { - list($response) = $this->enableRuleWithHttpInfo($app, $id, $contentType); + list($response) = $this->enableRuleWithHttpInfo($id, $contentType); return $response; } @@ -1831,7 +1806,6 @@ public function enableRule($app, $id, string $contentType = self::contentTypes[' * * Enable a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableRule'] to see the possible values for this operation * @@ -1839,9 +1813,9 @@ public function enableRule($app, $id, string $contentType = self::contentTypes[' * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function enableRuleWithHttpInfo($app, $id, string $contentType = self::contentTypes['enableRule'][0]) + public function enableRuleWithHttpInfo($id, string $contentType = self::contentTypes['enableRule'][0]) { - $request = $this->enableRuleRequest($app, $id, $contentType); + $request = $this->enableRuleRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1978,16 +1952,15 @@ public function enableRuleWithHttpInfo($app, $id, string $contentType = self::co * * Enable a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function enableRuleAsync($app, $id, string $contentType = self::contentTypes['enableRule'][0]) + public function enableRuleAsync($id, string $contentType = self::contentTypes['enableRule'][0]) { - return $this->enableRuleAsyncWithHttpInfo($app, $id, $contentType) + return $this->enableRuleAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -2000,17 +1973,16 @@ function ($response) { * * Enable a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function enableRuleAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['enableRule'][0]) + public function enableRuleAsyncWithHttpInfo($id, string $contentType = self::contentTypes['enableRule'][0]) { $returnType = '\Squidex\Client\Model\RuleDto'; - $request = $this->enableRuleRequest($app, $id, $contentType); + $request = $this->enableRuleRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2051,17 +2023,17 @@ function ($exception) { /** * Create request for operation 'enableRule' * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function enableRuleRequest($app, $id, string $contentType = self::contentTypes['enableRule'][0]) + public function enableRuleRequest($id, string $contentType = self::contentTypes['enableRule'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3039,7 +3011,6 @@ public function getEventTypesRequest(string $contentType = self::contentTypes['g * * Get rule events. * - * @param string $app The name of the app. (required) * @param string $rule_id The optional rule id to filter to events. (optional) * @param int $skip The number of events to skip. (optional, default to 0) * @param int $take The number of events to take. (optional, default to 20) @@ -3049,9 +3020,9 @@ public function getEventTypesRequest(string $contentType = self::contentTypes['g * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RuleEventsDto|\Squidex\Client\Model\ErrorDto */ - public function getEvents($app, $rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) + public function getEvents($rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) { - list($response) = $this->getEventsWithHttpInfo($app, $rule_id, $skip, $take, $contentType); + list($response) = $this->getEventsWithHttpInfo($rule_id, $skip, $take, $contentType); return $response; } @@ -3060,7 +3031,6 @@ public function getEvents($app, $rule_id = null, $skip = 0, $take = 20, string $ * * Get rule events. * - * @param string $app The name of the app. (required) * @param string $rule_id The optional rule id to filter to events. (optional) * @param int $skip The number of events to skip. (optional, default to 0) * @param int $take The number of events to take. (optional, default to 20) @@ -3070,9 +3040,9 @@ public function getEvents($app, $rule_id = null, $skip = 0, $take = 20, string $ * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RuleEventsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getEventsWithHttpInfo($app, $rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) + public function getEventsWithHttpInfo($rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) { - $request = $this->getEventsRequest($app, $rule_id, $skip, $take, $contentType); + $request = $this->getEventsRequest($rule_id, $skip, $take, $contentType); try { $options = $this->createHttpClientOption(); @@ -3186,7 +3156,6 @@ public function getEventsWithHttpInfo($app, $rule_id = null, $skip = 0, $take = * * Get rule events. * - * @param string $app The name of the app. (required) * @param string $rule_id The optional rule id to filter to events. (optional) * @param int $skip The number of events to skip. (optional, default to 0) * @param int $take The number of events to take. (optional, default to 20) @@ -3195,9 +3164,9 @@ public function getEventsWithHttpInfo($app, $rule_id = null, $skip = 0, $take = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getEventsAsync($app, $rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) + public function getEventsAsync($rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) { - return $this->getEventsAsyncWithHttpInfo($app, $rule_id, $skip, $take, $contentType) + return $this->getEventsAsyncWithHttpInfo($rule_id, $skip, $take, $contentType) ->then( function ($response) { return $response[0]; @@ -3210,7 +3179,6 @@ function ($response) { * * Get rule events. * - * @param string $app The name of the app. (required) * @param string $rule_id The optional rule id to filter to events. (optional) * @param int $skip The number of events to skip. (optional, default to 0) * @param int $take The number of events to take. (optional, default to 20) @@ -3219,10 +3187,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getEventsAsyncWithHttpInfo($app, $rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) + public function getEventsAsyncWithHttpInfo($rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) { $returnType = '\Squidex\Client\Model\RuleEventsDto'; - $request = $this->getEventsRequest($app, $rule_id, $skip, $take, $contentType); + $request = $this->getEventsRequest($rule_id, $skip, $take, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3263,7 +3231,6 @@ function ($exception) { /** * Create request for operation 'getEvents' * - * @param string $app The name of the app. (required) * @param string $rule_id The optional rule id to filter to events. (optional) * @param int $skip The number of events to skip. (optional, default to 0) * @param int $take The number of events to take. (optional, default to 20) @@ -3272,10 +3239,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getEventsRequest($app, $rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) + public function getEventsRequest($rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3390,16 +3358,15 @@ public function getEventsRequest($app, $rule_id = null, $skip = 0, $take = 20, s * * Get rules. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRules'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RulesDto|\Squidex\Client\Model\ErrorDto */ - public function getRules($app, string $contentType = self::contentTypes['getRules'][0]) + public function getRules(string $contentType = self::contentTypes['getRules'][0]) { - list($response) = $this->getRulesWithHttpInfo($app, $contentType); + list($response) = $this->getRulesWithHttpInfo($contentType); return $response; } @@ -3408,16 +3375,15 @@ public function getRules($app, string $contentType = self::contentTypes['getRule * * Get rules. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRules'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RulesDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getRulesWithHttpInfo($app, string $contentType = self::contentTypes['getRules'][0]) + public function getRulesWithHttpInfo(string $contentType = self::contentTypes['getRules'][0]) { - $request = $this->getRulesRequest($app, $contentType); + $request = $this->getRulesRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -3531,15 +3497,14 @@ public function getRulesWithHttpInfo($app, string $contentType = self::contentTy * * Get rules. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRules'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getRulesAsync($app, string $contentType = self::contentTypes['getRules'][0]) + public function getRulesAsync(string $contentType = self::contentTypes['getRules'][0]) { - return $this->getRulesAsyncWithHttpInfo($app, $contentType) + return $this->getRulesAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -3552,16 +3517,15 @@ function ($response) { * * Get rules. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRules'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getRulesAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getRules'][0]) + public function getRulesAsyncWithHttpInfo(string $contentType = self::contentTypes['getRules'][0]) { $returnType = '\Squidex\Client\Model\RulesDto'; - $request = $this->getRulesRequest($app, $contentType); + $request = $this->getRulesRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3602,16 +3566,16 @@ function ($exception) { /** * Create request for operation 'getRules' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRules'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getRulesRequest($app, string $contentType = self::contentTypes['getRules'][0]) + public function getRulesRequest(string $contentType = self::contentTypes['getRules'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3696,7 +3660,6 @@ public function getRulesRequest($app, string $contentType = self::contentTypes[' * * Create a new rule. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRule'] to see the possible values for this operation * @@ -3704,9 +3667,9 @@ public function getRulesRequest($app, string $contentType = self::contentTypes[' * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postRule($app, $create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) + public function postRule($create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) { - list($response) = $this->postRuleWithHttpInfo($app, $create_rule_dto, $contentType); + list($response) = $this->postRuleWithHttpInfo($create_rule_dto, $contentType); return $response; } @@ -3715,7 +3678,6 @@ public function postRule($app, $create_rule_dto, string $contentType = self::con * * Create a new rule. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRule'] to see the possible values for this operation * @@ -3723,9 +3685,9 @@ public function postRule($app, $create_rule_dto, string $contentType = self::con * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postRuleWithHttpInfo($app, $create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) + public function postRuleWithHttpInfo($create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) { - $request = $this->postRuleRequest($app, $create_rule_dto, $contentType); + $request = $this->postRuleRequest($create_rule_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -3862,16 +3824,15 @@ public function postRuleWithHttpInfo($app, $create_rule_dto, string $contentType * * Create a new rule. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postRuleAsync($app, $create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) + public function postRuleAsync($create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) { - return $this->postRuleAsyncWithHttpInfo($app, $create_rule_dto, $contentType) + return $this->postRuleAsyncWithHttpInfo($create_rule_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -3884,17 +3845,16 @@ function ($response) { * * Create a new rule. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postRuleAsyncWithHttpInfo($app, $create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) + public function postRuleAsyncWithHttpInfo($create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) { $returnType = '\Squidex\Client\Model\RuleDto'; - $request = $this->postRuleRequest($app, $create_rule_dto, $contentType); + $request = $this->postRuleRequest($create_rule_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3935,17 +3895,17 @@ function ($exception) { /** * Create request for operation 'postRule' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postRuleRequest($app, $create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) + public function postRuleRequest($create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4044,7 +4004,6 @@ public function postRuleRequest($app, $create_rule_dto, string $contentType = se * * Retry the event immediately. * - * @param string $app The name of the app. (required) * @param string $id The event to enqueue. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putEvent'] to see the possible values for this operation * @@ -4052,9 +4011,9 @@ public function postRuleRequest($app, $create_rule_dto, string $contentType = se * @throws \InvalidArgumentException * @return void */ - public function putEvent($app, $id, string $contentType = self::contentTypes['putEvent'][0]) + public function putEvent($id, string $contentType = self::contentTypes['putEvent'][0]) { - $this->putEventWithHttpInfo($app, $id, $contentType); + $this->putEventWithHttpInfo($id, $contentType); } /** @@ -4062,7 +4021,6 @@ public function putEvent($app, $id, string $contentType = self::contentTypes['pu * * Retry the event immediately. * - * @param string $app The name of the app. (required) * @param string $id The event to enqueue. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putEvent'] to see the possible values for this operation * @@ -4070,9 +4028,9 @@ public function putEvent($app, $id, string $contentType = self::contentTypes['pu * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function putEventWithHttpInfo($app, $id, string $contentType = self::contentTypes['putEvent'][0]) + public function putEventWithHttpInfo($id, string $contentType = self::contentTypes['putEvent'][0]) { - $request = $this->putEventRequest($app, $id, $contentType); + $request = $this->putEventRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -4139,16 +4097,15 @@ public function putEventWithHttpInfo($app, $id, string $contentType = self::cont * * Retry the event immediately. * - * @param string $app The name of the app. (required) * @param string $id The event to enqueue. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putEvent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putEventAsync($app, $id, string $contentType = self::contentTypes['putEvent'][0]) + public function putEventAsync($id, string $contentType = self::contentTypes['putEvent'][0]) { - return $this->putEventAsyncWithHttpInfo($app, $id, $contentType) + return $this->putEventAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -4161,17 +4118,16 @@ function ($response) { * * Retry the event immediately. * - * @param string $app The name of the app. (required) * @param string $id The event to enqueue. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putEvent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putEventAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['putEvent'][0]) + public function putEventAsyncWithHttpInfo($id, string $contentType = self::contentTypes['putEvent'][0]) { $returnType = ''; - $request = $this->putEventRequest($app, $id, $contentType); + $request = $this->putEventRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4199,17 +4155,17 @@ function ($exception) { /** * Create request for operation 'putEvent' * - * @param string $app The name of the app. (required) * @param string $id The event to enqueue. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putEvent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putEventRequest($app, $id, string $contentType = self::contentTypes['putEvent'][0]) + public function putEventRequest($id, string $contentType = self::contentTypes['putEvent'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4309,7 +4265,6 @@ public function putEventRequest($app, $id, string $contentType = self::contentTy * * Update a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to update. (required) * @param \Squidex\Client\Model\UpdateRuleDto $update_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRule'] to see the possible values for this operation @@ -4318,9 +4273,9 @@ public function putEventRequest($app, $id, string $contentType = self::contentTy * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putRule($app, $id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) + public function putRule($id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) { - list($response) = $this->putRuleWithHttpInfo($app, $id, $update_rule_dto, $contentType); + list($response) = $this->putRuleWithHttpInfo($id, $update_rule_dto, $contentType); return $response; } @@ -4329,7 +4284,6 @@ public function putRule($app, $id, $update_rule_dto, string $contentType = self: * * Update a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to update. (required) * @param \Squidex\Client\Model\UpdateRuleDto $update_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRule'] to see the possible values for this operation @@ -4338,9 +4292,9 @@ public function putRule($app, $id, $update_rule_dto, string $contentType = self: * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putRuleWithHttpInfo($app, $id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) + public function putRuleWithHttpInfo($id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) { - $request = $this->putRuleRequest($app, $id, $update_rule_dto, $contentType); + $request = $this->putRuleRequest($id, $update_rule_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -4477,7 +4431,6 @@ public function putRuleWithHttpInfo($app, $id, $update_rule_dto, string $content * * Update a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to update. (required) * @param \Squidex\Client\Model\UpdateRuleDto $update_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRule'] to see the possible values for this operation @@ -4485,9 +4438,9 @@ public function putRuleWithHttpInfo($app, $id, $update_rule_dto, string $content * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRuleAsync($app, $id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) + public function putRuleAsync($id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) { - return $this->putRuleAsyncWithHttpInfo($app, $id, $update_rule_dto, $contentType) + return $this->putRuleAsyncWithHttpInfo($id, $update_rule_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -4500,7 +4453,6 @@ function ($response) { * * Update a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to update. (required) * @param \Squidex\Client\Model\UpdateRuleDto $update_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRule'] to see the possible values for this operation @@ -4508,10 +4460,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRuleAsyncWithHttpInfo($app, $id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) + public function putRuleAsyncWithHttpInfo($id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) { $returnType = '\Squidex\Client\Model\RuleDto'; - $request = $this->putRuleRequest($app, $id, $update_rule_dto, $contentType); + $request = $this->putRuleRequest($id, $update_rule_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4552,7 +4504,6 @@ function ($exception) { /** * Create request for operation 'putRule' * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to update. (required) * @param \Squidex\Client\Model\UpdateRuleDto $update_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRule'] to see the possible values for this operation @@ -4560,10 +4511,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putRuleRequest($app, $id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) + public function putRuleRequest($id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4677,7 +4629,6 @@ public function putRuleRequest($app, $id, $update_rule_dto, string $contentType * * Run a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to run. (required) * @param bool $from_snapshots Runs the rule from snapeshots if possible. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRuleRun'] to see the possible values for this operation @@ -4686,9 +4637,9 @@ public function putRuleRequest($app, $id, $update_rule_dto, string $contentType * @throws \InvalidArgumentException * @return void */ - public function putRuleRun($app, $id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) + public function putRuleRun($id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) { - $this->putRuleRunWithHttpInfo($app, $id, $from_snapshots, $contentType); + $this->putRuleRunWithHttpInfo($id, $from_snapshots, $contentType); } /** @@ -4696,7 +4647,6 @@ public function putRuleRun($app, $id, $from_snapshots = false, string $contentTy * * Run a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to run. (required) * @param bool $from_snapshots Runs the rule from snapeshots if possible. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRuleRun'] to see the possible values for this operation @@ -4705,9 +4655,9 @@ public function putRuleRun($app, $id, $from_snapshots = false, string $contentTy * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function putRuleRunWithHttpInfo($app, $id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) + public function putRuleRunWithHttpInfo($id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) { - $request = $this->putRuleRunRequest($app, $id, $from_snapshots, $contentType); + $request = $this->putRuleRunRequest($id, $from_snapshots, $contentType); try { $options = $this->createHttpClientOption(); @@ -4774,7 +4724,6 @@ public function putRuleRunWithHttpInfo($app, $id, $from_snapshots = false, strin * * Run a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to run. (required) * @param bool $from_snapshots Runs the rule from snapeshots if possible. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRuleRun'] to see the possible values for this operation @@ -4782,9 +4731,9 @@ public function putRuleRunWithHttpInfo($app, $id, $from_snapshots = false, strin * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRuleRunAsync($app, $id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) + public function putRuleRunAsync($id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) { - return $this->putRuleRunAsyncWithHttpInfo($app, $id, $from_snapshots, $contentType) + return $this->putRuleRunAsyncWithHttpInfo($id, $from_snapshots, $contentType) ->then( function ($response) { return $response[0]; @@ -4797,7 +4746,6 @@ function ($response) { * * Run a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to run. (required) * @param bool $from_snapshots Runs the rule from snapeshots if possible. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRuleRun'] to see the possible values for this operation @@ -4805,10 +4753,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRuleRunAsyncWithHttpInfo($app, $id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) + public function putRuleRunAsyncWithHttpInfo($id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) { $returnType = ''; - $request = $this->putRuleRunRequest($app, $id, $from_snapshots, $contentType); + $request = $this->putRuleRunRequest($id, $from_snapshots, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4836,7 +4784,6 @@ function ($exception) { /** * Create request for operation 'putRuleRun' * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to run. (required) * @param bool $from_snapshots Runs the rule from snapeshots if possible. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRuleRun'] to see the possible values for this operation @@ -4844,10 +4791,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putRuleRunRequest($app, $id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) + public function putRuleRunRequest($id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4957,7 +4905,6 @@ public function putRuleRunRequest($app, $id, $from_snapshots = false, string $co * * Simulate a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulateGET'] to see the possible values for this operation * @@ -4965,9 +4912,9 @@ public function putRuleRunRequest($app, $id, $from_snapshots = false, string $co * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SimulatedRuleEventsDto|\Squidex\Client\Model\ErrorDto */ - public function simulateGET($app, $id, string $contentType = self::contentTypes['simulateGET'][0]) + public function simulateGET($id, string $contentType = self::contentTypes['simulateGET'][0]) { - list($response) = $this->simulateGETWithHttpInfo($app, $id, $contentType); + list($response) = $this->simulateGETWithHttpInfo($id, $contentType); return $response; } @@ -4976,7 +4923,6 @@ public function simulateGET($app, $id, string $contentType = self::contentTypes[ * * Simulate a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulateGET'] to see the possible values for this operation * @@ -4984,9 +4930,9 @@ public function simulateGET($app, $id, string $contentType = self::contentTypes[ * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SimulatedRuleEventsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function simulateGETWithHttpInfo($app, $id, string $contentType = self::contentTypes['simulateGET'][0]) + public function simulateGETWithHttpInfo($id, string $contentType = self::contentTypes['simulateGET'][0]) { - $request = $this->simulateGETRequest($app, $id, $contentType); + $request = $this->simulateGETRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -5100,16 +5046,15 @@ public function simulateGETWithHttpInfo($app, $id, string $contentType = self::c * * Simulate a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulateGET'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function simulateGETAsync($app, $id, string $contentType = self::contentTypes['simulateGET'][0]) + public function simulateGETAsync($id, string $contentType = self::contentTypes['simulateGET'][0]) { - return $this->simulateGETAsyncWithHttpInfo($app, $id, $contentType) + return $this->simulateGETAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -5122,17 +5067,16 @@ function ($response) { * * Simulate a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulateGET'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function simulateGETAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['simulateGET'][0]) + public function simulateGETAsyncWithHttpInfo($id, string $contentType = self::contentTypes['simulateGET'][0]) { $returnType = '\Squidex\Client\Model\SimulatedRuleEventsDto'; - $request = $this->simulateGETRequest($app, $id, $contentType); + $request = $this->simulateGETRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5173,17 +5117,17 @@ function ($exception) { /** * Create request for operation 'simulateGET' * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulateGET'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function simulateGETRequest($app, $id, string $contentType = self::contentTypes['simulateGET'][0]) + public function simulateGETRequest($id, string $contentType = self::contentTypes['simulateGET'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5283,7 +5227,6 @@ public function simulateGETRequest($app, $id, string $contentType = self::conten * * Simulate a rule. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulatePOST'] to see the possible values for this operation * @@ -5291,9 +5234,9 @@ public function simulateGETRequest($app, $id, string $contentType = self::conten * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SimulatedRuleEventsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function simulatePOST($app, $create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) + public function simulatePOST($create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) { - list($response) = $this->simulatePOSTWithHttpInfo($app, $create_rule_dto, $contentType); + list($response) = $this->simulatePOSTWithHttpInfo($create_rule_dto, $contentType); return $response; } @@ -5302,7 +5245,6 @@ public function simulatePOST($app, $create_rule_dto, string $contentType = self: * * Simulate a rule. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulatePOST'] to see the possible values for this operation * @@ -5310,9 +5252,9 @@ public function simulatePOST($app, $create_rule_dto, string $contentType = self: * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SimulatedRuleEventsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function simulatePOSTWithHttpInfo($app, $create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) + public function simulatePOSTWithHttpInfo($create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) { - $request = $this->simulatePOSTRequest($app, $create_rule_dto, $contentType); + $request = $this->simulatePOSTRequest($create_rule_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -5449,16 +5391,15 @@ public function simulatePOSTWithHttpInfo($app, $create_rule_dto, string $content * * Simulate a rule. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulatePOST'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function simulatePOSTAsync($app, $create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) + public function simulatePOSTAsync($create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) { - return $this->simulatePOSTAsyncWithHttpInfo($app, $create_rule_dto, $contentType) + return $this->simulatePOSTAsyncWithHttpInfo($create_rule_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -5471,17 +5412,16 @@ function ($response) { * * Simulate a rule. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulatePOST'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function simulatePOSTAsyncWithHttpInfo($app, $create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) + public function simulatePOSTAsyncWithHttpInfo($create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) { $returnType = '\Squidex\Client\Model\SimulatedRuleEventsDto'; - $request = $this->simulatePOSTRequest($app, $create_rule_dto, $contentType); + $request = $this->simulatePOSTRequest($create_rule_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5522,17 +5462,17 @@ function ($exception) { /** * Create request for operation 'simulatePOST' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulatePOST'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function simulatePOSTRequest($app, $create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) + public function simulatePOSTRequest($create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5631,7 +5571,6 @@ public function simulatePOSTRequest($app, $create_rule_dto, string $contentType * * Trigger a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['triggerRule'] to see the possible values for this operation * @@ -5639,9 +5578,9 @@ public function simulatePOSTRequest($app, $create_rule_dto, string $contentType * @throws \InvalidArgumentException * @return void */ - public function triggerRule($app, $id, string $contentType = self::contentTypes['triggerRule'][0]) + public function triggerRule($id, string $contentType = self::contentTypes['triggerRule'][0]) { - $this->triggerRuleWithHttpInfo($app, $id, $contentType); + $this->triggerRuleWithHttpInfo($id, $contentType); } /** @@ -5649,7 +5588,6 @@ public function triggerRule($app, $id, string $contentType = self::contentTypes[ * * Trigger a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['triggerRule'] to see the possible values for this operation * @@ -5657,9 +5595,9 @@ public function triggerRule($app, $id, string $contentType = self::contentTypes[ * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function triggerRuleWithHttpInfo($app, $id, string $contentType = self::contentTypes['triggerRule'][0]) + public function triggerRuleWithHttpInfo($id, string $contentType = self::contentTypes['triggerRule'][0]) { - $request = $this->triggerRuleRequest($app, $id, $contentType); + $request = $this->triggerRuleRequest($id, $contentType); try { $options = $this->createHttpClientOption(); @@ -5726,16 +5664,15 @@ public function triggerRuleWithHttpInfo($app, $id, string $contentType = self::c * * Trigger a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['triggerRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function triggerRuleAsync($app, $id, string $contentType = self::contentTypes['triggerRule'][0]) + public function triggerRuleAsync($id, string $contentType = self::contentTypes['triggerRule'][0]) { - return $this->triggerRuleAsyncWithHttpInfo($app, $id, $contentType) + return $this->triggerRuleAsyncWithHttpInfo($id, $contentType) ->then( function ($response) { return $response[0]; @@ -5748,17 +5685,16 @@ function ($response) { * * Trigger a rule. * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['triggerRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function triggerRuleAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['triggerRule'][0]) + public function triggerRuleAsyncWithHttpInfo($id, string $contentType = self::contentTypes['triggerRule'][0]) { $returnType = ''; - $request = $this->triggerRuleRequest($app, $id, $contentType); + $request = $this->triggerRuleRequest($id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5786,17 +5722,17 @@ function ($exception) { /** * Create request for operation 'triggerRule' * - * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['triggerRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function triggerRuleRequest($app, $id, string $contentType = self::contentTypes['triggerRule'][0]) + public function triggerRuleRequest($id, string $contentType = self::contentTypes['triggerRule'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/lib/Api/SchemasApi.php b/lib/Api/SchemasApi.php index 852ea1e..ede77b1 100644 --- a/lib/Api/SchemasApi.php +++ b/lib/Api/SchemasApi.php @@ -214,7 +214,6 @@ public function getConfig() * * Delete a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteField'] to see the possible values for this operation @@ -223,9 +222,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteField($app, $schema, $id, string $contentType = self::contentTypes['deleteField'][0]) + public function deleteField($schema, $id, string $contentType = self::contentTypes['deleteField'][0]) { - list($response) = $this->deleteFieldWithHttpInfo($app, $schema, $id, $contentType); + list($response) = $this->deleteFieldWithHttpInfo($schema, $id, $contentType); return $response; } @@ -234,7 +233,6 @@ public function deleteField($app, $schema, $id, string $contentType = self::cont * * Delete a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteField'] to see the possible values for this operation @@ -243,9 +241,9 @@ public function deleteField($app, $schema, $id, string $contentType = self::cont * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteFieldWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['deleteField'][0]) + public function deleteFieldWithHttpInfo($schema, $id, string $contentType = self::contentTypes['deleteField'][0]) { - $request = $this->deleteFieldRequest($app, $schema, $id, $contentType); + $request = $this->deleteFieldRequest($schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -382,7 +380,6 @@ public function deleteFieldWithHttpInfo($app, $schema, $id, string $contentType * * Delete a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteField'] to see the possible values for this operation @@ -390,9 +387,9 @@ public function deleteFieldWithHttpInfo($app, $schema, $id, string $contentType * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteFieldAsync($app, $schema, $id, string $contentType = self::contentTypes['deleteField'][0]) + public function deleteFieldAsync($schema, $id, string $contentType = self::contentTypes['deleteField'][0]) { - return $this->deleteFieldAsyncWithHttpInfo($app, $schema, $id, $contentType) + return $this->deleteFieldAsyncWithHttpInfo($schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -405,7 +402,6 @@ function ($response) { * * Delete a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteField'] to see the possible values for this operation @@ -413,10 +409,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteFieldAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['deleteField'][0]) + public function deleteFieldAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['deleteField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->deleteFieldRequest($app, $schema, $id, $contentType); + $request = $this->deleteFieldRequest($schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -457,7 +453,6 @@ function ($exception) { /** * Create request for operation 'deleteField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteField'] to see the possible values for this operation @@ -465,10 +460,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteFieldRequest($app, $schema, $id, string $contentType = self::contentTypes['deleteField'][0]) + public function deleteFieldRequest($schema, $id, string $contentType = self::contentTypes['deleteField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -583,7 +579,6 @@ public function deleteFieldRequest($app, $schema, $id, string $contentType = sel * * Delete a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -593,9 +588,9 @@ public function deleteFieldRequest($app, $schema, $id, string $contentType = sel * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteNestedField($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) + public function deleteNestedField($schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) { - list($response) = $this->deleteNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $contentType); + list($response) = $this->deleteNestedFieldWithHttpInfo($schema, $parent_id, $id, $contentType); return $response; } @@ -604,7 +599,6 @@ public function deleteNestedField($app, $schema, $parent_id, $id, string $conten * * Delete a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -614,9 +608,9 @@ public function deleteNestedField($app, $schema, $parent_id, $id, string $conten * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) + public function deleteNestedFieldWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) { - $request = $this->deleteNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); + $request = $this->deleteNestedFieldRequest($schema, $parent_id, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -753,7 +747,6 @@ public function deleteNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, st * * Delete a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -762,9 +755,9 @@ public function deleteNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, st * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteNestedFieldAsync($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) + public function deleteNestedFieldAsync($schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) { - return $this->deleteNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $contentType) + return $this->deleteNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -777,7 +770,6 @@ function ($response) { * * Delete a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -786,10 +778,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) + public function deleteNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->deleteNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); + $request = $this->deleteNestedFieldRequest($schema, $parent_id, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -830,7 +822,6 @@ function ($exception) { /** * Create request for operation 'deleteNestedField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -839,10 +830,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteNestedFieldRequest($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) + public function deleteNestedFieldRequest($schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -972,7 +964,6 @@ public function deleteNestedFieldRequest($app, $schema, $parent_id, $id, string * * Disable a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableField'] to see the possible values for this operation @@ -981,9 +972,9 @@ public function deleteNestedFieldRequest($app, $schema, $parent_id, $id, string * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function disableField($app, $schema, $id, string $contentType = self::contentTypes['disableField'][0]) + public function disableField($schema, $id, string $contentType = self::contentTypes['disableField'][0]) { - list($response) = $this->disableFieldWithHttpInfo($app, $schema, $id, $contentType); + list($response) = $this->disableFieldWithHttpInfo($schema, $id, $contentType); return $response; } @@ -992,7 +983,6 @@ public function disableField($app, $schema, $id, string $contentType = self::con * * Disable a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableField'] to see the possible values for this operation @@ -1001,9 +991,9 @@ public function disableField($app, $schema, $id, string $contentType = self::con * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function disableFieldWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['disableField'][0]) + public function disableFieldWithHttpInfo($schema, $id, string $contentType = self::contentTypes['disableField'][0]) { - $request = $this->disableFieldRequest($app, $schema, $id, $contentType); + $request = $this->disableFieldRequest($schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1140,7 +1130,6 @@ public function disableFieldWithHttpInfo($app, $schema, $id, string $contentType * * Disable a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableField'] to see the possible values for this operation @@ -1148,9 +1137,9 @@ public function disableFieldWithHttpInfo($app, $schema, $id, string $contentType * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function disableFieldAsync($app, $schema, $id, string $contentType = self::contentTypes['disableField'][0]) + public function disableFieldAsync($schema, $id, string $contentType = self::contentTypes['disableField'][0]) { - return $this->disableFieldAsyncWithHttpInfo($app, $schema, $id, $contentType) + return $this->disableFieldAsyncWithHttpInfo($schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -1163,7 +1152,6 @@ function ($response) { * * Disable a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableField'] to see the possible values for this operation @@ -1171,10 +1159,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function disableFieldAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['disableField'][0]) + public function disableFieldAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['disableField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->disableFieldRequest($app, $schema, $id, $contentType); + $request = $this->disableFieldRequest($schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1215,7 +1203,6 @@ function ($exception) { /** * Create request for operation 'disableField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableField'] to see the possible values for this operation @@ -1223,10 +1210,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function disableFieldRequest($app, $schema, $id, string $contentType = self::contentTypes['disableField'][0]) + public function disableFieldRequest($schema, $id, string $contentType = self::contentTypes['disableField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1341,7 +1329,6 @@ public function disableFieldRequest($app, $schema, $id, string $contentType = se * * Disable a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -1351,9 +1338,9 @@ public function disableFieldRequest($app, $schema, $id, string $contentType = se * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function disableNestedField($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) + public function disableNestedField($schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) { - list($response) = $this->disableNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $contentType); + list($response) = $this->disableNestedFieldWithHttpInfo($schema, $parent_id, $id, $contentType); return $response; } @@ -1362,7 +1349,6 @@ public function disableNestedField($app, $schema, $parent_id, $id, string $conte * * Disable a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -1372,9 +1358,9 @@ public function disableNestedField($app, $schema, $parent_id, $id, string $conte * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function disableNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) + public function disableNestedFieldWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) { - $request = $this->disableNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); + $request = $this->disableNestedFieldRequest($schema, $parent_id, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1511,7 +1497,6 @@ public function disableNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, s * * Disable a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -1520,9 +1505,9 @@ public function disableNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, s * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function disableNestedFieldAsync($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) + public function disableNestedFieldAsync($schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) { - return $this->disableNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $contentType) + return $this->disableNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -1535,7 +1520,6 @@ function ($response) { * * Disable a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -1544,10 +1528,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function disableNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) + public function disableNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->disableNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); + $request = $this->disableNestedFieldRequest($schema, $parent_id, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1588,7 +1572,6 @@ function ($exception) { /** * Create request for operation 'disableNestedField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -1597,10 +1580,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function disableNestedFieldRequest($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) + public function disableNestedFieldRequest($schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1730,7 +1714,6 @@ public function disableNestedFieldRequest($app, $schema, $parent_id, $id, string * * Enable a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableField'] to see the possible values for this operation @@ -1739,9 +1722,9 @@ public function disableNestedFieldRequest($app, $schema, $parent_id, $id, string * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function enableField($app, $schema, $id, string $contentType = self::contentTypes['enableField'][0]) + public function enableField($schema, $id, string $contentType = self::contentTypes['enableField'][0]) { - list($response) = $this->enableFieldWithHttpInfo($app, $schema, $id, $contentType); + list($response) = $this->enableFieldWithHttpInfo($schema, $id, $contentType); return $response; } @@ -1750,7 +1733,6 @@ public function enableField($app, $schema, $id, string $contentType = self::cont * * Enable a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableField'] to see the possible values for this operation @@ -1759,9 +1741,9 @@ public function enableField($app, $schema, $id, string $contentType = self::cont * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function enableFieldWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['enableField'][0]) + public function enableFieldWithHttpInfo($schema, $id, string $contentType = self::contentTypes['enableField'][0]) { - $request = $this->enableFieldRequest($app, $schema, $id, $contentType); + $request = $this->enableFieldRequest($schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1898,7 +1880,6 @@ public function enableFieldWithHttpInfo($app, $schema, $id, string $contentType * * Enable a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableField'] to see the possible values for this operation @@ -1906,9 +1887,9 @@ public function enableFieldWithHttpInfo($app, $schema, $id, string $contentType * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function enableFieldAsync($app, $schema, $id, string $contentType = self::contentTypes['enableField'][0]) + public function enableFieldAsync($schema, $id, string $contentType = self::contentTypes['enableField'][0]) { - return $this->enableFieldAsyncWithHttpInfo($app, $schema, $id, $contentType) + return $this->enableFieldAsyncWithHttpInfo($schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -1921,7 +1902,6 @@ function ($response) { * * Enable a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableField'] to see the possible values for this operation @@ -1929,10 +1909,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function enableFieldAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['enableField'][0]) + public function enableFieldAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['enableField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->enableFieldRequest($app, $schema, $id, $contentType); + $request = $this->enableFieldRequest($schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1973,7 +1953,6 @@ function ($exception) { /** * Create request for operation 'enableField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableField'] to see the possible values for this operation @@ -1981,10 +1960,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function enableFieldRequest($app, $schema, $id, string $contentType = self::contentTypes['enableField'][0]) + public function enableFieldRequest($schema, $id, string $contentType = self::contentTypes['enableField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -2099,7 +2079,6 @@ public function enableFieldRequest($app, $schema, $id, string $contentType = sel * * Enable a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to enable. (required) @@ -2109,9 +2088,9 @@ public function enableFieldRequest($app, $schema, $id, string $contentType = sel * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function enableNestedField($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) + public function enableNestedField($schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) { - list($response) = $this->enableNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $contentType); + list($response) = $this->enableNestedFieldWithHttpInfo($schema, $parent_id, $id, $contentType); return $response; } @@ -2120,7 +2099,6 @@ public function enableNestedField($app, $schema, $parent_id, $id, string $conten * * Enable a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to enable. (required) @@ -2130,9 +2108,9 @@ public function enableNestedField($app, $schema, $parent_id, $id, string $conten * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function enableNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) + public function enableNestedFieldWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) { - $request = $this->enableNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); + $request = $this->enableNestedFieldRequest($schema, $parent_id, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -2269,7 +2247,6 @@ public function enableNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, st * * Enable a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to enable. (required) @@ -2278,9 +2255,9 @@ public function enableNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, st * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function enableNestedFieldAsync($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) + public function enableNestedFieldAsync($schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) { - return $this->enableNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $contentType) + return $this->enableNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -2293,7 +2270,6 @@ function ($response) { * * Enable a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to enable. (required) @@ -2302,10 +2278,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function enableNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) + public function enableNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->enableNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); + $request = $this->enableNestedFieldRequest($schema, $parent_id, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2346,7 +2322,6 @@ function ($exception) { /** * Create request for operation 'enableNestedField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to enable. (required) @@ -2355,10 +2330,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function enableNestedFieldRequest($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) + public function enableNestedFieldRequest($schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -2488,7 +2464,6 @@ public function enableNestedFieldRequest($app, $schema, $parent_id, $id, string * * Hide a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to hide. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['hideField'] to see the possible values for this operation @@ -2497,9 +2472,9 @@ public function enableNestedFieldRequest($app, $schema, $parent_id, $id, string * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function hideField($app, $schema, $id, string $contentType = self::contentTypes['hideField'][0]) + public function hideField($schema, $id, string $contentType = self::contentTypes['hideField'][0]) { - list($response) = $this->hideFieldWithHttpInfo($app, $schema, $id, $contentType); + list($response) = $this->hideFieldWithHttpInfo($schema, $id, $contentType); return $response; } @@ -2508,7 +2483,6 @@ public function hideField($app, $schema, $id, string $contentType = self::conten * * Hide a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to hide. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['hideField'] to see the possible values for this operation @@ -2517,9 +2491,9 @@ public function hideField($app, $schema, $id, string $contentType = self::conten * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function hideFieldWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['hideField'][0]) + public function hideFieldWithHttpInfo($schema, $id, string $contentType = self::contentTypes['hideField'][0]) { - $request = $this->hideFieldRequest($app, $schema, $id, $contentType); + $request = $this->hideFieldRequest($schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -2656,7 +2630,6 @@ public function hideFieldWithHttpInfo($app, $schema, $id, string $contentType = * * Hide a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to hide. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['hideField'] to see the possible values for this operation @@ -2664,9 +2637,9 @@ public function hideFieldWithHttpInfo($app, $schema, $id, string $contentType = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function hideFieldAsync($app, $schema, $id, string $contentType = self::contentTypes['hideField'][0]) + public function hideFieldAsync($schema, $id, string $contentType = self::contentTypes['hideField'][0]) { - return $this->hideFieldAsyncWithHttpInfo($app, $schema, $id, $contentType) + return $this->hideFieldAsyncWithHttpInfo($schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -2679,7 +2652,6 @@ function ($response) { * * Hide a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to hide. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['hideField'] to see the possible values for this operation @@ -2687,10 +2659,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function hideFieldAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['hideField'][0]) + public function hideFieldAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['hideField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->hideFieldRequest($app, $schema, $id, $contentType); + $request = $this->hideFieldRequest($schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2731,7 +2703,6 @@ function ($exception) { /** * Create request for operation 'hideField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to hide. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['hideField'] to see the possible values for this operation @@ -2739,10 +2710,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function hideFieldRequest($app, $schema, $id, string $contentType = self::contentTypes['hideField'][0]) + public function hideFieldRequest($schema, $id, string $contentType = self::contentTypes['hideField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -2857,7 +2829,6 @@ public function hideFieldRequest($app, $schema, $id, string $contentType = self: * * Hide a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to hide. (required) @@ -2867,9 +2838,9 @@ public function hideFieldRequest($app, $schema, $id, string $contentType = self: * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function hideNestedField($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) + public function hideNestedField($schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) { - list($response) = $this->hideNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $contentType); + list($response) = $this->hideNestedFieldWithHttpInfo($schema, $parent_id, $id, $contentType); return $response; } @@ -2878,7 +2849,6 @@ public function hideNestedField($app, $schema, $parent_id, $id, string $contentT * * Hide a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to hide. (required) @@ -2888,9 +2858,9 @@ public function hideNestedField($app, $schema, $parent_id, $id, string $contentT * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function hideNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) + public function hideNestedFieldWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) { - $request = $this->hideNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); + $request = $this->hideNestedFieldRequest($schema, $parent_id, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -3027,7 +2997,6 @@ public function hideNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, stri * * Hide a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to hide. (required) @@ -3036,9 +3005,9 @@ public function hideNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, stri * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function hideNestedFieldAsync($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) + public function hideNestedFieldAsync($schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) { - return $this->hideNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $contentType) + return $this->hideNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -3051,7 +3020,6 @@ function ($response) { * * Hide a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to hide. (required) @@ -3060,10 +3028,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function hideNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) + public function hideNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->hideNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); + $request = $this->hideNestedFieldRequest($schema, $parent_id, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3104,7 +3072,6 @@ function ($exception) { /** * Create request for operation 'hideNestedField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to hide. (required) @@ -3113,10 +3080,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function hideNestedFieldRequest($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) + public function hideNestedFieldRequest($schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3246,7 +3214,6 @@ public function hideNestedFieldRequest($app, $schema, $parent_id, $id, string $c * * Lock a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to lock. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['lockField'] to see the possible values for this operation @@ -3255,9 +3222,9 @@ public function hideNestedFieldRequest($app, $schema, $parent_id, $id, string $c * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function lockField($app, $schema, $id, string $contentType = self::contentTypes['lockField'][0]) + public function lockField($schema, $id, string $contentType = self::contentTypes['lockField'][0]) { - list($response) = $this->lockFieldWithHttpInfo($app, $schema, $id, $contentType); + list($response) = $this->lockFieldWithHttpInfo($schema, $id, $contentType); return $response; } @@ -3266,7 +3233,6 @@ public function lockField($app, $schema, $id, string $contentType = self::conten * * Lock a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to lock. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['lockField'] to see the possible values for this operation @@ -3275,9 +3241,9 @@ public function lockField($app, $schema, $id, string $contentType = self::conten * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function lockFieldWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['lockField'][0]) + public function lockFieldWithHttpInfo($schema, $id, string $contentType = self::contentTypes['lockField'][0]) { - $request = $this->lockFieldRequest($app, $schema, $id, $contentType); + $request = $this->lockFieldRequest($schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -3414,7 +3380,6 @@ public function lockFieldWithHttpInfo($app, $schema, $id, string $contentType = * * Lock a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to lock. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['lockField'] to see the possible values for this operation @@ -3422,9 +3387,9 @@ public function lockFieldWithHttpInfo($app, $schema, $id, string $contentType = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function lockFieldAsync($app, $schema, $id, string $contentType = self::contentTypes['lockField'][0]) + public function lockFieldAsync($schema, $id, string $contentType = self::contentTypes['lockField'][0]) { - return $this->lockFieldAsyncWithHttpInfo($app, $schema, $id, $contentType) + return $this->lockFieldAsyncWithHttpInfo($schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -3437,7 +3402,6 @@ function ($response) { * * Lock a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to lock. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['lockField'] to see the possible values for this operation @@ -3445,10 +3409,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function lockFieldAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['lockField'][0]) + public function lockFieldAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['lockField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->lockFieldRequest($app, $schema, $id, $contentType); + $request = $this->lockFieldRequest($schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3489,7 +3453,6 @@ function ($exception) { /** * Create request for operation 'lockField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to lock. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['lockField'] to see the possible values for this operation @@ -3497,10 +3460,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function lockFieldRequest($app, $schema, $id, string $contentType = self::contentTypes['lockField'][0]) + public function lockFieldRequest($schema, $id, string $contentType = self::contentTypes['lockField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -3615,7 +3579,6 @@ public function lockFieldRequest($app, $schema, $id, string $contentType = self: * * Lock a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to lock. (required) @@ -3625,9 +3588,9 @@ public function lockFieldRequest($app, $schema, $id, string $contentType = self: * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function lockNestedField($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) + public function lockNestedField($schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) { - list($response) = $this->lockNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $contentType); + list($response) = $this->lockNestedFieldWithHttpInfo($schema, $parent_id, $id, $contentType); return $response; } @@ -3636,7 +3599,6 @@ public function lockNestedField($app, $schema, $parent_id, $id, string $contentT * * Lock a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to lock. (required) @@ -3646,9 +3608,9 @@ public function lockNestedField($app, $schema, $parent_id, $id, string $contentT * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function lockNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) + public function lockNestedFieldWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) { - $request = $this->lockNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); + $request = $this->lockNestedFieldRequest($schema, $parent_id, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -3785,7 +3747,6 @@ public function lockNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, stri * * Lock a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to lock. (required) @@ -3794,9 +3755,9 @@ public function lockNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, stri * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function lockNestedFieldAsync($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) + public function lockNestedFieldAsync($schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) { - return $this->lockNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $contentType) + return $this->lockNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -3809,7 +3770,6 @@ function ($response) { * * Lock a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to lock. (required) @@ -3818,10 +3778,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function lockNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) + public function lockNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->lockNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); + $request = $this->lockNestedFieldRequest($schema, $parent_id, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3862,7 +3822,6 @@ function ($exception) { /** * Create request for operation 'lockNestedField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to lock. (required) @@ -3871,10 +3830,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function lockNestedFieldRequest($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) + public function lockNestedFieldRequest($schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4004,7 +3964,6 @@ public function lockNestedFieldRequest($app, $schema, $parent_id, $id, string $c * * Add a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postField'] to see the possible values for this operation @@ -4013,9 +3972,9 @@ public function lockNestedFieldRequest($app, $schema, $parent_id, $id, string $c * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postField($app, $schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) + public function postField($schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) { - list($response) = $this->postFieldWithHttpInfo($app, $schema, $add_field_dto, $contentType); + list($response) = $this->postFieldWithHttpInfo($schema, $add_field_dto, $contentType); return $response; } @@ -4024,7 +3983,6 @@ public function postField($app, $schema, $add_field_dto, string $contentType = s * * Add a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postField'] to see the possible values for this operation @@ -4033,9 +3991,9 @@ public function postField($app, $schema, $add_field_dto, string $contentType = s * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postFieldWithHttpInfo($app, $schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) + public function postFieldWithHttpInfo($schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) { - $request = $this->postFieldRequest($app, $schema, $add_field_dto, $contentType); + $request = $this->postFieldRequest($schema, $add_field_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -4195,7 +4153,6 @@ public function postFieldWithHttpInfo($app, $schema, $add_field_dto, string $con * * Add a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postField'] to see the possible values for this operation @@ -4203,9 +4160,9 @@ public function postFieldWithHttpInfo($app, $schema, $add_field_dto, string $con * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postFieldAsync($app, $schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) + public function postFieldAsync($schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) { - return $this->postFieldAsyncWithHttpInfo($app, $schema, $add_field_dto, $contentType) + return $this->postFieldAsyncWithHttpInfo($schema, $add_field_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -4218,7 +4175,6 @@ function ($response) { * * Add a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postField'] to see the possible values for this operation @@ -4226,10 +4182,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postFieldAsyncWithHttpInfo($app, $schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) + public function postFieldAsyncWithHttpInfo($schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->postFieldRequest($app, $schema, $add_field_dto, $contentType); + $request = $this->postFieldRequest($schema, $add_field_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4270,7 +4226,6 @@ function ($exception) { /** * Create request for operation 'postField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postField'] to see the possible values for this operation @@ -4278,10 +4233,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postFieldRequest($app, $schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) + public function postFieldRequest($schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4395,7 +4351,6 @@ public function postFieldRequest($app, $schema, $add_field_dto, string $contentT * * Add a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) @@ -4405,9 +4360,9 @@ public function postFieldRequest($app, $schema, $add_field_dto, string $contentT * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postNestedField($app, $schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) + public function postNestedField($schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) { - list($response) = $this->postNestedFieldWithHttpInfo($app, $schema, $parent_id, $add_field_dto, $contentType); + list($response) = $this->postNestedFieldWithHttpInfo($schema, $parent_id, $add_field_dto, $contentType); return $response; } @@ -4416,7 +4371,6 @@ public function postNestedField($app, $schema, $parent_id, $add_field_dto, strin * * Add a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) @@ -4426,9 +4380,9 @@ public function postNestedField($app, $schema, $parent_id, $add_field_dto, strin * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postNestedFieldWithHttpInfo($app, $schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) + public function postNestedFieldWithHttpInfo($schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) { - $request = $this->postNestedFieldRequest($app, $schema, $parent_id, $add_field_dto, $contentType); + $request = $this->postNestedFieldRequest($schema, $parent_id, $add_field_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -4588,7 +4542,6 @@ public function postNestedFieldWithHttpInfo($app, $schema, $parent_id, $add_fiel * * Add a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) @@ -4597,9 +4550,9 @@ public function postNestedFieldWithHttpInfo($app, $schema, $parent_id, $add_fiel * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postNestedFieldAsync($app, $schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) + public function postNestedFieldAsync($schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) { - return $this->postNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $add_field_dto, $contentType) + return $this->postNestedFieldAsyncWithHttpInfo($schema, $parent_id, $add_field_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -4612,7 +4565,6 @@ function ($response) { * * Add a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) @@ -4621,10 +4573,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) + public function postNestedFieldAsyncWithHttpInfo($schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->postNestedFieldRequest($app, $schema, $parent_id, $add_field_dto, $contentType); + $request = $this->postNestedFieldRequest($schema, $parent_id, $add_field_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4665,7 +4617,6 @@ function ($exception) { /** * Create request for operation 'postNestedField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) @@ -4674,10 +4625,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postNestedFieldRequest($app, $schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) + public function postNestedFieldRequest($schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -4806,7 +4758,6 @@ public function postNestedFieldRequest($app, $schema, $parent_id, $add_field_dto * * Update a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to update. (required) * @param \Squidex\Client\Model\UpdateFieldDto $update_field_dto The field object that needs to be added to the schema. (required) @@ -4816,9 +4767,9 @@ public function postNestedFieldRequest($app, $schema, $parent_id, $add_field_dto * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putField($app, $schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) + public function putField($schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) { - list($response) = $this->putFieldWithHttpInfo($app, $schema, $id, $update_field_dto, $contentType); + list($response) = $this->putFieldWithHttpInfo($schema, $id, $update_field_dto, $contentType); return $response; } @@ -4827,7 +4778,6 @@ public function putField($app, $schema, $id, $update_field_dto, string $contentT * * Update a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to update. (required) * @param \Squidex\Client\Model\UpdateFieldDto $update_field_dto The field object that needs to be added to the schema. (required) @@ -4837,9 +4787,9 @@ public function putField($app, $schema, $id, $update_field_dto, string $contentT * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putFieldWithHttpInfo($app, $schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) + public function putFieldWithHttpInfo($schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) { - $request = $this->putFieldRequest($app, $schema, $id, $update_field_dto, $contentType); + $request = $this->putFieldRequest($schema, $id, $update_field_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -4976,7 +4926,6 @@ public function putFieldWithHttpInfo($app, $schema, $id, $update_field_dto, stri * * Update a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to update. (required) * @param \Squidex\Client\Model\UpdateFieldDto $update_field_dto The field object that needs to be added to the schema. (required) @@ -4985,9 +4934,9 @@ public function putFieldWithHttpInfo($app, $schema, $id, $update_field_dto, stri * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putFieldAsync($app, $schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) + public function putFieldAsync($schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) { - return $this->putFieldAsyncWithHttpInfo($app, $schema, $id, $update_field_dto, $contentType) + return $this->putFieldAsyncWithHttpInfo($schema, $id, $update_field_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -5000,7 +4949,6 @@ function ($response) { * * Update a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to update. (required) * @param \Squidex\Client\Model\UpdateFieldDto $update_field_dto The field object that needs to be added to the schema. (required) @@ -5009,10 +4957,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putFieldAsyncWithHttpInfo($app, $schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) + public function putFieldAsyncWithHttpInfo($schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putFieldRequest($app, $schema, $id, $update_field_dto, $contentType); + $request = $this->putFieldRequest($schema, $id, $update_field_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5053,7 +5001,6 @@ function ($exception) { /** * Create request for operation 'putField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to update. (required) * @param \Squidex\Client\Model\UpdateFieldDto $update_field_dto The field object that needs to be added to the schema. (required) @@ -5062,10 +5009,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putFieldRequest($app, $schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) + public function putFieldRequest($schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5194,7 +5142,6 @@ public function putFieldRequest($app, $schema, $id, $update_field_dto, string $c * * Update a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to update. (required) @@ -5205,9 +5152,9 @@ public function putFieldRequest($app, $schema, $id, $update_field_dto, string $c * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putNestedField($app, $schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) + public function putNestedField($schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) { - list($response) = $this->putNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $update_field_dto, $contentType); + list($response) = $this->putNestedFieldWithHttpInfo($schema, $parent_id, $id, $update_field_dto, $contentType); return $response; } @@ -5216,7 +5163,6 @@ public function putNestedField($app, $schema, $parent_id, $id, $update_field_dto * * Update a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to update. (required) @@ -5227,9 +5173,9 @@ public function putNestedField($app, $schema, $parent_id, $id, $update_field_dto * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) + public function putNestedFieldWithHttpInfo($schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) { - $request = $this->putNestedFieldRequest($app, $schema, $parent_id, $id, $update_field_dto, $contentType); + $request = $this->putNestedFieldRequest($schema, $parent_id, $id, $update_field_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -5366,7 +5312,6 @@ public function putNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $upda * * Update a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to update. (required) @@ -5376,9 +5321,9 @@ public function putNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $upda * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putNestedFieldAsync($app, $schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) + public function putNestedFieldAsync($schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) { - return $this->putNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $update_field_dto, $contentType) + return $this->putNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $update_field_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -5391,7 +5336,6 @@ function ($response) { * * Update a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to update. (required) @@ -5401,10 +5345,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) + public function putNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putNestedFieldRequest($app, $schema, $parent_id, $id, $update_field_dto, $contentType); + $request = $this->putNestedFieldRequest($schema, $parent_id, $id, $update_field_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5445,7 +5389,6 @@ function ($exception) { /** * Create request for operation 'putNestedField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to update. (required) @@ -5455,10 +5398,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putNestedFieldRequest($app, $schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) + public function putNestedFieldRequest($schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5602,7 +5546,6 @@ public function putNestedFieldRequest($app, $schema, $parent_id, $id, $update_fi * * Reorder all nested fields. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) @@ -5612,9 +5555,9 @@ public function putNestedFieldRequest($app, $schema, $parent_id, $id, $update_fi * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putNestedFieldOrdering($app, $schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) + public function putNestedFieldOrdering($schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) { - list($response) = $this->putNestedFieldOrderingWithHttpInfo($app, $schema, $parent_id, $reorder_fields_dto, $contentType); + list($response) = $this->putNestedFieldOrderingWithHttpInfo($schema, $parent_id, $reorder_fields_dto, $contentType); return $response; } @@ -5623,7 +5566,6 @@ public function putNestedFieldOrdering($app, $schema, $parent_id, $reorder_field * * Reorder all nested fields. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) @@ -5633,9 +5575,9 @@ public function putNestedFieldOrdering($app, $schema, $parent_id, $reorder_field * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putNestedFieldOrderingWithHttpInfo($app, $schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) + public function putNestedFieldOrderingWithHttpInfo($schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) { - $request = $this->putNestedFieldOrderingRequest($app, $schema, $parent_id, $reorder_fields_dto, $contentType); + $request = $this->putNestedFieldOrderingRequest($schema, $parent_id, $reorder_fields_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -5772,7 +5714,6 @@ public function putNestedFieldOrderingWithHttpInfo($app, $schema, $parent_id, $r * * Reorder all nested fields. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) @@ -5781,9 +5722,9 @@ public function putNestedFieldOrderingWithHttpInfo($app, $schema, $parent_id, $r * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putNestedFieldOrderingAsync($app, $schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) + public function putNestedFieldOrderingAsync($schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) { - return $this->putNestedFieldOrderingAsyncWithHttpInfo($app, $schema, $parent_id, $reorder_fields_dto, $contentType) + return $this->putNestedFieldOrderingAsyncWithHttpInfo($schema, $parent_id, $reorder_fields_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -5796,7 +5737,6 @@ function ($response) { * * Reorder all nested fields. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) @@ -5805,10 +5745,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putNestedFieldOrderingAsyncWithHttpInfo($app, $schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) + public function putNestedFieldOrderingAsyncWithHttpInfo($schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putNestedFieldOrderingRequest($app, $schema, $parent_id, $reorder_fields_dto, $contentType); + $request = $this->putNestedFieldOrderingRequest($schema, $parent_id, $reorder_fields_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5849,7 +5789,6 @@ function ($exception) { /** * Create request for operation 'putNestedFieldOrdering' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) @@ -5858,10 +5797,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putNestedFieldOrderingRequest($app, $schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) + public function putNestedFieldOrderingRequest($schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -5990,7 +5930,6 @@ public function putNestedFieldOrderingRequest($app, $schema, $parent_id, $reorde * * Reorder all fields. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaFieldOrdering'] to see the possible values for this operation @@ -5999,9 +5938,9 @@ public function putNestedFieldOrderingRequest($app, $schema, $parent_id, $reorde * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putSchemaFieldOrdering($app, $schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) + public function putSchemaFieldOrdering($schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) { - list($response) = $this->putSchemaFieldOrderingWithHttpInfo($app, $schema, $reorder_fields_dto, $contentType); + list($response) = $this->putSchemaFieldOrderingWithHttpInfo($schema, $reorder_fields_dto, $contentType); return $response; } @@ -6010,7 +5949,6 @@ public function putSchemaFieldOrdering($app, $schema, $reorder_fields_dto, strin * * Reorder all fields. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaFieldOrdering'] to see the possible values for this operation @@ -6019,9 +5957,9 @@ public function putSchemaFieldOrdering($app, $schema, $reorder_fields_dto, strin * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putSchemaFieldOrderingWithHttpInfo($app, $schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) + public function putSchemaFieldOrderingWithHttpInfo($schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) { - $request = $this->putSchemaFieldOrderingRequest($app, $schema, $reorder_fields_dto, $contentType); + $request = $this->putSchemaFieldOrderingRequest($schema, $reorder_fields_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -6158,7 +6096,6 @@ public function putSchemaFieldOrderingWithHttpInfo($app, $schema, $reorder_field * * Reorder all fields. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaFieldOrdering'] to see the possible values for this operation @@ -6166,9 +6103,9 @@ public function putSchemaFieldOrderingWithHttpInfo($app, $schema, $reorder_field * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaFieldOrderingAsync($app, $schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) + public function putSchemaFieldOrderingAsync($schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) { - return $this->putSchemaFieldOrderingAsyncWithHttpInfo($app, $schema, $reorder_fields_dto, $contentType) + return $this->putSchemaFieldOrderingAsyncWithHttpInfo($schema, $reorder_fields_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -6181,7 +6118,6 @@ function ($response) { * * Reorder all fields. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaFieldOrdering'] to see the possible values for this operation @@ -6189,10 +6125,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaFieldOrderingAsyncWithHttpInfo($app, $schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) + public function putSchemaFieldOrderingAsyncWithHttpInfo($schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putSchemaFieldOrderingRequest($app, $schema, $reorder_fields_dto, $contentType); + $request = $this->putSchemaFieldOrderingRequest($schema, $reorder_fields_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6233,7 +6169,6 @@ function ($exception) { /** * Create request for operation 'putSchemaFieldOrdering' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaFieldOrdering'] to see the possible values for this operation @@ -6241,10 +6176,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putSchemaFieldOrderingRequest($app, $schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) + public function putSchemaFieldOrderingRequest($schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -6358,7 +6294,6 @@ public function putSchemaFieldOrderingRequest($app, $schema, $reorder_fields_dto * * Configure UI fields. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureUIFieldsDto $configure_ui_fields_dto The request that contains the field names. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaUIFields'] to see the possible values for this operation @@ -6367,9 +6302,9 @@ public function putSchemaFieldOrderingRequest($app, $schema, $reorder_fields_dto * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putSchemaUIFields($app, $schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) + public function putSchemaUIFields($schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) { - list($response) = $this->putSchemaUIFieldsWithHttpInfo($app, $schema, $configure_ui_fields_dto, $contentType); + list($response) = $this->putSchemaUIFieldsWithHttpInfo($schema, $configure_ui_fields_dto, $contentType); return $response; } @@ -6378,7 +6313,6 @@ public function putSchemaUIFields($app, $schema, $configure_ui_fields_dto, strin * * Configure UI fields. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureUIFieldsDto $configure_ui_fields_dto The request that contains the field names. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaUIFields'] to see the possible values for this operation @@ -6387,9 +6321,9 @@ public function putSchemaUIFields($app, $schema, $configure_ui_fields_dto, strin * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putSchemaUIFieldsWithHttpInfo($app, $schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) + public function putSchemaUIFieldsWithHttpInfo($schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) { - $request = $this->putSchemaUIFieldsRequest($app, $schema, $configure_ui_fields_dto, $contentType); + $request = $this->putSchemaUIFieldsRequest($schema, $configure_ui_fields_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -6526,7 +6460,6 @@ public function putSchemaUIFieldsWithHttpInfo($app, $schema, $configure_ui_field * * Configure UI fields. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureUIFieldsDto $configure_ui_fields_dto The request that contains the field names. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaUIFields'] to see the possible values for this operation @@ -6534,9 +6467,9 @@ public function putSchemaUIFieldsWithHttpInfo($app, $schema, $configure_ui_field * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaUIFieldsAsync($app, $schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) + public function putSchemaUIFieldsAsync($schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) { - return $this->putSchemaUIFieldsAsyncWithHttpInfo($app, $schema, $configure_ui_fields_dto, $contentType) + return $this->putSchemaUIFieldsAsyncWithHttpInfo($schema, $configure_ui_fields_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -6549,7 +6482,6 @@ function ($response) { * * Configure UI fields. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureUIFieldsDto $configure_ui_fields_dto The request that contains the field names. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaUIFields'] to see the possible values for this operation @@ -6557,10 +6489,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaUIFieldsAsyncWithHttpInfo($app, $schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) + public function putSchemaUIFieldsAsyncWithHttpInfo($schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putSchemaUIFieldsRequest($app, $schema, $configure_ui_fields_dto, $contentType); + $request = $this->putSchemaUIFieldsRequest($schema, $configure_ui_fields_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6601,7 +6533,6 @@ function ($exception) { /** * Create request for operation 'putSchemaUIFields' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureUIFieldsDto $configure_ui_fields_dto The request that contains the field names. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaUIFields'] to see the possible values for this operation @@ -6609,10 +6540,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putSchemaUIFieldsRequest($app, $schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) + public function putSchemaUIFieldsRequest($schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -6726,7 +6658,6 @@ public function putSchemaUIFieldsRequest($app, $schema, $configure_ui_fields_dto * * Show a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to show. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['showField'] to see the possible values for this operation @@ -6735,9 +6666,9 @@ public function putSchemaUIFieldsRequest($app, $schema, $configure_ui_fields_dto * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function showField($app, $schema, $id, string $contentType = self::contentTypes['showField'][0]) + public function showField($schema, $id, string $contentType = self::contentTypes['showField'][0]) { - list($response) = $this->showFieldWithHttpInfo($app, $schema, $id, $contentType); + list($response) = $this->showFieldWithHttpInfo($schema, $id, $contentType); return $response; } @@ -6746,7 +6677,6 @@ public function showField($app, $schema, $id, string $contentType = self::conten * * Show a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to show. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['showField'] to see the possible values for this operation @@ -6755,9 +6685,9 @@ public function showField($app, $schema, $id, string $contentType = self::conten * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function showFieldWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['showField'][0]) + public function showFieldWithHttpInfo($schema, $id, string $contentType = self::contentTypes['showField'][0]) { - $request = $this->showFieldRequest($app, $schema, $id, $contentType); + $request = $this->showFieldRequest($schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -6894,7 +6824,6 @@ public function showFieldWithHttpInfo($app, $schema, $id, string $contentType = * * Show a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to show. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['showField'] to see the possible values for this operation @@ -6902,9 +6831,9 @@ public function showFieldWithHttpInfo($app, $schema, $id, string $contentType = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function showFieldAsync($app, $schema, $id, string $contentType = self::contentTypes['showField'][0]) + public function showFieldAsync($schema, $id, string $contentType = self::contentTypes['showField'][0]) { - return $this->showFieldAsyncWithHttpInfo($app, $schema, $id, $contentType) + return $this->showFieldAsyncWithHttpInfo($schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -6917,7 +6846,6 @@ function ($response) { * * Show a schema field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to show. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['showField'] to see the possible values for this operation @@ -6925,10 +6853,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function showFieldAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['showField'][0]) + public function showFieldAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['showField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->showFieldRequest($app, $schema, $id, $contentType); + $request = $this->showFieldRequest($schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6969,7 +6897,6 @@ function ($exception) { /** * Create request for operation 'showField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to show. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['showField'] to see the possible values for this operation @@ -6977,10 +6904,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function showFieldRequest($app, $schema, $id, string $contentType = self::contentTypes['showField'][0]) + public function showFieldRequest($schema, $id, string $contentType = self::contentTypes['showField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -7095,7 +7023,6 @@ public function showFieldRequest($app, $schema, $id, string $contentType = self: * * Show a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to show. (required) @@ -7105,9 +7032,9 @@ public function showFieldRequest($app, $schema, $id, string $contentType = self: * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function showNestedField($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) + public function showNestedField($schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) { - list($response) = $this->showNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $contentType); + list($response) = $this->showNestedFieldWithHttpInfo($schema, $parent_id, $id, $contentType); return $response; } @@ -7116,7 +7043,6 @@ public function showNestedField($app, $schema, $parent_id, $id, string $contentT * * Show a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to show. (required) @@ -7126,9 +7052,9 @@ public function showNestedField($app, $schema, $parent_id, $id, string $contentT * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function showNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) + public function showNestedFieldWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) { - $request = $this->showNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); + $request = $this->showNestedFieldRequest($schema, $parent_id, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -7265,7 +7191,6 @@ public function showNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, stri * * Show a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to show. (required) @@ -7274,9 +7199,9 @@ public function showNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, stri * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function showNestedFieldAsync($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) + public function showNestedFieldAsync($schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) { - return $this->showNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $contentType) + return $this->showNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -7289,7 +7214,6 @@ function ($response) { * * Show a nested field. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to show. (required) @@ -7298,10 +7222,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function showNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) + public function showNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->showNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); + $request = $this->showNestedFieldRequest($schema, $parent_id, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7342,7 +7266,6 @@ function ($exception) { /** * Create request for operation 'showNestedField' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to show. (required) @@ -7351,10 +7274,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function showNestedFieldRequest($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) + public function showNestedFieldRequest($schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -7484,7 +7408,6 @@ public function showNestedFieldRequest($app, $schema, $parent_id, $id, string $c * * Delete a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSchema'] to see the possible values for this operation * @@ -7492,9 +7415,9 @@ public function showNestedFieldRequest($app, $schema, $parent_id, $id, string $c * @throws \InvalidArgumentException * @return void */ - public function deleteSchema($app, $schema, string $contentType = self::contentTypes['deleteSchema'][0]) + public function deleteSchema($schema, string $contentType = self::contentTypes['deleteSchema'][0]) { - $this->deleteSchemaWithHttpInfo($app, $schema, $contentType); + $this->deleteSchemaWithHttpInfo($schema, $contentType); } /** @@ -7502,7 +7425,6 @@ public function deleteSchema($app, $schema, string $contentType = self::contentT * * Delete a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSchema'] to see the possible values for this operation * @@ -7510,9 +7432,9 @@ public function deleteSchema($app, $schema, string $contentType = self::contentT * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteSchemaWithHttpInfo($app, $schema, string $contentType = self::contentTypes['deleteSchema'][0]) + public function deleteSchemaWithHttpInfo($schema, string $contentType = self::contentTypes['deleteSchema'][0]) { - $request = $this->deleteSchemaRequest($app, $schema, $contentType); + $request = $this->deleteSchemaRequest($schema, $contentType); try { $options = $this->createHttpClientOption(); @@ -7579,16 +7501,15 @@ public function deleteSchemaWithHttpInfo($app, $schema, string $contentType = se * * Delete a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteSchemaAsync($app, $schema, string $contentType = self::contentTypes['deleteSchema'][0]) + public function deleteSchemaAsync($schema, string $contentType = self::contentTypes['deleteSchema'][0]) { - return $this->deleteSchemaAsyncWithHttpInfo($app, $schema, $contentType) + return $this->deleteSchemaAsyncWithHttpInfo($schema, $contentType) ->then( function ($response) { return $response[0]; @@ -7601,17 +7522,16 @@ function ($response) { * * Delete a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteSchemaAsyncWithHttpInfo($app, $schema, string $contentType = self::contentTypes['deleteSchema'][0]) + public function deleteSchemaAsyncWithHttpInfo($schema, string $contentType = self::contentTypes['deleteSchema'][0]) { $returnType = ''; - $request = $this->deleteSchemaRequest($app, $schema, $contentType); + $request = $this->deleteSchemaRequest($schema, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7639,17 +7559,17 @@ function ($exception) { /** * Create request for operation 'deleteSchema' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteSchemaRequest($app, $schema, string $contentType = self::contentTypes['deleteSchema'][0]) + public function deleteSchemaRequest($schema, string $contentType = self::contentTypes['deleteSchema'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -7749,7 +7669,6 @@ public function deleteSchemaRequest($app, $schema, string $contentType = self::c * * Get a schema by name. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchema'] to see the possible values for this operation * @@ -7757,9 +7676,9 @@ public function deleteSchemaRequest($app, $schema, string $contentType = self::c * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto */ - public function getSchema($app, $schema, string $contentType = self::contentTypes['getSchema'][0]) + public function getSchema($schema, string $contentType = self::contentTypes['getSchema'][0]) { - list($response) = $this->getSchemaWithHttpInfo($app, $schema, $contentType); + list($response) = $this->getSchemaWithHttpInfo($schema, $contentType); return $response; } @@ -7768,7 +7687,6 @@ public function getSchema($app, $schema, string $contentType = self::contentType * * Get a schema by name. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchema'] to see the possible values for this operation * @@ -7776,9 +7694,9 @@ public function getSchema($app, $schema, string $contentType = self::contentType * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getSchemaWithHttpInfo($app, $schema, string $contentType = self::contentTypes['getSchema'][0]) + public function getSchemaWithHttpInfo($schema, string $contentType = self::contentTypes['getSchema'][0]) { - $request = $this->getSchemaRequest($app, $schema, $contentType); + $request = $this->getSchemaRequest($schema, $contentType); try { $options = $this->createHttpClientOption(); @@ -7892,16 +7810,15 @@ public function getSchemaWithHttpInfo($app, $schema, string $contentType = self: * * Get a schema by name. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSchemaAsync($app, $schema, string $contentType = self::contentTypes['getSchema'][0]) + public function getSchemaAsync($schema, string $contentType = self::contentTypes['getSchema'][0]) { - return $this->getSchemaAsyncWithHttpInfo($app, $schema, $contentType) + return $this->getSchemaAsyncWithHttpInfo($schema, $contentType) ->then( function ($response) { return $response[0]; @@ -7914,17 +7831,16 @@ function ($response) { * * Get a schema by name. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSchemaAsyncWithHttpInfo($app, $schema, string $contentType = self::contentTypes['getSchema'][0]) + public function getSchemaAsyncWithHttpInfo($schema, string $contentType = self::contentTypes['getSchema'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->getSchemaRequest($app, $schema, $contentType); + $request = $this->getSchemaRequest($schema, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7965,17 +7881,17 @@ function ($exception) { /** * Create request for operation 'getSchema' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getSchemaRequest($app, $schema, string $contentType = self::contentTypes['getSchema'][0]) + public function getSchemaRequest($schema, string $contentType = self::contentTypes['getSchema'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -8075,16 +7991,15 @@ public function getSchemaRequest($app, $schema, string $contentType = self::cont * * Get schemas. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchemas'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemasDto|\Squidex\Client\Model\ErrorDto */ - public function getSchemas($app, string $contentType = self::contentTypes['getSchemas'][0]) + public function getSchemas(string $contentType = self::contentTypes['getSchemas'][0]) { - list($response) = $this->getSchemasWithHttpInfo($app, $contentType); + list($response) = $this->getSchemasWithHttpInfo($contentType); return $response; } @@ -8093,16 +8008,15 @@ public function getSchemas($app, string $contentType = self::contentTypes['getSc * * Get schemas. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchemas'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemasDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getSchemasWithHttpInfo($app, string $contentType = self::contentTypes['getSchemas'][0]) + public function getSchemasWithHttpInfo(string $contentType = self::contentTypes['getSchemas'][0]) { - $request = $this->getSchemasRequest($app, $contentType); + $request = $this->getSchemasRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -8216,15 +8130,14 @@ public function getSchemasWithHttpInfo($app, string $contentType = self::content * * Get schemas. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchemas'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSchemasAsync($app, string $contentType = self::contentTypes['getSchemas'][0]) + public function getSchemasAsync(string $contentType = self::contentTypes['getSchemas'][0]) { - return $this->getSchemasAsyncWithHttpInfo($app, $contentType) + return $this->getSchemasAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -8237,16 +8150,15 @@ function ($response) { * * Get schemas. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchemas'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSchemasAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getSchemas'][0]) + public function getSchemasAsyncWithHttpInfo(string $contentType = self::contentTypes['getSchemas'][0]) { $returnType = '\Squidex\Client\Model\SchemasDto'; - $request = $this->getSchemasRequest($app, $contentType); + $request = $this->getSchemasRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8287,16 +8199,16 @@ function ($exception) { /** * Create request for operation 'getSchemas' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchemas'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getSchemasRequest($app, string $contentType = self::contentTypes['getSchemas'][0]) + public function getSchemasRequest(string $contentType = self::contentTypes['getSchemas'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -8381,7 +8293,6 @@ public function getSchemasRequest($app, string $contentType = self::contentTypes * * Create a new schema. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateSchemaDto $create_schema_dto The schema object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postSchema'] to see the possible values for this operation * @@ -8389,9 +8300,9 @@ public function getSchemasRequest($app, string $contentType = self::contentTypes * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postSchema($app, $create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) + public function postSchema($create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) { - list($response) = $this->postSchemaWithHttpInfo($app, $create_schema_dto, $contentType); + list($response) = $this->postSchemaWithHttpInfo($create_schema_dto, $contentType); return $response; } @@ -8400,7 +8311,6 @@ public function postSchema($app, $create_schema_dto, string $contentType = self: * * Create a new schema. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateSchemaDto $create_schema_dto The schema object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postSchema'] to see the possible values for this operation * @@ -8408,9 +8318,9 @@ public function postSchema($app, $create_schema_dto, string $contentType = self: * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postSchemaWithHttpInfo($app, $create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) + public function postSchemaWithHttpInfo($create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) { - $request = $this->postSchemaRequest($app, $create_schema_dto, $contentType); + $request = $this->postSchemaRequest($create_schema_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -8570,16 +8480,15 @@ public function postSchemaWithHttpInfo($app, $create_schema_dto, string $content * * Create a new schema. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateSchemaDto $create_schema_dto The schema object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postSchemaAsync($app, $create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) + public function postSchemaAsync($create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) { - return $this->postSchemaAsyncWithHttpInfo($app, $create_schema_dto, $contentType) + return $this->postSchemaAsyncWithHttpInfo($create_schema_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -8592,17 +8501,16 @@ function ($response) { * * Create a new schema. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateSchemaDto $create_schema_dto The schema object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postSchemaAsyncWithHttpInfo($app, $create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) + public function postSchemaAsyncWithHttpInfo($create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->postSchemaRequest($app, $create_schema_dto, $contentType); + $request = $this->postSchemaRequest($create_schema_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8643,17 +8551,17 @@ function ($exception) { /** * Create request for operation 'postSchema' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateSchemaDto $create_schema_dto The schema object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postSchemaRequest($app, $create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) + public function postSchemaRequest($create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -8752,7 +8660,6 @@ public function postSchemaRequest($app, $create_schema_dto, string $contentType * * Publish a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to publish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['publishSchema'] to see the possible values for this operation * @@ -8760,9 +8667,9 @@ public function postSchemaRequest($app, $create_schema_dto, string $contentType * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function publishSchema($app, $schema, string $contentType = self::contentTypes['publishSchema'][0]) + public function publishSchema($schema, string $contentType = self::contentTypes['publishSchema'][0]) { - list($response) = $this->publishSchemaWithHttpInfo($app, $schema, $contentType); + list($response) = $this->publishSchemaWithHttpInfo($schema, $contentType); return $response; } @@ -8771,7 +8678,6 @@ public function publishSchema($app, $schema, string $contentType = self::content * * Publish a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to publish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['publishSchema'] to see the possible values for this operation * @@ -8779,9 +8685,9 @@ public function publishSchema($app, $schema, string $contentType = self::content * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function publishSchemaWithHttpInfo($app, $schema, string $contentType = self::contentTypes['publishSchema'][0]) + public function publishSchemaWithHttpInfo($schema, string $contentType = self::contentTypes['publishSchema'][0]) { - $request = $this->publishSchemaRequest($app, $schema, $contentType); + $request = $this->publishSchemaRequest($schema, $contentType); try { $options = $this->createHttpClientOption(); @@ -8918,16 +8824,15 @@ public function publishSchemaWithHttpInfo($app, $schema, string $contentType = s * * Publish a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to publish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['publishSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function publishSchemaAsync($app, $schema, string $contentType = self::contentTypes['publishSchema'][0]) + public function publishSchemaAsync($schema, string $contentType = self::contentTypes['publishSchema'][0]) { - return $this->publishSchemaAsyncWithHttpInfo($app, $schema, $contentType) + return $this->publishSchemaAsyncWithHttpInfo($schema, $contentType) ->then( function ($response) { return $response[0]; @@ -8940,17 +8845,16 @@ function ($response) { * * Publish a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to publish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['publishSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function publishSchemaAsyncWithHttpInfo($app, $schema, string $contentType = self::contentTypes['publishSchema'][0]) + public function publishSchemaAsyncWithHttpInfo($schema, string $contentType = self::contentTypes['publishSchema'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->publishSchemaRequest($app, $schema, $contentType); + $request = $this->publishSchemaRequest($schema, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8991,17 +8895,17 @@ function ($exception) { /** * Create request for operation 'publishSchema' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to publish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['publishSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function publishSchemaRequest($app, $schema, string $contentType = self::contentTypes['publishSchema'][0]) + public function publishSchemaRequest($schema, string $contentType = self::contentTypes['publishSchema'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -9101,7 +9005,6 @@ public function publishSchemaRequest($app, $schema, string $contentType = self:: * * Update a schema category. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ChangeCategoryDto $change_category_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putCategory'] to see the possible values for this operation @@ -9110,9 +9013,9 @@ public function publishSchemaRequest($app, $schema, string $contentType = self:: * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putCategory($app, $schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) + public function putCategory($schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) { - list($response) = $this->putCategoryWithHttpInfo($app, $schema, $change_category_dto, $contentType); + list($response) = $this->putCategoryWithHttpInfo($schema, $change_category_dto, $contentType); return $response; } @@ -9121,7 +9024,6 @@ public function putCategory($app, $schema, $change_category_dto, string $content * * Update a schema category. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ChangeCategoryDto $change_category_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putCategory'] to see the possible values for this operation @@ -9130,9 +9032,9 @@ public function putCategory($app, $schema, $change_category_dto, string $content * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putCategoryWithHttpInfo($app, $schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) + public function putCategoryWithHttpInfo($schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) { - $request = $this->putCategoryRequest($app, $schema, $change_category_dto, $contentType); + $request = $this->putCategoryRequest($schema, $change_category_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -9269,7 +9171,6 @@ public function putCategoryWithHttpInfo($app, $schema, $change_category_dto, str * * Update a schema category. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ChangeCategoryDto $change_category_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putCategory'] to see the possible values for this operation @@ -9277,9 +9178,9 @@ public function putCategoryWithHttpInfo($app, $schema, $change_category_dto, str * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putCategoryAsync($app, $schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) + public function putCategoryAsync($schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) { - return $this->putCategoryAsyncWithHttpInfo($app, $schema, $change_category_dto, $contentType) + return $this->putCategoryAsyncWithHttpInfo($schema, $change_category_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -9292,7 +9193,6 @@ function ($response) { * * Update a schema category. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ChangeCategoryDto $change_category_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putCategory'] to see the possible values for this operation @@ -9300,10 +9200,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putCategoryAsyncWithHttpInfo($app, $schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) + public function putCategoryAsyncWithHttpInfo($schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putCategoryRequest($app, $schema, $change_category_dto, $contentType); + $request = $this->putCategoryRequest($schema, $change_category_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9344,7 +9244,6 @@ function ($exception) { /** * Create request for operation 'putCategory' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ChangeCategoryDto $change_category_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putCategory'] to see the possible values for this operation @@ -9352,10 +9251,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putCategoryRequest($app, $schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) + public function putCategoryRequest($schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -9469,7 +9369,6 @@ public function putCategoryRequest($app, $schema, $change_category_dto, string $ * * Update the preview urls. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The preview urls for the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPreviewUrls'] to see the possible values for this operation @@ -9478,9 +9377,9 @@ public function putCategoryRequest($app, $schema, $change_category_dto, string $ * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putPreviewUrls($app, $schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) + public function putPreviewUrls($schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) { - list($response) = $this->putPreviewUrlsWithHttpInfo($app, $schema, $request_body, $contentType); + list($response) = $this->putPreviewUrlsWithHttpInfo($schema, $request_body, $contentType); return $response; } @@ -9489,7 +9388,6 @@ public function putPreviewUrls($app, $schema, $request_body, string $contentType * * Update the preview urls. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The preview urls for the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPreviewUrls'] to see the possible values for this operation @@ -9498,9 +9396,9 @@ public function putPreviewUrls($app, $schema, $request_body, string $contentType * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putPreviewUrlsWithHttpInfo($app, $schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) + public function putPreviewUrlsWithHttpInfo($schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) { - $request = $this->putPreviewUrlsRequest($app, $schema, $request_body, $contentType); + $request = $this->putPreviewUrlsRequest($schema, $request_body, $contentType); try { $options = $this->createHttpClientOption(); @@ -9637,7 +9535,6 @@ public function putPreviewUrlsWithHttpInfo($app, $schema, $request_body, string * * Update the preview urls. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The preview urls for the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPreviewUrls'] to see the possible values for this operation @@ -9645,9 +9542,9 @@ public function putPreviewUrlsWithHttpInfo($app, $schema, $request_body, string * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putPreviewUrlsAsync($app, $schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) + public function putPreviewUrlsAsync($schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) { - return $this->putPreviewUrlsAsyncWithHttpInfo($app, $schema, $request_body, $contentType) + return $this->putPreviewUrlsAsyncWithHttpInfo($schema, $request_body, $contentType) ->then( function ($response) { return $response[0]; @@ -9660,7 +9557,6 @@ function ($response) { * * Update the preview urls. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The preview urls for the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPreviewUrls'] to see the possible values for this operation @@ -9668,10 +9564,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putPreviewUrlsAsyncWithHttpInfo($app, $schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) + public function putPreviewUrlsAsyncWithHttpInfo($schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putPreviewUrlsRequest($app, $schema, $request_body, $contentType); + $request = $this->putPreviewUrlsRequest($schema, $request_body, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9712,7 +9608,6 @@ function ($exception) { /** * Create request for operation 'putPreviewUrls' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The preview urls for the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPreviewUrls'] to see the possible values for this operation @@ -9720,10 +9615,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putPreviewUrlsRequest($app, $schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) + public function putPreviewUrlsRequest($schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -9837,7 +9733,6 @@ public function putPreviewUrlsRequest($app, $schema, $request_body, string $cont * * Update the rules. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureFieldRulesDto $configure_field_rules_dto The schema rules object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRules'] to see the possible values for this operation @@ -9846,9 +9741,9 @@ public function putPreviewUrlsRequest($app, $schema, $request_body, string $cont * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putRules($app, $schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) + public function putRules($schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) { - list($response) = $this->putRulesWithHttpInfo($app, $schema, $configure_field_rules_dto, $contentType); + list($response) = $this->putRulesWithHttpInfo($schema, $configure_field_rules_dto, $contentType); return $response; } @@ -9857,7 +9752,6 @@ public function putRules($app, $schema, $configure_field_rules_dto, string $cont * * Update the rules. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureFieldRulesDto $configure_field_rules_dto The schema rules object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRules'] to see the possible values for this operation @@ -9866,9 +9760,9 @@ public function putRules($app, $schema, $configure_field_rules_dto, string $cont * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putRulesWithHttpInfo($app, $schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) + public function putRulesWithHttpInfo($schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) { - $request = $this->putRulesRequest($app, $schema, $configure_field_rules_dto, $contentType); + $request = $this->putRulesRequest($schema, $configure_field_rules_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -10005,7 +9899,6 @@ public function putRulesWithHttpInfo($app, $schema, $configure_field_rules_dto, * * Update the rules. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureFieldRulesDto $configure_field_rules_dto The schema rules object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRules'] to see the possible values for this operation @@ -10013,9 +9906,9 @@ public function putRulesWithHttpInfo($app, $schema, $configure_field_rules_dto, * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRulesAsync($app, $schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) + public function putRulesAsync($schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) { - return $this->putRulesAsyncWithHttpInfo($app, $schema, $configure_field_rules_dto, $contentType) + return $this->putRulesAsyncWithHttpInfo($schema, $configure_field_rules_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -10028,7 +9921,6 @@ function ($response) { * * Update the rules. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureFieldRulesDto $configure_field_rules_dto The schema rules object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRules'] to see the possible values for this operation @@ -10036,10 +9928,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRulesAsyncWithHttpInfo($app, $schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) + public function putRulesAsyncWithHttpInfo($schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putRulesRequest($app, $schema, $configure_field_rules_dto, $contentType); + $request = $this->putRulesRequest($schema, $configure_field_rules_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -10080,7 +9972,6 @@ function ($exception) { /** * Create request for operation 'putRules' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureFieldRulesDto $configure_field_rules_dto The schema rules object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRules'] to see the possible values for this operation @@ -10088,10 +9979,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putRulesRequest($app, $schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) + public function putRulesRequest($schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -10205,7 +10097,6 @@ public function putRulesRequest($app, $schema, $configure_field_rules_dto, strin * * Update a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\UpdateSchemaDto $update_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchema'] to see the possible values for this operation @@ -10214,9 +10105,9 @@ public function putRulesRequest($app, $schema, $configure_field_rules_dto, strin * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putSchema($app, $schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) + public function putSchema($schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) { - list($response) = $this->putSchemaWithHttpInfo($app, $schema, $update_schema_dto, $contentType); + list($response) = $this->putSchemaWithHttpInfo($schema, $update_schema_dto, $contentType); return $response; } @@ -10225,7 +10116,6 @@ public function putSchema($app, $schema, $update_schema_dto, string $contentType * * Update a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\UpdateSchemaDto $update_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchema'] to see the possible values for this operation @@ -10234,9 +10124,9 @@ public function putSchema($app, $schema, $update_schema_dto, string $contentType * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putSchemaWithHttpInfo($app, $schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) + public function putSchemaWithHttpInfo($schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) { - $request = $this->putSchemaRequest($app, $schema, $update_schema_dto, $contentType); + $request = $this->putSchemaRequest($schema, $update_schema_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -10373,7 +10263,6 @@ public function putSchemaWithHttpInfo($app, $schema, $update_schema_dto, string * * Update a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\UpdateSchemaDto $update_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchema'] to see the possible values for this operation @@ -10381,9 +10270,9 @@ public function putSchemaWithHttpInfo($app, $schema, $update_schema_dto, string * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaAsync($app, $schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) + public function putSchemaAsync($schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) { - return $this->putSchemaAsyncWithHttpInfo($app, $schema, $update_schema_dto, $contentType) + return $this->putSchemaAsyncWithHttpInfo($schema, $update_schema_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -10396,7 +10285,6 @@ function ($response) { * * Update a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\UpdateSchemaDto $update_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchema'] to see the possible values for this operation @@ -10404,10 +10292,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaAsyncWithHttpInfo($app, $schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) + public function putSchemaAsyncWithHttpInfo($schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putSchemaRequest($app, $schema, $update_schema_dto, $contentType); + $request = $this->putSchemaRequest($schema, $update_schema_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -10448,7 +10336,6 @@ function ($exception) { /** * Create request for operation 'putSchema' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\UpdateSchemaDto $update_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchema'] to see the possible values for this operation @@ -10456,10 +10343,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putSchemaRequest($app, $schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) + public function putSchemaRequest($schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -10573,7 +10461,6 @@ public function putSchemaRequest($app, $schema, $update_schema_dto, string $cont * * Synchronize a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SynchronizeSchemaDto $synchronize_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaSync'] to see the possible values for this operation @@ -10582,9 +10469,9 @@ public function putSchemaRequest($app, $schema, $update_schema_dto, string $cont * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putSchemaSync($app, $schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) + public function putSchemaSync($schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) { - list($response) = $this->putSchemaSyncWithHttpInfo($app, $schema, $synchronize_schema_dto, $contentType); + list($response) = $this->putSchemaSyncWithHttpInfo($schema, $synchronize_schema_dto, $contentType); return $response; } @@ -10593,7 +10480,6 @@ public function putSchemaSync($app, $schema, $synchronize_schema_dto, string $co * * Synchronize a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SynchronizeSchemaDto $synchronize_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaSync'] to see the possible values for this operation @@ -10602,9 +10488,9 @@ public function putSchemaSync($app, $schema, $synchronize_schema_dto, string $co * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putSchemaSyncWithHttpInfo($app, $schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) + public function putSchemaSyncWithHttpInfo($schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) { - $request = $this->putSchemaSyncRequest($app, $schema, $synchronize_schema_dto, $contentType); + $request = $this->putSchemaSyncRequest($schema, $synchronize_schema_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -10741,7 +10627,6 @@ public function putSchemaSyncWithHttpInfo($app, $schema, $synchronize_schema_dto * * Synchronize a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SynchronizeSchemaDto $synchronize_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaSync'] to see the possible values for this operation @@ -10749,9 +10634,9 @@ public function putSchemaSyncWithHttpInfo($app, $schema, $synchronize_schema_dto * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaSyncAsync($app, $schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) + public function putSchemaSyncAsync($schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) { - return $this->putSchemaSyncAsyncWithHttpInfo($app, $schema, $synchronize_schema_dto, $contentType) + return $this->putSchemaSyncAsyncWithHttpInfo($schema, $synchronize_schema_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -10764,7 +10649,6 @@ function ($response) { * * Synchronize a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SynchronizeSchemaDto $synchronize_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaSync'] to see the possible values for this operation @@ -10772,10 +10656,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaSyncAsyncWithHttpInfo($app, $schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) + public function putSchemaSyncAsyncWithHttpInfo($schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putSchemaSyncRequest($app, $schema, $synchronize_schema_dto, $contentType); + $request = $this->putSchemaSyncRequest($schema, $synchronize_schema_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -10816,7 +10700,6 @@ function ($exception) { /** * Create request for operation 'putSchemaSync' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SynchronizeSchemaDto $synchronize_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaSync'] to see the possible values for this operation @@ -10824,10 +10707,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putSchemaSyncRequest($app, $schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) + public function putSchemaSyncRequest($schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -10941,7 +10825,6 @@ public function putSchemaSyncRequest($app, $schema, $synchronize_schema_dto, str * * Update the scripts. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SchemaScriptsDto $schema_scripts_dto The schema scripts object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putScripts'] to see the possible values for this operation @@ -10950,9 +10833,9 @@ public function putSchemaSyncRequest($app, $schema, $synchronize_schema_dto, str * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putScripts($app, $schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) + public function putScripts($schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) { - list($response) = $this->putScriptsWithHttpInfo($app, $schema, $schema_scripts_dto, $contentType); + list($response) = $this->putScriptsWithHttpInfo($schema, $schema_scripts_dto, $contentType); return $response; } @@ -10961,7 +10844,6 @@ public function putScripts($app, $schema, $schema_scripts_dto, string $contentTy * * Update the scripts. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SchemaScriptsDto $schema_scripts_dto The schema scripts object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putScripts'] to see the possible values for this operation @@ -10970,9 +10852,9 @@ public function putScripts($app, $schema, $schema_scripts_dto, string $contentTy * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putScriptsWithHttpInfo($app, $schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) + public function putScriptsWithHttpInfo($schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) { - $request = $this->putScriptsRequest($app, $schema, $schema_scripts_dto, $contentType); + $request = $this->putScriptsRequest($schema, $schema_scripts_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -11109,7 +10991,6 @@ public function putScriptsWithHttpInfo($app, $schema, $schema_scripts_dto, strin * * Update the scripts. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SchemaScriptsDto $schema_scripts_dto The schema scripts object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putScripts'] to see the possible values for this operation @@ -11117,9 +10998,9 @@ public function putScriptsWithHttpInfo($app, $schema, $schema_scripts_dto, strin * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putScriptsAsync($app, $schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) + public function putScriptsAsync($schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) { - return $this->putScriptsAsyncWithHttpInfo($app, $schema, $schema_scripts_dto, $contentType) + return $this->putScriptsAsyncWithHttpInfo($schema, $schema_scripts_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -11132,7 +11013,6 @@ function ($response) { * * Update the scripts. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SchemaScriptsDto $schema_scripts_dto The schema scripts object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putScripts'] to see the possible values for this operation @@ -11140,10 +11020,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putScriptsAsyncWithHttpInfo($app, $schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) + public function putScriptsAsyncWithHttpInfo($schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putScriptsRequest($app, $schema, $schema_scripts_dto, $contentType); + $request = $this->putScriptsRequest($schema, $schema_scripts_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -11184,7 +11064,6 @@ function ($exception) { /** * Create request for operation 'putScripts' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SchemaScriptsDto $schema_scripts_dto The schema scripts object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putScripts'] to see the possible values for this operation @@ -11192,10 +11071,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putScriptsRequest($app, $schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) + public function putScriptsRequest($schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -11309,7 +11189,6 @@ public function putScriptsRequest($app, $schema, $schema_scripts_dto, string $co * * Unpublish a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to unpublish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unpublishSchema'] to see the possible values for this operation * @@ -11317,9 +11196,9 @@ public function putScriptsRequest($app, $schema, $schema_scripts_dto, string $co * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function unpublishSchema($app, $schema, string $contentType = self::contentTypes['unpublishSchema'][0]) + public function unpublishSchema($schema, string $contentType = self::contentTypes['unpublishSchema'][0]) { - list($response) = $this->unpublishSchemaWithHttpInfo($app, $schema, $contentType); + list($response) = $this->unpublishSchemaWithHttpInfo($schema, $contentType); return $response; } @@ -11328,7 +11207,6 @@ public function unpublishSchema($app, $schema, string $contentType = self::conte * * Unpublish a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to unpublish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unpublishSchema'] to see the possible values for this operation * @@ -11336,9 +11214,9 @@ public function unpublishSchema($app, $schema, string $contentType = self::conte * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function unpublishSchemaWithHttpInfo($app, $schema, string $contentType = self::contentTypes['unpublishSchema'][0]) + public function unpublishSchemaWithHttpInfo($schema, string $contentType = self::contentTypes['unpublishSchema'][0]) { - $request = $this->unpublishSchemaRequest($app, $schema, $contentType); + $request = $this->unpublishSchemaRequest($schema, $contentType); try { $options = $this->createHttpClientOption(); @@ -11475,16 +11353,15 @@ public function unpublishSchemaWithHttpInfo($app, $schema, string $contentType = * * Unpublish a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to unpublish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unpublishSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function unpublishSchemaAsync($app, $schema, string $contentType = self::contentTypes['unpublishSchema'][0]) + public function unpublishSchemaAsync($schema, string $contentType = self::contentTypes['unpublishSchema'][0]) { - return $this->unpublishSchemaAsyncWithHttpInfo($app, $schema, $contentType) + return $this->unpublishSchemaAsyncWithHttpInfo($schema, $contentType) ->then( function ($response) { return $response[0]; @@ -11497,17 +11374,16 @@ function ($response) { * * Unpublish a schema. * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to unpublish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unpublishSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function unpublishSchemaAsyncWithHttpInfo($app, $schema, string $contentType = self::contentTypes['unpublishSchema'][0]) + public function unpublishSchemaAsyncWithHttpInfo($schema, string $contentType = self::contentTypes['unpublishSchema'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->unpublishSchemaRequest($app, $schema, $contentType); + $request = $this->unpublishSchemaRequest($schema, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -11548,17 +11424,17 @@ function ($exception) { /** * Create request for operation 'unpublishSchema' * - * @param string $app The name of the app. (required) * @param string $schema The name of the schema to unpublish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unpublishSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function unpublishSchemaRequest($app, $schema, string $contentType = self::contentTypes['unpublishSchema'][0]) + public function unpublishSchemaRequest($schema, string $contentType = self::contentTypes['unpublishSchema'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/lib/Api/SearchApi.php b/lib/Api/SearchApi.php index 66a30f6..bb51d91 100644 --- a/lib/Api/SearchApi.php +++ b/lib/Api/SearchApi.php @@ -124,7 +124,6 @@ public function getConfig() * * Get search results. * - * @param string $app The name of the app. (required) * @param string $query The search query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSearchResults'] to see the possible values for this operation * @@ -132,9 +131,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SearchResultDto[]|\Squidex\Client\Model\ErrorDto */ - public function getSearchResults($app, $query = null, string $contentType = self::contentTypes['getSearchResults'][0]) + public function getSearchResults($query = null, string $contentType = self::contentTypes['getSearchResults'][0]) { - list($response) = $this->getSearchResultsWithHttpInfo($app, $query, $contentType); + list($response) = $this->getSearchResultsWithHttpInfo($query, $contentType); return $response; } @@ -143,7 +142,6 @@ public function getSearchResults($app, $query = null, string $contentType = self * * Get search results. * - * @param string $app The name of the app. (required) * @param string $query The search query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSearchResults'] to see the possible values for this operation * @@ -151,9 +149,9 @@ public function getSearchResults($app, $query = null, string $contentType = self * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SearchResultDto[]|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getSearchResultsWithHttpInfo($app, $query = null, string $contentType = self::contentTypes['getSearchResults'][0]) + public function getSearchResultsWithHttpInfo($query = null, string $contentType = self::contentTypes['getSearchResults'][0]) { - $request = $this->getSearchResultsRequest($app, $query, $contentType); + $request = $this->getSearchResultsRequest($query, $contentType); try { $options = $this->createHttpClientOption(); @@ -267,16 +265,15 @@ public function getSearchResultsWithHttpInfo($app, $query = null, string $conten * * Get search results. * - * @param string $app The name of the app. (required) * @param string $query The search query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSearchResults'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSearchResultsAsync($app, $query = null, string $contentType = self::contentTypes['getSearchResults'][0]) + public function getSearchResultsAsync($query = null, string $contentType = self::contentTypes['getSearchResults'][0]) { - return $this->getSearchResultsAsyncWithHttpInfo($app, $query, $contentType) + return $this->getSearchResultsAsyncWithHttpInfo($query, $contentType) ->then( function ($response) { return $response[0]; @@ -289,17 +286,16 @@ function ($response) { * * Get search results. * - * @param string $app The name of the app. (required) * @param string $query The search query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSearchResults'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSearchResultsAsyncWithHttpInfo($app, $query = null, string $contentType = self::contentTypes['getSearchResults'][0]) + public function getSearchResultsAsyncWithHttpInfo($query = null, string $contentType = self::contentTypes['getSearchResults'][0]) { $returnType = '\Squidex\Client\Model\SearchResultDto[]'; - $request = $this->getSearchResultsRequest($app, $query, $contentType); + $request = $this->getSearchResultsRequest($query, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -340,17 +336,17 @@ function ($exception) { /** * Create request for operation 'getSearchResults' * - * @param string $app The name of the app. (required) * @param string $query The search query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSearchResults'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getSearchResultsRequest($app, $query = null, string $contentType = self::contentTypes['getSearchResults'][0]) + public function getSearchResultsRequest($query = null, string $contentType = self::contentTypes['getSearchResults'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/lib/Api/StatisticsApi.php b/lib/Api/StatisticsApi.php index 771bd09..816ca9e 100644 --- a/lib/Api/StatisticsApi.php +++ b/lib/Api/StatisticsApi.php @@ -142,16 +142,15 @@ public function getConfig() * * Get total asset size for app. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCurrentStorageSize'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\CurrentStorageDto|\Squidex\Client\Model\ErrorDto */ - public function getCurrentStorageSize($app, string $contentType = self::contentTypes['getCurrentStorageSize'][0]) + public function getCurrentStorageSize(string $contentType = self::contentTypes['getCurrentStorageSize'][0]) { - list($response) = $this->getCurrentStorageSizeWithHttpInfo($app, $contentType); + list($response) = $this->getCurrentStorageSizeWithHttpInfo($contentType); return $response; } @@ -160,16 +159,15 @@ public function getCurrentStorageSize($app, string $contentType = self::contentT * * Get total asset size for app. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCurrentStorageSize'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\CurrentStorageDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getCurrentStorageSizeWithHttpInfo($app, string $contentType = self::contentTypes['getCurrentStorageSize'][0]) + public function getCurrentStorageSizeWithHttpInfo(string $contentType = self::contentTypes['getCurrentStorageSize'][0]) { - $request = $this->getCurrentStorageSizeRequest($app, $contentType); + $request = $this->getCurrentStorageSizeRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -283,15 +281,14 @@ public function getCurrentStorageSizeWithHttpInfo($app, string $contentType = se * * Get total asset size for app. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCurrentStorageSize'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCurrentStorageSizeAsync($app, string $contentType = self::contentTypes['getCurrentStorageSize'][0]) + public function getCurrentStorageSizeAsync(string $contentType = self::contentTypes['getCurrentStorageSize'][0]) { - return $this->getCurrentStorageSizeAsyncWithHttpInfo($app, $contentType) + return $this->getCurrentStorageSizeAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -304,16 +301,15 @@ function ($response) { * * Get total asset size for app. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCurrentStorageSize'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCurrentStorageSizeAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getCurrentStorageSize'][0]) + public function getCurrentStorageSizeAsyncWithHttpInfo(string $contentType = self::contentTypes['getCurrentStorageSize'][0]) { $returnType = '\Squidex\Client\Model\CurrentStorageDto'; - $request = $this->getCurrentStorageSizeRequest($app, $contentType); + $request = $this->getCurrentStorageSizeRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -354,16 +350,16 @@ function ($exception) { /** * Create request for operation 'getCurrentStorageSize' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCurrentStorageSize'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getCurrentStorageSizeRequest($app, string $contentType = self::contentTypes['getCurrentStorageSize'][0]) + public function getCurrentStorageSizeRequest(string $contentType = self::contentTypes['getCurrentStorageSize'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -448,16 +444,15 @@ public function getCurrentStorageSizeRequest($app, string $contentType = self::c * * Get api calls as log file. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLog'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\LogDownloadDto|\Squidex\Client\Model\ErrorDto */ - public function getLog($app, string $contentType = self::contentTypes['getLog'][0]) + public function getLog(string $contentType = self::contentTypes['getLog'][0]) { - list($response) = $this->getLogWithHttpInfo($app, $contentType); + list($response) = $this->getLogWithHttpInfo($contentType); return $response; } @@ -466,16 +461,15 @@ public function getLog($app, string $contentType = self::contentTypes['getLog'][ * * Get api calls as log file. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLog'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\LogDownloadDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getLogWithHttpInfo($app, string $contentType = self::contentTypes['getLog'][0]) + public function getLogWithHttpInfo(string $contentType = self::contentTypes['getLog'][0]) { - $request = $this->getLogRequest($app, $contentType); + $request = $this->getLogRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -589,15 +583,14 @@ public function getLogWithHttpInfo($app, string $contentType = self::contentType * * Get api calls as log file. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLog'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getLogAsync($app, string $contentType = self::contentTypes['getLog'][0]) + public function getLogAsync(string $contentType = self::contentTypes['getLog'][0]) { - return $this->getLogAsyncWithHttpInfo($app, $contentType) + return $this->getLogAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -610,16 +603,15 @@ function ($response) { * * Get api calls as log file. * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLog'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getLogAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getLog'][0]) + public function getLogAsyncWithHttpInfo(string $contentType = self::contentTypes['getLog'][0]) { $returnType = '\Squidex\Client\Model\LogDownloadDto'; - $request = $this->getLogRequest($app, $contentType); + $request = $this->getLogRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -660,16 +652,16 @@ function ($exception) { /** * Create request for operation 'getLog' * - * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLog'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getLogRequest($app, string $contentType = self::contentTypes['getLog'][0]) + public function getLogRequest(string $contentType = self::contentTypes['getLog'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -754,7 +746,6 @@ public function getLogRequest($app, string $contentType = self::contentTypes['ge * * Get asset usage by date for app. * - * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getStorageSizes'] to see the possible values for this operation @@ -763,9 +754,9 @@ public function getLogRequest($app, string $contentType = self::contentTypes['ge * @throws \InvalidArgumentException * @return \Squidex\Client\Model\StorageUsagePerDateDto[]|\Squidex\Client\Model\ErrorDto */ - public function getStorageSizes($app, $from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) + public function getStorageSizes($from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) { - list($response) = $this->getStorageSizesWithHttpInfo($app, $from_date, $to_date, $contentType); + list($response) = $this->getStorageSizesWithHttpInfo($from_date, $to_date, $contentType); return $response; } @@ -774,7 +765,6 @@ public function getStorageSizes($app, $from_date, $to_date, string $contentType * * Get asset usage by date for app. * - * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getStorageSizes'] to see the possible values for this operation @@ -783,9 +773,9 @@ public function getStorageSizes($app, $from_date, $to_date, string $contentType * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\StorageUsagePerDateDto[]|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getStorageSizesWithHttpInfo($app, $from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) + public function getStorageSizesWithHttpInfo($from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) { - $request = $this->getStorageSizesRequest($app, $from_date, $to_date, $contentType); + $request = $this->getStorageSizesRequest($from_date, $to_date, $contentType); try { $options = $this->createHttpClientOption(); @@ -899,7 +889,6 @@ public function getStorageSizesWithHttpInfo($app, $from_date, $to_date, string $ * * Get asset usage by date for app. * - * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getStorageSizes'] to see the possible values for this operation @@ -907,9 +896,9 @@ public function getStorageSizesWithHttpInfo($app, $from_date, $to_date, string $ * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getStorageSizesAsync($app, $from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) + public function getStorageSizesAsync($from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) { - return $this->getStorageSizesAsyncWithHttpInfo($app, $from_date, $to_date, $contentType) + return $this->getStorageSizesAsyncWithHttpInfo($from_date, $to_date, $contentType) ->then( function ($response) { return $response[0]; @@ -922,7 +911,6 @@ function ($response) { * * Get asset usage by date for app. * - * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getStorageSizes'] to see the possible values for this operation @@ -930,10 +918,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getStorageSizesAsyncWithHttpInfo($app, $from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) + public function getStorageSizesAsyncWithHttpInfo($from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) { $returnType = '\Squidex\Client\Model\StorageUsagePerDateDto[]'; - $request = $this->getStorageSizesRequest($app, $from_date, $to_date, $contentType); + $request = $this->getStorageSizesRequest($from_date, $to_date, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -974,7 +962,6 @@ function ($exception) { /** * Create request for operation 'getStorageSizes' * - * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getStorageSizes'] to see the possible values for this operation @@ -982,10 +969,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getStorageSizesRequest($app, $from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) + public function getStorageSizesRequest($from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' @@ -1752,7 +1740,6 @@ public function getTeamCurrentStorageSizeForTeamRequest($team, string $contentTy * * Get api calls in date range for app. * - * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUsages'] to see the possible values for this operation @@ -1761,9 +1748,9 @@ public function getTeamCurrentStorageSizeForTeamRequest($team, string $contentTy * @throws \InvalidArgumentException * @return \Squidex\Client\Model\CallsUsageDtoDto|\Squidex\Client\Model\ErrorDto */ - public function getUsages($app, $from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) + public function getUsages($from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) { - list($response) = $this->getUsagesWithHttpInfo($app, $from_date, $to_date, $contentType); + list($response) = $this->getUsagesWithHttpInfo($from_date, $to_date, $contentType); return $response; } @@ -1772,7 +1759,6 @@ public function getUsages($app, $from_date, $to_date, string $contentType = self * * Get api calls in date range for app. * - * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUsages'] to see the possible values for this operation @@ -1781,9 +1767,9 @@ public function getUsages($app, $from_date, $to_date, string $contentType = self * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\CallsUsageDtoDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getUsagesWithHttpInfo($app, $from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) + public function getUsagesWithHttpInfo($from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) { - $request = $this->getUsagesRequest($app, $from_date, $to_date, $contentType); + $request = $this->getUsagesRequest($from_date, $to_date, $contentType); try { $options = $this->createHttpClientOption(); @@ -1897,7 +1883,6 @@ public function getUsagesWithHttpInfo($app, $from_date, $to_date, string $conten * * Get api calls in date range for app. * - * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUsages'] to see the possible values for this operation @@ -1905,9 +1890,9 @@ public function getUsagesWithHttpInfo($app, $from_date, $to_date, string $conten * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getUsagesAsync($app, $from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) + public function getUsagesAsync($from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) { - return $this->getUsagesAsyncWithHttpInfo($app, $from_date, $to_date, $contentType) + return $this->getUsagesAsyncWithHttpInfo($from_date, $to_date, $contentType) ->then( function ($response) { return $response[0]; @@ -1920,7 +1905,6 @@ function ($response) { * * Get api calls in date range for app. * - * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUsages'] to see the possible values for this operation @@ -1928,10 +1912,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getUsagesAsyncWithHttpInfo($app, $from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) + public function getUsagesAsyncWithHttpInfo($from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) { $returnType = '\Squidex\Client\Model\CallsUsageDtoDto'; - $request = $this->getUsagesRequest($app, $from_date, $to_date, $contentType); + $request = $this->getUsagesRequest($from_date, $to_date, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1972,7 +1956,6 @@ function ($exception) { /** * Create request for operation 'getUsages' * - * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUsages'] to see the possible values for this operation @@ -1980,10 +1963,11 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getUsagesRequest($app, $from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) + public function getUsagesRequest($from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/lib/Api/TranslationsApi.php b/lib/Api/TranslationsApi.php index 265cc3a..f17ca55 100644 --- a/lib/Api/TranslationsApi.php +++ b/lib/Api/TranslationsApi.php @@ -124,7 +124,6 @@ public function getConfig() * * Translate a text. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\TranslateDto $translate_dto The translation request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postTranslation'] to see the possible values for this operation * @@ -132,9 +131,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \Squidex\Client\Model\TranslationDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postTranslation($app, $translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) + public function postTranslation($translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) { - list($response) = $this->postTranslationWithHttpInfo($app, $translate_dto, $contentType); + list($response) = $this->postTranslationWithHttpInfo($translate_dto, $contentType); return $response; } @@ -143,7 +142,6 @@ public function postTranslation($app, $translate_dto, string $contentType = self * * Translate a text. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\TranslateDto $translate_dto The translation request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postTranslation'] to see the possible values for this operation * @@ -151,9 +149,9 @@ public function postTranslation($app, $translate_dto, string $contentType = self * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\TranslationDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postTranslationWithHttpInfo($app, $translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) + public function postTranslationWithHttpInfo($translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) { - $request = $this->postTranslationRequest($app, $translate_dto, $contentType); + $request = $this->postTranslationRequest($translate_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -290,16 +288,15 @@ public function postTranslationWithHttpInfo($app, $translate_dto, string $conten * * Translate a text. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\TranslateDto $translate_dto The translation request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postTranslation'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postTranslationAsync($app, $translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) + public function postTranslationAsync($translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) { - return $this->postTranslationAsyncWithHttpInfo($app, $translate_dto, $contentType) + return $this->postTranslationAsyncWithHttpInfo($translate_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -312,17 +309,16 @@ function ($response) { * * Translate a text. * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\TranslateDto $translate_dto The translation request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postTranslation'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postTranslationAsyncWithHttpInfo($app, $translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) + public function postTranslationAsyncWithHttpInfo($translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) { $returnType = '\Squidex\Client\Model\TranslationDto'; - $request = $this->postTranslationRequest($app, $translate_dto, $contentType); + $request = $this->postTranslationRequest($translate_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -363,17 +359,17 @@ function ($exception) { /** * Create request for operation 'postTranslation' * - * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\TranslateDto $translate_dto The translation request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postTranslation'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postTranslationRequest($app, $translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) + public function postTranslationRequest($translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) { // verify the required parameter 'app' is set + $app = $this->config->getAppName(); if ($app === null || (is_array($app) && count($app) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $app when calling ' diff --git a/openapi.json b/openapi.json index 6ee2f8e..64a45c3 100644 --- a/openapi.json +++ b/openapi.json @@ -762,7 +762,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -1616,7 +1617,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -1672,7 +1674,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "fromDate", @@ -1827,7 +1830,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -1938,7 +1942,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "fromDate", @@ -2099,7 +2104,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "query", @@ -2168,7 +2174,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2267,7 +2274,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2377,7 +2385,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2466,7 +2475,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2555,7 +2565,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2655,7 +2666,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2753,7 +2765,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2840,7 +2853,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -2949,7 +2963,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3048,7 +3063,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3136,7 +3152,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3235,7 +3252,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3323,7 +3341,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3422,7 +3441,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3510,7 +3530,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3609,7 +3630,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3697,7 +3719,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3796,7 +3819,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3884,7 +3908,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -3982,7 +4007,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -4036,7 +4062,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -4122,7 +4149,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4186,7 +4214,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4273,7 +4302,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4342,7 +4372,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4431,7 +4462,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4520,7 +4552,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4609,7 +4642,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4698,7 +4732,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4787,7 +4822,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4863,7 +4899,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -4980,7 +5017,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -5034,7 +5072,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -5113,7 +5152,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -5169,7 +5209,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5256,7 +5297,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5325,7 +5367,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5401,7 +5444,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5477,7 +5521,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5546,7 +5591,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5622,7 +5668,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5688,7 +5735,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -5767,7 +5815,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -5833,7 +5882,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "ruleId", @@ -5919,7 +5969,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -5975,7 +6026,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -6042,7 +6094,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -6193,7 +6246,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -6249,7 +6303,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -6522,7 +6577,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -6719,7 +6775,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -6775,7 +6832,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -6844,7 +6902,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "channel", @@ -7301,7 +7360,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -7483,7 +7543,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -7620,7 +7681,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -7762,7 +7824,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -7882,7 +7945,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8035,7 +8099,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8160,7 +8225,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8276,7 +8342,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8374,7 +8441,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8452,7 +8520,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8591,7 +8660,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8730,7 +8800,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8838,7 +8909,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -8932,7 +9004,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -9025,7 +9098,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -9139,7 +9213,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -9255,7 +9330,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -9360,7 +9436,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -9463,7 +9540,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -9568,7 +9646,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "The query string", @@ -9657,7 +9736,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "X-Unpublished", @@ -9739,7 +9819,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "The query string", @@ -9828,7 +9909,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "X-Unpublished", @@ -9910,7 +9992,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "ids", @@ -10079,7 +10162,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "X-Fields", @@ -10211,7 +10295,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "schema", @@ -10302,7 +10387,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -10361,7 +10447,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -10500,7 +10587,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -10555,7 +10643,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -10708,7 +10797,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "idOrSlug", @@ -11141,7 +11231,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "parentId", @@ -11215,7 +11306,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -11294,7 +11386,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -11381,7 +11474,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -11450,7 +11544,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -11540,7 +11635,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -11600,7 +11696,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "name", @@ -11694,7 +11791,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "parentId", @@ -11833,7 +11931,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "ParentId", @@ -11959,7 +12058,8 @@ "type": "string" }, "x-position": 0, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "X-NoTotal", @@ -12056,7 +12156,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -12121,7 +12222,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -12244,7 +12346,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -12331,7 +12434,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -12418,7 +12522,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -12501,7 +12606,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -12608,7 +12714,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -12697,7 +12804,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -12751,7 +12859,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -12831,7 +12940,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -12886,7 +12996,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -12966,7 +13077,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -13054,7 +13166,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -13130,7 +13243,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -13184,7 +13298,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -13263,7 +13378,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -13327,7 +13443,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -13403,7 +13520,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -13451,7 +13569,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -13536,7 +13655,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -13602,7 +13722,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -13656,7 +13777,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -13735,7 +13857,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "language", @@ -13822,7 +13945,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "language", @@ -13898,7 +14022,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -13952,7 +14077,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -14031,7 +14157,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -14090,7 +14217,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "roleName", @@ -14177,7 +14305,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "roleName", @@ -14419,7 +14548,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -14471,7 +14601,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -14548,7 +14679,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -14607,7 +14739,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -14686,7 +14819,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -14738,7 +14872,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -14817,7 +14952,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "responses": { @@ -14871,7 +15007,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" } ], "requestBody": { @@ -14950,7 +15087,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id", @@ -15037,7 +15175,8 @@ "type": "string" }, "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-fern-sdk-variable": "appName", + "x-hidden": "true" }, { "name": "id",