这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
160 changes: 82 additions & 78 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"@spec:generate",
"@fix:all"
],

"lint": [
"@lint:phpcs",
"@lint:php-cs-fixer"
Expand Down
4 changes: 0 additions & 4 deletions docs/Api/AddOnsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ Retrieves information about the add-ons for an organization.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\AddOnsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -80,8 +78,6 @@ Updates the add-ons configuration for an organization.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\AddOnsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down
4 changes: 0 additions & 4 deletions docs/Api/AlertsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ Get usage alerts for a subscription
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\AlertsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -76,8 +74,6 @@ Update usage alerts.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\AlertsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down
8 changes: 0 additions & 8 deletions docs/Api/ApiTokensApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ Creates an API token
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\ApiTokensApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -84,8 +82,6 @@ Deletes an API token
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\ApiTokensApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -141,8 +137,6 @@ Retrieves the specified API token.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\ApiTokensApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -199,8 +193,6 @@ Retrieves a list of API tokens associated with a single user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\ApiTokensApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down
67 changes: 0 additions & 67 deletions docs/Api/AutoscalingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ All URIs are relative to https://api.upsun.com, except if the operation defines
| ------------- | ------------- | ------------- | ------------- |
| [**getAutoscalerSettings()**](AutoscalingApi.md#getAutoscalerSettings) | **GET** /projects/{projectId}/environments/{environmentId}/autoscaling/settings | | https://docs.upsun.com/api/#tag/Autoscaling/operation/get-autoscaler-settings |
| [**patchAutoscalerSettings()**](AutoscalingApi.md#patchAutoscalerSettings) | **PATCH** /projects/{projectId}/environments/{environmentId}/autoscaling/settings | | https://docs.upsun.com/api/#tag/Autoscaling/operation/patch-autoscaler-settings |
| [**postAutoscalerAlert()**](AutoscalingApi.md#postAutoscalerAlert) | **POST** /projects/{projectId}/environments/{environmentId}/autoscaling/alerts | | https://docs.upsun.com/api/#tag/Autoscaling/operation/post-autoscaler-alert |
| [**postAutoscalerSettings()**](AutoscalingApi.md#postAutoscalerSettings) | **POST** /projects/{projectId}/environments/{environmentId}/autoscaling/settings | | https://docs.upsun.com/api/#tag/Autoscaling/operation/post-autoscaler-settings |


Expand All @@ -26,8 +25,6 @@ Retrieves Autoscaler settings
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\AutoscalingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -84,8 +81,6 @@ Modifies Autoscaler settings
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\AutoscalingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -128,66 +123,6 @@ No authorization required
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `postAutoscalerAlert()`

```php
postAutoscalerAlert($projectId, $environmentId, $autoscalerAlertPartial): object
```



Sends an Autoscaler alert for processing

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\AutoscalingApi(
// 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()
);
$projectId = 'projectId_example'; // string | A string that uniquely identifies the project
$environmentId = 'environmentId_example'; // string | A string that uniquely identifies the project environment
$autoscalerAlertPartial = new \Upsun\Model\AutoscalerAlertPartial(); // \Upsun\Model\AutoscalerAlertPartial | Alert to process

try {
$result = $apiInstance->postAutoscalerAlert($projectId, $environmentId, $autoscalerAlertPartial);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AutoscalingApi->postAutoscalerAlert: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **projectId** | **string**| A string that uniquely identifies the project | |
| **environmentId** | **string**| A string that uniquely identifies the project environment | |
| **autoscalerAlertPartial** | [**\Upsun\Model\AutoscalerAlertPartial**](../Model/AutoscalerAlertPartial.md)| Alert to process | [optional] |

### Return type

**object**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: `application/json`
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `postAutoscalerSettings()`

```php
Expand All @@ -204,8 +139,6 @@ Updates Autoscaler settings
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\AutoscalingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down
10 changes: 0 additions & 10 deletions docs/Api/CertManagementApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ Add a single SSL certificate to a project.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\CertManagementApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -85,8 +83,6 @@ Delete a single SSL certificate associated with a project.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\CertManagementApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -143,8 +139,6 @@ Retrieve information about a single SSL certificate associated with a project.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\CertManagementApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -201,8 +195,6 @@ Retrieve a list of objects representing the SSL certificates associated with a p
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\CertManagementApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -257,8 +249,6 @@ Update a single SSL certificate associated with a project.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\CertManagementApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down
6 changes: 0 additions & 6 deletions docs/Api/CertificateProvisionerApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ getProjectsProvisioners($projectId, $certificateProvisionerDocumentId): \Upsun\M
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\CertificateProvisionerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -79,8 +77,6 @@ listProjectsProvisioners($projectId): \Upsun\Model\CertificateProvisioner[]
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\CertificateProvisionerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -133,8 +129,6 @@ updateProjectsProvisioners($projectId, $certificateProvisionerDocumentId, $certi
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\CertificateProvisionerApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down
6 changes: 0 additions & 6 deletions docs/Api/ConnectionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ Deletes the specified connection.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\ConnectionsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -82,8 +80,6 @@ Retrieves the specified connection.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\ConnectionsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -140,8 +136,6 @@ Retrieves a list of connections associated with a single user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\ConnectionsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down
4 changes: 0 additions & 4 deletions docs/Api/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ List support tickets
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -102,8 +100,6 @@ Queries the carbon emission data for all projects owned by the specified organia
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down
6 changes: 0 additions & 6 deletions docs/Api/DeploymentApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ Retrieve a single deployment configuration with an id of `current`. This may be
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DeploymentApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -85,8 +83,6 @@ Retrieve the read-only configuration of an environment's deployment. The returne
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DeploymentApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -143,8 +139,6 @@ Update resources for either webapps, services, or workers in the next deployment
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DeploymentApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down
10 changes: 0 additions & 10 deletions docs/Api/DeploymentTargetApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ Set the deployment target information for a project.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DeploymentTargetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -85,8 +83,6 @@ Delete a single deployment target configuration associated with a specific proje
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DeploymentTargetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -143,8 +139,6 @@ Get a single deployment target configuration of a project.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DeploymentTargetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -201,8 +195,6 @@ The deployment target information for the project.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DeploymentTargetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -255,8 +247,6 @@ Update a project deployment
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DeploymentTargetApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down
6 changes: 0 additions & 6 deletions docs/Api/DiscountsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ Get an organization discount
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DiscountsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -77,8 +75,6 @@ Get the value of the First Project Incentive discount
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DiscountsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down Expand Up @@ -130,8 +126,6 @@ Retrieves all applicable discounts granted to the specified organization.
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Upsun\Api\DiscountsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
Expand Down
Loading