Skip to content

Commit

Permalink
Rename root namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Mar 25, 2019
1 parent dfb7ce1 commit 96dd07e
Show file tree
Hide file tree
Showing 45 changed files with 242 additions and 242 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ Please follow the [installation procedure](#installation--usage) and then run th
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: asmp_auth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
$config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
// $config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\ChangeApi(
$apiInstance = new ASMP\Client\Api\ChangeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Swagger\Client\Model\ChangeRequest(); // \Swagger\Client\Model\ChangeRequest | Request a specific change
$body = new \ASMP\Client\Model\ChangeRequest(); // \ASMP\Client\Model\ChangeRequest | Request a specific change

try {
$result = $apiInstance->change($body);
Expand Down
16 changes: 8 additions & 8 deletions docs/Api/ChangeApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Swagger\Client\ChangeApi
# ASMP\Client\ChangeApi

All URIs are relative to *https://swagger.asmprotocol.org/v1*

Expand All @@ -7,7 +7,7 @@ Method | HTTP request | Description
[**change**](ChangeApi.md#change) | **POST** /change | Request a specific change for one or multiple components as previously checked in a /check request

# **change**
> \Swagger\Client\Model\ChangeResponse change($body)
> \ASMP\Client\Model\ChangeResponse change($body)
Request a specific change for one or multiple components as previously checked in a /check request

Expand All @@ -16,17 +16,17 @@ Request a specific change for one or multiple components as previously checked i
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: asmp_auth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
$config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
// $config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\ChangeApi(
$apiInstance = new ASMP\Client\Api\ChangeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Swagger\Client\Model\ChangeRequest(); // \Swagger\Client\Model\ChangeRequest | Request a specific change
$body = new \ASMP\Client\Model\ChangeRequest(); // \ASMP\Client\Model\ChangeRequest | Request a specific change

try {
$result = $apiInstance->change($body);
Expand All @@ -41,11 +41,11 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**\Swagger\Client\Model\ChangeRequest**](../Model/ChangeRequest.md)| Request a specific change |
**body** | [**\ASMP\Client\Model\ChangeRequest**](../Model/ChangeRequest.md)| Request a specific change |

### Return type

[**\Swagger\Client\Model\ChangeResponse**](../Model/ChangeResponse.md)
[**\ASMP\Client\Model\ChangeResponse**](../Model/ChangeResponse.md)

### Authorization

Expand Down
16 changes: 8 additions & 8 deletions docs/Api/CheckApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Swagger\Client\CheckApi
# ASMP\Client\CheckApi

All URIs are relative to *https://swagger.asmprotocol.org/v1*

Expand All @@ -7,7 +7,7 @@ Method | HTTP request | Description
[**check**](CheckApi.md#check) | **POST** /check | Define a list of desired changes using abstract constraints. Server should process these constraints, check if they can be fulfilled and respond with the possible resolutions.

# **check**
> \Swagger\Client\Model\CheckResponse check($body)
> \ASMP\Client\Model\CheckResponse check($body)
Define a list of desired changes using abstract constraints. Server should process these constraints, check if they can be fulfilled and respond with the possible resolutions.

Expand All @@ -16,17 +16,17 @@ Define a list of desired changes using abstract constraints. Server should proce
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: asmp_auth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
$config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
// $config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\CheckApi(
$apiInstance = new ASMP\Client\Api\CheckApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Swagger\Client\Model\CheckRequest(); // \Swagger\Client\Model\CheckRequest | Check request
$body = new \ASMP\Client\Model\CheckRequest(); // \ASMP\Client\Model\CheckRequest | Check request

try {
$result = $apiInstance->check($body);
Expand All @@ -41,11 +41,11 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**\Swagger\Client\Model\CheckRequest**](../Model/CheckRequest.md)| Check request |
**body** | [**\ASMP\Client\Model\CheckRequest**](../Model/CheckRequest.md)| Check request |

### Return type

[**\Swagger\Client\Model\CheckResponse**](../Model/CheckResponse.md)
[**\ASMP\Client\Model\CheckResponse**](../Model/CheckResponse.md)

### Authorization

Expand Down
16 changes: 8 additions & 8 deletions docs/Api/RollbackApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Swagger\Client\RollbackApi
# ASMP\Client\RollbackApi

All URIs are relative to *https://swagger.asmprotocol.org/v1*

Expand All @@ -7,7 +7,7 @@ Method | HTTP request | Description
[**rollback**](RollbackApi.md#rollback) | **POST** /rollback | Rollback a specific change set

# **rollback**
> \Swagger\Client\Model\ChangeResponse rollback($body)
> \ASMP\Client\Model\ChangeResponse rollback($body)
Rollback a specific change set

Expand All @@ -16,17 +16,17 @@ Rollback a specific change set
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: asmp_auth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
$config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
// $config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\RollbackApi(
$apiInstance = new ASMP\Client\Api\RollbackApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \Swagger\Client\Model\RollbackRequest(); // \Swagger\Client\Model\RollbackRequest | Define the changeset that should be rolled back
$body = new \ASMP\Client\Model\RollbackRequest(); // \ASMP\Client\Model\RollbackRequest | Define the changeset that should be rolled back

try {
$result = $apiInstance->rollback($body);
Expand All @@ -41,11 +41,11 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**\Swagger\Client\Model\RollbackRequest**](../Model/RollbackRequest.md)| Define the changeset that should be rolled back |
**body** | [**\ASMP\Client\Model\RollbackRequest**](../Model/RollbackRequest.md)| Define the changeset that should be rolled back |

### Return type

[**\Swagger\Client\Model\ChangeResponse**](../Model/ChangeResponse.md)
[**\ASMP\Client\Model\ChangeResponse**](../Model/ChangeResponse.md)

### Authorization

Expand Down
12 changes: 6 additions & 6 deletions docs/Api/StatusApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Swagger\Client\StatusApi
# ASMP\Client\StatusApi

All URIs are relative to *https://swagger.asmprotocol.org/v1*

Expand All @@ -7,7 +7,7 @@ Method | HTTP request | Description
[**status**](StatusApi.md#status) | **GET** /status/{id} | Get the current status for a given request ID

# **status**
> \Swagger\Client\Model\StatusResponse status($id)
> \ASMP\Client\Model\StatusResponse status($id)
Get the current status for a given request ID

Expand All @@ -16,11 +16,11 @@ Get the current status for a given request ID
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: asmp_auth
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
$config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
// $config = ASMP\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');

$apiInstance = new Swagger\Client\Api\StatusApi(
$apiInstance = new ASMP\Client\Api\StatusApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
Expand All @@ -45,7 +45,7 @@ Name | Type | Description | Notes

### Return type

[**\Swagger\Client\Model\StatusResponse**](../Model/StatusResponse.md)
[**\ASMP\Client\Model\StatusResponse**](../Model/StatusResponse.md)

### Authorization

Expand Down
2 changes: 1 addition & 1 deletion docs/Model/ChangeRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**callback** | **string** | Callback URL being called once the request has been processed | [optional]
**components** | [**\Swagger\Client\Model\ComponentChange[]**](ComponentChange.md) | |
**components** | [**\ASMP\Client\Model\ComponentChange[]**](ComponentChange.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion docs/Model/CheckRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**components** | [**\Swagger\Client\Model\ComponentGroup[]**](ComponentGroup.md) | | [optional]
**components** | [**\ASMP\Client\Model\ComponentGroup[]**](ComponentGroup.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion docs/Model/CheckResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**fulfillable** | **bool** | | [optional]
**components** | [**\Swagger\Client\Model\ComponentChange[]**](ComponentChange.md) | | [optional]
**components** | [**\ASMP\Client\Model\ComponentChange[]**](ComponentChange.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion docs/Model/ConstraintGroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **string** | component name according to reserved component names, see asmp.io |
**constraints** | [**\Swagger\Client\Model\Constraint[]**](Constraint.md) | Array of constraints for the given component. A change request can be fulfilled if ALL of the contraints defined in the array can be fulfilled. | [optional]
**constraints** | [**\ASMP\Client\Model\Constraint[]**](Constraint.md) | Array of constraints for the given component. A change request can be fulfilled if ALL of the contraints defined in the array can be fulfilled. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion docs/Model/StatusResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**code** | [**\Swagger\Client\Model\ChangeStatusCode**](ChangeStatusCode.md) | | [optional]
**code** | [**\ASMP\Client\Model\ChangeStatusCode**](ChangeStatusCode.md) | | [optional]
**message** | **string** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
38 changes: 19 additions & 19 deletions lib/Api/ChangeApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @package ASMP\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
Expand All @@ -25,24 +25,24 @@
* Do not edit the class manually.
*/

namespace Swagger\Client\Api;
namespace ASMP\Client\Api;

use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use Swagger\Client\ApiException;
use Swagger\Client\Configuration;
use Swagger\Client\HeaderSelector;
use Swagger\Client\ObjectSerializer;
use ASMP\Client\ApiException;
use ASMP\Client\Configuration;
use ASMP\Client\HeaderSelector;
use ASMP\Client\ObjectSerializer;

/**
* ChangeApi Class Doc Comment
*
* @category Class
* @package Swagger\Client
* @package ASMP\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
Expand Down Expand Up @@ -91,11 +91,11 @@ public function getConfig()
*
* Request a specific change for one or multiple components as previously checked in a /check request
*
* @param \Swagger\Client\Model\ChangeRequest $body Request a specific change (required)
* @param \ASMP\Client\Model\ChangeRequest $body Request a specific change (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \ASMP\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\ChangeResponse
* @return \ASMP\Client\Model\ChangeResponse
*/
public function change($body)
{
Expand All @@ -108,15 +108,15 @@ public function change($body)
*
* Request a specific change for one or multiple components as previously checked in a /check request
*
* @param \Swagger\Client\Model\ChangeRequest $body Request a specific change (required)
* @param \ASMP\Client\Model\ChangeRequest $body Request a specific change (required)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \ASMP\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\ChangeResponse, HTTP status code, HTTP response headers (array of strings)
* @return array of \ASMP\Client\Model\ChangeResponse, HTTP status code, HTTP response headers (array of strings)
*/
public function changeWithHttpInfo($body)
{
$returnType = '\Swagger\Client\Model\ChangeResponse';
$returnType = '\ASMP\Client\Model\ChangeResponse';
$request = $this->changeRequest($body);

try {
Expand Down Expand Up @@ -168,7 +168,7 @@ public function changeWithHttpInfo($body)
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\ChangeResponse',
'\ASMP\Client\Model\ChangeResponse',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
Expand All @@ -183,7 +183,7 @@ public function changeWithHttpInfo($body)
*
* Request a specific change for one or multiple components as previously checked in a /check request
*
* @param \Swagger\Client\Model\ChangeRequest $body Request a specific change (required)
* @param \ASMP\Client\Model\ChangeRequest $body Request a specific change (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
Expand All @@ -203,14 +203,14 @@ function ($response) {
*
* Request a specific change for one or multiple components as previously checked in a /check request
*
* @param \Swagger\Client\Model\ChangeRequest $body Request a specific change (required)
* @param \ASMP\Client\Model\ChangeRequest $body Request a specific change (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function changeAsyncWithHttpInfo($body)
{
$returnType = '\Swagger\Client\Model\ChangeResponse';
$returnType = '\ASMP\Client\Model\ChangeResponse';
$request = $this->changeRequest($body);

return $this->client
Expand Down Expand Up @@ -253,7 +253,7 @@ function ($exception) {
/**
* Create request for operation 'change'
*
* @param \Swagger\Client\Model\ChangeRequest $body Request a specific change (required)
* @param \ASMP\Client\Model\ChangeRequest $body Request a specific change (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
Expand Down
Loading

0 comments on commit 96dd07e

Please sign in to comment.