京东云
This commit is contained in:
9
vendor/jdcloud-api/jdcloud-sdk-php/src/Dh/ChangeLog.md
vendored
Normal file
9
vendor/jdcloud-api/jdcloud-sdk-php/src/Dh/ChangeLog.md
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# 更新历史 #
|
||||
|
||||
API版本:1.1.3
|
||||
|
||||
| 发布时间 | 版本号 | 更新 |说明|
|
||||
|-------------|-------|--------|---|
|
||||
| 2023-01-17 | 1.1.3 | 新增字段 | * 专有宿主机支持标签和资源组
|
||||
| 2022-12-21 | 1.1.2 | 新增字段 | * 增加专有宿主机CPU拓扑
|
||||
| 2022-04-18 | 1.1.1 | 新增接口 | * 增加专有宿主机、专有宿主机池基本操作
|
||||
66
vendor/jdcloud-api/jdcloud-sdk-php/src/Dh/DhClient.php
vendored
Normal file
66
vendor/jdcloud-api/jdcloud-sdk-php/src/Dh/DhClient.php
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/**
|
||||
* Dh
|
||||
*
|
||||
* @category Jdcloud
|
||||
* @package Jdcloud\Dh
|
||||
* @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\Dh;
|
||||
|
||||
use Jdcloud\JdCloudClient;
|
||||
use Jdcloud\Api\Service;
|
||||
use Jdcloud\Api\DocModel;
|
||||
use Jdcloud\Api\ApiProvider;
|
||||
use Jdcloud\PresignUrlMiddleware;
|
||||
|
||||
/**
|
||||
* Client used to interact with dh.
|
||||
*
|
||||
* @method \Jdcloud\Result describeDedicatedHosts(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeDedicatedHostsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result allocDedicatedHosts(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise allocDedicatedHostsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result releaseDedicatedHost(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise releaseDedicatedHostAsync(array $args = [])
|
||||
* @method \Jdcloud\Result modifyDedicatedHostAttribute(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise modifyDedicatedHostAttributeAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeDedicatedHostType(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeDedicatedHostTypeAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeDedicatedPools(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeDedicatedPoolsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result allocDedicatedPool(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise allocDedicatedPoolAsync(array $args = [])
|
||||
* @method \Jdcloud\Result modifyDedicatedPoolAttribute(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise modifyDedicatedPoolAttributeAsync(array $args = [])
|
||||
* @method \Jdcloud\Result releaseDedicatedPool(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise releaseDedicatedPoolAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeQuotas(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeQuotasAsync(array $args = [])
|
||||
*/
|
||||
class DhClient extends JdCloudClient
|
||||
{
|
||||
public function __construct(array $args)
|
||||
{
|
||||
$args['with_resolved'] = function (array $args) {
|
||||
$this->getHandlerList()->appendInit(
|
||||
PresignUrlMiddleware::wrap(
|
||||
$this,
|
||||
$args['endpoint_provider'],
|
||||
[
|
||||
'operations' => [
|
||||
],
|
||||
'service' => 'dh',
|
||||
'presign_param' => 'PresignedUrl',
|
||||
]
|
||||
),
|
||||
'dh'
|
||||
);
|
||||
};
|
||||
|
||||
parent::__construct($args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user