@huaweicloud/huaweicloud-sdk-cbr 3.1.36 → 3.1.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/package.json +2 -2
  2. package/v1/CbrClient.d.ts +192 -0
  3. package/v1/CbrClient.js +390 -0
  4. package/v1/CbrRegion.d.ts +1 -0
  5. package/v1/CbrRegion.js +3 -1
  6. package/v1/model/AddAgentPathRequest.d.ts +10 -0
  7. package/v1/model/AddAgentPathRequest.js +28 -0
  8. package/v1/model/AddAgentPathResponse.d.ts +8 -0
  9. package/v1/model/AddAgentPathResponse.js +35 -0
  10. package/v1/model/Agent.d.ts +48 -0
  11. package/v1/model/Agent.js +158 -0
  12. package/v1/model/AgentAddPathReq.d.ts +7 -0
  13. package/v1/model/AgentAddPathReq.js +24 -0
  14. package/v1/model/AgentRegister.d.ts +31 -0
  15. package/v1/model/AgentRegister.js +111 -0
  16. package/v1/model/AgentRegisterReq.d.ts +6 -0
  17. package/v1/model/AgentRegisterReq.js +14 -0
  18. package/v1/model/AgentRemovePathReq.d.ts +7 -0
  19. package/v1/model/AgentRemovePathReq.js +24 -0
  20. package/v1/model/AgentUpdate.d.ts +12 -0
  21. package/v1/model/AgentUpdate.js +22 -0
  22. package/v1/model/AgentUpdateReq.d.ts +6 -0
  23. package/v1/model/AgentUpdateReq.js +14 -0
  24. package/v1/model/BillingCreate.d.ts +0 -5
  25. package/v1/model/BillingCreate.js +0 -14
  26. package/v1/model/InstancesResourceDetail.d.ts +6 -0
  27. package/v1/model/InstancesResourceDetail.js +13 -0
  28. package/v1/model/ListAgentRequest.d.ts +13 -0
  29. package/v1/model/ListAgentRequest.js +35 -0
  30. package/v1/model/ListAgentResponse.d.ts +13 -0
  31. package/v1/model/ListAgentResponse.js +43 -0
  32. package/v1/model/Path.d.ts +15 -0
  33. package/v1/model/Path.js +45 -0
  34. package/v1/model/PolicyoODCreate.d.ts +4 -0
  35. package/v1/model/PolicyoODCreate.js +14 -0
  36. package/v1/model/RegisterAgentRequest.d.ts +6 -0
  37. package/v1/model/RegisterAgentRequest.js +13 -0
  38. package/v1/model/RegisterAgentResponse.d.ts +7 -0
  39. package/v1/model/RegisterAgentResponse.js +31 -0
  40. package/v1/model/RemoveAgentPathRequest.d.ts +10 -0
  41. package/v1/model/RemoveAgentPathRequest.js +28 -0
  42. package/v1/model/RemoveAgentPathResponse.d.ts +10 -0
  43. package/v1/model/RemoveAgentPathResponse.js +45 -0
  44. package/v1/model/ShowAgentRequest.d.ts +7 -0
  45. package/v1/model/ShowAgentRequest.js +24 -0
  46. package/v1/model/ShowAgentResponse.d.ts +7 -0
  47. package/v1/model/ShowAgentResponse.js +31 -0
  48. package/v1/model/TagResource.d.ts +4 -4
  49. package/v1/model/UnregisterAgentRequest.d.ts +7 -0
  50. package/v1/model/UnregisterAgentRequest.js +24 -0
  51. package/v1/model/UnregisterAgentResponse.d.ts +4 -0
  52. package/v1/model/UnregisterAgentResponse.js +27 -0
  53. package/v1/model/UpdateAgentRequest.d.ts +10 -0
  54. package/v1/model/UpdateAgentRequest.js +28 -0
  55. package/v1/model/UpdateAgentResponse.d.ts +7 -0
  56. package/v1/model/UpdateAgentResponse.js +31 -0
  57. package/v1/public-api.d.ts +23 -1
  58. package/v1/public-api.js +23 -1
  59. package/v1/model/BillbingCreateExtraInfo.d.ts +0 -11
  60. package/v1/model/BillbingCreateExtraInfo.js +0 -37
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-cbr",
3
- "version": "3.1.36",
3
+ "version": "3.1.38",
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.36"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.38"
18
18
  }
19
19
  }
package/v1/CbrClient.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
2
2
  import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
3
+ import { AddAgentPathRequest } from './model/AddAgentPathRequest';
4
+ import { AddAgentPathResponse } from './model/AddAgentPathResponse';
3
5
  import { AddMemberRequest } from './model/AddMemberRequest';
