Skip to content

Commit

Permalink
Fix parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Aug 20, 2024
1 parent 782da2b commit c55b73b
Show file tree
Hide file tree
Showing 14 changed files with 1,668 additions and 2,085 deletions.
768 changes: 320 additions & 448 deletions lib/Api/AppsApi.php

Large diffs are not rendered by default.

432 changes: 180 additions & 252 deletions lib/Api/AssetsApi.php

Large diffs are not rendered by default.

96 changes: 40 additions & 56 deletions lib/Api/BackupsApi.php

Large diffs are not rendered by default.

624 changes: 260 additions & 364 deletions lib/Api/ContentsApi.php

Large diffs are not rendered by default.

24 changes: 10 additions & 14 deletions lib/Api/HistoryApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,16 @@ 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
*
* @throws \Squidex\Client\ApiException on non-2xx response
* @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;
}

Expand All @@ -146,17 +145,16 @@ 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
*
* @throws \Squidex\Client\ApiException on non-2xx response
* @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();
Expand Down Expand Up @@ -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];
Expand All @@ -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())
Expand Down Expand Up @@ -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 '
Expand Down
48 changes: 20 additions & 28 deletions lib/Api/JobsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,35 +451,33 @@ 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
*
* @throws \Squidex\Client\ApiException on non-2xx response
* @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);
}

/**
* Operation deleteJobWithHttpInfo
*
* 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 \Squidex\Client\ApiException on non-2xx response
* @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();
Expand Down Expand Up @@ -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];
Expand All @@ -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())
Expand Down Expand Up @@ -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 '
Expand Down Expand Up @@ -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;
}

Expand All @@ -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();
Expand Down Expand Up @@ -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];
Expand All @@ -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())
Expand Down Expand Up @@ -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 '
Expand Down
24 changes: 10 additions & 14 deletions lib/Api/PingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,33 +130,31 @@ 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);
}

/**
* Operation getAppPingWithHttpInfo
*
* 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();
Expand Down Expand Up @@ -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];
Expand All @@ -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())
Expand Down Expand Up @@ -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 '
Expand Down
Loading

0 comments on commit c55b73b

Please sign in to comment.