京东云

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,7 @@
# 更新历史 #
API 版本0.0.2
| 发布时间 | 版本号 | 更新 | 说明 |
| ---------- | ------ | ---- | ------------------------------------------------------------ |
| 2019-11-21 | 0.0.1 | | 1.preoccupate user quota,support TCC<br/> 2.consume user quota,unsupport TCC<br/> 3.verify user quota<br/> 4.query user quota |
| 2021-01-14 | 0.0.2 | | 1.open verify user quota interface<br/>2.open query user quota interface |

View File

@@ -0,0 +1,50 @@
<?php
/**
* Quota
*
* @category Jdcloud
* @package Jdcloud\Quota
* @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\Quota;
use Jdcloud\JdCloudClient;
use Jdcloud\Api\Service;
use Jdcloud\Api\DocModel;
use Jdcloud\Api\ApiProvider;
use Jdcloud\PresignUrlMiddleware;
/**
* Client used to interact with quota.
*
* @method \Jdcloud\Result verifyUserQuota(array $args = [])
* @method \GuzzleHttp\Promise\Promise verifyUserQuotaAsync(array $args = [])
* @method \Jdcloud\Result getUserQuotaDetail(array $args = [])
* @method \GuzzleHttp\Promise\Promise getUserQuotaDetailAsync(array $args = [])
*/
class QuotaClient extends JdCloudClient
{
public function __construct(array $args)
{
$args['with_resolved'] = function (array $args) {
$this->getHandlerList()->appendInit(
PresignUrlMiddleware::wrap(
$this,
$args['endpoint_provider'],
[
'operations' => [
],
'service' => 'quota',
'presign_param' => 'PresignedUrl',
]
),
'quota'
);
};
parent::__construct($args);
}
}