4
6
  import { AddMemberResponse } from './model/AddMemberResponse';
5
7
  import { AddVaultResourceRequest } from './model/AddVaultResourceRequest';
@@ -34,6 +36,8 @@ import { DisassociateVaultPolicyRequest } from './model/DisassociateVaultPolicyR
34
36
  import { DisassociateVaultPolicyResponse } from './model/DisassociateVaultPolicyResponse';
35
37
  import { ImportBackupRequest } from './model/ImportBackupRequest';
36
38
  import { ImportBackupResponse } from './model/ImportBackupResponse';
39
+ import { ListAgentRequest } from './model/ListAgentRequest';
40
+ import { ListAgentResponse } from './model/ListAgentResponse';
37
41
  import { ListBackupsRequest } from './model/ListBackupsRequest';
38
42
  import { ListBackupsResponse } from './model/ListBackupsResponse';
39
43
  import { ListOpLogsRequest } from './model/ListOpLogsRequest';
@@ -46,10 +50,16 @@ import { ListVaultRequest } from './model/ListVaultRequest';
46
50
  import { ListVaultResponse } from './model/ListVaultResponse';
47
51
  import { MigrateVaultResourceRequest } from './model/MigrateVaultResourceRequest';
48
52
  import { MigrateVaultResourceResponse } from './model/MigrateVaultResourceResponse';
53
+ import { RegisterAgentRequest } from './model/RegisterAgentRequest';
54
+ import { RegisterAgentResponse } from './model/RegisterAgentResponse';
55
+ import { RemoveAgentPathRequest } from './model/RemoveAgentPathRequest';
56
+ import { RemoveAgentPathResponse } from './model/RemoveAgentPathResponse';
49
57
  import { RemoveVaultResourceRequest } from './model/RemoveVaultResourceRequest';
50
58
  import { RemoveVaultResourceResponse } from './model/RemoveVaultResourceResponse';
51
59
  import { RestoreBackupRequest } from './model/RestoreBackupRequest';
52
60
  import { RestoreBackupResponse } from './model/RestoreBackupResponse';
61
+ import { ShowAgentRequest } from './model/ShowAgentRequest';
62
+ import { ShowAgentResponse } from './model/ShowAgentResponse';
53
63
  import { ShowBackupRequest } from './model/ShowBackupRequest';
54
64
  import { ShowBackupResponse } from './model/ShowBackupResponse';
55
65
  import { ShowCheckpointRequest } from './model/ShowCheckpointRequest';
@@ -72,6 +82,10 @@ import { ShowVaultResourceInstancesResponse } from './model/ShowVaultResourceIns
72
82
  import { ShowVaultResponse } from './model/ShowVaultResponse';
73
83
  import { ShowVaultTagRequest } from './model/ShowVaultTagRequest';
74
84
  import { ShowVaultTagResponse } from './model/ShowVaultTagResponse';
85
+ import { UnregisterAgentRequest } from './model/UnregisterAgentRequest';
86
+ import { UnregisterAgentResponse } from './model/UnregisterAgentResponse';
87
+ import { UpdateAgentRequest } from './model/UpdateAgentRequest';
88
+ import { UpdateAgentResponse } from './model/UpdateAgentResponse';
75
89
  import { UpdateMemberStatusRequest } from './model/UpdateMemberStatusRequest';
76
90
  import { UpdateMemberStatusResponse } from './model/UpdateMemberStatusResponse';
77
91
  import { UpdatePolicyRequest } from './model/UpdatePolicyRequest';
