tencentcloud-sdk-nodejs-cbs 4.1.165 → 4.1.179

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,6 +72,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
72
72
  async CreateDisks(req, cb) {
73
73
  return this.request("CreateDisks", req, cb);
74
74
  }
75
+ async CopyAutoSnapshotPolicyCrossAccount(req, cb) {
76
+ return this.request("CopyAutoSnapshotPolicyCrossAccount", req, cb);
77
+ }
75
78
  async ModifyDiskAttributes(req, cb) {
76
79
  return this.request("ModifyDiskAttributes", req, cb);
77
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-cbs",
3
- "version": "4.1.165",
3
+ "version": "4.1.179",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { ModifyDiskExtraPerformanceRequest, ModifyDiskAttributesResponse, DescribeDiskBackupsRequest, CreateSnapshotGroupRequest, ModifySnapshotsSharePermissionRequest, CopySnapshotCrossRegionsResponse, DescribeSnapshotGroupsRequest, ModifyDiskBackupQuotaRequest, InquiryPriceCreateDisksResponse, BindAutoSnapshotPolicyRequest, CreateSnapshotResponse, DescribeAutoSnapshotPoliciesRequest, ModifySnapshotsSharePermissionResponse, DeleteDiskBackupsRequest, InitializeDisksResponse, DescribeDiskStoragePoolRequest, DescribeDiskBackupsResponse, RenewDiskRequest, InquirePriceModifyDiskExtraPerformanceResponse, CreateDisksRequest, AttachDisksRequest, DescribeDiskAssociatedAutoSnapshotPolicyRequest, DescribeSnapshotsRequest, ModifyAutoSnapshotPolicyAttributeRequest, DescribeDiskConfigQuotaResponse, ApplyDiskBackupResponse, InquiryPriceResizeDiskResponse, ResizeDiskResponse, TerminateDisksResponse, ApplySnapshotResponse, DetachDisksRequest, DescribeSnapshotGroupsResponse, DescribeSnapshotOverviewResponse, ModifyDisksChargeTypeResponse, CreateSnapshotRequest, DescribeInstancesDiskNumRequest, DescribeSnapshotSharePermissionResponse, ModifyDiskBackupQuotaResponse, InquiryPriceRenewDisksRequest, DescribeSnapshotSharePermissionRequest, InquirePriceModifyDiskBackupQuotaRequest, DeleteDiskBackupsResponse, DeleteSnapshotsRequest, ModifyDisksRenewFlagResponse, DeleteAutoSnapshotPoliciesResponse, DescribeDisksResponse, DeleteSnapshotsResponse, ModifyDisksRenewFlagRequest, ModifySnapshotAttributeResponse, ModifyDiskAttributesRequest, GetSnapOverviewRequest, ModifyAutoSnapshotPolicyAttributeResponse, TerminateDisksRequest, DescribeInstancesDiskNumResponse, ResizeDiskRequest, ApplyDiskBackupRequest, ModifyDisksChargeTypeRequest, InitializeDisksRequest, CreateAutoSnapshotPolicyResponse, ModifySnapshotAttributeRequest, UnbindAutoSnapshotPolicyRequest, CreateDiskBackupResponse, InquirePriceModifyDiskBackupQuotaResponse, DeleteAutoSnapshotPoliciesRequest, DeleteSnapshotGroupResponse, ApplySnapshotGroupResponse, DescribeSnapshotOverviewRequest, InquiryPriceCreateDisksRequest, DescribeSnapshotsResponse, CreateDisksResponse, AttachDisksResponse, CreateDiskBackupRequest, DeleteSnapshotGroupRequest, BindAutoSnapshotPolicyResponse, DescribeDisksRequest, DetachDisksResponse, InquiryPriceRenewDisksResponse, DescribeDiskStoragePoolResponse, ModifyDiskExtraPerformanceResponse, InquirePriceModifyDiskExtraPerformanceRequest, InquiryPriceResizeDiskRequest, DescribeDiskConfigQuotaRequest, DescribeDiskAssociatedAutoSnapshotPolicyResponse, ApplySnapshotGroupRequest, GetSnapOverviewResponse, CopySnapshotCrossRegionsRequest, RenewDiskResponse, DescribeAutoSnapshotPoliciesResponse, UnbindAutoSnapshotPolicyResponse, CreateAutoSnapshotPolicyRequest, CreateSnapshotGroupResponse, ApplySnapshotRequest } from "./cbs_models";
2
+ import { ModifyDiskExtraPerformanceRequest, ModifyDiskAttributesResponse, DescribeDiskBackupsRequest, CreateSnapshotGroupRequest, ModifySnapshotsSharePermissionRequest, CopySnapshotCrossRegionsResponse, DescribeSnapshotGroupsRequest, ModifyDiskBackupQuotaRequest, InquiryPriceCreateDisksResponse, BindAutoSnapshotPolicyRequest, CreateSnapshotResponse, DescribeAutoSnapshotPoliciesRequest, ModifySnapshotsSharePermissionResponse, DeleteDiskBackupsRequest, InitializeDisksResponse, DescribeDiskStoragePoolRequest, DescribeDiskBackupsResponse, RenewDiskRequest, InquirePriceModifyDiskExtraPerformanceResponse, CreateDisksRequest, AttachDisksRequest, DescribeDiskAssociatedAutoSnapshotPolicyRequest, DescribeSnapshotsRequest, ModifyAutoSnapshotPolicyAttributeRequest, DescribeDiskConfigQuotaResponse, ApplyDiskBackupResponse, InquiryPriceResizeDiskResponse, ResizeDiskResponse, TerminateDisksResponse, ApplySnapshotResponse, DetachDisksRequest, DescribeSnapshotGroupsResponse, DescribeSnapshotOverviewResponse, ModifyDisksChargeTypeResponse, CreateSnapshotRequest, DescribeInstancesDiskNumRequest, DescribeSnapshotSharePermissionResponse, ModifyDiskBackupQuotaResponse, InquiryPriceRenewDisksRequest, DescribeSnapshotSharePermissionRequest, InquirePriceModifyDiskBackupQuotaRequest, DeleteDiskBackupsResponse, DeleteSnapshotsRequest, ModifyDisksRenewFlagResponse, CopyAutoSnapshotPolicyCrossAccountResponse, DeleteAutoSnapshotPoliciesResponse, DescribeDisksResponse, DeleteSnapshotsResponse, ModifyDisksRenewFlagRequest, ModifySnapshotAttributeResponse, CopyAutoSnapshotPolicyCrossAccountRequest, ModifyDiskAttributesRequest, GetSnapOverviewRequest, ModifyAutoSnapshotPolicyAttributeResponse, TerminateDisksRequest, DescribeInstancesDiskNumResponse, ResizeDiskRequest, ApplyDiskBackupRequest, ModifyDisksChargeTypeRequest, InitializeDisksRequest, CreateAutoSnapshotPolicyResponse, ModifySnapshotAttributeRequest, UnbindAutoSnapshotPolicyRequest, CreateDiskBackupResponse, InquirePriceModifyDiskBackupQuotaResponse, DeleteAutoSnapshotPoliciesRequest, DeleteSnapshotGroupResponse, ApplySnapshotGroupResponse, DescribeSnapshotOverviewRequest, InquiryPriceCreateDisksRequest, DescribeSnapshotsResponse, CreateDisksResponse, AttachDisksResponse, CreateDiskBackupRequest, DeleteSnapshotGroupRequest, BindAutoSnapshotPolicyResponse, DescribeDisksRequest, DetachDisksResponse, InquiryPriceRenewDisksResponse, DescribeDiskStoragePoolResponse, ModifyDiskExtraPerformanceResponse, InquirePriceModifyDiskExtraPerformanceRequest, InquiryPriceResizeDiskRequest, DescribeDiskConfigQuotaRequest, DescribeDiskAssociatedAutoSnapshotPolicyResponse, ApplySnapshotGroupRequest, GetSnapOverviewResponse, CopySnapshotCrossRegionsRequest, RenewDiskResponse, DescribeAutoSnapshotPoliciesResponse, UnbindAutoSnapshotPolicyResponse, CreateAutoSnapshotPolicyRequest, CreateSnapshotGroupResponse, ApplySnapshotRequest } from "./cbs_models";
3
3
  /**
4
4
  * cbs client
5
5
  * @class
@@ -148,6 +148,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
148
148
  * 本接口为异步接口,当创建请求下发成功后会返回一个新建的云盘ID列表,此时云盘的创建并未立即完成。可以通过调用[DescribeDisks](/document/product/362/16315)接口根据DiskId查询对应云盘,如果能查到云盘,且状态为'UNATTACHED'或'ATTACHED',则表示创建成功。
149
149
  */
150
150
  CreateDisks(req: CreateDisksRequest, cb?: (error: string, rep: CreateDisksResponse) => void): Promise<CreateDisksResponse>;
151
+ /**
152
+ * 针对白名单内用户实现自动快照策略的跨账号复制功能
153
+ */
154
+ CopyAutoSnapshotPolicyCrossAccount(req: CopyAutoSnapshotPolicyCrossAccountRequest, cb?: (error: string, rep: CopyAutoSnapshotPolicyCrossAccountResponse) => void): Promise<CopyAutoSnapshotPolicyCrossAccountResponse>;
151
155
  /**
152
156
  * * 只支持修改弹性云盘的项目ID。随云主机创建的云硬盘项目ID与云主机联动。是否是弹性云盘可以通过[DescribeDisks](/document/product/362/16315)接口查询,见输出参数中Portable字段解释。
153
157
  * “云硬盘名称”仅为方便用户自己管理之用,腾讯云并不以此名称作为提交工单或是进行云盘管理操作的依据。
@@ -216,6 +216,12 @@ class Client extends TencentCloudCommon.AbstractClient {
216
216
  async CreateDisks(req, cb) {
217
217
  return this.request("CreateDisks", req, cb);
218
218
  }
219
+ /**
220
+ * 针对白名单内用户实现自动快照策略的跨账号复制功能
221
+ */
222
+ async CopyAutoSnapshotPolicyCrossAccount(req, cb) {
223
+ return this.request("CopyAutoSnapshotPolicyCrossAccount", req, cb);
224
+ }
219
225
  /**
220
226
  * * 只支持修改弹性云盘的项目ID。随云主机创建的云硬盘项目ID与云主机联动。是否是弹性云盘可以通过[DescribeDisks](/document/product/362/16315)接口查询,见输出参数中Portable字段解释。
221
227
  * “云硬盘名称”仅为方便用户自己管理之用,腾讯云并不以此名称作为提交工单或是进行云盘管理操作的依据。
@@ -1110,6 +1110,24 @@ export interface ModifyDisksRenewFlagResponse {
1110
1110
  */
1111
1111
  RequestId?: string;
1112
1112
  }
