@huaweicloud/huaweicloud-sdk-cbr 3.1.39 → 3.1.40

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-cbr",
3
- "version": "3.1.39",
3
+ "version": "3.1.40",
4
4
  "description": "Huaweicloud SDK for cbr",
5
5
  "main": "huaweicloud-sdk-cbr.js",
6
6
  "typings": "huaweicloud-sdk-cbr.d.ts",
@@ -14,6 +14,6 @@
14
14
  "author": "HuaweiCloud_SDK",
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
- "@huaweicloud/huaweicloud-sdk-core": "^3.1.39"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.40"
18
18
  }
19
19
  }
package/v1/CbrClient.d.ts CHANGED
@@ -100,6 +100,7 @@ import { ShowProtectableResponse } from './model/ShowProtectableResponse';
100
100
  import { ShowReplicationCapabilitiesResponse } from './model/ShowReplicationCapabilitiesResponse';
101
101
  import { ShowStorageUsageRequest } from './model/ShowStorageUsageRequest';
102
102
  import { ShowStorageUsageResponse } from './model/ShowStorageUsageResponse';
103
+ import { ShowSummaryResponse } from './model/ShowSummaryResponse';
103
104
  import { ShowVaultProjectTagResponse } from './model/ShowVaultProjectTagResponse';
104
105
  import { ShowVaultRequest } from './model/ShowVaultRequest';
105
106
  import { ShowVaultResourceInstancesRequest } from './model/ShowVaultResourceInstancesRequest';
