From 8cd17ed33e447f6af8adcda2e6bb3269e2587ee8 Mon Sep 17 00:00:00 2001 From: Carsten Karbach <c.karbach@fz-juelich.de> Date: Mon, 22 Jan 2018 13:20:35 +0100 Subject: [PATCH] Fix namespace gcsjardapi -> gcsjardsapiclient --- docs/Api/FilesApi.md | 6 +++--- lib/Api/FilesApi.php | 34 +++++++++++++++++----------------- lib/ApiClient.php | 12 ++++++------ lib/ApiException.php | 6 +++--- lib/Configuration.php | 12 ++++++------ lib/ObjectSerializer.php | 8 ++++---- test/Api/FilesApiTest.php | 14 +++++++------- 7 files changed, 46 insertions(+), 46 deletions(-) diff --git a/docs/Api/FilesApi.md b/docs/Api/FilesApi.md index 19e2bb0..be2e8f3 100644 --- a/docs/Api/FilesApi.md +++ b/docs/Api/FilesApi.md @@ -1,4 +1,4 @@ -# Swagger\Client\FilesApi +# jards\gcsjardsapiclient\Swagger\Client\FilesApi All URIs are relative to *https://localhost* @@ -20,7 +20,7 @@ Download file for an application ID <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new Swagger\Client\Api\FilesApi(); +$api_instance = new jards\gcsjardsapiclient\Swagger\Client\Api\FilesApi(); $appid = 56; // int | ID of the application. $file = "file_example"; // string | Name of requested file. @@ -67,7 +67,7 @@ Get a list of files available for an application ID <?php require_once(__DIR__ . '/vendor/autoload.php'); -$api_instance = new Swagger\Client\Api\FilesApi(); +$api_instance = new jards\gcsjardsapiclient\Swagger\Client\Api\FilesApi(); $appid = 56; // int | ID of the application. try { diff --git a/lib/Api/FilesApi.php b/lib/Api/FilesApi.php index fcc56d7..069132e 100644 --- a/lib/Api/FilesApi.php +++ b/lib/Api/FilesApi.php @@ -4,7 +4,7 @@ * PHP version 5 * * @category Class - * @package jards\gcsjardsapi\Swagger\Client + * @package jards\gcsjardsapiclient\Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -26,18 +26,18 @@ * Do not edit the class manually. */ -namespace jards\gcsjardsapi\Swagger\Client\Api; +namespace jards\gcsjardsapiclient\Swagger\Client\Api; -use \jards\gcsjardsapi\Swagger\Client\ApiClient; -use \jards\gcsjardsapi\Swagger\Client\ApiException; -use \jards\gcsjardsapi\Swagger\Client\Configuration; -use \jards\gcsjardsapi\Swagger\Client\ObjectSerializer; +use \jards\gcsjardsapiclient\Swagger\Client\ApiClient; +use \jards\gcsjardsapiclient\Swagger\Client\ApiException; +use \jards\gcsjardsapiclient\Swagger\Client\Configuration; +use \jards\gcsjardsapiclient\Swagger\Client\ObjectSerializer; /** * FilesApi Class Doc Comment * * @category Class - * @package jards\gcsjardsapi\Swagger\Client + * @package jards\gcsjardsapiclient\Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -46,16 +46,16 @@ class FilesApi /** * API Client * - * @var \jards\gcsjardsapi\Swagger\Client\ApiClient instance of the ApiClient + * @var \jards\gcsjardsapiclient\Swagger\Client\ApiClient instance of the ApiClient */ protected $apiClient; /** * Constructor * - * @param \jards\gcsjardsapi\Swagger\Client\ApiClient|null $apiClient The api client to use + * @param \jards\gcsjardsapiclient\Swagger\Client\ApiClient|null $apiClient The api client to use */ - public function __construct(\jards\gcsjardsapi\Swagger\Client\ApiClient $apiClient = null) + public function __construct(\jards\gcsjardsapiclient\Swagger\Client\ApiClient $apiClient = null) { if ($apiClient === null) { $apiClient = new ApiClient(); @@ -67,7 +67,7 @@ class FilesApi /** * Get API client * - * @return \jards\gcsjardsapi\Swagger\Client\ApiClient get the API client + * @return \jards\gcsjardsapiclient\Swagger\Client\ApiClient get the API client */ public function getApiClient() { @@ -77,11 +77,11 @@ class FilesApi /** * Set the API client * - * @param \jards\gcsjardsapi\Swagger\Client\ApiClient $apiClient set the API client + * @param \jards\gcsjardsapiclient\Swagger\Client\ApiClient $apiClient set the API client * * @return FilesApi */ - public function setApiClient(\jards\gcsjardsapi\Swagger\Client\ApiClient $apiClient) + public function setApiClient(\jards\gcsjardsapiclient\Swagger\Client\ApiClient $apiClient) { $this->apiClient = $apiClient; return $this; @@ -92,7 +92,7 @@ class FilesApi * * @param int $appid ID of the application. (required) * @param string $file Name of requested file. (required) - * @throws \jards\gcsjardsapi\Swagger\Client\ApiException on non-2xx response + * @throws \jards\gcsjardsapiclient\Swagger\Client\ApiException on non-2xx response * @return \SplFileObject */ public function filesAppidFileGet($appid, $file) @@ -106,7 +106,7 @@ class FilesApi * * @param int $appid ID of the application. (required) * @param string $file Name of requested file. (required) - * @throws \jards\gcsjardsapi\Swagger\Client\ApiException on non-2xx response + * @throws \jards\gcsjardsapiclient\Swagger\Client\ApiException on non-2xx response * @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings) */ public function filesAppidFileGetWithHttpInfo($appid, $file) @@ -187,7 +187,7 @@ class FilesApi * Operation filesAppidGet * * @param int $appid ID of the application. (required) - * @throws \jards\gcsjardsapi\Swagger\Client\ApiException on non-2xx response + * @throws \jards\gcsjardsapiclient\Swagger\Client\ApiException on non-2xx response * @return string[] */ public function filesAppidGet($appid) @@ -200,7 +200,7 @@ class FilesApi * Operation filesAppidGetWithHttpInfo * * @param int $appid ID of the application. (required) - * @throws \jards\gcsjardsapi\Swagger\Client\ApiException on non-2xx response + * @throws \jards\gcsjardsapiclient\Swagger\Client\ApiException on non-2xx response * @return array of string[], HTTP status code, HTTP response headers (array of strings) */ public function filesAppidGetWithHttpInfo($appid) diff --git a/lib/ApiClient.php b/lib/ApiClient.php index 71504ea..7e6786a 100644 --- a/lib/ApiClient.php +++ b/lib/ApiClient.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package jards\gcsjardsapi\Swagger\Client + * @package jards\gcsjardsapiclient\Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,13 +27,13 @@ * Do not edit the class manually. */ -namespace jards\gcsjardsapi\Swagger\Client; +namespace jards\gcsjardsapiclient\Swagger\Client; /** * ApiClient Class Doc Comment * * @category Class - * @package jards\gcsjardsapi\Swagger\Client + * @package jards\gcsjardsapiclient\Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -66,7 +66,7 @@ class ApiClient * * @param Configuration $config config for this ApiClient */ - public function __construct(\jards\gcsjardsapi\Swagger\Client\Configuration $config = null) + public function __construct(\jards\gcsjardsapiclient\Swagger\Client\Configuration $config = null) { if ($config === null) { $config = Configuration::getDefaultConfiguration(); @@ -132,7 +132,7 @@ class ApiClient * @param string $responseType expected response type of the endpoint * @param string $endpointPath path to method endpoint before expanding parameters * - * @throws \jards\gcsjardsapi\Swagger\Client\ApiException on a non 2xx response + * @throws \jards\gcsjardsapiclient\Swagger\Client\ApiException on a non 2xx response * @return mixed */ public function callApi($resourcePath, $method, $queryParams, $postData, $headerParams, $responseType = null, $endpointPath = null) @@ -153,7 +153,7 @@ class ApiClient if ($postData and in_array('Content-Type: application/x-www-form-urlencoded', $headers, true)) { $postData = http_build_query($postData); } elseif ((is_object($postData) or is_array($postData)) and !in_array('Content-Type: multipart/form-data', $headers, true)) { // json model - $postData = json_encode(\jards\gcsjardsapi\Swagger\Client\ObjectSerializer::sanitizeForSerialization($postData)); + $postData = json_encode(\jards\gcsjardsapiclient\Swagger\Client\ObjectSerializer::sanitizeForSerialization($postData)); } $url = $this->config->getHost() . $resourcePath; diff --git a/lib/ApiException.php b/lib/ApiException.php index 7c9bfd3..ecc37b2 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -4,7 +4,7 @@ * PHP version 5 * * @category Class - * @package jards\gcsjardsapi\Swagger\Client + * @package jards\gcsjardsapiclient\Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -26,7 +26,7 @@ * Do not edit the class manually. */ -namespace jards\gcsjardsapi\Swagger\Client; +namespace jards\gcsjardsapiclient\Swagger\Client; use \Exception; @@ -34,7 +34,7 @@ use \Exception; * ApiException Class Doc Comment * * @category Class - * @package jards\gcsjardsapi\Swagger\Client + * @package jards\gcsjardsapiclient\Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ diff --git a/lib/Configuration.php b/lib/Configuration.php index 1576a61..270587f 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -4,7 +4,7 @@ * PHP version 5 * * @category Class - * @package jards\gcsjardsapi\Swagger\Client + * @package jards\gcsjardsapiclient\Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -26,14 +26,14 @@ * Do not edit the class manually. */ -namespace jards\gcsjardsapi\Swagger\Client; +namespace jards\gcsjardsapiclient\Swagger\Client; /** * Configuration Class Doc Comment * PHP version 5 * * @category Class - * @package jards\gcsjardsapi\Swagger\Client + * @package jards\gcsjardsapiclient\Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -733,7 +733,7 @@ class Configuration /** * Set certificate key file * @param string $certificatekey certificate key file - * @return \jards\gcsjardsapi\Swagger\Client\Configuration + * @return \jards\gcsjardsapiclient\Swagger\Client\Configuration */ public function setCertificateKey($certificatekey) { @@ -753,7 +753,7 @@ class Configuration /** * Set passphrase for client certificate key file * @param string $passphrase passphrase for client certificate key file - * @return \jards\gcsjardsapi\Swagger\Client\Configuration + * @return \jards\gcsjardsapiclient\Swagger\Client\Configuration */ public function setCertificatePassphrase($passphrase) { @@ -803,7 +803,7 @@ class Configuration */ public static function toDebugReport() { - $report = 'PHP SDK (jards\gcsjardsapi\Swagger\Client) Debug Report:' . PHP_EOL; + $report = 'PHP SDK (jards\gcsjardsapiclient\Swagger\Client) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' OpenAPI Spec Version: 0.0.1' . PHP_EOL; diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index 1ca7565..db5ce1a 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -5,7 +5,7 @@ * PHP version 5 * * @category Class - * @package jards\gcsjardsapi\Swagger\Client + * @package jards\gcsjardsapiclient\Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -27,13 +27,13 @@ * Do not edit the class manually. */ -namespace jards\gcsjardsapi\Swagger\Client; +namespace jards\gcsjardsapiclient\Swagger\Client; /** * ObjectSerializer Class Doc Comment * * @category Class - * @package jards\gcsjardsapi\Swagger\Client + * @package jards\gcsjardsapiclient\Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -288,7 +288,7 @@ class ObjectSerializer // If a discriminator is defined and points to a valid subclass, use it. $discriminator = $class::DISCRIMINATOR; if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { - $subclass = '\jards\gcsjardsapi\Swagger\Client\Model\\' . $data->{$discriminator}; + $subclass = '\jards\gcsjardsapiclient\Swagger\Client\Model\\' . $data->{$discriminator}; if (is_subclass_of($subclass, $class)) { $class = $subclass; } diff --git a/test/Api/FilesApiTest.php b/test/Api/FilesApiTest.php index e377e35..544bbb7 100644 --- a/test/Api/FilesApiTest.php +++ b/test/Api/FilesApiTest.php @@ -4,7 +4,7 @@ * PHP version 5 * * @category Class - * @package jards\gcsjardsapi\Swagger\Client + * @package jards\gcsjardsapiclient\Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ @@ -26,18 +26,18 @@ * Please update the test case below to test the endpoint. */ -namespace jards\gcsjardsapi\Swagger\Client; +namespace jards\gcsjardsapiclient\Swagger\Client; -use \jards\gcsjardsapi\Swagger\Client\Configuration; -use \jards\gcsjardsapi\Swagger\Client\ApiClient; -use \jards\gcsjardsapi\Swagger\Client\ApiException; -use \jards\gcsjardsapi\Swagger\Client\ObjectSerializer; +use \jards\gcsjardsapiclient\Swagger\Client\Configuration; +use \jards\gcsjardsapiclient\Swagger\Client\ApiClient; +use \jards\gcsjardsapiclient\Swagger\Client\ApiException; +use \jards\gcsjardsapiclient\Swagger\Client\ObjectSerializer; /** * FilesApiTest Class Doc Comment * * @category Class - * @package jards\gcsjardsapi\Swagger\Client + * @package jards\gcsjardsapiclient\Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ -- GitLab