1113
+ /**
1114
+ * CopyAutoSnapshotPolicyCrossAccount返回参数结构体
1115
+ */
1116
+ export interface CopyAutoSnapshotPolicyCrossAccountResponse {
1117
+ /**
1118
+ * 已备份的定期快照策略ID列表
1119
+ 注意:此字段可能返回 null,表示取不到有效值。
1120
+ */
1121
+ AutoSnapshotPolicyIds?: Array<string>;
1122
+ /**
1123
+ * 目标账户uin
1124
+ */
1125
+ TargetAccountUin?: string;
1126
+ /**
1127
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1128
+ */
1129
+ RequestId?: string;
1130
+ }
1113
1131
  /**
1114
1132
  * DeleteAutoSnapshotPolicies返回参数结构体
1115
1133
  */
@@ -1208,6 +1226,19 @@ export interface ModifySnapshotAttributeResponse {
1208
1226
  */
1209
1227
  RequestId?: string;
1210
1228
  }
1229
+ /**
1230
+ * CopyAutoSnapshotPolicyCrossAccount请求参数结构体
1231
+ */
1232
+ export interface CopyAutoSnapshotPolicyCrossAccountRequest {
1233
+ /**
1234
+ * 要备份的定期快照策略ID列表
1235
+ */
1236
+ AutoSnapshotPolicyIds: Array<string>;
1237
+ /**
1238
+ * 目标账户uin
1239
+ */
1240
+ TargetAccountUin: string;
1241
+ }
1211
1242
  /**
1212
1243
  * ModifyDiskAttributes请求参数结构体
1213
1244
  */