京东云
This commit is contained in:
18
vendor/jdcloud-api/jdcloud-sdk-php/src/Rdts/ChangeLog.md
vendored
Normal file
18
vendor/jdcloud-api/jdcloud-sdk-php/src/Rdts/ChangeLog.md
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
# 更新历史
|
||||
|
||||
API版本:2.5.3
|
||||
|
||||
| 发布时间 | 版本号 | 更新 | 说明 |
|
||||
| ---------- | ------ | -------- | ------------------------- |
|
||||
| 2022-05-18 | 2.5.3 | 对外发布 | 对外发布部分接口 |
|
||||
| 2022-05-18 | 2.5.2 | 更新接口说明 | 更新部分接口operationId |
|
||||
| 2022-05-17 | 2.5.1 | 更新接口说明 | 更新regionId说明 |
|
||||
| 2022-04-19 | 2.5.0 | 更新接口 | 更新getMigrationProgress接口,增加数据校验状态字段 |
|
||||
| 2022-03-02 | 2.4.0 | 新增接口 | 新增getProxyClientNumber、killProxyClients接口 |
|
||||
| 2021-11-08 | 2.3.0 | 更新接口 | 更新createMigration接口,migrateConfig新增字段,支持原生redis迁移 |
|
||||
| 2021-06-11 | 2.2.1 | 新增接口 | 新增remigrate接口,getTrafficMonitor、describeMigration、describeMigrations新增字段 |
|
||||
| 2020-12-18 | 2.2.0 | 变更为v2版本 | |
|
||||
| 2020-11-20 | 2.1.0 | 重构更新 | |
|
||||
| 2020-10-23 | 2.0.0 | 重构 | |
|
||||
| 2019-10-23 | 1.1.0 | 增加接口 | 新增describeProxyClients、describeDataCheck、completeMigration接口 |
|
||||
| 2019-09-24 | 1.0.0 | 增加接口 | 初始版本,首次发布 |
|
||||
66
vendor/jdcloud-api/jdcloud-sdk-php/src/Rdts/RdtsClient.php
vendored
Normal file
66
vendor/jdcloud-api/jdcloud-sdk-php/src/Rdts/RdtsClient.php
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/**
|
||||
* Rdts
|
||||
*
|
||||
* @category Jdcloud
|
||||
* @package Jdcloud\Rdts
|
||||
* @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\Rdts;
|
||||
|
||||
use Jdcloud\JdCloudClient;
|
||||
use Jdcloud\Api\Service;
|
||||
use Jdcloud\Api\DocModel;
|
||||
use Jdcloud\Api\ApiProvider;
|
||||
use Jdcloud\PresignUrlMiddleware;
|
||||
|
||||
/**
|
||||
* Client used to interact with rdts.
|
||||
*
|
||||
* @method \Jdcloud\Result describeMigrations(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeMigrationsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result createMigration(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createMigrationAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeMigration(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeMigrationAsync(array $args = [])
|
||||
* @method \Jdcloud\Result modifyMigration(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise modifyMigrationAsync(array $args = [])
|
||||
* @method \Jdcloud\Result deleteMigration(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteMigrationAsync(array $args = [])
|
||||
* @method \Jdcloud\Result modifyMigrationName(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise modifyMigrationNameAsync(array $args = [])
|
||||
* @method \Jdcloud\Result getMigrationProgress(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise getMigrationProgressAsync(array $args = [])
|
||||
* @method \Jdcloud\Result createMigrationJob(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createMigrationJobAsync(array $args = [])
|
||||
* @method \Jdcloud\Result startMigrationJob(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise startMigrationJobAsync(array $args = [])
|
||||
* @method \Jdcloud\Result restartMigrationJob(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise restartMigrationJobAsync(array $args = [])
|
||||
*/
|
||||
class RdtsClient extends JdCloudClient
|
||||
{
|
||||
public function __construct(array $args)
|
||||
{
|
||||
$args['with_resolved'] = function (array $args) {
|
||||
$this->getHandlerList()->appendInit(
|
||||
PresignUrlMiddleware::wrap(
|
||||
$this,
|
||||
$args['endpoint_provider'],
|
||||
[
|
||||
'operations' => [
|
||||
],
|
||||
'service' => 'rdts',
|
||||
'presign_param' => 'PresignedUrl',
|
||||
]
|
||||
),
|
||||
'rdts'
|
||||
);
|
||||
};
|
||||
|
||||
parent::__construct($args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user