tencentcloud-sdk-cvm 1.0.246 → 1.0.247

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20170312/models.rb +39 -11
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 112bf5027c31f1ad8cb621e5532dd646176b8c96
4
- data.tar.gz: fc079afe5fa009b3d368b61f642246f0852f899f
3
+ metadata.gz: f71f9b7ff3c922d19cd7c808f976e262127aa53b
4
+ data.tar.gz: 661476732839dc0772c70613830e4f73b87f8980
5
5
  SHA512:
6
- metadata.gz: 37b4a1ba396fb800e22243a65c5d580a8678fc306bdfb16efe334474ce870f8774ae745a30e1d0c1c26faf6c847d25ea0062da0ba5dd7cf0b661c1fb4cdbbfd3
7
- data.tar.gz: f09a71dff53004c8e745263ab1ee79d588a1c480e794952ecf71667b1cbce18c62d68735200302f6634684a164fd5049c6dcdc5c78a51df5f985e97c3718d2e9
6
+ metadata.gz: d661c79d999976656cf99068d6217d9711aef50de7cadfe89a9e5661b81dcf4a4eaa813daeda7a88fe4387eff8a1b2b19d4f377944e14cf57e9fe1e3ad0b560b
7
+ data.tar.gz: fd8e1f2f4e7afeefef916c34f78c724da492224f74319e7597950bfabf487d0acbd57e61405b761535c8129e70b5353d5f2ee765f47fef04b1fe5b47857da12e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.246
1
+ 1.0.247
@@ -389,10 +389,12 @@ module TencentCloud
389
389
  # @type SnapshotIds: Array
390
390
  # @param DryRun: 检测本次请求的是否成功,但不会对操作的资源产生任何影响
391
391
  # @type DryRun: Boolean
392
+ # @param TagSpecification: 标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。
393
+ # @type TagSpecification: Array
392
394
 
393
- attr_accessor :ImageName, :InstanceId, :ImageDescription, :ForcePoweroff, :Sysprep, :DataDiskIds, :SnapshotIds, :DryRun
395
+ attr_accessor :ImageName, :InstanceId, :ImageDescription, :ForcePoweroff, :Sysprep, :DataDiskIds, :SnapshotIds, :DryRun, :TagSpecification
394
396
 
395
- def initialize(imagename=nil, instanceid=nil, imagedescription=nil, forcepoweroff=nil, sysprep=nil, datadiskids=nil, snapshotids=nil, dryrun=nil)
397
+ def initialize(imagename=nil, instanceid=nil, imagedescription=nil, forcepoweroff=nil, sysprep=nil, datadiskids=nil, snapshotids=nil, dryrun=nil, tagspecification=nil)
396
398
  @ImageName = imagename
397
399
  @InstanceId = instanceid
398
400
  @ImageDescription = imagedescription
@@ -401,6 +403,7 @@ module TencentCloud
401
403
  @DataDiskIds = datadiskids
402
404
  @SnapshotIds = snapshotids
403
405
  @DryRun = dryrun
406
+ @TagSpecification = tagspecification
404
407
  end
405
408
 
406
409
  def deserialize(params)
@@ -412,6 +415,14 @@ module TencentCloud
412
415
  @DataDiskIds = params['DataDiskIds']
413
416
  @SnapshotIds = params['SnapshotIds']
414
417
  @DryRun = params['DryRun']
418
+ unless params['TagSpecification'].nil?
419
+ @TagSpecification = []
420
+ params['TagSpecification'].each do |i|
421
+ tagspecification_tmp = TagSpecification.new
422
+ tagspecification_tmp.deserialize(i)
423
+ @TagSpecification << tagspecification_tmp
424
+ end
425
+ end
415
426
  end
416
427
  end
417
428
 
@@ -1388,13 +1399,19 @@ module TencentCloud
1388
1399
  # @param ImageIds: 镜像ID列表 。镜像ID如:`img-gvbnzy6f`。array型参数的格式可以参考[API简介](https://cloud.tencent.com/document/api/213/15688)。镜像ID可以通过如下方式获取:<br><li>通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。<br><li>通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。
1389
1400
  # @type ImageIds: Array
1390
1401
  # @param Filters: 过滤条件,每次请求的`Filters`的上限为10,`Filters.Values`的上限为5。参数不可以同时指定`ImageIds`和`Filters`。详细的过滤条件如下:
1391
- # <li> image-id - String - 是否必填: 否 - (过滤条件)按照镜像ID进行过滤</li>
1392
- # <li> image-type - String - 是否必填: 否 - (过滤条件)按照镜像类型进行过滤。取值范围:
1393
- # PRIVATE_IMAGE: 私有镜像 (本账户创建的镜像)
1394
- # PUBLIC_IMAGE: 公共镜像 (腾讯云官方镜像)
1395
- # SHARED_IMAGE: 共享镜像(其他账户共享给本账户的镜像) 。</li>
1396
- # <li> image-name - String - 是否必填: 否 - (过滤条件)按照镜像名称进行过滤</li>
1397
- # <li> platform - String - 是否必填: - (过滤条件)按照镜像平台过滤,如 CentOS</li>
1402
+
1403
+ # <li><strong>image-id</strong></li>
1404
+ # <p style="padding-left: 30px;">按照【<strong>镜像ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1405
+ # <li><strong>image-type</strong></li>
1406
+ # <p style="padding-left: 30px;">按照【<strong>镜像类型</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:</p><p style="padding-left: 30px;">PRIVATE_IMAGE: 私有镜像 (本账户创建的镜像)</p><p style="padding-left: 30px;">PUBLIC_IMAGE: 公共镜像 (腾讯云官方镜像)</p><p style="padding-left: 30px;">SHARED_IMAGE: 共享镜像(其他账户共享给本账户的镜像)</p>
1407
+ # <li><strong>image-name</strong></li>
1408
+ # <p style="padding-left: 30px;">按照【<strong>镜像名称</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1409
+ # <li><strong>platform</strong></li>
1410
+ # <p style="padding-left: 30px;">按照【<strong>镜像平台</strong>】进行过滤,如CentOS。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1411
+ # <li><strong>tag-key</strong></li>
1412
+ # <p style="padding-left: 30px;">按照【<strong>标签键</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1413
+ # <li><strong>tag:tag-key</strong></li>
1414
+ # <p style="padding-left: 30px;">按照【<strong>标签键值对</strong>】进行过滤。tag-key使用具体的标签键进行替换。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1398
1415
  # @type Filters: Array
1399
1416
  # @param Offset: 偏移量,默认为0。关于Offset详见[API简介](/document/api/213/568#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89)。
1400
1417
  # @type Offset: Integer
@@ -3071,10 +3088,12 @@ module TencentCloud
3071
3088
  # @type DryRun: Boolean
3072
3089
  # @param Force: 是否强制导入,参考[强制导入镜像](https://cloud.tencent.com/document/product/213/12849)
3073
3090
  # @type Force: Boolean
3091
+ # @param TagSpecification: 标签描述列表。通过指定该参数可以同时绑定标签到自定义镜像。
3092
+ # @type TagSpecification: Array
3074
3093
 
3075
- attr_accessor :Architecture, :OsType, :OsVersion, :ImageUrl, :ImageName, :ImageDescription, :DryRun, :Force
3094
+ attr_accessor :Architecture, :OsType, :OsVersion, :ImageUrl, :ImageName, :ImageDescription, :DryRun, :Force, :TagSpecification
3076
3095
 
3077
- def initialize(architecture=nil, ostype=nil, osversion=nil, imageurl=nil, imagename=nil, imagedescription=nil, dryrun=nil, force=nil)
3096
+ def initialize(architecture=nil, ostype=nil, osversion=nil, imageurl=nil, imagename=nil, imagedescription=nil, dryrun=nil, force=nil, tagspecification=nil)
3078
3097
  @Architecture = architecture
3079
3098
  @OsType = ostype
3080
3099
  @OsVersion = osversion
@@ -3083,6 +3102,7 @@ module TencentCloud
3083
3102
  @ImageDescription = imagedescription
3084
3103
  @DryRun = dryrun
3085
3104
  @Force = force
3105
+ @TagSpecification = tagspecification
3086
3106
  end
3087
3107
 
3088
3108
  def deserialize(params)
@@ -3094,6 +3114,14 @@ module TencentCloud
3094
3114
  @ImageDescription = params['ImageDescription']
3095
3115
  @DryRun = params['DryRun']
3096
3116
  @Force = params['Force']
3117
+ unless params['TagSpecification'].nil?
3118
+ @TagSpecification = []
3119
+ params['TagSpecification'].each do |i|
3120
+ tagspecification_tmp = TagSpecification.new
3121
+ tagspecification_tmp.deserialize(i)
3122
+ @TagSpecification << tagspecification_tmp
3123
+ end
3124
+ end
3097
3125
  end
3098
3126
  end
3099
3127
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.246
4
+ version: 1.0.247
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-20 00:00:00.000000000 Z
11
+ date: 2022-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common