Skip to content

Commit

Permalink
release_3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
louishuang committed May 31, 2018
1 parent 69d7b4d commit 3dc6dbd
Show file tree
Hide file tree
Showing 12 changed files with 6,710 additions and 1,950 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tencentcloud-sdk-nodejs",
"version": "3.0.2",
"version": "3.0.3",
"description": "腾讯云 API NODEJS SDK",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions tencentcloud/cbs/v20170312/cbs_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const RenewDiskRequest = models.RenewDiskRequest;
const RenewDiskResponse = models.RenewDiskResponse;
const CreateDisksRequest = models.CreateDisksRequest;
const AttachDisksRequest = models.AttachDisksRequest;
const Tag = models.Tag;
const DescribeSnapshotsRequest = models.DescribeSnapshotsRequest;
const TerminateDisksResponse = models.TerminateDisksResponse;
const DescribeDiskConfigQuotaResponse = models.DescribeDiskConfigQuotaResponse;
Expand Down
51 changes: 51 additions & 0 deletions tencentcloud/cbs/v20170312/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,41 @@ class AttachDisksRequest extends AbstractModel {
}
}

/**
* 标签。
* @class
*/
class Tag extends AbstractModel {
constructor(){
super();

/**
* 标签健。
* @type {string || null}
*/
this.Key = null;

/**
* 标签值。
* @type {string || null}
*/
this.Value = null;

}

/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Key = params.Key || null;
this.Value = params.Value || null;

}
}

/**
* DescribeSnapshots请求参数结构体
* @class
Expand Down Expand Up @@ -2033,6 +2068,12 @@ class Disk extends AbstractModel {
*/
this.AutoSnapshotPolicyIds = null;

/**
* 与云盘绑定的标签,云盘未绑定标签则取值为空。
* @type {Array.<Tag> || null}
*/
this.Tags = null;

}

/**
Expand Down Expand Up @@ -2071,6 +2112,15 @@ class Disk extends AbstractModel {
this.ReturnFailCode = params.ReturnFailCode || null;
this.AutoSnapshotPolicyIds = params.AutoSnapshotPolicyIds || null;

if (params.Tags) {
this.Tags = new Array();
for (let z in params.Tags) {
let obj = new Tag();
obj.deserialize(params.Tags[z]);
this.Tags.push(obj);
}
}

}
}

Expand Down Expand Up @@ -2144,6 +2194,7 @@ module.exports = {
RenewDiskResponse: RenewDiskResponse,
CreateDisksRequest: CreateDisksRequest,
AttachDisksRequest: AttachDisksRequest,
Tag: Tag,
DescribeSnapshotsRequest: DescribeSnapshotsRequest,
TerminateDisksResponse: TerminateDisksResponse,
DescribeDiskConfigQuotaResponse: DescribeDiskConfigQuotaResponse,
Expand Down
Loading

0 comments on commit 3dc6dbd

Please sign in to comment.