京东云

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,8 @@
#更新历史
API版本v1
| 发布时间 | 版本号 | 更新 | 说明 |
| ---------- | ------ | ------ | --------------------------- |
| 2019-11-19 | 1.0.0 | 初始化 | 初始版本kafka基本操作接口 |
| 2020-04-02 | 1.0.1 | 更新 | 删除多余接口 |

View File

@@ -0,0 +1,56 @@
<?php
/**
* Kafka
*
* @category Jdcloud
* @package Jdcloud\Kafka
* @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\Kafka;
use Jdcloud\JdCloudClient;
use Jdcloud\Api\Service;
use Jdcloud\Api\DocModel;
use Jdcloud\Api\ApiProvider;
use Jdcloud\PresignUrlMiddleware;
/**
* Client used to interact with kafka.
*
* @method \Jdcloud\Result describeInstances(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeInstancesAsync(array $args = [])
* @method \Jdcloud\Result createInstance(array $args = [])
* @method \GuzzleHttp\Promise\Promise createInstanceAsync(array $args = [])
* @method \Jdcloud\Result describeInstance(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeInstanceAsync(array $args = [])
* @method \Jdcloud\Result deleteInstance(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteInstanceAsync(array $args = [])
* @method \Jdcloud\Result modifyInstanceSpec(array $args = [])
* @method \GuzzleHttp\Promise\Promise modifyInstanceSpecAsync(array $args = [])
*/
class KafkaClient extends JdCloudClient
{
public function __construct(array $args)
{
$args['with_resolved'] = function (array $args) {
$this->getHandlerList()->appendInit(
PresignUrlMiddleware::wrap(
$this,
$args['endpoint_provider'],
[
'operations' => [
],
'service' => 'kafka',
'presign_param' => 'PresignedUrl',
]
),
'kafka'
);
};
parent::__construct($args);
}
}