@@ -83,6 +97,18 @@ export declare class CbrClient {
83
97
  private hcClient;
84
98
  constructor(client: HcClient);
85
99
  getPath(): any;
100
+ /**
101
+ * 对客户端新增备份路径,新增的路径不会校验是否存在。
102
+ *
103
+ * Please refer to HUAWEI cloud API Explorer for details.
104
+ *
105
+ * @summary 新增备份路径
106
+ * @param {string} agentId 客户端ID
107
+ * @param {AgentAddPathReq} addAgentPathRequestBody 新增文件备份路径参数
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ addAgentPath(addAgentPathRequest?: AddAgentPathRequest): Promise<AddAgentPathResponse>;
86
112
  /**
87
113
  * 添加备份可共享的成员,只有云服务器备份可以添加备份共享成员,且仅支持在同一区域的不同用户间共享。
88
114
  *
@@ -287,6 +313,20 @@ export declare class CbrClient {
287
313
  * @throws {RequiredError}
288
314
  */
289
315
  importBackup(importBackupRequest?: ImportBackupRequest): Promise<ImportBackupResponse>;
316
+ /**
317
+ * 查询客户端列表
318
+ *
319
+ * Please refer to HUAWEI cloud API Explorer for details.
320
+ *
321
+ * @summary 查询客户端列表
322
+ * @param {string} [limit] 每页显示条目数,正整数
323
+ * @param {number} [offset] 偏移值,正整数
324
+ * @param {string} [status] 状态
325
+ * @param {string} [agentId] 客户端ID
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ listAgent(listAgentRequest?: ListAgentRequest): Promise<ListAgentResponse>;
290
330
  /**
291
331
  * 查询所有副本
292
332
  *
@@ -405,6 +445,29 @@ export declare class CbrClient {
405
445
  * @throws {RequiredError}
406
446
  */
407
447
  migrateVaultResource(migrateVaultResourceRequest?: MigrateVaultResourceRequest): Promise<MigrateVaultResourceResponse>;
448
+ /**
449
+ * 注册客户端,安装时候由Agent调用,无需手动注册。
450
+ *
451
+ * Please refer to HUAWEI cloud API Explorer for details.
452
+ *
453
+ * @summary 注册客户端
454
+ * @param {AgentRegisterReq} registerAgentRequestBody 注册客户端参数明细
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ registerAgent(registerAgentRequest?: RegisterAgentRequest): Promise<RegisterAgentResponse>;
459
+ /**
460
+ * 移除已添加的文件备份路径。
461
+ *
462
+ * Please refer to HUAWEI cloud API Explorer for details.
463
+ *
464
+ * @summary 移除备份路径
465
+ * @param {string} agentId 客户端ID
466
+ * @param {AgentRemovePathReq} removeAgentPathRequestBody 移除文件备份路径参数
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ removeAgentPath(removeAgentPathRequest?: RemoveAgentPathRequest): Promise<RemoveAgentPathResponse>;
408
471
  /**
409
472
  * 移除存储库中的资源,若移除资源,将一并删除该资源在保管库中的备份
410
473
  *
@@ -429,6 +492,17 @@ export declare class CbrClient {
429
492
  * @throws {RequiredError}
430
493
  */
431
494
  restoreBackup(restoreBackupRequest?: RestoreBackupRequest): Promise<RestoreBackupResponse>;
495
+ /**
496
+ * 查询指定客户端
497
+ *
498
+ * Please refer to HUAWEI cloud API Explorer for details.
499
+ *
500
+ * @summary 查询指定客户端
501
+ * @param {string} agentId 客户端ID
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ */
505
+ showAgent(showAgentRequest?: ShowAgentRequest): Promise<ShowAgentResponse>;
432
506
  /**
433
507
  * 根据指定id查询单个副本。
434
508
  *
@@ -572,6 +646,29 @@ export declare class CbrClient {
572
646
  * @throws {RequiredError}
573
647
  */
574
648
  showVaultTag(showVaultTagRequest?: ShowVaultTagRequest): Promise<ShowVaultTagResponse>;
649
+ /**
650
+ * 移除客户端,移除客户端时将会删除该客户端所有备份,请谨慎操作。
651
+ *
652
+ * Please refer to HUAWEI cloud API Explorer for details.
653
+ *
654
+ * @summary 移除客户端
655
+ * @param {string} agentId 客户端ID
656
+ * @param {*} [options] Override http request option.
657
+ * @throws {RequiredError}
658
+ */
659
+ unregisterAgent(unregisterAgentRequest?: UnregisterAgentRequest): Promise<UnregisterAgentResponse>;
660
+ /**
661
+ * 修改客户端状态
662
+ *
663
+ * Please refer to HUAWEI cloud API Explorer for details.
664
+ *
665
+ * @summary 修改客户端
666
+ * @param {string} agentId
667
+ * @param {AgentUpdateReq} updateAgentRequestBody
668
+ * @param {*} [options] Override http request option.
669
+ * @throws {RequiredError}
670
+ */
671
+ updateAgent(updateAgentRequest?: UpdateAgentRequest): Promise<UpdateAgentResponse>;
575
672
  /**
576
673
  * 更新备份共享成员的状态,需要接收方执行此API。
577
674
  *
@@ -611,6 +708,20 @@ export declare class CbrClient {
611
708
  updateVault(updateVaultRequest?: UpdateVaultRequest): Promise<UpdateVaultResponse>;
612
709
  }
613
710
  export declare const ParamCreater: () => {
711
+ /**
712
+ * 对客户端新增备份路径,新增的路径不会校验是否存在。
713
+ *
714
+ * Please refer to HUAWEI cloud API Explorer for details.
715
+ */
716
+ addAgentPath(addAgentPathRequest?: AddAgentPathRequest): {
717
+ method: string;
718
+ url: string;
719
+ contentType: string;
720
+ queryParams: {};
721
+ pathParams: {};
722
+ headers: {};
723
+ data: {};
724
+ };
614
725
  /**
615
726
  * 添加备份可共享的成员,只有云服务器备份可以添加备份共享成员,且仅支持在同一区域的不同用户间共享。
616
727
  *
@@ -852,6 +963,19 @@ export declare const ParamCreater: () => {
852
963
  headers: {};
853
964
  data: {};
854
965
  };
966
+ /**
967
+ * 查询客户端列表
968
+ *
969
+ * Please refer to HUAWEI cloud API Explorer for details.
970
+ */
971
+ listAgent(listAgentRequest?: ListAgentRequest): {
972
+ method: string;
973
+ url: string;
974
+ contentType: string;
975
+ queryParams: {};
976
+ pathParams: {};
977
+ headers: {};
978
+ };
855
979
  /**
856
980
  * 查询所有副本
857
981
  *
@@ -931,6 +1055,34 @@ export declare const ParamCreater: () => {
931
1055
  headers: {};
932
1056
  data: {};
933
1057
  };
1058
+ /**
1059
+ * 注册客户端,安装时候由Agent调用,无需手动注册。
1060
+ *
1061
+ * Please refer to HUAWEI cloud API Explorer for details.
1062
+ */
1063
+ registerAgent(registerAgentRequest?: RegisterAgentRequest): {
1064
+ method: string;
1065
+ url: string;
1066
+ contentType: string;
1067
+ queryParams: {};
1068
+ pathParams: {};
1069
+ headers: {};
1070
+ data: {};
1071
+ };
1072
+ /**
1073
+ * 移除已添加的文件备份路径。
1074
+ *
1075
+ * Please refer to HUAWEI cloud API Explorer for details.
1076
+ */
1077
+ removeAgentPath(removeAgentPathRequest?: RemoveAgentPathRequest): {
1078
+ method: string;
1079
+ url: string;
1080
+ contentType: string;
1081
+ queryParams: {};
1082
+ pathParams: {};
1083
+ headers: {};
1084
+ data: {};
1085
+ };
934
1086
  /**
935
1087
  * 移除存储库中的资源,若移除资源,将一并删除该资源在保管库中的备份
936
1088
  *
@@ -959,6 +1111,19 @@ export declare const ParamCreater: () => {
959
1111
  headers: {};
960
1112
  data: {};
961
1113
  };
1114
+ /**
1115
+ * 查询指定客户端
1116
+ *
1117
+ * Please refer to HUAWEI cloud API Explorer for details.
1118
+ */
1119
+ showAgent(showAgentRequest?: ShowAgentRequest): {
1120
+ method: string;
1121
+ url: string;
1122
+ contentType: string;
1123
+ queryParams: {};
1124
+ pathParams: {};
1125
+ headers: {};
1126
+ };
962
1127
  /**
963
1128
  * 根据指定id查询单个副本。
964
1129
  *
@@ -1119,6 +1284,33 @@ export declare const ParamCreater: () => {
1119
1284
  pathParams: {};
1120
1285
  headers: {};
1121
1286
  };
1287
+ /**
1288
+ * 移除客户端,移除客户端时将会删除该客户端所有备份,请谨慎操作。
1289
+ *
1290
+ * Please refer to HUAWEI cloud API Explorer for details.
1291
+ */
1292
+ unregisterAgent(unregisterAgentRequest?: UnregisterAgentRequest): {
1293
+ method: string;
1294
+ url: string;
1295
+ contentType: string;
1296
+ queryParams: {};
1297
+ pathParams: {};
1298
+ headers: {};
1299
+ };
1300
+ /**
1301
+ * 修改客户端状态
1302
+ *
1303
+ * Please refer to HUAWEI cloud API Explorer for details.
1304
+ */
1305
+ updateAgent(updateAgentRequest?: UpdateAgentRequest): {
1306
+ method: string;
1307
+ url: string;
1308
+ contentType: string;
1309
+ queryParams: {};
1310
+ pathParams: {};
1311
+ headers: {};
1312
+ data: {};
1313
+ };
1122
1314
  /**
1123
1315
  * 更新备份共享成员的状态,需要接收方执行此API。
1124
1316
  *