京东云

This commit is contained in:
“wanyongkang”
2024-05-28 17:04:50 +08:00
parent f644932afb
commit f3c7432100
672 changed files with 209344 additions and 6593 deletions

View File

@@ -0,0 +1,16 @@
# 更新历史 #
API版本1.1.6
|发布时间|版本号|更新|说明|
|---|---|---|---|
|2020-11-30|1.1.6|修改|* 修改版本号为1.1.6。|
|2020-11-26|1.1.5|修改|* 修改softwareInfo和monitorLabelList接口。|
|2020-11-24|1.1.5|修改|* 增加描述文件增加clusterReduction的缩容集群接口。增加云监控监控标签列表monitorLabelList接口。|
|2020-10-16|1.1.5|修改|* 增加描述文件list和clusterDetail返回的数据和前端一致保证IAM主子账号可以工作。|
|2020-10-13|1.1.5|修改|* 增加create接口的3个参数兼容jmr agent版本。|
|2020-09-27|1.1.4|修改|* 增加describeClusters接口去掉create的无用参数增加cluster detail的详细节点信息。|
|2020-09-21|1.1.3|修改|* 标准化接口的url、参数及返回值的格式并只提供JMR集群查询接口|
|2018-10-24|1.1.2|修改|* 标准化接口的url、参数及返回值的格式并只提供JMR集群创建、释放和查询接口|
|2018-08-16|1.1.1|国际化文档|* 国际化预备工作,添加参数注释<br> * 修改返回数据参数较少情况统一类型为"object" <br>* 添加请求参数的描述并提示哪些为必传字段|
|2018-08-14|1.1.0|添加|* 添加了JMR 集群、作业、监控、审计等接口对接OpenAPI工作<br> * 修复上一版中的语法错误 <br>* 暂将搜索条件参数封装为"selectParams"|
|2018-06-05|1.0.0|初始版本|* 初始版本,添加了集群处理相关的接口|

View File

@@ -0,0 +1,66 @@
<?php
/**
* Jmr
*
* @category Jdcloud
* @package Jdcloud\Jmr
* @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\Jmr;
use Jdcloud\JdCloudClient;
use Jdcloud\Api\Service;
use Jdcloud\Api\DocModel;
use Jdcloud\Api\ApiProvider;
use Jdcloud\PresignUrlMiddleware;
/**
* Client used to interact with jmr.
*
* @method \Jdcloud\Result idataCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise idataClusterAsync(array $args = [])
* @method \Jdcloud\Result getSoftwareInfo(array $args = [])
* @method \GuzzleHttp\Promise\Promise getSoftwareInfoAsync(array $args = [])
* @method \Jdcloud\Result getJmrVersionList(array $args = [])
* @method \GuzzleHttp\Promise\Promise getJmrVersionListAsync(array $args = [])
* @method \Jdcloud\Result monitorLabelList(array $args = [])
* @method \GuzzleHttp\Promise\Promise monitorLabelListAsync(array $args = [])
* @method \Jdcloud\Result describeCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeClusterAsync(array $args = [])
* @method \Jdcloud\Result describeClusters(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeClustersAsync(array $args = [])
* @method \Jdcloud\Result releaseCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise releaseClusterAsync(array $args = [])
* @method \Jdcloud\Result clusterExpansion(array $args = [])
* @method \GuzzleHttp\Promise\Promise clusterExpansionAsync(array $args = [])
* @method \Jdcloud\Result clusterReduction(array $args = [])
* @method \GuzzleHttp\Promise\Promise clusterReductionAsync(array $args = [])
* @method \Jdcloud\Result createCluster(array $args = [])
* @method \GuzzleHttp\Promise\Promise createClusterAsync(array $args = [])
*/
class JmrClient extends JdCloudClient
{
public function __construct(array $args)
{
$args['with_resolved'] = function (array $args) {
$this->getHandlerList()->appendInit(
PresignUrlMiddleware::wrap(
$this,
$args['endpoint_provider'],
[
'operations' => [
],
'service' => 'jmr',
'presign_param' => 'PresignedUrl',
]
),
'jmr'
);
};
parent::__construct($args);
}
}