京东云
This commit is contained in:
12
vendor/jdcloud-api/jdcloud-sdk-php/src/Yunding/ChangeLog.md
vendored
Normal file
12
vendor/jdcloud-api/jdcloud-sdk-php/src/Yunding/ChangeLog.md
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# 更新历史 #
|
||||
API版本:2.0.57
|
||||
|
||||
|发布时间|版本号|更新|说明|
|
||||
|---|---|---|---|
|
||||
|2018-08-31 |2.0.0 |新增接口 | * 增加挂载、卸载辅助ip接口
|
||||
|2019-12-26 |2.0.1 |新增接口 | * 增加数据库相关接口
|
||||
|2020-12-15 |2.0.2 |新增接口 | * 增加数据库取消账号授权接口
|
||||
|2021-01-25 |2.0.3 |新增接口 | * 查询弹性网卡信息详情接口
|
||||
|2021-01-25 |2.0.4 |新增接口 | * 增加网络相关接口
|
||||
|2021-04-12 |2.0.6 |修改接口 | * 增加快照相关接口
|
||||
|2022-11-23 |2.0.7 |修改接口 | * 云主机列表、详情页接口修改为外部可调用接口
|
||||
116
vendor/jdcloud-api/jdcloud-sdk-php/src/Yunding/YundingClient.php
vendored
Normal file
116
vendor/jdcloud-api/jdcloud-sdk-php/src/Yunding/YundingClient.php
vendored
Normal file
@@ -0,0 +1,116 @@
|
||||
<?php
|
||||
/**
|
||||
* Yunding
|
||||
*
|
||||
* @category Jdcloud
|
||||
* @package Jdcloud\Yunding
|
||||
* @author Jdcloud <jdcloud-api@jd.com>
|
||||
* @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
|
||||
* @link https://www.jdcloud.com/help/faq
|
||||
*/
|
||||
|
||||
namespace Jdcloud\Yunding;
|
||||
|
||||
use Jdcloud\JdCloudClient;
|
||||
use Jdcloud\Api\Service;
|
||||
use Jdcloud\Api\DocModel;
|
||||
use Jdcloud\Api\ApiProvider;
|
||||
use Jdcloud\PresignUrlMiddleware;
|
||||
|
||||
/**
|
||||
* Client used to interact with yunding.
|
||||
*
|
||||
* @method \Jdcloud\Result describeTasks(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeTasksAsync(array $args = [])
|
||||
* @method \Jdcloud\Result put(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise putAsync(array $args = [])
|
||||
* @method \Jdcloud\Result putProductMetricData(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise putProductMetricDataAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeServices(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeServicesAsync(array $args = [])
|
||||
* @method \Jdcloud\Result lastDownsample(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise lastDownsampleAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeMetricData(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeMetricDataAsync(array $args = [])
|
||||
* @method \Jdcloud\Result batchDescribeMetricData(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise batchDescribeMetricDataAsync(array $args = [])
|
||||
* @method \Jdcloud\Result assignSecondaryIps(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise assignSecondaryIpsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result unassignSecondaryIps(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise unassignSecondaryIpsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeNetworkInterface(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeNetworkInterfaceAsync(array $args = [])
|
||||
* @method \Jdcloud\Result deleteNetworkInterface(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteNetworkInterfaceAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeNetworkInterfaces(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeNetworkInterfacesAsync(array $args = [])
|
||||
* @method \Jdcloud\Result createNetworkInterface(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createNetworkInterfaceAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeRdsInstances(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeRdsInstancesAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeRdsInstance(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeRdsInstanceAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeInstanceInfo(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeInstanceInfoAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeRdsWhiteList(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeRdsWhiteListAsync(array $args = [])
|
||||
* @method \Jdcloud\Result modifyRdsWhiteList(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise modifyRdsWhiteListAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeRdsAccounts(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeRdsAccountsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result createRdsAccount(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createRdsAccountAsync(array $args = [])
|
||||
* @method \Jdcloud\Result deleteRdsAccount(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteRdsAccountAsync(array $args = [])
|
||||
* @method \Jdcloud\Result grantRdsPrivilege(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise grantRdsPrivilegeAsync(array $args = [])
|
||||
* @method \Jdcloud\Result revokePrivilege(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise revokePrivilegeAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeRdsDatabases(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeRdsDatabasesAsync(array $args = [])
|
||||
* @method \Jdcloud\Result createRdsDatabase(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createRdsDatabaseAsync(array $args = [])
|
||||
* @method \Jdcloud\Result deleteRdsDatabase(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteRdsDatabaseAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeYdRdsInstances(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeYdRdsInstancesAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeSubnets(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeSubnetsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result createSubnet(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createSubnetAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeSubnet(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeSubnetAsync(array $args = [])
|
||||
* @method \Jdcloud\Result deleteSubnet(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteSubnetAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeVmInstances(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeVmInstancesAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeVmInstance(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeVmInstanceAsync(array $args = [])
|
||||
* @method \Jdcloud\Result attachNetworkInterface(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise attachNetworkInterfaceAsync(array $args = [])
|
||||
* @method \Jdcloud\Result detachNetworkInterface(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise detachNetworkInterfaceAsync(array $args = [])
|
||||
*/
|
||||
class YundingClient extends JdCloudClient
|
||||
{
|
||||
public function __construct(array $args)
|
||||
{
|
||||
$args['with_resolved'] = function (array $args) {
|
||||
$this->getHandlerList()->appendInit(
|
||||
PresignUrlMiddleware::wrap(
|
||||
$this,
|
||||
$args['endpoint_provider'],
|
||||
[
|
||||
'operations' => [
|
||||
],
|
||||
'service' => 'yunding',
|
||||
'presign_param' => 'PresignedUrl',
|
||||
]
|
||||
),
|
||||
'yunding'
|
||||
);
|
||||
};
|
||||
|
||||
parent::__construct($args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user