京东云
This commit is contained in:
8
vendor/jdcloud-api/jdcloud-sdk-php/src/Kafka/ChangeLog.md
vendored
Normal file
8
vendor/jdcloud-api/jdcloud-sdk-php/src/Kafka/ChangeLog.md
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
#更新历史
|
||||
|
||||
API版本:v1
|
||||
|
||||
| 发布时间 | 版本号 | 更新 | 说明 |
|
||||
| ---------- | ------ | ------ | --------------------------- |
|
||||
| 2019-11-19 | 1.0.0 | 初始化 | 初始版本,kafka基本操作接口 |
|
||||
| 2020-04-02 | 1.0.1 | 更新 | 删除多余接口 |
|
||||
56
vendor/jdcloud-api/jdcloud-sdk-php/src/Kafka/KafkaClient.php
vendored
Normal file
56
vendor/jdcloud-api/jdcloud-sdk-php/src/Kafka/KafkaClient.php
vendored
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user