diff --git a/README.md b/README.md index c3b1e25..f25e11a 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ $config = new Configuration(); $config->setClientId('client-id'); $config->setClientSecret('client-secret'); $config->setAppName('my-app'); -// $config->setHost('https://your.squidex-deployment'); +// $config->setUrl('https://your.squidex-deployment'); $client = new SquidexClient($config); diff --git a/lib/Api/AppsApi.php b/lib/Api/AppsApi.php index 600be88..28219fd 100644 --- a/lib/Api/AppsApi.php +++ b/lib/Api/AppsApi.php @@ -503,7 +503,7 @@ public function getAssetScriptsRequest(string $contentType = self::contentTypes[ $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -837,7 +837,7 @@ public function putAssetScriptsRequest($update_asset_scripts_dto, string $conten $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -1172,7 +1172,7 @@ public function deleteClientRequest($id, string $contentType = self::contentType $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -1464,7 +1464,7 @@ public function getClientsRequest(string $contentType = self::contentTypes['getC $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1798,7 +1798,7 @@ public function postClientRequest($create_client_dto, string $contentType = self $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -2152,7 +2152,7 @@ public function putClientRequest($id, $update_client_dto, string $contentType = $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -2487,7 +2487,7 @@ public function deleteContributorRequest($id, string $contentType = self::conten $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -2802,7 +2802,7 @@ public function deleteMyselfRequest(string $contentType = self::contentTypes['de $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -3094,7 +3094,7 @@ public function getContributorsRequest(string $contentType = self::contentTypes[ $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -3428,7 +3428,7 @@ public function postContributorRequest($assign_contributor_dto, string $contentT $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -3720,7 +3720,7 @@ public function getImageRequest(string $contentType = self::contentTypes['getIma $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -4055,7 +4055,7 @@ public function deleteLanguageRequest($language, string $contentType = self::con $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -4347,7 +4347,7 @@ public function getLanguagesRequest(string $contentType = self::contentTypes['ge $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -4681,7 +4681,7 @@ public function postLanguageRequest($add_language_dto, string $contentType = sel $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -5035,7 +5035,7 @@ public function putLanguageRequest($language, $update_language_dto, string $cont $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -5370,7 +5370,7 @@ public function deleteRoleRequest($role_name, string $contentType = self::conten $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -5662,7 +5662,7 @@ public function getPermissionsRequest(string $contentType = self::contentTypes[' $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -5954,7 +5954,7 @@ public function getRolesRequest(string $contentType = self::contentTypes['getRol $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -6288,7 +6288,7 @@ public function postRoleRequest($add_role_dto, string $contentType = self::conte $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -6642,7 +6642,7 @@ public function putRoleRequest($role_name, $update_role_dto, string $contentType $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -6934,7 +6934,7 @@ public function getSettingsRequest(string $contentType = self::contentTypes['get $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -7268,7 +7268,7 @@ public function putSettingsRequest($update_app_settings_dto, string $contentType $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -7603,7 +7603,7 @@ public function deleteWorkflowRequest($id, string $contentType = self::contentTy $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -7895,7 +7895,7 @@ public function getWorkflowsRequest(string $contentType = self::contentTypes['ge $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -8229,7 +8229,7 @@ public function postWorkflowRequest($add_workflow_dto, string $contentType = sel $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -8583,7 +8583,7 @@ public function putWorkflowRequest($id, $update_workflow_dto, string $contentTyp $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -8814,7 +8814,7 @@ public function deleteAppRequest(string $contentType = self::contentTypes['delet $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -9129,7 +9129,7 @@ public function deleteImageRequest(string $contentType = self::contentTypes['del $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -9421,7 +9421,7 @@ public function getAppRequest(string $contentType = self::contentTypes['getApp'] $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -9713,7 +9713,7 @@ public function getAppsRequest(string $contentType = self::contentTypes['getApps $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -10025,7 +10025,7 @@ public function getTeamAppsRequest($team, string $contentType = self::contentTyp $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -10382,7 +10382,7 @@ public function postAppRequest($create_app_dto, string $contentType = self::cont $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -10716,7 +10716,7 @@ public function putAppRequest($update_app_dto, string $contentType = self::conte $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -11050,7 +11050,7 @@ public function putAppTeamRequest($transfer_to_team_dto, string $contentType = s $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -11403,7 +11403,7 @@ public function uploadImageRequest($file = null, $url = null, $name = null, stri $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', diff --git a/lib/Api/AssetsApi.php b/lib/Api/AssetsApi.php index cb94d37..f71175f 100644 --- a/lib/Api/AssetsApi.php +++ b/lib/Api/AssetsApi.php @@ -705,7 +705,7 @@ public function getAssetContentRequest($id, $version = null, $cache = null, $dow $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1242,7 +1242,7 @@ public function getAssetContentBySlugRequest($id_or_slug, $version = null, $cach $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1493,7 +1493,7 @@ public function deleteAssetFolderRequest($id, string $contentType = self::conten $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -1815,7 +1815,7 @@ public function getAssetFoldersRequest($parent_id = null, $scope = null, string $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -2149,7 +2149,7 @@ public function postAssetFolderRequest($create_asset_folder_dto, string $content $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -2503,7 +2503,7 @@ public function putAssetFolderRequest($id, $rename_asset_folder_dto, string $con $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -2857,7 +2857,7 @@ public function putAssetFolderParentRequest($id, $move_asset_folder_dto, string $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -3191,7 +3191,7 @@ public function bulkUpdateAssetsRequest($bulk_update_assets_dto, string $content $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -3472,7 +3472,7 @@ public function deleteAssetRequest($id, $check_referrers = null, $permanent = nu $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -3784,7 +3784,7 @@ public function getAssetRequest($id, string $contentType = self::contentTypes['g $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -4201,7 +4201,7 @@ public function getAssetsRequest($parent_id = null, $ids = null, $q = null, $top $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -4555,7 +4555,7 @@ public function getAssetsPostRequest($query_dto, $no_total = null, $no_slow_tota $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -4847,7 +4847,7 @@ public function getTagsRequest(string $contentType = self::contentTypes['getTags $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -5268,7 +5268,7 @@ public function postAssetRequest($parent_id = null, $id = null, $duplicate = nul $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -5694,7 +5694,7 @@ public function postUpsertAssetRequest($id, $parent_id = null, $duplicate = null $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -6048,7 +6048,7 @@ public function putAssetRequest($id, $annotate_asset_dto, string $contentType = $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -6444,7 +6444,7 @@ public function putAssetContentRequest($id, $file = null, $url = null, $name = n $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -6798,7 +6798,7 @@ public function putAssetParentRequest($id, $move_asset_dto, string $contentType $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -7152,7 +7152,7 @@ public function putTagRequest($name, $rename_tag_dto, string $contentType = self $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', diff --git a/lib/Api/BackupsApi.php b/lib/Api/BackupsApi.php index 39c440e..45dbec7 100644 --- a/lib/Api/BackupsApi.php +++ b/lib/Api/BackupsApi.php @@ -444,7 +444,7 @@ public function getBackupContentRequest($id, string $contentType = self::content $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -791,7 +791,7 @@ public function getBackupContentV2Request($id, $app_id = null, $app = '', string $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1047,7 +1047,7 @@ public function deleteBackupRequest($id, string $contentType = self::contentType $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -1344,7 +1344,7 @@ public function getBackupsRequest(string $contentType = self::contentTypes['getB $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1575,7 +1575,7 @@ public function postBackupRequest(string $contentType = self::contentTypes['post $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -1867,7 +1867,7 @@ public function getRestoreJobRequest(string $contentType = self::contentTypes['g $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -2117,7 +2117,7 @@ public function postRestoreJobRequest($restore_request_dto, string $contentType $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', diff --git a/lib/Api/ContentsApi.php b/lib/Api/ContentsApi.php index ac78caa..407c1f8 100644 --- a/lib/Api/ContentsApi.php +++ b/lib/Api/ContentsApi.php @@ -538,7 +538,7 @@ public function bulkUpdateContentsRequest($schema, $bulk_update_contents_dto, st $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -913,7 +913,7 @@ public function createDraftRequest($schema, $id, $unpublished = null, $languages $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -1214,7 +1214,7 @@ public function deleteContentRequest($schema, $id, $check_referrers = null, $per $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -1589,7 +1589,7 @@ public function deleteContentStatusRequest($schema, $id, $unpublished = null, $l $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -1964,7 +1964,7 @@ public function deleteVersionRequest($schema, $id, $unpublished = null, $languag $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -2351,7 +2351,7 @@ public function getContentRequest($schema, $id, $version = -2, $fields = null, $ $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -2622,7 +2622,7 @@ public function getContentValidityRequest($schema, $id, string $contentType = se $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -2999,7 +2999,7 @@ public function getContentVersionRequest($schema, $id, $version, $unpublished = $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -3476,7 +3476,7 @@ public function getContentsRequest($schema, $ids = null, $q = null, $search = nu $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -3890,7 +3890,7 @@ public function getContentsPostRequest($schema, $query_dto, $fields = null, $fla $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -4297,7 +4297,7 @@ public function getReferencesRequest($schema, $id, $q = null, $fields = null, $f $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -4704,7 +4704,7 @@ public function getReferencingRequest($schema, $id, $q = null, $fields = null, $ $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -5098,7 +5098,7 @@ public function patchContentRequest($schema, $id, $request_body, $unpublished = $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PATCH', @@ -5517,7 +5517,7 @@ public function postContentRequest($schema, $request_body, $status = null, $id = $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -5876,7 +5876,7 @@ public function postContentsRequest($schema, $import_contents_dto, string $conte $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -6330,7 +6330,7 @@ public function postUpsertContentRequest($schema, $id, $request_body, $status = $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -6739,7 +6739,7 @@ public function putContentRequest($schema, $id, $request_body, $enrich_defaults $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -7129,7 +7129,7 @@ public function putContentDefaultsRequest($schema, $id, $enrich_required_fields $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -7523,7 +7523,7 @@ public function putContentStatusRequest($schema, $id, $change_status_dto, $unpub $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -7872,7 +7872,7 @@ public function bulkUpdateAllContentsRequest($bulk_update_contents_dto, $schema $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -8314,7 +8314,7 @@ public function getAllContentsRequest($ids = null, $schedule_from = null, $sched $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -8708,7 +8708,7 @@ public function getAllContentsPostRequest($all_contents_by_post_dto, $fields = n $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -9055,7 +9055,7 @@ public function getGraphQLRequest($the_query_string = null, $variables = null, $ $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -9402,7 +9402,7 @@ public function getGraphQLBatchRequest($the_query_string = null, $variables = nu $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -9740,7 +9740,7 @@ public function postGraphQLRequest($unpublished = null, $body = null, string $co $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -10078,7 +10078,7 @@ public function postGraphQLBatchRequest($unpublished = null, $body = null, strin $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', diff --git a/lib/Api/DiagnosticsApi.php b/lib/Api/DiagnosticsApi.php index 9b81d8d..6b41622 100644 --- a/lib/Api/DiagnosticsApi.php +++ b/lib/Api/DiagnosticsApi.php @@ -343,7 +343,7 @@ public function getDumpRequest(string $contentType = self::contentTypes['getDump $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -574,7 +574,7 @@ public function getGCDumpRequest(string $contentType = self::contentTypes['getGC $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', diff --git a/lib/Api/EventConsumersApi.php b/lib/Api/EventConsumersApi.php index 7052139..a48211c 100644 --- a/lib/Api/EventConsumersApi.php +++ b/lib/Api/EventConsumersApi.php @@ -410,7 +410,7 @@ public function getEventConsumersRequest(string $contentType = self::contentType $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -745,7 +745,7 @@ public function resetEventConsumerRequest($consumer_name, string $contentType = $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -1080,7 +1080,7 @@ public function startEventConsumerRequest($consumer_name, string $contentType = $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -1415,7 +1415,7 @@ public function stopEventConsumerRequest($consumer_name, string $contentType = s $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', diff --git a/lib/Api/HistoryApi.php b/lib/Api/HistoryApi.php index 8ad03ff..069e6a6 100644 --- a/lib/Api/HistoryApi.php +++ b/lib/Api/HistoryApi.php @@ -419,7 +419,7 @@ public function getAppHistoryRequest($channel = null, string $contentType = self $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -746,7 +746,7 @@ public function getTeamHistoryRequest($team, $channel = null, string $contentTyp $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', diff --git a/lib/Api/JobsApi.php b/lib/Api/JobsApi.php index abd2798..770b2e3 100644 --- a/lib/Api/JobsApi.php +++ b/lib/Api/JobsApi.php @@ -442,7 +442,7 @@ public function getJobContentRequest($id, $app_id = null, string $contentType = $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -693,7 +693,7 @@ public function deleteJobRequest($id, string $contentType = self::contentTypes[' $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -985,7 +985,7 @@ public function getJobsRequest(string $contentType = self::contentTypes['getJobs $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', diff --git a/lib/Api/LanguagesApi.php b/lib/Api/LanguagesApi.php index 7d2884b..84bc57e 100644 --- a/lib/Api/LanguagesApi.php +++ b/lib/Api/LanguagesApi.php @@ -401,7 +401,7 @@ public function getLanguagesRequest(string $contentType = self::contentTypes['ge $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', diff --git a/lib/Api/NewsApi.php b/lib/Api/NewsApi.php index fa6b979..85c59e4 100644 --- a/lib/Api/NewsApi.php +++ b/lib/Api/NewsApi.php @@ -416,7 +416,7 @@ public function getNewsRequest($version = 0, string $contentType = self::content $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', diff --git a/lib/Api/PingApi.php b/lib/Api/PingApi.php index 3df2add..3cd0ae6 100644 --- a/lib/Api/PingApi.php +++ b/lib/Api/PingApi.php @@ -338,7 +338,7 @@ public function getAppPingRequest(string $contentType = self::contentTypes['getA $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -630,7 +630,7 @@ public function getInfoRequest(string $contentType = self::contentTypes['getInfo $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -853,7 +853,7 @@ public function getPingRequest(string $contentType = self::contentTypes['getPing $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', diff --git a/lib/Api/PlansApi.php b/lib/Api/PlansApi.php index 9235039..c94f8c2 100644 --- a/lib/Api/PlansApi.php +++ b/lib/Api/PlansApi.php @@ -410,7 +410,7 @@ public function getPlansRequest(string $contentType = self::contentTypes['getPla $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -744,7 +744,7 @@ public function putPlanRequest($change_plan_dto, string $contentType = self::con $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -1056,7 +1056,7 @@ public function getTeamPlansRequest($team, string $contentType = self::contentTy $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1410,7 +1410,7 @@ public function putTeamPlanRequest($team, $change_plan_dto, string $contentType $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', diff --git a/lib/Api/RulesApi.php b/lib/Api/RulesApi.php index a4b8352..96f199a 100644 --- a/lib/Api/RulesApi.php +++ b/lib/Api/RulesApi.php @@ -414,7 +414,7 @@ public function deleteEventRequest($id, string $contentType = self::contentTypes $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -645,7 +645,7 @@ public function deleteEventsRequest(string $contentType = self::contentTypes['de $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -896,7 +896,7 @@ public function deleteRuleRequest($id, string $contentType = self::contentTypes[ $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -1147,7 +1147,7 @@ public function deleteRuleEventsRequest($id, string $contentType = self::content $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -1378,7 +1378,7 @@ public function deleteRuleRunRequest(string $contentType = self::contentTypes['d $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -1713,7 +1713,7 @@ public function disableRuleRequest($id, string $contentType = self::contentTypes $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -2048,7 +2048,7 @@ public function enableRuleRequest($id, string $contentType = self::contentTypes[ $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -2340,7 +2340,7 @@ public function getActionsRequest(string $contentType = self::contentTypes['getA $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -2652,7 +2652,7 @@ public function getEventSchemaRequest($type, string $contentType = self::content $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -2944,7 +2944,7 @@ public function getEventTypesRequest(string $contentType = self::contentTypes['g $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -3281,7 +3281,7 @@ public function getEventsRequest($rule_id = null, $skip = 0, $take = 20, string $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -3573,7 +3573,7 @@ public function getRulesRequest(string $contentType = self::contentTypes['getRul $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -3907,7 +3907,7 @@ public function postRuleRequest($create_rule_dto, string $contentType = self::co $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -4158,7 +4158,7 @@ public function putEventRequest($id, string $contentType = self::contentTypes['p $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -4512,7 +4512,7 @@ public function putRuleRequest($id, $update_rule_dto, string $contentType = self $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -4778,7 +4778,7 @@ public function putRuleRunRequest($id, $from_snapshots = false, string $contentT $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -5090,7 +5090,7 @@ public function simulateGETRequest($id, string $contentType = self::contentTypes $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -5424,7 +5424,7 @@ public function simulatePOSTRequest($create_rule_dto, string $contentType = self $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -5675,7 +5675,7 @@ public function triggerRuleRequest($id, string $contentType = self::contentTypes $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', diff --git a/lib/Api/SchemasApi.php b/lib/Api/SchemasApi.php index 0ac5bf0..cd94c08 100644 --- a/lib/Api/SchemasApi.php +++ b/lib/Api/SchemasApi.php @@ -554,7 +554,7 @@ public function deleteFieldRequest($schema, $id, string $contentType = self::con $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -929,7 +929,7 @@ public function deleteNestedFieldRequest($schema, $parent_id, $id, string $conte $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -1284,7 +1284,7 @@ public function disableFieldRequest($schema, $id, string $contentType = self::co $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -1659,7 +1659,7 @@ public function disableNestedFieldRequest($schema, $parent_id, $id, string $cont $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -2014,7 +2014,7 @@ public function enableFieldRequest($schema, $id, string $contentType = self::con $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -2389,7 +2389,7 @@ public function enableNestedFieldRequest($schema, $parent_id, $id, string $conte $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -2744,7 +2744,7 @@ public function hideFieldRequest($schema, $id, string $contentType = self::conte $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -3119,7 +3119,7 @@ public function hideNestedFieldRequest($schema, $parent_id, $id, string $content $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -3474,7 +3474,7 @@ public function lockFieldRequest($schema, $id, string $contentType = self::conte $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -3849,7 +3849,7 @@ public function lockNestedFieldRequest($schema, $parent_id, $id, string $content $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -4226,7 +4226,7 @@ public function postFieldRequest($schema, $add_field_dto, string $contentType = $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -4623,7 +4623,7 @@ public function postNestedFieldRequest($schema, $parent_id, $add_field_dto, stri $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -4997,7 +4997,7 @@ public function putFieldRequest($schema, $id, $update_field_dto, string $content $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -5391,7 +5391,7 @@ public function putNestedFieldRequest($schema, $parent_id, $id, $update_field_dt $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -5765,7 +5765,7 @@ public function putNestedFieldOrderingRequest($schema, $parent_id, $reorder_fiel $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -6119,7 +6119,7 @@ public function putSchemaFieldOrderingRequest($schema, $reorder_fields_dto, stri $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -6473,7 +6473,7 @@ public function putSchemaUIFieldsRequest($schema, $configure_ui_fields_dto, stri $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -6828,7 +6828,7 @@ public function showFieldRequest($schema, $id, string $contentType = self::conte $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -7203,7 +7203,7 @@ public function showNestedFieldRequest($schema, $parent_id, $id, string $content $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -7454,7 +7454,7 @@ public function deleteSchemaRequest($schema, string $contentType = self::content $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -7766,7 +7766,7 @@ public function getSchemaRequest($schema, string $contentType = self::contentTyp $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -8058,7 +8058,7 @@ public function getSchemasRequest(string $contentType = self::contentTypes['getS $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -8415,7 +8415,7 @@ public function postSchemaRequest($create_schema_dto, string $contentType = self $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -8750,7 +8750,7 @@ public function publishSchemaRequest($schema, string $contentType = self::conten $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -9104,7 +9104,7 @@ public function putCategoryRequest($schema, $change_category_dto, string $conten $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -9458,7 +9458,7 @@ public function putPreviewUrlsRequest($schema, $request_body, string $contentTyp $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -9812,7 +9812,7 @@ public function putRulesRequest($schema, $configure_field_rules_dto, string $con $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -10166,7 +10166,7 @@ public function putSchemaRequest($schema, $update_schema_dto, string $contentTyp $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -10520,7 +10520,7 @@ public function putSchemaSyncRequest($schema, $synchronize_schema_dto, string $c $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -10874,7 +10874,7 @@ public function putScriptsRequest($schema, $schema_scripts_dto, string $contentT $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -11209,7 +11209,7 @@ public function unpublishSchemaRequest($schema, string $contentType = self::cont $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', diff --git a/lib/Api/SearchApi.php b/lib/Api/SearchApi.php index 88cc75d..56be64d 100644 --- a/lib/Api/SearchApi.php +++ b/lib/Api/SearchApi.php @@ -416,7 +416,7 @@ public function getSearchResultsRequest($query = null, string $contentType = sel $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', diff --git a/lib/Api/StatisticsApi.php b/lib/Api/StatisticsApi.php index 42e0a68..7e001dc 100644 --- a/lib/Api/StatisticsApi.php +++ b/lib/Api/StatisticsApi.php @@ -419,7 +419,7 @@ public function getCurrentStorageSizeRequest(string $contentType = self::content $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -711,7 +711,7 @@ public function getLogRequest(string $contentType = self::contentTypes['getLog'] $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1043,7 +1043,7 @@ public function getStorageSizesRequest($from_date, $to_date, string $contentType $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1395,7 +1395,7 @@ public function getStorageSizesForTeamRequest($team, $from_date, $to_date, strin $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1707,7 +1707,7 @@ public function getTeamCurrentStorageSizeForTeamRequest($team, string $contentTy $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -2039,7 +2039,7 @@ public function getUsagesRequest($from_date, $to_date, string $contentType = sel $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -2391,7 +2391,7 @@ public function getUsagesForTeamRequest($team, $from_date, $to_date, string $con $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', diff --git a/lib/Api/TeamsApi.php b/lib/Api/TeamsApi.php index a126079..8dec22a 100644 --- a/lib/Api/TeamsApi.php +++ b/lib/Api/TeamsApi.php @@ -494,7 +494,7 @@ public function deleteContributorRequest($team, $id, string $contentType = self: $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -829,7 +829,7 @@ public function deleteMyselfRequest($team, string $contentType = self::contentTy $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -1141,7 +1141,7 @@ public function getContributorsRequest($team, string $contentType = self::conten $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1495,7 +1495,7 @@ public function postContributorRequest($team, $assign_contributor_dto, string $c $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -1746,7 +1746,7 @@ public function deleteTeamRequest($team, string $contentType = self::contentType $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -2058,7 +2058,7 @@ public function getTeamRequest($team, string $contentType = self::contentTypes[' $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -2370,7 +2370,7 @@ public function getTeamAuthRequest($team, string $contentType = self::contentTyp $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -2662,7 +2662,7 @@ public function getTeamsRequest(string $contentType = self::contentTypes['getTea $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -2996,7 +2996,7 @@ public function postTeamRequest($create_team_dto, string $contentType = self::co $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -3350,7 +3350,7 @@ public function putTeamRequest($team, $update_team_dto, string $contentType = se $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -3704,7 +3704,7 @@ public function putTeamAuthRequest($team, $auth_scheme_value_dto, string $conten $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', diff --git a/lib/Api/TemplatesApi.php b/lib/Api/TemplatesApi.php index 0806dc7..66c4d3b 100644 --- a/lib/Api/TemplatesApi.php +++ b/lib/Api/TemplatesApi.php @@ -424,7 +424,7 @@ public function getTemplateRequest($name, string $contentType = self::contentTyp $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -716,7 +716,7 @@ public function getTemplatesRequest(string $contentType = self::contentTypes['ge $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', diff --git a/lib/Api/TranslationsApi.php b/lib/Api/TranslationsApi.php index 50070cc..c4d04f3 100644 --- a/lib/Api/TranslationsApi.php +++ b/lib/Api/TranslationsApi.php @@ -443,7 +443,7 @@ public function postTranslationRequest($translate_dto, string $contentType = sel $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', diff --git a/lib/Api/UserManagementApi.php b/lib/Api/UserManagementApi.php index c2bba32..f72ad40 100644 --- a/lib/Api/UserManagementApi.php +++ b/lib/Api/UserManagementApi.php @@ -386,7 +386,7 @@ public function deleteUserRequest($id, string $contentType = self::contentTypes[ $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'DELETE', @@ -698,7 +698,7 @@ public function getUserRequest($id, string $contentType = self::contentTypes['ge $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1035,7 +1035,7 @@ public function getUsersRequest($query = null, $skip = 0, $take = 10, string $co $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1393,7 +1393,7 @@ public function lockUserRequest($id, string $contentType = self::contentTypes['l $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -1727,7 +1727,7 @@ public function postUserRequest($create_user_dto, string $contentType = self::co $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', @@ -2081,7 +2081,7 @@ public function putUserRequest($id, $update_user_dto, string $contentType = self $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', @@ -2439,7 +2439,7 @@ public function unlockUserRequest($id, string $contentType = self::contentTypes[ $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'PUT', diff --git a/lib/Api/UsersApi.php b/lib/Api/UsersApi.php index 4a6d987..5c6519e 100644 --- a/lib/Api/UsersApi.php +++ b/lib/Api/UsersApi.php @@ -433,7 +433,7 @@ public function getUserRequest($id, string $contentType = self::contentTypes['ge $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -745,7 +745,7 @@ public function getUserPictureRequest($id, string $contentType = self::contentTy $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1037,7 +1037,7 @@ public function getUserResourcesRequest(string $contentType = self::contentTypes $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1344,7 +1344,7 @@ public function getUsersRequest($query = null, string $contentType = self::conte $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'GET', @@ -1594,7 +1594,7 @@ public function postUserRequest($update_profile_dto, string $contentType = self: $headers ); - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( 'POST', diff --git a/lib/Configuration.php b/lib/Configuration.php index 0298cf1..4818446 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -77,11 +77,11 @@ class Configuration protected $booleanFormatForQueryString = self::BOOLEAN_FORMAT_STRING; /** - * The host + * The URL * * @var string */ - protected $host = 'https://cloud.squidex.io'; + protected $url = 'https://cloud.squidex.io'; /** * The timeout in seconds @@ -268,30 +268,30 @@ public function getBooleanFormatForQueryString(): string } /** - * Sets the host + * Sets the url * - * @param string $host Host + * @param string $url URL * * @return $this */ - public function setHost($host) + public function setUrl($url) { - if (!is_string($host)) { - throw new \InvalidArgumentException('Host must be a string.'); + if (!is_string($url)) { + throw new \InvalidArgumentException('Url must be a string.'); } - $this->host = $host; + $this->url = $url; return $this; } /** - * Gets the host + * Gets the url * - * @return string Host + * @return string URL */ - public function getHost() + public function getUrl() { - return $this->host; + return $this->url; } /** diff --git a/lib/SquidexClient.php b/lib/SquidexClient.php index 618957d..8bc1869 100644 --- a/lib/SquidexClient.php +++ b/lib/SquidexClient.php @@ -258,7 +258,7 @@ function requestToken($config) $acquireToken = function () use ($clientId, $clientSecret, $config, $requestClient) { - $request = $requestClient->request('POST', $config->getHost() . '/identity-server/connect/token', [ + $request = $requestClient->request('POST', $config->getUrl() . '/identity-server/connect/token', [ 'form_params' => [ 'grant_type' => 'client_credentials', 'client_id' => $clientId, diff --git a/templates/Configuration.mustache b/templates/Configuration.mustache index ccaf2c6..e7c55be 100644 --- a/templates/Configuration.mustache +++ b/templates/Configuration.mustache @@ -68,11 +68,11 @@ class Configuration protected $booleanFormatForQueryString = self::BOOLEAN_FORMAT_STRING; /** - * The host + * The URL * * @var string */ - protected $host = '{{basePath}}'; + protected $url = '{{basePath}}'; /** * The timeout in seconds @@ -259,30 +259,30 @@ class Configuration } /** - * Sets the host + * Sets the url * - * @param string $host Host + * @param string $url URL * * @return $this */ - public function setHost($host) + public function setUrl($url) { if (!is_string($host)) { - throw new \InvalidArgumentException('Host must be a string.'); + throw new \InvalidArgumentException('Url must be a string.'); } - $this->host = $host; + $this->url = $url; return $this; } /** - * Gets the host + * Gets the url * - * @return string Host + * @return string URL */ - public function getHost() + public function getUrl() { - return $this->host; + return $this->url; } /** diff --git a/templates/api.mustache b/templates/api.mustache index 860d883..cf65750 100644 --- a/templates/api.mustache +++ b/templates/api.mustache @@ -764,7 +764,7 @@ use {{invokerPackage}}\ObjectSerializer; $operationHost = Configuration::getHostString($hostSettings, $hostIndex, $variables); {{/servers.0}} {{^servers.0}} - $operationHost = $this->config->getHost(); + $operationHost = $this->config->getUrl(); {{/servers.0}} $query = ObjectSerializer::buildQuery($queryParams); return new Request( diff --git a/tests/TestBase.php b/tests/TestBase.php index 25465b6..8c92886 100644 --- a/tests/TestBase.php +++ b/tests/TestBase.php @@ -20,13 +20,13 @@ public static function setUpBeforeClass(): void $appName = $client->getConfig()->getAppName(); $clientId = $client->getConfig()->getClientId(); $clientSecret = $client->getConfig()->getClientSecret(); - $host = $client->getConfig()->getHost(); + $url = $client->getConfig()->getUrl(); echo "SETUP\n"; echo "Using =$appName\n"; echo "Using =$clientId\n"; echo "Using =$clientSecret\n"; - echo "Using =$host\n"; + echo "Using =$host\n"; self::waitForServer(); diff --git a/tests/TestUtils.php b/tests/TestUtils.php index d03e16e..4014ea8 100644 --- a/tests/TestUtils.php +++ b/tests/TestUtils.php @@ -16,7 +16,7 @@ public static function getClient() { $appName = getenv('CONFIG__APP__NAME'); $clientId = getenv('CONFIG__CLIENT__ID'); $clientSecret = getenv('CONFIG__CLIENT__SECRET'); - $host = getenv('CONFIG__SERVER__URL'); + $url = getenv('CONFIG__SERVER__URL'); if (!isset($appName) || $appName == '') { $appName = 'integration-tests'; @@ -30,15 +30,15 @@ public static function getClient() { $clientSecret = 'xeLd6jFxqbXJrfmNLlO2j1apagGGGSyZJhFnIuHp4I0='; } - if (!isset($host) || $host == '') { - $host = 'https://localhost:5001'; + if (!isset($url) || $url == '') { + $url = 'https://localhost:5001'; } $config = new Configuration(); - $config->setHost($host); + $config->setAppName($appName); $config->setClientId($clientId); $config->setClientSecret($clientSecret); - $config->setAppName($appName); + $config->setUrl($url); $config->setIgnoreCertificates(true); self::$singleClient = new ClientProvider(new SquidexClient($config), $config);