京东云
This commit is contained in:
10
vendor/jdcloud-api/jdcloud-sdk-php/src/Nc/ChangeLog.md
vendored
Normal file
10
vendor/jdcloud-api/jdcloud-sdk-php/src/Nc/ChangeLog.md
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# 更新历史 #
|
||||
API版本:0.2.4
|
||||
|
||||
|发布时间|版本号|更新|说明|
|
||||
|---|---|---|---|
|
||||
|2018-08-22|0.2.5|修订与部署|* 修复了若干参数属性错误|
|
||||
|2018-08-22|0.2.4|修订与部署|* 细化描述和注释相关|
|
||||
|2018-08-20|0.2.3|修订与部署|* SDK新增对Android系统的支持|
|
||||
|2018-07-25|0.2.2|修订与部署|* 容器服务改为原生容器|
|
||||
|2018-03-31|0.2.1|初始版本|* 初步完成所有接口|
|
||||
2
vendor/jdcloud-api/jdcloud-sdk-php/src/Nc/ChangeLog.txt
vendored
Normal file
2
vendor/jdcloud-api/jdcloud-sdk-php/src/Nc/ChangeLog.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
2018-03-31 version: 0.2.1
|
||||
1. 初始版本
|
||||
76
vendor/jdcloud-api/jdcloud-sdk-php/src/Nc/NcClient.php
vendored
Normal file
76
vendor/jdcloud-api/jdcloud-sdk-php/src/Nc/NcClient.php
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/**
|
||||
* Nc
|
||||
*
|
||||
* @category Jdcloud
|
||||
* @package Jdcloud\Nc
|
||||
* @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\Nc;
|
||||
|
||||
use Jdcloud\JdCloudClient;
|
||||
use Jdcloud\Api\Service;
|
||||
use Jdcloud\Api\DocModel;
|
||||
use Jdcloud\Api\ApiProvider;
|
||||
use Jdcloud\PresignUrlMiddleware;
|
||||
|
||||
/**
|
||||
* Client used to interact with nc.
|
||||
*
|
||||
* @method \Jdcloud\Result describeContainers(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeContainersAsync(array $args = [])
|
||||
* @method \Jdcloud\Result createContainers(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createContainersAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeContainer(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeContainerAsync(array $args = [])
|
||||
* @method \Jdcloud\Result deleteContainer(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteContainerAsync(array $args = [])
|
||||
* @method \Jdcloud\Result startContainer(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise startContainerAsync(array $args = [])
|
||||
* @method \Jdcloud\Result stopContainer(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise stopContainerAsync(array $args = [])
|
||||
* @method \Jdcloud\Result modifyContainerAttribute(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise modifyContainerAttributeAsync(array $args = [])
|
||||
* @method \Jdcloud\Result associateElasticIp(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise associateElasticIpAsync(array $args = [])
|
||||
* @method \Jdcloud\Result disassociateElasticIp(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise disassociateElasticIpAsync(array $args = [])
|
||||
* @method \Jdcloud\Result getLogs(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise getLogsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeQuota(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeQuotaAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeSecrets(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeSecretsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result createSecret(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise createSecretAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeSecret(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeSecretAsync(array $args = [])
|
||||
* @method \Jdcloud\Result deleteSecret(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteSecretAsync(array $args = [])
|
||||
*/
|
||||
class NcClient extends JdCloudClient
|
||||
{
|
||||
public function __construct(array $args)
|
||||
{
|
||||
$args['with_resolved'] = function (array $args) {
|
||||
$this->getHandlerList()->appendInit(
|
||||
PresignUrlMiddleware::wrap(
|
||||
$this,
|
||||
$args['endpoint_provider'],
|
||||
[
|
||||
'operations' => [
|
||||
],
|
||||
'service' => 'nc',
|
||||
'presign_param' => 'PresignedUrl',
|
||||
]
|
||||
),
|
||||
'nc'
|
||||
);
|
||||
};
|
||||
|
||||
parent::__construct($args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user