京东云
This commit is contained in:
8
vendor/jdcloud-api/jdcloud-sdk-php/src/Iotedge/ChangeLog.md
vendored
Normal file
8
vendor/jdcloud-api/jdcloud-sdk-php/src/Iotedge/ChangeLog.md
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# 更新历史 #
|
||||
API版本:1.0.0
|
||||
|
||||
|发布时间|版本号|更新|说明|
|
||||
|---|---|---|---|
|
||||
|2020-03-05 |1.0.0 |Edge和子设备接口开放 | * Edge和子设备接口开放
|
||||
|2019-11-13 |0.1.3 |增加云监控对接接口 | * 增加云监控对接接口
|
||||
|2019-10-17 |0.0.1 |生成第一版API | * 生成第一版API
|
||||
66
vendor/jdcloud-api/jdcloud-sdk-php/src/Iotedge/IotedgeClient.php
vendored
Normal file
66
vendor/jdcloud-api/jdcloud-sdk-php/src/Iotedge/IotedgeClient.php
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/**
|
||||
* Iotedge
|
||||
*
|
||||
* @category Jdcloud
|
||||
* @package Jdcloud\Iotedge
|
||||
* @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\Iotedge;
|
||||
|
||||
use Jdcloud\JdCloudClient;
|
||||
use Jdcloud\Api\Service;
|
||||
use Jdcloud\Api\DocModel;
|
||||
use Jdcloud\Api\ApiProvider;
|
||||
use Jdcloud\PresignUrlMiddleware;
|
||||
|
||||
/**
|
||||
* Client used to interact with iotedge.
|
||||
*
|
||||
* @method \Jdcloud\Result deployApp(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deployAppAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeDeployApp(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeDeployAppAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeDeployDetails(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeDeployDetailsAsync(array $args = [])
|
||||
* @method \Jdcloud\Result unInstallApp(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise unInstallAppAsync(array $args = [])
|
||||
* @method \Jdcloud\Result setAppStatus(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise setAppStatusAsync(array $args = [])
|
||||
* @method \Jdcloud\Result describeConfig(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise describeConfigAsync(array $args = [])
|
||||
* @method \Jdcloud\Result deleteEdgeWithCore(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise deleteEdgeWithCoreAsync(array $args = [])
|
||||
* @method \Jdcloud\Result addEdgeWithCore(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise addEdgeWithCoreAsync(array $args = [])
|
||||
* @method \Jdcloud\Result addSubDeviceWithCore(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise addSubDeviceWithCoreAsync(array $args = [])
|
||||
* @method \Jdcloud\Result delSubDeviceWithCore(array $args = [])
|
||||
* @method \GuzzleHttp\Promise\Promise delSubDeviceWithCoreAsync(array $args = [])
|
||||
*/
|
||||
class IotedgeClient extends JdCloudClient
|
||||
{
|
||||
public function __construct(array $args)
|
||||
{
|
||||
$args['with_resolved'] = function (array $args) {
|
||||
$this->getHandlerList()->appendInit(
|
||||
PresignUrlMiddleware::wrap(
|
||||
$this,
|
||||
$args['endpoint_provider'],
|
||||
[
|
||||
'operations' => [
|
||||
],
|
||||
'service' => 'iotedge',
|
||||
'presign_param' => 'PresignedUrl',
|
||||
]
|
||||
),
|
||||
'iotedge'
|
||||
);
|
||||
};
|
||||
|
||||
parent::__construct($args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user