@@ -782,6 +783,16 @@ export declare class CbrClient {
782
783
  * @throws {RequiredError}
783
784
  */
784
785
  showStorageUsage(showStorageUsageRequest?: ShowStorageUsageRequest): Promise<ShowStorageUsageResponse>;
786
+ /**
787
+ * 查询项目下所有存储库的总容量和总使用量
788
+ *
789
+ * Please refer to HUAWEI cloud API Explorer for details.
790
+ *
791
+ * @summary 存储库容量总览
792
+ * @param {*} [options] Override http request option.
793
+ * @throws {RequiredError}
794
+ */
795
+ showSummary(): Promise<ShowSummaryResponse>;
785
796
  /**
786
797
  * 根据ID查询指定存储库
787
798
  *
@@ -1609,6 +1620,19 @@ export declare const ParamCreater: () => {
1609
1620
  pathParams: {};
1610
1621
  headers: {};
1611
1622
  };
1623
+ /**
1624
+ * 查询项目下所有存储库的总容量和总使用量
1625
+ *
1626
+ * Please refer to HUAWEI cloud API Explorer for details.
1627
+ */
1628
+ showSummary(): {
1629
+ method: string;
1630
+ url: string;
1631
+ contentType: string;
1632
+ queryParams: {};
1633
+ pathParams: {};
1634
+ headers: {};
1635
+ };
1612
1636
  /**
1613
1637
  * 根据ID查询指定存储库
1614
1638
  *
package/v1/CbrClient.js CHANGED
@@ -997,6 +997,21 @@ var CbrClient = /** @class */ (function () {
997
997
  options['responseHeaders'] = [''];
998
998
  return this.hcClient.sendRequest(options);
999
999
  };
1000
+ /**
1001
+ * 查询项目下所有存储库的总容量和总使用量
1002
+ *
1003
+ * Please refer to HUAWEI cloud API Explorer for details.
1004
+ *
1005
+ * @summary 存储库容量总览
1006
+ * @param {*} [options] Override http request option.
1007
+ * @throws {RequiredError}
1008
+ */
1009
+ CbrClient.prototype.showSummary = function () {
1010
+ var options = (0, exports.ParamCreater)().showSummary();
1011
+ // @ts-ignore
1012
+ options['responseHeaders'] = [''];
1013
+ return this.hcClient.sendRequest(options);
1014
+ };
1000
1015
  /**
1001
1016
  * 根据ID查询指定存储库
1002
1017
  *
@@ -3357,6 +3372,24 @@ var ParamCreater = function () {
3357
3372
  options.headers = localVarHeaderParameter;
3358
3373
  return options;
3359
3374
  },
3375
+ /**
3376
+ * 查询项目下所有存储库的总容量和总使用量
3377
+ *
3378
+ * Please refer to HUAWEI cloud API Explorer for details.
3379
+ */
3380
+ showSummary: function () {
3381
+ var options = {
3382
+ method: "GET",
3383
+ url: "/v3/{project_id}/vaults/summary",
3384
+ contentType: "application/json",
3385
+ queryParams: {},
3386
+ pathParams: {},
3387
+ headers: {}
3388
+ };
3389
+ var localVarHeaderParameter = {};
3390
+ options.headers = localVarHeaderParameter;
3391
+ return options;
3392
+ },
3360
3393
  /**
3361
3394
  * 根据ID查询指定存储库
3362
3395
  *
@@ -0,0 +1,3 @@
1
+ export declare class ShowSummaryRequest {
2
+ constructor();
3
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShowSummaryRequest = void 0;
4
+ var ShowSummaryRequest = /** @class */ (function () {
5
+ function ShowSummaryRequest() {
6
+ }
7
+ return ShowSummaryRequest;
8
+ }());
9
+ exports.ShowSummaryRequest = ShowSummaryRequest;
@@ -0,0 +1,10 @@
1
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
2
+ export declare class ShowSummaryResponse extends SdkResponse {
3
+ size?: number;
4
+ private 'used_size'?;
5
+ constructor();
6
+ withSize(size: number): ShowSummaryResponse;
7
+ withUsedSize(usedSize: number): ShowSummaryResponse;
8
+ set usedSize(usedSize: number | undefined);
9
+ get usedSize(): number | undefined;
10
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ShowSummaryResponse = void 0;
19
+ var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
+ var ShowSummaryResponse = /** @class */ (function (_super) {
21
+ __extends(ShowSummaryResponse, _super);
22
+ function ShowSummaryResponse() {
23
+ return _super.call(this) || this;
24
+ }
25
+ ShowSummaryResponse.prototype.withSize = function (size) {
26
+ this['size'] = size;
27
+ return this;
28
+ };
29
+ ShowSummaryResponse.prototype.withUsedSize = function (usedSize) {
30
+ this['used_size'] = usedSize;
31
+ return this;
32
+ };
33
+ Object.defineProperty(ShowSummaryResponse.prototype, "usedSize", {
34
+ get: function () {
35
+ return this['used_size'];
36
+ },
37
+ set: function (usedSize) {
38
+ this['used_size'] = usedSize;
39
+ },
40
+ enumerable: false,
41
+ configurable: true
42
+ });
43
+ return ShowSummaryResponse;
44
+ }(SdkResponse_1.SdkResponse));
45
+ exports.ShowSummaryResponse = ShowSummaryResponse;
@@ -1,4 +1,10 @@
1
1
  import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
2
2
  export declare class UpdateOrderResponse extends SdkResponse {
3
+ orderId?: string;
4
+ retCode?: string;
5
+ retMsg?: string;
3
6
  constructor();
7
+ withOrderId(orderId: string): UpdateOrderResponse;
8
+ withRetCode(retCode: string): UpdateOrderResponse;
9
+ withRetMsg(retMsg: string): UpdateOrderResponse;
4
10
  }
@@ -22,6 +22,18 @@ var UpdateOrderResponse = /** @class */ (function (_super) {
22
22
  function UpdateOrderResponse() {
23
23
  return _super.call(this) || this;
24
24
  }
25
+ UpdateOrderResponse.prototype.withOrderId = function (orderId) {
26
+ this['orderId'] = orderId;
27
+ return this;
28
+ };
29
+ UpdateOrderResponse.prototype.withRetCode = function (retCode) {
30
+ this['retCode'] = retCode;
31
+ return this;
32
+ };
33
+ UpdateOrderResponse.prototype.withRetMsg = function (retMsg) {
34
+ this['retMsg'] = retMsg;
35
+ return this;
36
+ };
25
37
  return UpdateOrderResponse;
26
38
  }(SdkResponse_1.SdkResponse));
27
39
  exports.UpdateOrderResponse = UpdateOrderResponse;
@@ -187,6 +187,8 @@ export * from './model/ShowReplicationCapabilitiesRequest';
187
187
  export * from './model/ShowReplicationCapabilitiesResponse';
188
188
  export * from './model/ShowStorageUsageRequest';
189
189
  export * from './model/ShowStorageUsageResponse';
190
+ export * from './model/ShowSummaryRequest';
191
+ export * from './model/ShowSummaryResponse';
190
192
  export * from './model/ShowVaultProjectTagRequest';
191
193
  export * from './model/ShowVaultProjectTagResponse';
192
194
  export * from './model/ShowVaultRequest';
package/v1/public-api.js CHANGED
@@ -203,6 +203,8 @@ __exportStar(require("./model/ShowReplicationCapabilitiesRequest"), exports);
203
203
  __exportStar(require("./model/ShowReplicationCapabilitiesResponse"), exports);
204
204
  __exportStar(require("./model/ShowStorageUsageRequest"), exports);
205
205
  __exportStar(require("./model/ShowStorageUsageResponse"), exports);
206
+ __exportStar(require("./model/ShowSummaryRequest"), exports);
207
+ __exportStar(require("./model/ShowSummaryResponse"), exports);
206
208
  __exportStar(require("./model/ShowVaultProjectTagRequest"), exports);
207
209
  __exportStar(require("./model/ShowVaultProjectTagResponse"), exports);
208
210
  __exportStar(require("./model/ShowVaultRequest"), exports);