diff --git a/README.md b/README.md index 55f90b9..05a17d7 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ REST API used for SCORM Cloud integrations. This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 2.0 -- Package version: 2.0.0 +- Package version: 2.1.0 - Build package: io.swagger.codegen.languages.PhpClientCodegen ## Requirements @@ -27,7 +27,8 @@ $response = $dispatch_api->updateDispatchesWithHttpInfo(new \RusticiSoftware\Clo print($response[2]['X-Total-Count'][0]) ``` -## Release 2.0.X: +## Changelog +### Release 2.0.X: - Boolean parameters no longer need to be passed as strings to parse correctly. - The service class' constructor no longer requires passing of a configuration object. If no config object is passed, the default will automatically be used instead. diff --git a/composer.json b/composer.json index 6e55e02..dfe8235 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "rustici-software/scormcloud-api-v2-client-php", - "version": "2.0.0", + "version": "2.1.0", "description": "", "keywords": [ "scorm", diff --git a/src/Api/AboutApi.php b/src/Api/AboutApi.php index 7c491a0..ee3d1df 100644 --- a/src/Api/AboutApi.php +++ b/src/Api/AboutApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Api/ApplicationManagementApi.php b/src/Api/ApplicationManagementApi.php index e983b5b..9ece1d2 100644 --- a/src/Api/ApplicationManagementApi.php +++ b/src/Api/ApplicationManagementApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Api/AuthenticationApi.php b/src/Api/AuthenticationApi.php index 9b072ef..dd7c966 100644 --- a/src/Api/AuthenticationApi.php +++ b/src/Api/AuthenticationApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Api/ContentConnectorsApi.php b/src/Api/ContentConnectorsApi.php new file mode 100644 index 0000000..740dbf6 --- /dev/null +++ b/src/Api/ContentConnectorsApi.php @@ -0,0 +1,1181 @@ +client = $client ?: new Client(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation createConnector + * + * @param \RusticiSoftware\Cloud\V2\Model\CreateConnectorSchema $connector connector (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \RusticiSoftware\Cloud\V2\Model\StringResultSchema + */ + public function createConnector($connector) + { + list($response) = $this->createConnectorWithHttpInfo($connector); + return $response; + } + + /** + * Operation createConnectorWithHttpInfo + * + * @param \RusticiSoftware\Cloud\V2\Model\CreateConnectorSchema $connector (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \RusticiSoftware\Cloud\V2\Model\StringResultSchema, HTTP status code, HTTP response headers (array of strings) + */ + public function createConnectorWithHttpInfo($connector) + { + $returnType = '\RusticiSoftware\Cloud\V2\Model\StringResultSchema'; + $request = $this->createConnectorRequest($connector); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\StringResultSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation createConnectorAsync + * + * + * + * @param \RusticiSoftware\Cloud\V2\Model\CreateConnectorSchema $connector (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createConnectorAsync($connector) + { + return $this->createConnectorAsyncWithHttpInfo($connector) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createConnectorAsyncWithHttpInfo + * + * + * + * @param \RusticiSoftware\Cloud\V2\Model\CreateConnectorSchema $connector (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createConnectorAsyncWithHttpInfo($connector) + { + $returnType = '\RusticiSoftware\Cloud\V2\Model\StringResultSchema'; + $request = $this->createConnectorRequest($connector); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createConnector' + * + * @param \RusticiSoftware\Cloud\V2\Model\CreateConnectorSchema $connector (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createConnectorRequest($connector) + { + // verify the required parameter 'connector' is set + if ($connector === null || (is_array($connector) && count($connector) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $connector when calling createConnector' + ); + } + + $resourcePath = '/contentConnectors'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // body params + $_tempBody = null; + if (isset($connector)) { + $_tempBody = $connector; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteConnector + * + * Delete a connector + * + * @param string $connector_id the connector id (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function deleteConnector($connector_id) + { + $this->deleteConnectorWithHttpInfo($connector_id); + } + + /** + * Operation deleteConnectorWithHttpInfo + * + * Delete a connector + * + * @param string $connector_id the connector id (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteConnectorWithHttpInfo($connector_id) + { + $returnType = ''; + $request = $this->deleteConnectorRequest($connector_id); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteConnectorAsync + * + * Delete a connector + * + * @param string $connector_id the connector id (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteConnectorAsync($connector_id) + { + return $this->deleteConnectorAsyncWithHttpInfo($connector_id) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteConnectorAsyncWithHttpInfo + * + * Delete a connector + * + * @param string $connector_id the connector id (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteConnectorAsyncWithHttpInfo($connector_id) + { + $returnType = ''; + $request = $this->deleteConnectorRequest($connector_id); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteConnector' + * + * @param string $connector_id the connector id (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteConnectorRequest($connector_id) + { + // verify the required parameter 'connector_id' is set + if ($connector_id === null || (is_array($connector_id) && count($connector_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $connector_id when calling deleteConnector' + ); + } + + $resourcePath = '/contentConnectors/{connectorId}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // path params + if ($connector_id !== null) { + $resourcePath = str_replace( + '{' . 'connectorId' . '}', + ObjectSerializer::toPathValue($connector_id), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'DELETE', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getConnectorsList + * + * Get a list of all Content Connectors for the application + * + * @param bool $include_additional_instance_information include_additional_instance_information (optional) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \RusticiSoftware\Cloud\V2\Model\ConnectorListSchema + */ + public function getConnectorsList($include_additional_instance_information = null) + { + list($response) = $this->getConnectorsListWithHttpInfo($include_additional_instance_information); + return $response; + } + + /** + * Operation getConnectorsListWithHttpInfo + * + * Get a list of all Content Connectors for the application + * + * @param bool $include_additional_instance_information (optional) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \RusticiSoftware\Cloud\V2\Model\ConnectorListSchema, HTTP status code, HTTP response headers (array of strings) + */ + public function getConnectorsListWithHttpInfo($include_additional_instance_information = null) + { + $returnType = '\RusticiSoftware\Cloud\V2\Model\ConnectorListSchema'; + $request = $this->getConnectorsListRequest($include_additional_instance_information); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\ConnectorListSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getConnectorsListAsync + * + * Get a list of all Content Connectors for the application + * + * @param bool $include_additional_instance_information (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getConnectorsListAsync($include_additional_instance_information = null) + { + return $this->getConnectorsListAsyncWithHttpInfo($include_additional_instance_information) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getConnectorsListAsyncWithHttpInfo + * + * Get a list of all Content Connectors for the application + * + * @param bool $include_additional_instance_information (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getConnectorsListAsyncWithHttpInfo($include_additional_instance_information = null) + { + $returnType = '\RusticiSoftware\Cloud\V2\Model\ConnectorListSchema'; + $request = $this->getConnectorsListRequest($include_additional_instance_information); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getConnectorsList' + * + * @param bool $include_additional_instance_information (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getConnectorsListRequest($include_additional_instance_information = null) + { + + $resourcePath = '/contentConnectors'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($include_additional_instance_information !== null) { + $queryParams['includeAdditionalInstanceInformation'] = ObjectSerializer::toQueryValue($include_additional_instance_information); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation updateConnector + * + * @param string $connector_id the connector id (required) + * @param \RusticiSoftware\Cloud\V2\Model\UpdateConnectorSchema $connector connector (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function updateConnector($connector_id, $connector) + { + $this->updateConnectorWithHttpInfo($connector_id, $connector); + } + + /** + * Operation updateConnectorWithHttpInfo + * + * @param string $connector_id the connector id (required) + * @param \RusticiSoftware\Cloud\V2\Model\UpdateConnectorSchema $connector (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function updateConnectorWithHttpInfo($connector_id, $connector) + { + $returnType = ''; + $request = $this->updateConnectorRequest($connector_id, $connector); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation updateConnectorAsync + * + * + * + * @param string $connector_id the connector id (required) + * @param \RusticiSoftware\Cloud\V2\Model\UpdateConnectorSchema $connector (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateConnectorAsync($connector_id, $connector) + { + return $this->updateConnectorAsyncWithHttpInfo($connector_id, $connector) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation updateConnectorAsyncWithHttpInfo + * + * + * + * @param string $connector_id the connector id (required) + * @param \RusticiSoftware\Cloud\V2\Model\UpdateConnectorSchema $connector (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateConnectorAsyncWithHttpInfo($connector_id, $connector) + { + $returnType = ''; + $request = $this->updateConnectorRequest($connector_id, $connector); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'updateConnector' + * + * @param string $connector_id the connector id (required) + * @param \RusticiSoftware\Cloud\V2\Model\UpdateConnectorSchema $connector (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updateConnectorRequest($connector_id, $connector) + { + // verify the required parameter 'connector_id' is set + if ($connector_id === null || (is_array($connector_id) && count($connector_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $connector_id when calling updateConnector' + ); + } + // verify the required parameter 'connector' is set + if ($connector === null || (is_array($connector) && count($connector) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $connector when calling updateConnector' + ); + } + + $resourcePath = '/contentConnectors/{connectorId}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // path params + if ($connector_id !== null) { + $resourcePath = str_replace( + '{' . 'connectorId' . '}', + ObjectSerializer::toPathValue($connector_id), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($connector)) { + $_tempBody = $connector; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'PUT', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/src/Api/CourseApi.php b/src/Api/CourseApi.php index e58d06c..50bebac 100644 --- a/src/Api/CourseApi.php +++ b/src/Api/CourseApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** @@ -7431,56 +7431,690 @@ protected function getCourseVersionsRequest($course_id, $since = null, $until = ); } + /** + * Operation getCourseZip + * + * Download a zip package for a Course + * + * @param string $course_id course_id (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \SplFileObject + */ + public function getCourseZip($course_id) + { + list($response) = $this->getCourseZipWithHttpInfo($course_id); + return $response; + } + + /** + * Operation getCourseZipWithHttpInfo + * + * Download a zip package for a Course + * + * @param string $course_id (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings) + */ + public function getCourseZipWithHttpInfo($course_id) + { + $returnType = '\SplFileObject'; + $request = $this->getCourseZipRequest($course_id); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\SplFileObject', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCourseZipAsync + * + * Download a zip package for a Course + * + * @param string $course_id (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCourseZipAsync($course_id) + { + return $this->getCourseZipAsyncWithHttpInfo($course_id) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCourseZipAsyncWithHttpInfo + * + * Download a zip package for a Course + * + * @param string $course_id (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCourseZipAsyncWithHttpInfo($course_id) + { + $returnType = '\SplFileObject'; + $request = $this->getCourseZipRequest($course_id); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCourseZip' + * + * @param string $course_id (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCourseZipRequest($course_id) + { + // verify the required parameter 'course_id' is set + if ($course_id === null || (is_array($course_id) && count($course_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $course_id when calling getCourseZip' + ); + } + + $resourcePath = '/courses/{courseId}/zip'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // path params + if ($course_id !== null) { + $resourcePath = str_replace( + '{' . 'courseId' . '}', + ObjectSerializer::toPathValue($course_id), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation getCourses * - * Get a list of Courses + * Get a list of Courses + * + * @param \DateTime $since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) + * @param \DateTime $until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) + * @param string $datetime_filter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) + * @param string[] $tags Filter items matching any tag provided (not all) (optional) + * @param string $filter Optional string which filters results by a specified field (described by filterBy). (optional) + * @param string $filter_by Optional enum parameter for specifying the field on which to run the filter. (optional, default to course_id) + * @param string $order_by Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to created_desc) + * @param string $more Pagination token returned as `more` property of multi page list requests (optional) + * @param bool $include_course_metadata Include course metadata in the results. If the course has no metadata, adding this parameter has no effect. (optional, default to false) + * @param bool $include_registration_count Include the registration count in the results (optional, default to false) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \RusticiSoftware\Cloud\V2\Model\CourseListSchema + */ + public function getCourses($since = null, $until = null, $datetime_filter = 'updated', $tags = null, $filter = null, $filter_by = 'course_id', $order_by = 'created_desc', $more = null, $include_course_metadata = 'false', $include_registration_count = 'false') + { + list($response) = $this->getCoursesWithHttpInfo($since, $until, $datetime_filter, $tags, $filter, $filter_by, $order_by, $more, $include_course_metadata, $include_registration_count); + return $response; + } + + /** + * Operation getCoursesWithHttpInfo + * + * Get a list of Courses + * + * @param \DateTime $since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) + * @param \DateTime $until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) + * @param string $datetime_filter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) + * @param string[] $tags Filter items matching any tag provided (not all) (optional) + * @param string $filter Optional string which filters results by a specified field (described by filterBy). (optional) + * @param string $filter_by Optional enum parameter for specifying the field on which to run the filter. (optional, default to course_id) + * @param string $order_by Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to created_desc) + * @param string $more Pagination token returned as `more` property of multi page list requests (optional) + * @param bool $include_course_metadata Include course metadata in the results. If the course has no metadata, adding this parameter has no effect. (optional, default to false) + * @param bool $include_registration_count Include the registration count in the results (optional, default to false) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \RusticiSoftware\Cloud\V2\Model\CourseListSchema, HTTP status code, HTTP response headers (array of strings) + */ + public function getCoursesWithHttpInfo($since = null, $until = null, $datetime_filter = 'updated', $tags = null, $filter = null, $filter_by = 'course_id', $order_by = 'created_desc', $more = null, $include_course_metadata = 'false', $include_registration_count = 'false') + { + $returnType = '\RusticiSoftware\Cloud\V2\Model\CourseListSchema'; + $request = $this->getCoursesRequest($since, $until, $datetime_filter, $tags, $filter, $filter_by, $order_by, $more, $include_course_metadata, $include_registration_count); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\CourseListSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getCoursesAsync + * + * Get a list of Courses + * + * @param \DateTime $since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) + * @param \DateTime $until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) + * @param string $datetime_filter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) + * @param string[] $tags Filter items matching any tag provided (not all) (optional) + * @param string $filter Optional string which filters results by a specified field (described by filterBy). (optional) + * @param string $filter_by Optional enum parameter for specifying the field on which to run the filter. (optional, default to course_id) + * @param string $order_by Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to created_desc) + * @param string $more Pagination token returned as `more` property of multi page list requests (optional) + * @param bool $include_course_metadata Include course metadata in the results. If the course has no metadata, adding this parameter has no effect. (optional, default to false) + * @param bool $include_registration_count Include the registration count in the results (optional, default to false) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCoursesAsync($since = null, $until = null, $datetime_filter = 'updated', $tags = null, $filter = null, $filter_by = 'course_id', $order_by = 'created_desc', $more = null, $include_course_metadata = 'false', $include_registration_count = 'false') + { + return $this->getCoursesAsyncWithHttpInfo($since, $until, $datetime_filter, $tags, $filter, $filter_by, $order_by, $more, $include_course_metadata, $include_registration_count) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getCoursesAsyncWithHttpInfo + * + * Get a list of Courses + * + * @param \DateTime $since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) + * @param \DateTime $until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) + * @param string $datetime_filter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) + * @param string[] $tags Filter items matching any tag provided (not all) (optional) + * @param string $filter Optional string which filters results by a specified field (described by filterBy). (optional) + * @param string $filter_by Optional enum parameter for specifying the field on which to run the filter. (optional, default to course_id) + * @param string $order_by Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to created_desc) + * @param string $more Pagination token returned as `more` property of multi page list requests (optional) + * @param bool $include_course_metadata Include course metadata in the results. If the course has no metadata, adding this parameter has no effect. (optional, default to false) + * @param bool $include_registration_count Include the registration count in the results (optional, default to false) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getCoursesAsyncWithHttpInfo($since = null, $until = null, $datetime_filter = 'updated', $tags = null, $filter = null, $filter_by = 'course_id', $order_by = 'created_desc', $more = null, $include_course_metadata = 'false', $include_registration_count = 'false') + { + $returnType = '\RusticiSoftware\Cloud\V2\Model\CourseListSchema'; + $request = $this->getCoursesRequest($since, $until, $datetime_filter, $tags, $filter, $filter_by, $order_by, $more, $include_course_metadata, $include_registration_count); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getCourses' + * + * @param \DateTime $since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) + * @param \DateTime $until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) + * @param string $datetime_filter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) + * @param string[] $tags Filter items matching any tag provided (not all) (optional) + * @param string $filter Optional string which filters results by a specified field (described by filterBy). (optional) + * @param string $filter_by Optional enum parameter for specifying the field on which to run the filter. (optional, default to course_id) + * @param string $order_by Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to created_desc) + * @param string $more Pagination token returned as `more` property of multi page list requests (optional) + * @param bool $include_course_metadata Include course metadata in the results. If the course has no metadata, adding this parameter has no effect. (optional, default to false) + * @param bool $include_registration_count Include the registration count in the results (optional, default to false) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getCoursesRequest($since = null, $until = null, $datetime_filter = 'updated', $tags = null, $filter = null, $filter_by = 'course_id', $order_by = 'created_desc', $more = null, $include_course_metadata = 'false', $include_registration_count = 'false') + { + + $resourcePath = '/courses'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($since !== null) { + $queryParams['since'] = ObjectSerializer::toQueryValue($since); + } + // query params + if ($until !== null) { + $queryParams['until'] = ObjectSerializer::toQueryValue($until); + } + // query params + if ($datetime_filter !== null) { + $queryParams['datetimeFilter'] = ObjectSerializer::toQueryValue($datetime_filter); + } + // query params + if (is_array($tags)) { + $queryParams['tags'] = $tags; + } else + if ($tags !== null) { + $queryParams['tags'] = ObjectSerializer::toQueryValue($tags); + } + // query params + if ($filter !== null) { + $queryParams['filter'] = ObjectSerializer::toQueryValue($filter); + } + // query params + if ($filter_by !== null) { + $queryParams['filterBy'] = ObjectSerializer::toQueryValue($filter_by); + } + // query params + if ($order_by !== null) { + $queryParams['orderBy'] = ObjectSerializer::toQueryValue($order_by); + } + // query params + if ($more !== null) { + $queryParams['more'] = ObjectSerializer::toQueryValue($more); + } + // query params + if ($include_course_metadata !== null) { + $queryParams['includeCourseMetadata'] = ObjectSerializer::toQueryValue($include_course_metadata); + } + // query params + if ($include_registration_count !== null) { + $queryParams['includeRegistrationCount'] = ObjectSerializer::toQueryValue($include_registration_count); + } + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getImportJobStatus + * + * Get import job status for a Course * - * @param \DateTime $since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) - * @param \DateTime $until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) - * @param string $datetime_filter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) - * @param string[] $tags Filter items matching any tag provided (not all) (optional) - * @param string $filter Optional string which filters results by a specified field (described by filterBy). (optional) - * @param string $filter_by Optional enum parameter for specifying the field on which to run the filter. (optional, default to course_id) - * @param string $order_by Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to created_desc) - * @param string $more Pagination token returned as `more` property of multi page list requests (optional) - * @param bool $include_course_metadata Include course metadata in the results. If the course has no metadata, adding this parameter has no effect. (optional, default to false) - * @param bool $include_registration_count Include the registration count in the results (optional, default to false) + * @param string $import_job_id Id received when the import job was submitted to the importJobs resource. (required) * * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \RusticiSoftware\Cloud\V2\Model\CourseListSchema + * @return \RusticiSoftware\Cloud\V2\Model\ImportJobResultSchema */ - public function getCourses($since = null, $until = null, $datetime_filter = 'updated', $tags = null, $filter = null, $filter_by = 'course_id', $order_by = 'created_desc', $more = null, $include_course_metadata = 'false', $include_registration_count = 'false') + public function getImportJobStatus($import_job_id) { - list($response) = $this->getCoursesWithHttpInfo($since, $until, $datetime_filter, $tags, $filter, $filter_by, $order_by, $more, $include_course_metadata, $include_registration_count); + list($response) = $this->getImportJobStatusWithHttpInfo($import_job_id); return $response; } /** - * Operation getCoursesWithHttpInfo + * Operation getImportJobStatusWithHttpInfo * - * Get a list of Courses + * Get import job status for a Course * - * @param \DateTime $since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) - * @param \DateTime $until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) - * @param string $datetime_filter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) - * @param string[] $tags Filter items matching any tag provided (not all) (optional) - * @param string $filter Optional string which filters results by a specified field (described by filterBy). (optional) - * @param string $filter_by Optional enum parameter for specifying the field on which to run the filter. (optional, default to course_id) - * @param string $order_by Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to created_desc) - * @param string $more Pagination token returned as `more` property of multi page list requests (optional) - * @param bool $include_course_metadata Include course metadata in the results. If the course has no metadata, adding this parameter has no effect. (optional, default to false) - * @param bool $include_registration_count Include the registration count in the results (optional, default to false) + * @param string $import_job_id Id received when the import job was submitted to the importJobs resource. (required) * * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \RusticiSoftware\Cloud\V2\Model\CourseListSchema, HTTP status code, HTTP response headers (array of strings) + * @return array of \RusticiSoftware\Cloud\V2\Model\ImportJobResultSchema, HTTP status code, HTTP response headers (array of strings) */ - public function getCoursesWithHttpInfo($since = null, $until = null, $datetime_filter = 'updated', $tags = null, $filter = null, $filter_by = 'course_id', $order_by = 'created_desc', $more = null, $include_course_metadata = 'false', $include_registration_count = 'false') + public function getImportJobStatusWithHttpInfo($import_job_id) { - $returnType = '\RusticiSoftware\Cloud\V2\Model\CourseListSchema'; - $request = $this->getCoursesRequest($since, $until, $datetime_filter, $tags, $filter, $filter_by, $order_by, $more, $include_course_metadata, $include_registration_count); + $returnType = '\RusticiSoftware\Cloud\V2\Model\ImportJobResultSchema'; + $request = $this->getImportJobStatusRequest($import_job_id); try { $options = $this->createHttpClientOption(); @@ -7531,7 +8165,7 @@ public function getCoursesWithHttpInfo($since = null, $until = null, $datetime_f case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\RusticiSoftware\Cloud\V2\Model\CourseListSchema', + '\RusticiSoftware\Cloud\V2\Model\ImportJobResultSchema', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -7544,33 +8178,32 @@ public function getCoursesWithHttpInfo($since = null, $until = null, $datetime_f ); $e->setResponseObject($data); break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\ResponseError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } } /** - * Operation getCoursesAsync + * Operation getImportJobStatusAsync * - * Get a list of Courses + * Get import job status for a Course * - * @param \DateTime $since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) - * @param \DateTime $until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) - * @param string $datetime_filter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) - * @param string[] $tags Filter items matching any tag provided (not all) (optional) - * @param string $filter Optional string which filters results by a specified field (described by filterBy). (optional) - * @param string $filter_by Optional enum parameter for specifying the field on which to run the filter. (optional, default to course_id) - * @param string $order_by Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to created_desc) - * @param string $more Pagination token returned as `more` property of multi page list requests (optional) - * @param bool $include_course_metadata Include course metadata in the results. If the course has no metadata, adding this parameter has no effect. (optional, default to false) - * @param bool $include_registration_count Include the registration count in the results (optional, default to false) + * @param string $import_job_id Id received when the import job was submitted to the importJobs resource. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCoursesAsync($since = null, $until = null, $datetime_filter = 'updated', $tags = null, $filter = null, $filter_by = 'course_id', $order_by = 'created_desc', $more = null, $include_course_metadata = 'false', $include_registration_count = 'false') + public function getImportJobStatusAsync($import_job_id) { - return $this->getCoursesAsyncWithHttpInfo($since, $until, $datetime_filter, $tags, $filter, $filter_by, $order_by, $more, $include_course_metadata, $include_registration_count) + return $this->getImportJobStatusAsyncWithHttpInfo($import_job_id) ->then( function ($response) { return $response[0]; @@ -7579,28 +8212,19 @@ function ($response) { } /** - * Operation getCoursesAsyncWithHttpInfo + * Operation getImportJobStatusAsyncWithHttpInfo * - * Get a list of Courses + * Get import job status for a Course * - * @param \DateTime $since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) - * @param \DateTime $until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) - * @param string $datetime_filter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) - * @param string[] $tags Filter items matching any tag provided (not all) (optional) - * @param string $filter Optional string which filters results by a specified field (described by filterBy). (optional) - * @param string $filter_by Optional enum parameter for specifying the field on which to run the filter. (optional, default to course_id) - * @param string $order_by Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to created_desc) - * @param string $more Pagination token returned as `more` property of multi page list requests (optional) - * @param bool $include_course_metadata Include course metadata in the results. If the course has no metadata, adding this parameter has no effect. (optional, default to false) - * @param bool $include_registration_count Include the registration count in the results (optional, default to false) + * @param string $import_job_id Id received when the import job was submitted to the importJobs resource. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCoursesAsyncWithHttpInfo($since = null, $until = null, $datetime_filter = 'updated', $tags = null, $filter = null, $filter_by = 'course_id', $order_by = 'created_desc', $more = null, $include_course_metadata = 'false', $include_registration_count = 'false') + public function getImportJobStatusAsyncWithHttpInfo($import_job_id) { - $returnType = '\RusticiSoftware\Cloud\V2\Model\CourseListSchema'; - $request = $this->getCoursesRequest($since, $until, $datetime_filter, $tags, $filter, $filter_by, $order_by, $more, $include_course_metadata, $include_registration_count); + $returnType = '\RusticiSoftware\Cloud\V2\Model\ImportJobResultSchema'; + $request = $this->getImportJobStatusRequest($import_job_id); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7640,76 +8264,38 @@ function ($exception) { } /** - * Create request for operation 'getCourses' + * Create request for operation 'getImportJobStatus' * - * @param \DateTime $since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) - * @param \DateTime $until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) - * @param string $datetime_filter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) - * @param string[] $tags Filter items matching any tag provided (not all) (optional) - * @param string $filter Optional string which filters results by a specified field (described by filterBy). (optional) - * @param string $filter_by Optional enum parameter for specifying the field on which to run the filter. (optional, default to course_id) - * @param string $order_by Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to created_desc) - * @param string $more Pagination token returned as `more` property of multi page list requests (optional) - * @param bool $include_course_metadata Include course metadata in the results. If the course has no metadata, adding this parameter has no effect. (optional, default to false) - * @param bool $include_registration_count Include the registration count in the results (optional, default to false) + * @param string $import_job_id Id received when the import job was submitted to the importJobs resource. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getCoursesRequest($since = null, $until = null, $datetime_filter = 'updated', $tags = null, $filter = null, $filter_by = 'course_id', $order_by = 'created_desc', $more = null, $include_course_metadata = 'false', $include_registration_count = 'false') + protected function getImportJobStatusRequest($import_job_id) { + // verify the required parameter 'import_job_id' is set + if ($import_job_id === null || (is_array($import_job_id) && count($import_job_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $import_job_id when calling getImportJobStatus' + ); + } - $resourcePath = '/courses'; + $resourcePath = '/courses/importJobs/{importJobId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; - // query params - if ($since !== null) { - $queryParams['since'] = ObjectSerializer::toQueryValue($since); - } - // query params - if ($until !== null) { - $queryParams['until'] = ObjectSerializer::toQueryValue($until); - } - // query params - if ($datetime_filter !== null) { - $queryParams['datetimeFilter'] = ObjectSerializer::toQueryValue($datetime_filter); - } - // query params - if (is_array($tags)) { - $queryParams['tags'] = $tags; - } else - if ($tags !== null) { - $queryParams['tags'] = ObjectSerializer::toQueryValue($tags); - } - // query params - if ($filter !== null) { - $queryParams['filter'] = ObjectSerializer::toQueryValue($filter); - } - // query params - if ($filter_by !== null) { - $queryParams['filterBy'] = ObjectSerializer::toQueryValue($filter_by); - } - // query params - if ($order_by !== null) { - $queryParams['orderBy'] = ObjectSerializer::toQueryValue($order_by); - } - // query params - if ($more !== null) { - $queryParams['more'] = ObjectSerializer::toQueryValue($more); - } - // query params - if ($include_course_metadata !== null) { - $queryParams['includeCourseMetadata'] = ObjectSerializer::toQueryValue($include_course_metadata); - } - // query params - if ($include_registration_count !== null) { - $queryParams['includeRegistrationCount'] = ObjectSerializer::toQueryValue($include_registration_count); - } + // path params + if ($import_job_id !== null) { + $resourcePath = str_replace( + '{' . 'importJobId' . '}', + ObjectSerializer::toPathValue($import_job_id), + $resourcePath + ); + } // body params $_tempBody = null; @@ -7791,37 +8377,39 @@ protected function getCoursesRequest($since = null, $until = null, $datetime_fil } /** - * Operation getImportJobStatus + * Operation getVersionedCourseZip * - * Get import job status for a Course + * Download a zip package for a Course Version * - * @param string $import_job_id Id received when the import job was submitted to the importJobs resource. (required) + * @param string $course_id course_id (required) + * @param int $version_id version_id (required) * * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \RusticiSoftware\Cloud\V2\Model\ImportJobResultSchema + * @return \SplFileObject */ - public function getImportJobStatus($import_job_id) + public function getVersionedCourseZip($course_id, $version_id) { - list($response) = $this->getImportJobStatusWithHttpInfo($import_job_id); + list($response) = $this->getVersionedCourseZipWithHttpInfo($course_id, $version_id); return $response; } /** - * Operation getImportJobStatusWithHttpInfo + * Operation getVersionedCourseZipWithHttpInfo * - * Get import job status for a Course + * Download a zip package for a Course Version * - * @param string $import_job_id Id received when the import job was submitted to the importJobs resource. (required) + * @param string $course_id (required) + * @param int $version_id (required) * * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \RusticiSoftware\Cloud\V2\Model\ImportJobResultSchema, HTTP status code, HTTP response headers (array of strings) + * @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings) */ - public function getImportJobStatusWithHttpInfo($import_job_id) + public function getVersionedCourseZipWithHttpInfo($course_id, $version_id) { - $returnType = '\RusticiSoftware\Cloud\V2\Model\ImportJobResultSchema'; - $request = $this->getImportJobStatusRequest($import_job_id); + $returnType = '\SplFileObject'; + $request = $this->getVersionedCourseZipRequest($course_id, $version_id); try { $options = $this->createHttpClientOption(); @@ -7872,7 +8460,7 @@ public function getImportJobStatusWithHttpInfo($import_job_id) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\RusticiSoftware\Cloud\V2\Model\ImportJobResultSchema', + '\SplFileObject', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -7888,7 +8476,7 @@ public function getImportJobStatusWithHttpInfo($import_job_id) case 404: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\RusticiSoftware\Cloud\V2\Model\ResponseError', + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -7899,18 +8487,19 @@ public function getImportJobStatusWithHttpInfo($import_job_id) } /** - * Operation getImportJobStatusAsync + * Operation getVersionedCourseZipAsync * - * Get import job status for a Course + * Download a zip package for a Course Version * - * @param string $import_job_id Id received when the import job was submitted to the importJobs resource. (required) + * @param string $course_id (required) + * @param int $version_id (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getImportJobStatusAsync($import_job_id) + public function getVersionedCourseZipAsync($course_id, $version_id) { - return $this->getImportJobStatusAsyncWithHttpInfo($import_job_id) + return $this->getVersionedCourseZipAsyncWithHttpInfo($course_id, $version_id) ->then( function ($response) { return $response[0]; @@ -7919,19 +8508,20 @@ function ($response) { } /** - * Operation getImportJobStatusAsyncWithHttpInfo + * Operation getVersionedCourseZipAsyncWithHttpInfo * - * Get import job status for a Course + * Download a zip package for a Course Version * - * @param string $import_job_id Id received when the import job was submitted to the importJobs resource. (required) + * @param string $course_id (required) + * @param int $version_id (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getImportJobStatusAsyncWithHttpInfo($import_job_id) + public function getVersionedCourseZipAsyncWithHttpInfo($course_id, $version_id) { - $returnType = '\RusticiSoftware\Cloud\V2\Model\ImportJobResultSchema'; - $request = $this->getImportJobStatusRequest($import_job_id); + $returnType = '\SplFileObject'; + $request = $this->getVersionedCourseZipRequest($course_id, $version_id); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7971,23 +8561,30 @@ function ($exception) { } /** - * Create request for operation 'getImportJobStatus' + * Create request for operation 'getVersionedCourseZip' * - * @param string $import_job_id Id received when the import job was submitted to the importJobs resource. (required) + * @param string $course_id (required) + * @param int $version_id (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getImportJobStatusRequest($import_job_id) + protected function getVersionedCourseZipRequest($course_id, $version_id) { - // verify the required parameter 'import_job_id' is set - if ($import_job_id === null || (is_array($import_job_id) && count($import_job_id) === 0)) { + // verify the required parameter 'course_id' is set + if ($course_id === null || (is_array($course_id) && count($course_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $import_job_id when calling getImportJobStatus' + 'Missing the required parameter $course_id when calling getVersionedCourseZip' + ); + } + // verify the required parameter 'version_id' is set + if ($version_id === null || (is_array($version_id) && count($version_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $version_id when calling getVersionedCourseZip' ); } - $resourcePath = '/courses/importJobs/{importJobId}'; + $resourcePath = '/courses/{courseId}/versions/{versionId}/zip'; $formParams = []; $queryParams = []; $headerParams = []; @@ -7996,10 +8593,18 @@ protected function getImportJobStatusRequest($import_job_id) // path params - if ($import_job_id !== null) { + if ($course_id !== null) { $resourcePath = str_replace( - '{' . 'importJobId' . '}', - ObjectSerializer::toPathValue($import_job_id), + '{' . 'courseId' . '}', + ObjectSerializer::toPathValue($course_id), + $resourcePath + ); + } + // path params + if ($version_id !== null) { + $resourcePath = str_replace( + '{' . 'versionId' . '}', + ObjectSerializer::toPathValue($version_id), $resourcePath ); } diff --git a/src/Api/DispatchApi.php b/src/Api/DispatchApi.php index f0bcfaa..baf399a 100644 --- a/src/Api/DispatchApi.php +++ b/src/Api/DispatchApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** @@ -7343,6 +7343,874 @@ protected function getLTIDispatchRequest($dispatch_id) ); } + /** + * Operation getLti13Dispatch + * + * Get the information necessary to import this dispatch as a resource link according to the IMS LTI 1.3 specification. + * + * @param string $dispatch_id Identifier for the dispatch (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \RusticiSoftware\Cloud\V2\Model\DispatchLti13InfoSchema + */ + public function getLti13Dispatch($dispatch_id) + { + list($response) = $this->getLti13DispatchWithHttpInfo($dispatch_id); + return $response; + } + + /** + * Operation getLti13DispatchWithHttpInfo + * + * Get the information necessary to import this dispatch as a resource link according to the IMS LTI 1.3 specification. + * + * @param string $dispatch_id Identifier for the dispatch (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \RusticiSoftware\Cloud\V2\Model\DispatchLti13InfoSchema, HTTP status code, HTTP response headers (array of strings) + */ + public function getLti13DispatchWithHttpInfo($dispatch_id) + { + $returnType = '\RusticiSoftware\Cloud\V2\Model\DispatchLti13InfoSchema'; + $request = $this->getLti13DispatchRequest($dispatch_id); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\DispatchLti13InfoSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getLti13DispatchAsync + * + * Get the information necessary to import this dispatch as a resource link according to the IMS LTI 1.3 specification. + * + * @param string $dispatch_id Identifier for the dispatch (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getLti13DispatchAsync($dispatch_id) + { + return $this->getLti13DispatchAsyncWithHttpInfo($dispatch_id) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getLti13DispatchAsyncWithHttpInfo + * + * Get the information necessary to import this dispatch as a resource link according to the IMS LTI 1.3 specification. + * + * @param string $dispatch_id Identifier for the dispatch (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getLti13DispatchAsyncWithHttpInfo($dispatch_id) + { + $returnType = '\RusticiSoftware\Cloud\V2\Model\DispatchLti13InfoSchema'; + $request = $this->getLti13DispatchRequest($dispatch_id); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getLti13Dispatch' + * + * @param string $dispatch_id Identifier for the dispatch (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getLti13DispatchRequest($dispatch_id) + { + // verify the required parameter 'dispatch_id' is set + if ($dispatch_id === null || (is_array($dispatch_id) && count($dispatch_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $dispatch_id when calling getLti13Dispatch' + ); + } + + $resourcePath = '/dispatch/dispatches/{dispatchId}/lti13'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // path params + if ($dispatch_id !== null) { + $resourcePath = str_replace( + '{' . 'dispatchId' . '}', + ObjectSerializer::toPathValue($dispatch_id), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getLti13DispatchLaunch + * + * Launch this dispatch using the IMS LTI 1.3 specification. + * + * @param string $dispatch_id Identifier for the dispatch (required) + * @param string $external_config External configuration object (required) + * @param string $jwt jwt (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function getLti13DispatchLaunch($dispatch_id, $external_config, $jwt) + { + $this->getLti13DispatchLaunchWithHttpInfo($dispatch_id, $external_config, $jwt); + } + + /** + * Operation getLti13DispatchLaunchWithHttpInfo + * + * Launch this dispatch using the IMS LTI 1.3 specification. + * + * @param string $dispatch_id Identifier for the dispatch (required) + * @param string $external_config External configuration object (required) + * @param string $jwt (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function getLti13DispatchLaunchWithHttpInfo($dispatch_id, $external_config, $jwt) + { + $returnType = ''; + $request = $this->getLti13DispatchLaunchRequest($dispatch_id, $external_config, $jwt); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getLti13DispatchLaunchAsync + * + * Launch this dispatch using the IMS LTI 1.3 specification. + * + * @param string $dispatch_id Identifier for the dispatch (required) + * @param string $external_config External configuration object (required) + * @param string $jwt (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getLti13DispatchLaunchAsync($dispatch_id, $external_config, $jwt) + { + return $this->getLti13DispatchLaunchAsyncWithHttpInfo($dispatch_id, $external_config, $jwt) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getLti13DispatchLaunchAsyncWithHttpInfo + * + * Launch this dispatch using the IMS LTI 1.3 specification. + * + * @param string $dispatch_id Identifier for the dispatch (required) + * @param string $external_config External configuration object (required) + * @param string $jwt (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getLti13DispatchLaunchAsyncWithHttpInfo($dispatch_id, $external_config, $jwt) + { + $returnType = ''; + $request = $this->getLti13DispatchLaunchRequest($dispatch_id, $external_config, $jwt); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getLti13DispatchLaunch' + * + * @param string $dispatch_id Identifier for the dispatch (required) + * @param string $external_config External configuration object (required) + * @param string $jwt (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getLti13DispatchLaunchRequest($dispatch_id, $external_config, $jwt) + { + // verify the required parameter 'dispatch_id' is set + if ($dispatch_id === null || (is_array($dispatch_id) && count($dispatch_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $dispatch_id when calling getLti13DispatchLaunch' + ); + } + // verify the required parameter 'external_config' is set + if ($external_config === null || (is_array($external_config) && count($external_config) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $external_config when calling getLti13DispatchLaunch' + ); + } + // verify the required parameter 'jwt' is set + if ($jwt === null || (is_array($jwt) && count($jwt) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $jwt when calling getLti13DispatchLaunch' + ); + } + + $resourcePath = '/dispatch/dispatches/{dispatchId}/launches'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + if ($external_config !== null) { + $queryParams['externalConfig'] = ObjectSerializer::toQueryValue($external_config); + } + // query params + if ($jwt !== null) { + $queryParams['jwt'] = ObjectSerializer::toQueryValue($jwt); + } + + // path params + if ($dispatch_id !== null) { + $resourcePath = str_replace( + '{' . 'dispatchId' . '}', + ObjectSerializer::toPathValue($dispatch_id), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getLti13ToolConfigurationSchema + * + * Get the information needed to configure a LTI 1.3 platform with the destination id `destinationId` + * + * @param string $destination_id Identifier for the destination (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \RusticiSoftware\Cloud\V2\Model\Lti13ToolConfigurationSchema + */ + public function getLti13ToolConfigurationSchema($destination_id) + { + list($response) = $this->getLti13ToolConfigurationSchemaWithHttpInfo($destination_id); + return $response; + } + + /** + * Operation getLti13ToolConfigurationSchemaWithHttpInfo + * + * Get the information needed to configure a LTI 1.3 platform with the destination id `destinationId` + * + * @param string $destination_id Identifier for the destination (required) + * + * @throws \RusticiSoftware\Cloud\V2\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \RusticiSoftware\Cloud\V2\Model\Lti13ToolConfigurationSchema, HTTP status code, HTTP response headers (array of strings) + */ + public function getLti13ToolConfigurationSchemaWithHttpInfo($destination_id) + { + $returnType = '\RusticiSoftware\Cloud\V2\Model\Lti13ToolConfigurationSchema'; + $request = $this->getLti13ToolConfigurationSchemaRequest($destination_id); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\Lti13ToolConfigurationSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\RusticiSoftware\Cloud\V2\Model\MessageSchema', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getLti13ToolConfigurationSchemaAsync + * + * Get the information needed to configure a LTI 1.3 platform with the destination id `destinationId` + * + * @param string $destination_id Identifier for the destination (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getLti13ToolConfigurationSchemaAsync($destination_id) + { + return $this->getLti13ToolConfigurationSchemaAsyncWithHttpInfo($destination_id) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getLti13ToolConfigurationSchemaAsyncWithHttpInfo + * + * Get the information needed to configure a LTI 1.3 platform with the destination id `destinationId` + * + * @param string $destination_id Identifier for the destination (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getLti13ToolConfigurationSchemaAsyncWithHttpInfo($destination_id) + { + $returnType = '\RusticiSoftware\Cloud\V2\Model\Lti13ToolConfigurationSchema'; + $request = $this->getLti13ToolConfigurationSchemaRequest($destination_id); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getLti13ToolConfigurationSchema' + * + * @param string $destination_id Identifier for the destination (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getLti13ToolConfigurationSchemaRequest($destination_id) + { + // verify the required parameter 'destination_id' is set + if ($destination_id === null || (is_array($destination_id) && count($destination_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $destination_id when calling getLti13ToolConfigurationSchema' + ); + } + + $resourcePath = '/dispatch/destinations/{destinationId}/lti13'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // path params + if ($destination_id !== null) { + $resourcePath = str_replace( + '{' . 'destinationId' . '}', + ObjectSerializer::toPathValue($destination_id), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + + if($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if(is_array($httpBody)) { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if ($this->config->getUsername() !== null || $this->config->getPassword() !== null) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\Query::build($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation putDestinationTags * diff --git a/src/Api/InvitationsApi.php b/src/Api/InvitationsApi.php index b22c3cf..0ea89e6 100644 --- a/src/Api/InvitationsApi.php +++ b/src/Api/InvitationsApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Api/LearnerApi.php b/src/Api/LearnerApi.php index d2ec5e4..da74e67 100644 --- a/src/Api/LearnerApi.php +++ b/src/Api/LearnerApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Api/PingApi.php b/src/Api/PingApi.php index aa777bd..9b10d17 100644 --- a/src/Api/PingApi.php +++ b/src/Api/PingApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Api/RegistrationApi.php b/src/Api/RegistrationApi.php index c725ea8..21b94a3 100644 --- a/src/Api/RegistrationApi.php +++ b/src/Api/RegistrationApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Api/ReportingApi.php b/src/Api/ReportingApi.php index 297df9c..b7ee2f8 100644 --- a/src/Api/ReportingApi.php +++ b/src/Api/ReportingApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Api/XapiApi.php b/src/Api/XapiApi.php index 9121d10..8bdca96 100644 --- a/src/Api/XapiApi.php +++ b/src/Api/XapiApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Api/ZoomiApi.php b/src/Api/ZoomiApi.php index 699786e..2a433ea 100644 --- a/src/Api/ZoomiApi.php +++ b/src/Api/ZoomiApi.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/ApiException.php b/src/ApiException.php index 0de21cb..fc7bf30 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Configuration.php b/src/Configuration.php index f8742d8..a95ccfe 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** @@ -88,7 +88,7 @@ class Configuration * * @var string */ - protected $userAgent = 'Swagger-Codegen/2.0.0/php'; + protected $userAgent = 'Swagger-Codegen/2.1.0/php'; /** * Debug switch (default set to false) @@ -397,7 +397,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' OpenAPI Spec Version: 2.0' . PHP_EOL; - $report .= ' SDK Package Version: 2.0.0' . PHP_EOL; + $report .= ' SDK Package Version: 2.1.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/src/HeaderSelector.php b/src/HeaderSelector.php index f062f76..26e2e16 100644 --- a/src/HeaderSelector.php +++ b/src/HeaderSelector.php @@ -17,7 +17,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/AboutSchema.php b/src/Model/AboutSchema.php index 4c59c94..7bdece7 100644 --- a/src/Model/AboutSchema.php +++ b/src/Model/AboutSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ActivityResultSchema.php b/src/Model/ActivityResultSchema.php index e440499..b101b0b 100644 --- a/src/Model/ActivityResultSchema.php +++ b/src/Model/ActivityResultSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ApplicationInfoSchema.php b/src/Model/ApplicationInfoSchema.php index 1de539e..9393777 100644 --- a/src/Model/ApplicationInfoSchema.php +++ b/src/Model/ApplicationInfoSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ApplicationListSchema.php b/src/Model/ApplicationListSchema.php index 0483903..6dece56 100644 --- a/src/Model/ApplicationListSchema.php +++ b/src/Model/ApplicationListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ApplicationRequestSchema.php b/src/Model/ApplicationRequestSchema.php index d3d11f6..dd1d008 100644 --- a/src/Model/ApplicationRequestSchema.php +++ b/src/Model/ApplicationRequestSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ApplicationSchema.php b/src/Model/ApplicationSchema.php index 14723d9..e4811ab 100644 --- a/src/Model/ApplicationSchema.php +++ b/src/Model/ApplicationSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ApplicationToken.php b/src/Model/ApplicationToken.php index 22e16b4..8991372 100644 --- a/src/Model/ApplicationToken.php +++ b/src/Model/ApplicationToken.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/AssetFileSchema.php b/src/Model/AssetFileSchema.php index 2837770..4a54240 100644 --- a/src/Model/AssetFileSchema.php +++ b/src/Model/AssetFileSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/BatchTagsSchema.php b/src/Model/BatchTagsSchema.php index 811aa09..a982898 100644 --- a/src/Model/BatchTagsSchema.php +++ b/src/Model/BatchTagsSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CommentSchema.php b/src/Model/CommentSchema.php index ac288f8..b255521 100644 --- a/src/Model/CommentSchema.php +++ b/src/Model/CommentSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CompletionAmountSchema.php b/src/Model/CompletionAmountSchema.php index 74a8b60..63f4129 100644 --- a/src/Model/CompletionAmountSchema.php +++ b/src/Model/CompletionAmountSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ConnectorListSchema.php b/src/Model/ConnectorListSchema.php new file mode 100644 index 0000000..898e891 --- /dev/null +++ b/src/Model/ConnectorListSchema.php @@ -0,0 +1,302 @@ + '\RusticiSoftware\Cloud\V2\Model\ConnectorSchema[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'connector_entries' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'connector_entries' => 'connectorEntries' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'connector_entries' => 'setConnectorEntries' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'connector_entries' => 'getConnectorEntries' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['connector_entries'] = isset($data['connector_entries']) ? $data['connector_entries'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets connector_entries + * + * @return \RusticiSoftware\Cloud\V2\Model\ConnectorSchema[] + */ + public function getConnectorEntries() + { + return $this->container['connector_entries']; + } + + /** + * Sets connector_entries + * + * @param \RusticiSoftware\Cloud\V2\Model\ConnectorSchema[] $connector_entries connector_entries + * + * @return $this + */ + public function setConnectorEntries($connector_entries) + { + $this->container['connector_entries'] = $connector_entries; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ConnectorSchema.php b/src/Model/ConnectorSchema.php new file mode 100644 index 0000000..f5ec20a --- /dev/null +++ b/src/Model/ConnectorSchema.php @@ -0,0 +1,422 @@ + 'string', + 'content_connector_type' => 'string', + 'configuration' => 'object', + 'additional_instance_information' => 'object', + 'enabled' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'connector_id' => null, + 'content_connector_type' => null, + 'configuration' => null, + 'additional_instance_information' => null, + 'enabled' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'connector_id' => 'connectorId', + 'content_connector_type' => 'contentConnectorType', + 'configuration' => 'configuration', + 'additional_instance_information' => 'additionalInstanceInformation', + 'enabled' => 'enabled' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'connector_id' => 'setConnectorId', + 'content_connector_type' => 'setContentConnectorType', + 'configuration' => 'setConfiguration', + 'additional_instance_information' => 'setAdditionalInstanceInformation', + 'enabled' => 'setEnabled' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'connector_id' => 'getConnectorId', + 'content_connector_type' => 'getContentConnectorType', + 'configuration' => 'getConfiguration', + 'additional_instance_information' => 'getAdditionalInstanceInformation', + 'enabled' => 'getEnabled' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['connector_id'] = isset($data['connector_id']) ? $data['connector_id'] : null; + $this->container['content_connector_type'] = isset($data['content_connector_type']) ? $data['content_connector_type'] : null; + $this->container['configuration'] = isset($data['configuration']) ? $data['configuration'] : null; + $this->container['additional_instance_information'] = isset($data['additional_instance_information']) ? $data['additional_instance_information'] : null; + $this->container['enabled'] = isset($data['enabled']) ? $data['enabled'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets connector_id + * + * @return string + */ + public function getConnectorId() + { + return $this->container['connector_id']; + } + + /** + * Sets connector_id + * + * @param string $connector_id connector_id + * + * @return $this + */ + public function setConnectorId($connector_id) + { + $this->container['connector_id'] = $connector_id; + + return $this; + } + + /** + * Gets content_connector_type + * + * @return string + */ + public function getContentConnectorType() + { + return $this->container['content_connector_type']; + } + + /** + * Sets content_connector_type + * + * @param string $content_connector_type type of this content connector + * + * @return $this + */ + public function setContentConnectorType($content_connector_type) + { + $this->container['content_connector_type'] = $content_connector_type; + + return $this; + } + + /** + * Gets configuration + * + * @return object + */ + public function getConfiguration() + { + return $this->container['configuration']; + } + + /** + * Sets configuration + * + * @param object $configuration configuration for this content connector, format is implementation specific + * + * @return $this + */ + public function setConfiguration($configuration) + { + $this->container['configuration'] = $configuration; + + return $this; + } + + /** + * Gets additional_instance_information + * + * @return object + */ + public function getAdditionalInstanceInformation() + { + return $this->container['additional_instance_information']; + } + + /** + * Sets additional_instance_information + * + * @param object $additional_instance_information additional information about this content connector, format is implementation specific and will only be present if the connector is enabled + * + * @return $this + */ + public function setAdditionalInstanceInformation($additional_instance_information) + { + $this->container['additional_instance_information'] = $additional_instance_information; + + return $this; + } + + /** + * Gets enabled + * + * @return bool + */ + public function getEnabled() + { + return $this->container['enabled']; + } + + /** + * Sets enabled + * + * @param bool $enabled is this connector enabled + * + * @return $this + */ + public function setEnabled($enabled) + { + $this->container['enabled'] = $enabled; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/CourseActivitySchema.php b/src/Model/CourseActivitySchema.php index a8ecb26..7ad4ae4 100644 --- a/src/Model/CourseActivitySchema.php +++ b/src/Model/CourseActivitySchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** @@ -280,7 +280,7 @@ public function getExternalIdentifier() /** * Sets external_identifier * - * @param string $external_identifier An arbitrary identifier that the external LMS system can associate with this LearningObject to track it as it isreused across courses + * @param string $external_identifier An arbitrary identifier that the external LMS system can associate with this LearningObject to track it as it is reused across courses * * @return $this */ diff --git a/src/Model/CourseListNonPagedSchema.php b/src/Model/CourseListNonPagedSchema.php index a3e2c8d..b77c07c 100644 --- a/src/Model/CourseListNonPagedSchema.php +++ b/src/Model/CourseListNonPagedSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CourseListSchema.php b/src/Model/CourseListSchema.php index 767a5ee..20734fb 100644 --- a/src/Model/CourseListSchema.php +++ b/src/Model/CourseListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CourseReferenceSchema.php b/src/Model/CourseReferenceSchema.php index 6b1b6e0..3502e92 100644 --- a/src/Model/CourseReferenceSchema.php +++ b/src/Model/CourseReferenceSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CourseSchema.php b/src/Model/CourseSchema.php index b65cb3e..8c13504 100644 --- a/src/Model/CourseSchema.php +++ b/src/Model/CourseSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** @@ -227,6 +227,7 @@ public function getModelName() const COURSE_LEARNING_STANDARD_AICC = 'AICC'; const COURSE_LEARNING_STANDARD_XAPI = 'XAPI'; const COURSE_LEARNING_STANDARD_CMI5 = 'CMI5'; + const COURSE_LEARNING_STANDARD_LTI13 = 'LTI13'; @@ -247,6 +248,7 @@ public function getCourseLearningStandardAllowableValues() self::COURSE_LEARNING_STANDARD_AICC, self::COURSE_LEARNING_STANDARD_XAPI, self::COURSE_LEARNING_STANDARD_CMI5, + self::COURSE_LEARNING_STANDARD_LTI13, ]; } diff --git a/src/Model/CreateConnectorSchema.php b/src/Model/CreateConnectorSchema.php new file mode 100644 index 0000000..b1f37ba --- /dev/null +++ b/src/Model/CreateConnectorSchema.php @@ -0,0 +1,367 @@ + 'string', + 'configuration' => 'object', + 'enabled' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'content_connector_type' => null, + 'configuration' => null, + 'enabled' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'content_connector_type' => 'contentConnectorType', + 'configuration' => 'configuration', + 'enabled' => 'enabled' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'content_connector_type' => 'setContentConnectorType', + 'configuration' => 'setConfiguration', + 'enabled' => 'setEnabled' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'content_connector_type' => 'getContentConnectorType', + 'configuration' => 'getConfiguration', + 'enabled' => 'getEnabled' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['content_connector_type'] = isset($data['content_connector_type']) ? $data['content_connector_type'] : null; + $this->container['configuration'] = isset($data['configuration']) ? $data['configuration'] : null; + $this->container['enabled'] = isset($data['enabled']) ? $data['enabled'] : true; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['content_connector_type'] === null) { + $invalidProperties[] = "'content_connector_type' can't be null"; + } + if ($this->container['configuration'] === null) { + $invalidProperties[] = "'configuration' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets content_connector_type + * + * @return string + */ + public function getContentConnectorType() + { + return $this->container['content_connector_type']; + } + + /** + * Sets content_connector_type + * + * @param string $content_connector_type type of this content connector + * + * @return $this + */ + public function setContentConnectorType($content_connector_type) + { + $this->container['content_connector_type'] = $content_connector_type; + + return $this; + } + + /** + * Gets configuration + * + * @return object + */ + public function getConfiguration() + { + return $this->container['configuration']; + } + + /** + * Sets configuration + * + * @param object $configuration configuration for this content connector, format is implementation specific + * + * @return $this + */ + public function setConfiguration($configuration) + { + $this->container['configuration'] = $configuration; + + return $this; + } + + /** + * Gets enabled + * + * @return bool + */ + public function getEnabled() + { + return $this->container['enabled']; + } + + /** + * Sets enabled + * + * @param bool $enabled is this connector enabled + * + * @return $this + */ + public function setEnabled($enabled) + { + $this->container['enabled'] = $enabled; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/CreateDispatchIdSchema.php b/src/Model/CreateDispatchIdSchema.php index 1784b58..e77cb93 100644 --- a/src/Model/CreateDispatchIdSchema.php +++ b/src/Model/CreateDispatchIdSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CreateDispatchListSchema.php b/src/Model/CreateDispatchListSchema.php index ff4aa8a..8dfb3b4 100644 --- a/src/Model/CreateDispatchListSchema.php +++ b/src/Model/CreateDispatchListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CreateDispatchSchema.php b/src/Model/CreateDispatchSchema.php index 5d827e0..3bbac46 100644 --- a/src/Model/CreateDispatchSchema.php +++ b/src/Model/CreateDispatchSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CreatePrivateInvitationSchema.php b/src/Model/CreatePrivateInvitationSchema.php index 76268f5..e6de403 100644 --- a/src/Model/CreatePrivateInvitationSchema.php +++ b/src/Model/CreatePrivateInvitationSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CreatePublicInvitationSchema.php b/src/Model/CreatePublicInvitationSchema.php index ec99ee7..78eed3f 100644 --- a/src/Model/CreatePublicInvitationSchema.php +++ b/src/Model/CreatePublicInvitationSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CreateRegistrationSchema.php b/src/Model/CreateRegistrationSchema.php index 4dd097c..c48ec9c 100644 --- a/src/Model/CreateRegistrationSchema.php +++ b/src/Model/CreateRegistrationSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CredentialCreatedSchema.php b/src/Model/CredentialCreatedSchema.php index 3e19e87..3734869 100644 --- a/src/Model/CredentialCreatedSchema.php +++ b/src/Model/CredentialCreatedSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CredentialListSchema.php b/src/Model/CredentialListSchema.php index b28e066..d47bbed 100644 --- a/src/Model/CredentialListSchema.php +++ b/src/Model/CredentialListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CredentialRequestSchema.php b/src/Model/CredentialRequestSchema.php index df427da..f4396f6 100644 --- a/src/Model/CredentialRequestSchema.php +++ b/src/Model/CredentialRequestSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/CredentialSchema.php b/src/Model/CredentialSchema.php index 4704740..76a30f7 100644 --- a/src/Model/CredentialSchema.php +++ b/src/Model/CredentialSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/DestinationIdSchema.php b/src/Model/DestinationIdSchema.php index 5b0bc8f..6004dbf 100644 --- a/src/Model/DestinationIdSchema.php +++ b/src/Model/DestinationIdSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/DestinationListSchema.php b/src/Model/DestinationListSchema.php index fdfb2c3..6a1b60d 100644 --- a/src/Model/DestinationListSchema.php +++ b/src/Model/DestinationListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/DestinationSchema.php b/src/Model/DestinationSchema.php index 84a5f21..defae8b 100644 --- a/src/Model/DestinationSchema.php +++ b/src/Model/DestinationSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** @@ -58,10 +58,13 @@ class DestinationSchema implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'name' => 'string', + 'updated' => '\DateTime', + 'created' => '\DateTime', 'tags' => 'string[]', 'email' => 'string', 'notes' => 'string', - 'launch_auth' => '\RusticiSoftware\Cloud\V2\Model\LaunchAuthSchema' + 'launch_auth' => '\RusticiSoftware\Cloud\V2\Model\LaunchAuthSchema', + 'lti13_data' => '\RusticiSoftware\Cloud\V2\Model\Lti13PlatformConfigurationSchema' ]; /** @@ -71,10 +74,13 @@ class DestinationSchema implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'name' => null, + 'updated' => 'date-time', + 'created' => 'date-time', 'tags' => null, 'email' => null, 'notes' => null, - 'launch_auth' => null + 'launch_auth' => null, + 'lti13_data' => null ]; /** @@ -105,10 +111,13 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'name' => 'name', + 'updated' => 'updated', + 'created' => 'created', 'tags' => 'tags', 'email' => 'email', 'notes' => 'notes', - 'launch_auth' => 'launchAuth' + 'launch_auth' => 'launchAuth', + 'lti13_data' => 'lti13Data' ]; /** @@ -118,10 +127,13 @@ public static function swaggerFormats() */ protected static $setters = [ 'name' => 'setName', + 'updated' => 'setUpdated', + 'created' => 'setCreated', 'tags' => 'setTags', 'email' => 'setEmail', 'notes' => 'setNotes', - 'launch_auth' => 'setLaunchAuth' + 'launch_auth' => 'setLaunchAuth', + 'lti13_data' => 'setLti13Data' ]; /** @@ -131,10 +143,13 @@ public static function swaggerFormats() */ protected static $getters = [ 'name' => 'getName', + 'updated' => 'getUpdated', + 'created' => 'getCreated', 'tags' => 'getTags', 'email' => 'getEmail', 'notes' => 'getNotes', - 'launch_auth' => 'getLaunchAuth' + 'launch_auth' => 'getLaunchAuth', + 'lti13_data' => 'getLti13Data' ]; /** @@ -198,10 +213,13 @@ public function getModelName() public function __construct(array $data = null) { $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['updated'] = isset($data['updated']) ? $data['updated'] : null; + $this->container['created'] = isset($data['created']) ? $data['created'] : null; $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['notes'] = isset($data['notes']) ? $data['notes'] : null; $this->container['launch_auth'] = isset($data['launch_auth']) ? $data['launch_auth'] : null; + $this->container['lti13_data'] = isset($data['lti13_data']) ? $data['lti13_data'] : null; } /** @@ -252,6 +270,54 @@ public function setName($name) return $this; } + /** + * Gets updated + * + * @return \DateTime + */ + public function getUpdated() + { + return $this->container['updated']; + } + + /** + * Sets updated + * + * @param \DateTime $updated updated + * + * @return $this + */ + public function setUpdated($updated) + { + $this->container['updated'] = $updated; + + return $this; + } + + /** + * Gets created + * + * @return \DateTime + */ + public function getCreated() + { + return $this->container['created']; + } + + /** + * Sets created + * + * @param \DateTime $created created + * + * @return $this + */ + public function setCreated($created) + { + $this->container['created'] = $created; + + return $this; + } + /** * Gets tags * @@ -347,6 +413,30 @@ public function setLaunchAuth($launch_auth) return $this; } + + /** + * Gets lti13_data + * + * @return \RusticiSoftware\Cloud\V2\Model\Lti13PlatformConfigurationSchema + */ + public function getLti13Data() + { + return $this->container['lti13_data']; + } + + /** + * Sets lti13_data + * + * @param \RusticiSoftware\Cloud\V2\Model\Lti13PlatformConfigurationSchema $lti13_data lti13_data + * + * @return $this + */ + public function setLti13Data($lti13_data) + { + $this->container['lti13_data'] = $lti13_data; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/DispatchIdSchema.php b/src/Model/DispatchIdSchema.php index c0c4d2c..62943e0 100644 --- a/src/Model/DispatchIdSchema.php +++ b/src/Model/DispatchIdSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/DispatchListSchema.php b/src/Model/DispatchListSchema.php index b0fbd35..cb9c0a0 100644 --- a/src/Model/DispatchListSchema.php +++ b/src/Model/DispatchListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/DispatchLti13InfoSchema.php b/src/Model/DispatchLti13InfoSchema.php new file mode 100644 index 0000000..8f32943 --- /dev/null +++ b/src/Model/DispatchLti13InfoSchema.php @@ -0,0 +1,301 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'target_link_uri' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'target_link_uri' => 'targetLinkUri' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'target_link_uri' => 'setTargetLinkUri' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'target_link_uri' => 'getTargetLinkUri' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['target_link_uri'] = isset($data['target_link_uri']) ? $data['target_link_uri'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets target_link_uri + * + * @return string + */ + public function getTargetLinkUri() + { + return $this->container['target_link_uri']; + } + + /** + * Sets target_link_uri + * + * @param string $target_link_uri Endpoint executed at the end of the OIDC authentication flow. + * + * @return $this + */ + public function setTargetLinkUri($target_link_uri) + { + $this->container['target_link_uri'] = $target_link_uri; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/DispatchLtiInfoSchema.php b/src/Model/DispatchLtiInfoSchema.php index 25dc62e..06f495d 100644 --- a/src/Model/DispatchLtiInfoSchema.php +++ b/src/Model/DispatchLtiInfoSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/DispatchRegistrationCountSchema.php b/src/Model/DispatchRegistrationCountSchema.php index 3f882f9..aff23fa 100644 --- a/src/Model/DispatchRegistrationCountSchema.php +++ b/src/Model/DispatchRegistrationCountSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/DispatchSchema.php b/src/Model/DispatchSchema.php index 1caaf28..5ef2111 100644 --- a/src/Model/DispatchSchema.php +++ b/src/Model/DispatchSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/EnabledSchema.php b/src/Model/EnabledSchema.php index fa808a8..799a085 100644 --- a/src/Model/EnabledSchema.php +++ b/src/Model/EnabledSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/FileListItemSchema.php b/src/Model/FileListItemSchema.php index 42bfd25..d4aa77a 100644 --- a/src/Model/FileListItemSchema.php +++ b/src/Model/FileListItemSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/FileListSchema.php b/src/Model/FileListSchema.php index ec7aed4..7814102 100644 --- a/src/Model/FileListSchema.php +++ b/src/Model/FileListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ImportAssetRequestSchema.php b/src/Model/ImportAssetRequestSchema.php index d02b68f..4042e80 100644 --- a/src/Model/ImportAssetRequestSchema.php +++ b/src/Model/ImportAssetRequestSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ImportConnectorRequestSchema.php b/src/Model/ImportConnectorRequestSchema.php new file mode 100644 index 0000000..3165b33 --- /dev/null +++ b/src/Model/ImportConnectorRequestSchema.php @@ -0,0 +1,362 @@ + 'string', + 'connector_id_for_content' => 'string', + 'metadata_for_connector' => 'object' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'connector_id' => null, + 'connector_id_for_content' => null, + 'metadata_for_connector' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'connector_id' => 'connectorId', + 'connector_id_for_content' => 'connectorIdForContent', + 'metadata_for_connector' => 'metadataForConnector' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'connector_id' => 'setConnectorId', + 'connector_id_for_content' => 'setConnectorIdForContent', + 'metadata_for_connector' => 'setMetadataForConnector' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'connector_id' => 'getConnectorId', + 'connector_id_for_content' => 'getConnectorIdForContent', + 'metadata_for_connector' => 'getMetadataForConnector' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['connector_id'] = isset($data['connector_id']) ? $data['connector_id'] : null; + $this->container['connector_id_for_content'] = isset($data['connector_id_for_content']) ? $data['connector_id_for_content'] : null; + $this->container['metadata_for_connector'] = isset($data['metadata_for_connector']) ? $data['metadata_for_connector'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets connector_id + * + * @return string + */ + public function getConnectorId() + { + return $this->container['connector_id']; + } + + /** + * Sets connector_id + * + * @param string $connector_id The connector to use for this course + * + * @return $this + */ + public function setConnectorId($connector_id) + { + $this->container['connector_id'] = $connector_id; + + return $this; + } + + /** + * Gets connector_id_for_content + * + * @return string + */ + public function getConnectorIdForContent() + { + return $this->container['connector_id_for_content']; + } + + /** + * Sets connector_id_for_content + * + * @param string $connector_id_for_content The id the connector provides to identify this content + * + * @return $this + */ + public function setConnectorIdForContent($connector_id_for_content) + { + $this->container['connector_id_for_content'] = $connector_id_for_content; + + return $this; + } + + /** + * Gets metadata_for_connector + * + * @return object + */ + public function getMetadataForConnector() + { + return $this->container['metadata_for_connector']; + } + + /** + * Sets metadata_for_connector + * + * @param object $metadata_for_connector The metadata for this connector, format is implementation specific + * + * @return $this + */ + public function setMetadataForConnector($metadata_for_connector) + { + $this->container['metadata_for_connector'] = $metadata_for_connector; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ImportFetchRequestSchema.php b/src/Model/ImportFetchRequestSchema.php index 1646397..423241a 100644 --- a/src/Model/ImportFetchRequestSchema.php +++ b/src/Model/ImportFetchRequestSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ImportJobResultSchema.php b/src/Model/ImportJobResultSchema.php index 71b2867..57404e2 100644 --- a/src/Model/ImportJobResultSchema.php +++ b/src/Model/ImportJobResultSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ImportMediaFileReferenceRequestSchema.php b/src/Model/ImportMediaFileReferenceRequestSchema.php index fd6fa30..c3b89bf 100644 --- a/src/Model/ImportMediaFileReferenceRequestSchema.php +++ b/src/Model/ImportMediaFileReferenceRequestSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ImportRequestSchema.php b/src/Model/ImportRequestSchema.php index 0e2e290..ca6c7f2 100644 --- a/src/Model/ImportRequestSchema.php +++ b/src/Model/ImportRequestSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** @@ -36,7 +36,7 @@ * ImportRequestSchema Class Doc Comment * * @category Class - * @description Request to import a new course. Exactly one of fetchRequest or mediaFileReferenceRequest must be supplied, depending on the desired import behavior. + * @description Request to import a new course. Exactly one of the schemas must be supplied, depending on the desired import behavior. * @package RusticiSoftware\Cloud\V2 * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -59,7 +59,8 @@ class ImportRequestSchema implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'fetch_request' => '\RusticiSoftware\Cloud\V2\Model\ImportFetchRequestSchema', - 'media_file_reference_request' => '\RusticiSoftware\Cloud\V2\Model\ImportMediaFileReferenceRequestSchema' + 'media_file_reference_request' => '\RusticiSoftware\Cloud\V2\Model\ImportMediaFileReferenceRequestSchema', + 'connector_reference_request' => '\RusticiSoftware\Cloud\V2\Model\ImportConnectorRequestSchema' ]; /** @@ -69,7 +70,8 @@ class ImportRequestSchema implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'fetch_request' => null, - 'media_file_reference_request' => null + 'media_file_reference_request' => null, + 'connector_reference_request' => null ]; /** @@ -100,7 +102,8 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'fetch_request' => 'fetchRequest', - 'media_file_reference_request' => 'mediaFileReferenceRequest' + 'media_file_reference_request' => 'mediaFileReferenceRequest', + 'connector_reference_request' => 'connectorReferenceRequest' ]; /** @@ -110,7 +113,8 @@ public static function swaggerFormats() */ protected static $setters = [ 'fetch_request' => 'setFetchRequest', - 'media_file_reference_request' => 'setMediaFileReferenceRequest' + 'media_file_reference_request' => 'setMediaFileReferenceRequest', + 'connector_reference_request' => 'setConnectorReferenceRequest' ]; /** @@ -120,7 +124,8 @@ public static function swaggerFormats() */ protected static $getters = [ 'fetch_request' => 'getFetchRequest', - 'media_file_reference_request' => 'getMediaFileReferenceRequest' + 'media_file_reference_request' => 'getMediaFileReferenceRequest', + 'connector_reference_request' => 'getConnectorReferenceRequest' ]; /** @@ -185,6 +190,7 @@ public function __construct(array $data = null) { $this->container['fetch_request'] = isset($data['fetch_request']) ? $data['fetch_request'] : null; $this->container['media_file_reference_request'] = isset($data['media_file_reference_request']) ? $data['media_file_reference_request'] : null; + $this->container['connector_reference_request'] = isset($data['connector_reference_request']) ? $data['connector_reference_request'] : null; } /** @@ -258,6 +264,30 @@ public function setMediaFileReferenceRequest($media_file_reference_request) return $this; } + + /** + * Gets connector_reference_request + * + * @return \RusticiSoftware\Cloud\V2\Model\ImportConnectorRequestSchema + */ + public function getConnectorReferenceRequest() + { + return $this->container['connector_reference_request']; + } + + /** + * Sets connector_reference_request + * + * @param \RusticiSoftware\Cloud\V2\Model\ImportConnectorRequestSchema $connector_reference_request connector_reference_request + * + * @return $this + */ + public function setConnectorReferenceRequest($connector_reference_request) + { + $this->container['connector_reference_request'] = $connector_reference_request; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/ImportResultSchema.php b/src/Model/ImportResultSchema.php index 0ec8827..760c5ae 100644 --- a/src/Model/ImportResultSchema.php +++ b/src/Model/ImportResultSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/IntegerResultSchema.php b/src/Model/IntegerResultSchema.php index 3b0a6f5..c8a4a68 100644 --- a/src/Model/IntegerResultSchema.php +++ b/src/Model/IntegerResultSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/InvitationEmailSchema.php b/src/Model/InvitationEmailSchema.php index 2cd5ce6..0301fc5 100644 --- a/src/Model/InvitationEmailSchema.php +++ b/src/Model/InvitationEmailSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/InvitationJobStatusSchema.php b/src/Model/InvitationJobStatusSchema.php index 89f9d48..3f9f7b9 100644 --- a/src/Model/InvitationJobStatusSchema.php +++ b/src/Model/InvitationJobStatusSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/InvitationSummaryList.php b/src/Model/InvitationSummaryList.php index 7c723f3..50a3535 100644 --- a/src/Model/InvitationSummaryList.php +++ b/src/Model/InvitationSummaryList.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/InvitationSummarySchema.php b/src/Model/InvitationSummarySchema.php index 71aa50c..78a6da9 100644 --- a/src/Model/InvitationSummarySchema.php +++ b/src/Model/InvitationSummarySchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ItemValuePairSchema.php b/src/Model/ItemValuePairSchema.php index bddda2c..f4c38ea 100644 --- a/src/Model/ItemValuePairSchema.php +++ b/src/Model/ItemValuePairSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/LaunchAuthOptionsSchema.php b/src/Model/LaunchAuthOptionsSchema.php index 1e760a6..4979742 100644 --- a/src/Model/LaunchAuthOptionsSchema.php +++ b/src/Model/LaunchAuthOptionsSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/LaunchAuthSchema.php b/src/Model/LaunchAuthSchema.php index 48d9af8..4d51f71 100644 --- a/src/Model/LaunchAuthSchema.php +++ b/src/Model/LaunchAuthSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/LaunchHistoryListSchema.php b/src/Model/LaunchHistoryListSchema.php index b8cb7c9..6c2388e 100644 --- a/src/Model/LaunchHistoryListSchema.php +++ b/src/Model/LaunchHistoryListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/LaunchHistorySchema.php b/src/Model/LaunchHistorySchema.php index 5efcc21..5d63149 100644 --- a/src/Model/LaunchHistorySchema.php +++ b/src/Model/LaunchHistorySchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/LaunchLinkRequestSchema.php b/src/Model/LaunchLinkRequestSchema.php index 5508781..4fd66e6 100644 --- a/src/Model/LaunchLinkRequestSchema.php +++ b/src/Model/LaunchLinkRequestSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/LaunchLinkSchema.php b/src/Model/LaunchLinkSchema.php index 05fa125..ffc5ad5 100644 --- a/src/Model/LaunchLinkSchema.php +++ b/src/Model/LaunchLinkSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/LearnerPreferenceSchema.php b/src/Model/LearnerPreferenceSchema.php index e7195dc..0437f67 100644 --- a/src/Model/LearnerPreferenceSchema.php +++ b/src/Model/LearnerPreferenceSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/LearnerSchema.php b/src/Model/LearnerSchema.php index 26b2ef3..5e196d8 100644 --- a/src/Model/LearnerSchema.php +++ b/src/Model/LearnerSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/Lti13PlatformConfigurationSchema.php b/src/Model/Lti13PlatformConfigurationSchema.php new file mode 100644 index 0000000..ec5ebfa --- /dev/null +++ b/src/Model/Lti13PlatformConfigurationSchema.php @@ -0,0 +1,466 @@ + 'string', + 'platform_issuer_identifier' => 'string', + 'deployment_id' => 'string', + 'oidc_authorization_endpoint' => 'string', + 'json_web_key_set_url' => 'string', + 'access_token_url' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'client_id' => null, + 'platform_issuer_identifier' => null, + 'deployment_id' => null, + 'oidc_authorization_endpoint' => null, + 'json_web_key_set_url' => null, + 'access_token_url' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'client_id' => 'clientId', + 'platform_issuer_identifier' => 'platformIssuerIdentifier', + 'deployment_id' => 'deploymentId', + 'oidc_authorization_endpoint' => 'oidcAuthorizationEndpoint', + 'json_web_key_set_url' => 'jsonWebKeySetUrl', + 'access_token_url' => 'accessTokenUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'client_id' => 'setClientId', + 'platform_issuer_identifier' => 'setPlatformIssuerIdentifier', + 'deployment_id' => 'setDeploymentId', + 'oidc_authorization_endpoint' => 'setOidcAuthorizationEndpoint', + 'json_web_key_set_url' => 'setJsonWebKeySetUrl', + 'access_token_url' => 'setAccessTokenUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'client_id' => 'getClientId', + 'platform_issuer_identifier' => 'getPlatformIssuerIdentifier', + 'deployment_id' => 'getDeploymentId', + 'oidc_authorization_endpoint' => 'getOidcAuthorizationEndpoint', + 'json_web_key_set_url' => 'getJsonWebKeySetUrl', + 'access_token_url' => 'getAccessTokenUrl' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['client_id'] = isset($data['client_id']) ? $data['client_id'] : null; + $this->container['platform_issuer_identifier'] = isset($data['platform_issuer_identifier']) ? $data['platform_issuer_identifier'] : null; + $this->container['deployment_id'] = isset($data['deployment_id']) ? $data['deployment_id'] : null; + $this->container['oidc_authorization_endpoint'] = isset($data['oidc_authorization_endpoint']) ? $data['oidc_authorization_endpoint'] : null; + $this->container['json_web_key_set_url'] = isset($data['json_web_key_set_url']) ? $data['json_web_key_set_url'] : null; + $this->container['access_token_url'] = isset($data['access_token_url']) ? $data['access_token_url'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['client_id'] === null) { + $invalidProperties[] = "'client_id' can't be null"; + } + if ($this->container['platform_issuer_identifier'] === null) { + $invalidProperties[] = "'platform_issuer_identifier' can't be null"; + } + if ($this->container['deployment_id'] === null) { + $invalidProperties[] = "'deployment_id' can't be null"; + } + if ($this->container['oidc_authorization_endpoint'] === null) { + $invalidProperties[] = "'oidc_authorization_endpoint' can't be null"; + } + if ($this->container['json_web_key_set_url'] === null) { + $invalidProperties[] = "'json_web_key_set_url' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets client_id + * + * @return string + */ + public function getClientId() + { + return $this->container['client_id']; + } + + /** + * Sets client_id + * + * @param string $client_id OAuth2 client Id for this tool + * + * @return $this + */ + public function setClientId($client_id) + { + $this->container['client_id'] = $client_id; + + return $this; + } + + /** + * Gets platform_issuer_identifier + * + * @return string + */ + public function getPlatformIssuerIdentifier() + { + return $this->container['platform_issuer_identifier']; + } + + /** + * Sets platform_issuer_identifier + * + * @param string $platform_issuer_identifier Issuer identifier identifying the learning platform + * + * @return $this + */ + public function setPlatformIssuerIdentifier($platform_issuer_identifier) + { + $this->container['platform_issuer_identifier'] = $platform_issuer_identifier; + + return $this; + } + + /** + * Gets deployment_id + * + * @return string + */ + public function getDeploymentId() + { + return $this->container['deployment_id']; + } + + /** + * Sets deployment_id + * + * @param string $deployment_id An unchanging identifier (locally unique within the platformIssuerIdentifier) for the platform-tool integration + * + * @return $this + */ + public function setDeploymentId($deployment_id) + { + $this->container['deployment_id'] = $deployment_id; + + return $this; + } + + /** + * Gets oidc_authorization_endpoint + * + * @return string + */ + public function getOidcAuthorizationEndpoint() + { + return $this->container['oidc_authorization_endpoint']; + } + + /** + * Sets oidc_authorization_endpoint + * + * @param string $oidc_authorization_endpoint Endpoint that will initiate the OIDC Authentication Request + * + * @return $this + */ + public function setOidcAuthorizationEndpoint($oidc_authorization_endpoint) + { + $this->container['oidc_authorization_endpoint'] = $oidc_authorization_endpoint; + + return $this; + } + + /** + * Gets json_web_key_set_url + * + * @return string + */ + public function getJsonWebKeySetUrl() + { + return $this->container['json_web_key_set_url']; + } + + /** + * Sets json_web_key_set_url + * + * @param string $json_web_key_set_url Path to the platform's JSON Web Key Set + * + * @return $this + */ + public function setJsonWebKeySetUrl($json_web_key_set_url) + { + $this->container['json_web_key_set_url'] = $json_web_key_set_url; + + return $this; + } + + /** + * Gets access_token_url + * + * @return string + */ + public function getAccessTokenUrl() + { + return $this->container['access_token_url']; + } + + /** + * Sets access_token_url + * + * @param string $access_token_url Endpoint that will return OAuth 2 access tokens for the platform + * + * @return $this + */ + public function setAccessTokenUrl($access_token_url) + { + $this->container['access_token_url'] = $access_token_url; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/Lti13ToolConfigurationSchema.php b/src/Model/Lti13ToolConfigurationSchema.php new file mode 100644 index 0000000..2b6cb69 --- /dev/null +++ b/src/Model/Lti13ToolConfigurationSchema.php @@ -0,0 +1,403 @@ + 'string', + 'oidc_login_initiations_url' => 'string', + 'redirect_uri' => 'string', + 'json_web_key_set_url' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'public_key' => null, + 'oidc_login_initiations_url' => null, + 'redirect_uri' => null, + 'json_web_key_set_url' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'public_key' => 'publicKey', + 'oidc_login_initiations_url' => 'oidcLoginInitiationsUrl', + 'redirect_uri' => 'redirectUri', + 'json_web_key_set_url' => 'jsonWebKeySetUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'public_key' => 'setPublicKey', + 'oidc_login_initiations_url' => 'setOidcLoginInitiationsUrl', + 'redirect_uri' => 'setRedirectUri', + 'json_web_key_set_url' => 'setJsonWebKeySetUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'public_key' => 'getPublicKey', + 'oidc_login_initiations_url' => 'getOidcLoginInitiationsUrl', + 'redirect_uri' => 'getRedirectUri', + 'json_web_key_set_url' => 'getJsonWebKeySetUrl' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['public_key'] = isset($data['public_key']) ? $data['public_key'] : null; + $this->container['oidc_login_initiations_url'] = isset($data['oidc_login_initiations_url']) ? $data['oidc_login_initiations_url'] : null; + $this->container['redirect_uri'] = isset($data['redirect_uri']) ? $data['redirect_uri'] : null; + $this->container['json_web_key_set_url'] = isset($data['json_web_key_set_url']) ? $data['json_web_key_set_url'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['public_key'] === null) { + $invalidProperties[] = "'public_key' can't be null"; + } + if ($this->container['oidc_login_initiations_url'] === null) { + $invalidProperties[] = "'oidc_login_initiations_url' can't be null"; + } + if ($this->container['redirect_uri'] === null) { + $invalidProperties[] = "'redirect_uri' can't be null"; + } + if ($this->container['json_web_key_set_url'] === null) { + $invalidProperties[] = "'json_web_key_set_url' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets public_key + * + * @return string + */ + public function getPublicKey() + { + return $this->container['public_key']; + } + + /** + * Sets public_key + * + * @param string $public_key Public key for LTI 1.3 tool + * + * @return $this + */ + public function setPublicKey($public_key) + { + $this->container['public_key'] = $public_key; + + return $this; + } + + /** + * Gets oidc_login_initiations_url + * + * @return string + */ + public function getOidcLoginInitiationsUrl() + { + return $this->container['oidc_login_initiations_url']; + } + + /** + * Sets oidc_login_initiations_url + * + * @param string $oidc_login_initiations_url Endpoint where the OIDC Authorization flow will be initiated + * + * @return $this + */ + public function setOidcLoginInitiationsUrl($oidc_login_initiations_url) + { + $this->container['oidc_login_initiations_url'] = $oidc_login_initiations_url; + + return $this; + } + + /** + * Gets redirect_uri + * + * @return string + */ + public function getRedirectUri() + { + return $this->container['redirect_uri']; + } + + /** + * Sets redirect_uri + * + * @param string $redirect_uri Endpoint where the OIDC Authorization Response should be sent + * + * @return $this + */ + public function setRedirectUri($redirect_uri) + { + $this->container['redirect_uri'] = $redirect_uri; + + return $this; + } + + /** + * Gets json_web_key_set_url + * + * @return string + */ + public function getJsonWebKeySetUrl() + { + return $this->container['json_web_key_set_url']; + } + + /** + * Sets json_web_key_set_url + * + * @param string $json_web_key_set_url Path to the tool's JSON Web Key Set + * + * @return $this + */ + public function setJsonWebKeySetUrl($json_web_key_set_url) + { + $this->container['json_web_key_set_url'] = $json_web_key_set_url; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/MediaFileMetadataSchema.php b/src/Model/MediaFileMetadataSchema.php index 9b48b30..a473cb7 100644 --- a/src/Model/MediaFileMetadataSchema.php +++ b/src/Model/MediaFileMetadataSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/MessageSchema.php b/src/Model/MessageSchema.php index bf5caa2..e887a4c 100644 --- a/src/Model/MessageSchema.php +++ b/src/Model/MessageSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/MetadataSchema.php b/src/Model/MetadataSchema.php index b95f8f8..1cadd8f 100644 --- a/src/Model/MetadataSchema.php +++ b/src/Model/MetadataSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ModelInterface.php b/src/Model/ModelInterface.php index 8689675..c621139 100644 --- a/src/Model/ModelInterface.php +++ b/src/Model/ModelInterface.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ObjectiveSchema.php b/src/Model/ObjectiveSchema.php index b3a9f0c..6b7c3e0 100644 --- a/src/Model/ObjectiveSchema.php +++ b/src/Model/ObjectiveSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/PermissionsSchema.php b/src/Model/PermissionsSchema.php index d3d6d39..4c4ea68 100644 --- a/src/Model/PermissionsSchema.php +++ b/src/Model/PermissionsSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/PingSchema.php b/src/Model/PingSchema.php index 91a98a1..c0425b8 100644 --- a/src/Model/PingSchema.php +++ b/src/Model/PingSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/PostBackSchema.php b/src/Model/PostBackSchema.php index 97bd986..6f38c97 100644 --- a/src/Model/PostBackSchema.php +++ b/src/Model/PostBackSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/PrivateInvitationList.php b/src/Model/PrivateInvitationList.php index 247ff6c..2a48234 100644 --- a/src/Model/PrivateInvitationList.php +++ b/src/Model/PrivateInvitationList.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/PrivateInvitationSchema.php b/src/Model/PrivateInvitationSchema.php index 37e6ad4..620292d 100644 --- a/src/Model/PrivateInvitationSchema.php +++ b/src/Model/PrivateInvitationSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/PrivateInvitationUpdateSchema.php b/src/Model/PrivateInvitationUpdateSchema.php index f11e24c..3e62c58 100644 --- a/src/Model/PrivateInvitationUpdateSchema.php +++ b/src/Model/PrivateInvitationUpdateSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/PublicInvitationList.php b/src/Model/PublicInvitationList.php index e149141..de8c2fc 100644 --- a/src/Model/PublicInvitationList.php +++ b/src/Model/PublicInvitationList.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/PublicInvitationSchema.php b/src/Model/PublicInvitationSchema.php index 39c3e75..66601f5 100644 --- a/src/Model/PublicInvitationSchema.php +++ b/src/Model/PublicInvitationSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** @@ -60,6 +60,7 @@ class PublicInvitationSchema implements ModelInterface, ArrayAccess 'id' => 'string', 'course_id' => 'string', 'allow_launch' => 'bool', + 'invitation_email' => '\RusticiSoftware\Cloud\V2\Model\InvitationEmailSchema', 'allow_new_registrations' => 'bool', 'url' => 'string', 'create_date' => '\DateTime', @@ -79,6 +80,7 @@ class PublicInvitationSchema implements ModelInterface, ArrayAccess 'id' => null, 'course_id' => null, 'allow_launch' => null, + 'invitation_email' => null, 'allow_new_registrations' => null, 'url' => null, 'create_date' => 'date-time', @@ -119,6 +121,7 @@ public static function swaggerFormats() 'id' => 'id', 'course_id' => 'courseId', 'allow_launch' => 'allowLaunch', + 'invitation_email' => 'invitationEmail', 'allow_new_registrations' => 'allowNewRegistrations', 'url' => 'url', 'create_date' => 'createDate', @@ -138,6 +141,7 @@ public static function swaggerFormats() 'id' => 'setId', 'course_id' => 'setCourseId', 'allow_launch' => 'setAllowLaunch', + 'invitation_email' => 'setInvitationEmail', 'allow_new_registrations' => 'setAllowNewRegistrations', 'url' => 'setUrl', 'create_date' => 'setCreateDate', @@ -157,6 +161,7 @@ public static function swaggerFormats() 'id' => 'getId', 'course_id' => 'getCourseId', 'allow_launch' => 'getAllowLaunch', + 'invitation_email' => 'getInvitationEmail', 'allow_new_registrations' => 'getAllowNewRegistrations', 'url' => 'getUrl', 'create_date' => 'getCreateDate', @@ -230,6 +235,7 @@ public function __construct(array $data = null) $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['course_id'] = isset($data['course_id']) ? $data['course_id'] : null; $this->container['allow_launch'] = isset($data['allow_launch']) ? $data['allow_launch'] : null; + $this->container['invitation_email'] = isset($data['invitation_email']) ? $data['invitation_email'] : null; $this->container['allow_new_registrations'] = isset($data['allow_new_registrations']) ? $data['allow_new_registrations'] : null; $this->container['url'] = isset($data['url']) ? $data['url'] : null; $this->container['create_date'] = isset($data['create_date']) ? $data['create_date'] : null; @@ -336,6 +342,30 @@ public function setAllowLaunch($allow_launch) return $this; } + /** + * Gets invitation_email + * + * @return \RusticiSoftware\Cloud\V2\Model\InvitationEmailSchema + */ + public function getInvitationEmail() + { + return $this->container['invitation_email']; + } + + /** + * Sets invitation_email + * + * @param \RusticiSoftware\Cloud\V2\Model\InvitationEmailSchema $invitation_email invitation_email + * + * @return $this + */ + public function setInvitationEmail($invitation_email) + { + $this->container['invitation_email'] = $invitation_email; + + return $this; + } + /** * Gets allow_new_registrations * diff --git a/src/Model/PublicInvitationUpdateSchema.php b/src/Model/PublicInvitationUpdateSchema.php index 7820e41..38f48b1 100644 --- a/src/Model/PublicInvitationUpdateSchema.php +++ b/src/Model/PublicInvitationUpdateSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/RegistrationCompletion.php b/src/Model/RegistrationCompletion.php index d3eeffc..326ebce 100644 --- a/src/Model/RegistrationCompletion.php +++ b/src/Model/RegistrationCompletion.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/RegistrationListSchema.php b/src/Model/RegistrationListSchema.php index c7a7f1b..29a993e 100644 --- a/src/Model/RegistrationListSchema.php +++ b/src/Model/RegistrationListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/RegistrationSchema.php b/src/Model/RegistrationSchema.php index 90fd067..d695420 100644 --- a/src/Model/RegistrationSchema.php +++ b/src/Model/RegistrationSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/RegistrationSuccess.php b/src/Model/RegistrationSuccess.php index 984afeb..2707900 100644 --- a/src/Model/RegistrationSuccess.php +++ b/src/Model/RegistrationSuccess.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ReportageAccountInfoSchema.php b/src/Model/ReportageAccountInfoSchema.php index ad1fd43..b9af1f5 100644 --- a/src/Model/ReportageAccountInfoSchema.php +++ b/src/Model/ReportageAccountInfoSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ReportageAccountInfoUsageSchema.php b/src/Model/ReportageAccountInfoUsageSchema.php index b3766f0..c921a98 100644 --- a/src/Model/ReportageAccountInfoUsageSchema.php +++ b/src/Model/ReportageAccountInfoUsageSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ReportageAuthTokenSchema.php b/src/Model/ReportageAuthTokenSchema.php index 63fd471..bd050a2 100644 --- a/src/Model/ReportageAuthTokenSchema.php +++ b/src/Model/ReportageAuthTokenSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ReportageLinkSchema.php b/src/Model/ReportageLinkSchema.php index 4548c50..2adc805 100644 --- a/src/Model/ReportageLinkSchema.php +++ b/src/Model/ReportageLinkSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ResponseError.php b/src/Model/ResponseError.php index 194637a..9fb8393 100644 --- a/src/Model/ResponseError.php +++ b/src/Model/ResponseError.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/RuntimeInteractionSchema.php b/src/Model/RuntimeInteractionSchema.php index 2fd2bf5..80a30ad 100644 --- a/src/Model/RuntimeInteractionSchema.php +++ b/src/Model/RuntimeInteractionSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/RuntimeObjectiveSchema.php b/src/Model/RuntimeObjectiveSchema.php index f5171ac..34ceb49 100644 --- a/src/Model/RuntimeObjectiveSchema.php +++ b/src/Model/RuntimeObjectiveSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/RuntimeSchema.php b/src/Model/RuntimeSchema.php index 84f6b1f..2ddba6b 100644 --- a/src/Model/RuntimeSchema.php +++ b/src/Model/RuntimeSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ScoreSchema.php b/src/Model/ScoreSchema.php index 0173a05..6adddfc 100644 --- a/src/Model/ScoreSchema.php +++ b/src/Model/ScoreSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/SettingItem.php b/src/Model/SettingItem.php index 5b6f0c6..ca16e9e 100644 --- a/src/Model/SettingItem.php +++ b/src/Model/SettingItem.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/SettingListSchema.php b/src/Model/SettingListSchema.php index 208d445..6f750b3 100644 --- a/src/Model/SettingListSchema.php +++ b/src/Model/SettingListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/SettingMetadata.php b/src/Model/SettingMetadata.php index 7b43df8..258e0ff 100644 --- a/src/Model/SettingMetadata.php +++ b/src/Model/SettingMetadata.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/SettingValidValue.php b/src/Model/SettingValidValue.php index b05b515..808a675 100644 --- a/src/Model/SettingValidValue.php +++ b/src/Model/SettingValidValue.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/SettingsIndividualSchema.php b/src/Model/SettingsIndividualSchema.php index f7b10b8..2a9e473 100644 --- a/src/Model/SettingsIndividualSchema.php +++ b/src/Model/SettingsIndividualSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/SettingsPostSchema.php b/src/Model/SettingsPostSchema.php index 86cd53f..38c5b47 100644 --- a/src/Model/SettingsPostSchema.php +++ b/src/Model/SettingsPostSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/SharedDataEntrySchema.php b/src/Model/SharedDataEntrySchema.php index 0316e0a..5b82e4d 100644 --- a/src/Model/SharedDataEntrySchema.php +++ b/src/Model/SharedDataEntrySchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/StaticPropertiesSchema.php b/src/Model/StaticPropertiesSchema.php index 4df2a49..3f0afba 100644 --- a/src/Model/StaticPropertiesSchema.php +++ b/src/Model/StaticPropertiesSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/StringResultSchema.php b/src/Model/StringResultSchema.php index 45d3a50..e3c6842 100644 --- a/src/Model/StringResultSchema.php +++ b/src/Model/StringResultSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/TagListSchema.php b/src/Model/TagListSchema.php index fb9431b..347c926 100644 --- a/src/Model/TagListSchema.php +++ b/src/Model/TagListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/TitleSchema.php b/src/Model/TitleSchema.php index aefff6b..5f319af 100644 --- a/src/Model/TitleSchema.php +++ b/src/Model/TitleSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/TokenRequestSchema.php b/src/Model/TokenRequestSchema.php index 7a4dd68..12a8212 100644 --- a/src/Model/TokenRequestSchema.php +++ b/src/Model/TokenRequestSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/UpdateApplicationSchema.php b/src/Model/UpdateApplicationSchema.php index 0e235b4..5d4816a 100644 --- a/src/Model/UpdateApplicationSchema.php +++ b/src/Model/UpdateApplicationSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/UpdateConnectorSchema.php b/src/Model/UpdateConnectorSchema.php new file mode 100644 index 0000000..b06c9bd --- /dev/null +++ b/src/Model/UpdateConnectorSchema.php @@ -0,0 +1,331 @@ + 'object', + 'enabled' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'configuration' => null, + 'enabled' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'configuration' => 'configuration', + 'enabled' => 'enabled' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'configuration' => 'setConfiguration', + 'enabled' => 'setEnabled' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'configuration' => 'getConfiguration', + 'enabled' => 'getEnabled' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['configuration'] = isset($data['configuration']) ? $data['configuration'] : null; + $this->container['enabled'] = isset($data['enabled']) ? $data['enabled'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets configuration + * + * @return object + */ + public function getConfiguration() + { + return $this->container['configuration']; + } + + /** + * Sets configuration + * + * @param object $configuration configuration for this content connector, format is implementation specific + * + * @return $this + */ + public function setConfiguration($configuration) + { + $this->container['configuration'] = $configuration; + + return $this; + } + + /** + * Gets enabled + * + * @return bool + */ + public function getEnabled() + { + return $this->container['enabled']; + } + + /** + * Sets enabled + * + * @param bool $enabled is this connector enabled + * + * @return $this + */ + public function setEnabled($enabled) + { + $this->container['enabled'] = $enabled; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/UpdateDispatchSchema.php b/src/Model/UpdateDispatchSchema.php index e38dfcd..28fc6cf 100644 --- a/src/Model/UpdateDispatchSchema.php +++ b/src/Model/UpdateDispatchSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/UserInvitationList.php b/src/Model/UserInvitationList.php index 64ac800..bd81130 100644 --- a/src/Model/UserInvitationList.php +++ b/src/Model/UserInvitationList.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/UserInvitationSchema.php b/src/Model/UserInvitationSchema.php index 4cff521..8b97f21 100644 --- a/src/Model/UserInvitationSchema.php +++ b/src/Model/UserInvitationSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/UserInvitationSchemaRegistrationReport.php b/src/Model/UserInvitationSchemaRegistrationReport.php index e323695..95ec747 100644 --- a/src/Model/UserInvitationSchemaRegistrationReport.php +++ b/src/Model/UserInvitationSchemaRegistrationReport.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiAccount.php b/src/Model/XapiAccount.php index e57a9da..8fdacca 100644 --- a/src/Model/XapiAccount.php +++ b/src/Model/XapiAccount.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiActivity.php b/src/Model/XapiActivity.php index cb78405..f141b30 100644 --- a/src/Model/XapiActivity.php +++ b/src/Model/XapiActivity.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiActivityDefinition.php b/src/Model/XapiActivityDefinition.php index 2f9d00d..2fc0fbf 100644 --- a/src/Model/XapiActivityDefinition.php +++ b/src/Model/XapiActivityDefinition.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiAgentGroup.php b/src/Model/XapiAgentGroup.php index 059690f..38b2102 100644 --- a/src/Model/XapiAgentGroup.php +++ b/src/Model/XapiAgentGroup.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiAttachment.php b/src/Model/XapiAttachment.php index 81e03b9..2756e85 100644 --- a/src/Model/XapiAttachment.php +++ b/src/Model/XapiAttachment.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiContext.php b/src/Model/XapiContext.php index 480d3cb..e55e637 100644 --- a/src/Model/XapiContext.php +++ b/src/Model/XapiContext.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiContextActivity.php b/src/Model/XapiContextActivity.php index 26f4ee6..b63da8b 100644 --- a/src/Model/XapiContextActivity.php +++ b/src/Model/XapiContextActivity.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiCredentialAuthTypeSchema.php b/src/Model/XapiCredentialAuthTypeSchema.php index 1de9474..97d0c1b 100644 --- a/src/Model/XapiCredentialAuthTypeSchema.php +++ b/src/Model/XapiCredentialAuthTypeSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiCredentialPermissionsLevelSchema.php b/src/Model/XapiCredentialPermissionsLevelSchema.php index fc8aa43..7818497 100644 --- a/src/Model/XapiCredentialPermissionsLevelSchema.php +++ b/src/Model/XapiCredentialPermissionsLevelSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiCredentialPostSchema.php b/src/Model/XapiCredentialPostSchema.php index ad5ecd7..d4b79fd 100644 --- a/src/Model/XapiCredentialPostSchema.php +++ b/src/Model/XapiCredentialPostSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiCredentialPutSchema.php b/src/Model/XapiCredentialPutSchema.php index 78d5df5..dcce488 100644 --- a/src/Model/XapiCredentialPutSchema.php +++ b/src/Model/XapiCredentialPutSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiCredentialSchema.php b/src/Model/XapiCredentialSchema.php index 88b30c5..c87d008 100644 --- a/src/Model/XapiCredentialSchema.php +++ b/src/Model/XapiCredentialSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiCredentialsListSchema.php b/src/Model/XapiCredentialsListSchema.php index 2663da0..590cfbb 100644 --- a/src/Model/XapiCredentialsListSchema.php +++ b/src/Model/XapiCredentialsListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiEndpointSchema.php b/src/Model/XapiEndpointSchema.php index d462a04..c5c9e46 100644 --- a/src/Model/XapiEndpointSchema.php +++ b/src/Model/XapiEndpointSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiInteractionComponent.php b/src/Model/XapiInteractionComponent.php index 87cdf8f..9d47e11 100644 --- a/src/Model/XapiInteractionComponent.php +++ b/src/Model/XapiInteractionComponent.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiResult.php b/src/Model/XapiResult.php index 14216d4..0ada1d5 100644 --- a/src/Model/XapiResult.php +++ b/src/Model/XapiResult.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiScore.php b/src/Model/XapiScore.php index 767398a..4a0f318 100644 --- a/src/Model/XapiScore.php +++ b/src/Model/XapiScore.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiStatement.php b/src/Model/XapiStatement.php index ec67037..442b086 100644 --- a/src/Model/XapiStatement.php +++ b/src/Model/XapiStatement.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiStatementPipeListSchema.php b/src/Model/XapiStatementPipeListSchema.php index e5c36bc..715a5c8 100644 --- a/src/Model/XapiStatementPipeListSchema.php +++ b/src/Model/XapiStatementPipeListSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiStatementPipePostSchema.php b/src/Model/XapiStatementPipePostSchema.php index 9f330ed..face7e5 100644 --- a/src/Model/XapiStatementPipePostSchema.php +++ b/src/Model/XapiStatementPipePostSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiStatementPipePutSchema.php b/src/Model/XapiStatementPipePutSchema.php index dbadfaa..e86dd98 100644 --- a/src/Model/XapiStatementPipePutSchema.php +++ b/src/Model/XapiStatementPipePutSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiStatementPipeSchema.php b/src/Model/XapiStatementPipeSchema.php index 349c45c..92149dc 100644 --- a/src/Model/XapiStatementPipeSchema.php +++ b/src/Model/XapiStatementPipeSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiStatementReference.php b/src/Model/XapiStatementReference.php index e9d08b0..a74294d 100644 --- a/src/Model/XapiStatementReference.php +++ b/src/Model/XapiStatementReference.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiStatementResult.php b/src/Model/XapiStatementResult.php index 608e094..a6f8bff 100644 --- a/src/Model/XapiStatementResult.php +++ b/src/Model/XapiStatementResult.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/XapiVerb.php b/src/Model/XapiVerb.php index 46b19a8..67c326f 100644 --- a/src/Model/XapiVerb.php +++ b/src/Model/XapiVerb.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ZoomiCompanyId.php b/src/Model/ZoomiCompanyId.php index fb5b285..2073b88 100644 --- a/src/Model/ZoomiCompanyId.php +++ b/src/Model/ZoomiCompanyId.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/Model/ZoomiCourseOptionsSchema.php b/src/Model/ZoomiCourseOptionsSchema.php index ee2abc0..e6c9ece 100644 --- a/src/Model/ZoomiCourseOptionsSchema.php +++ b/src/Model/ZoomiCourseOptionsSchema.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /** diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index 8185efb..1b88655 100644 --- a/src/ObjectSerializer.php +++ b/src/ObjectSerializer.php @@ -18,7 +18,7 @@ * OpenAPI spec version: 2.0 * * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 2.4.12 + * Swagger Codegen version: 2.4.27 */ /**