tencentcloud-sdk-vpc 3.0.487 → 3.0.488

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53d46216cc560dd19e175ffdf6d82853ca5effc7
4
- data.tar.gz: 8367c32784ca479485d9441781894f06297af8a1
3
+ metadata.gz: 4e3505c0b4beac1232bf7bb0ce75baaab6793f7b
4
+ data.tar.gz: ccc41c5c0a9d71ddffd8b6de5d99aa0e4c157020
5
5
  SHA512:
6
- metadata.gz: db1a910db424b1f59a11ceb6d94ba090e5ca22c2a4152adf3879861004dbc009e9789c2a8363e50a67818376e3556ac5427c3f894f77d2dba1b2dc079f828c11
7
- data.tar.gz: 0ee2942da4661e0406139c3f232fd122257ec74344a635d0aef1f46e460c4c8a1b02ca759d967a5d5785b208b5682ec29f0e3fd3d98308851e6c87a7edf4ee0f
6
+ metadata.gz: 378879605fa039eb4ef7d53c7df57c75bb8ed9d1cfc803e836d381d69696cc6b93e76854e47b7bf6a83ac01c152de58fc8e427c94858836ca3d2cc57f3a8a17d
7
+ data.tar.gz: 5d985a872f248befa726578c635de9dc0afb502b2fd5c23c0a4724d97ad72e1213156d5647c1e75d85501c97f24b51a0bf3bd37dde17bebf773ddffd939c3ce4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.487
1
+ 3.0.488
@@ -1565,6 +1565,30 @@ module TencentCloud
1565
1565
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1566
1566
  end
1567
1567
 
1568
+ # 本接口 (CreateTrafficPackages) 用于创建共享流量包。
1569
+
1570
+ # @param request: Request instance for CreateTrafficPackages.
1571
+ # @type request: :class:`Tencentcloud::vpc::V20170312::CreateTrafficPackagesRequest`
1572
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::CreateTrafficPackagesResponse`
1573
+ def CreateTrafficPackages(request)
1574
+ body = send_request('CreateTrafficPackages', request.serialize)
1575
+ response = JSON.parse(body)
1576
+ if response['Response'].key?('Error') == false
1577
+ model = CreateTrafficPackagesResponse.new
1578
+ model.deserialize(response['Response'])
1579
+ model
1580
+ else
1581
+ code = response['Response']['Error']['Code']
1582
+ message = response['Response']['Error']['Message']
1583
+ reqid = response['Response']['RequestId']
1584
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1585
+ end
1586
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1587
+ raise e
1588
+ rescue StandardError => e
1589
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1590
+ end
1591
+
1568
1592
  # 本接口(CreateVpc)用于创建私有网络(VPC)。
1569
1593
  # * 用户可以创建的最小网段子网掩码为28(有16个IP地址),10.0.0.0/12,172.16.0.0/12最大网段子网掩码为12(1,048,576个IP地址),192.168.0.0/16最大网段子网掩码为16(65,536个IP地址)如果需要规划VPC网段请参见[网络规划](https://cloud.tencent.com/document/product/215/30313)。
1570
1594
  # * 同一个地域能创建的VPC资源个数也是有限制的,详见 <a href="https://cloud.tencent.com/doc/product/215/537" title="VPC使用限制">VPC使用限制</a>,如果需要申请更多资源,请提交[工单申请](https://console.cloud.tencent.com/workorder/category)。
@@ -1477,7 +1477,7 @@ module TencentCloud
1477
1477
  class BandwidthPackage < TencentCloud::Common::AbstractModel
1478
1478
  # @param BandwidthPackageId: 带宽包唯一标识Id
1479
1479
  # @type BandwidthPackageId: String
1480
- # @param NetworkType: 带宽包类型,包括'BGP','SINGLEISP','ANYCAST'
1480
+ # @param NetworkType: 带宽包类型,包括'BGP','SINGLEISP','ANYCAST','SINGLEISP_CMCC','SINGLEISP_CTCC','SINGLEISP_CUCC'
1481
1481
  # @type NetworkType: String
1482
1482
  # @param ChargeType: 带宽包计费类型,包括'TOP5_POSTPAID_BY_MONTH'和'PERCENT95_POSTPAID_BY_MONTH'
1483
1483
  # @type ChargeType: String
@@ -1527,7 +1527,7 @@ module TencentCloud
1527
1527
  # 后付费共享带宽包的当前计费用量
1528
1528
  class BandwidthPackageBillBandwidth < TencentCloud::Common::AbstractModel
1529
1529
  # @param BandwidthUsage: 当前计费用量,单位为 Mbps
1530
- # @type BandwidthUsage: Integer
1530
+ # @type BandwidthUsage: Float
1531
1531
 
1532
1532
  attr_accessor :BandwidthUsage
1533
1533
 
@@ -4133,6 +4133,60 @@ module TencentCloud
4133
4133
  end
4134
4134
  end
4135
4135
 
4136
+ # CreateTrafficPackages请求参数结构体
4137
+ class CreateTrafficPackagesRequest < TencentCloud::Common::AbstractModel
4138
+ # @param TrafficAmount: 流量包规格。可选值:
4139
+ # <li>10: 10GB流量,有效期一个月</li>
4140
+ # <li>50: 50GB流量,有效期一个月</li>
4141
+ # <li>512: 512GB流量,有效期一个月</li>
4142
+ # <li>1024: 1TB流量,有效期一个月</li>
4143
+ # <li>5120: 5TB流量,有效期一个月</li>
4144
+ # <li>51200: 50TB流量,有效期一个月</li>
4145
+ # <li>60: 60GB流量,有效期半年</li>
4146
+ # <li>300: 300GB流量,有效期半年</li>
4147
+ # <li>600: 600GB流量,有效期半年</li>
4148
+ # <li>3072: 3TB流量,有效期半年</li>
4149
+ # <li>6144: 6TB流量,有效期半年</li>
4150
+ # <li>30720: 30TB流量,有效期半年</li>
4151
+ # <li>61440: 60TB流量,有效期半年</li>
4152
+ # <li>307200: 300TB流量,有效期半年</li>
4153
+ # @type TrafficAmount: Integer
4154
+ # @param TrafficPackageCount: 流量包数量,可选范围 1~20。
4155
+ # @type TrafficPackageCount: Integer
4156
+
4157
+ attr_accessor :TrafficAmount, :TrafficPackageCount
4158
+
4159
+ def initialize(trafficamount=nil, trafficpackagecount=nil)
4160
+ @TrafficAmount = trafficamount
4161
+ @TrafficPackageCount = trafficpackagecount
4162
+ end
4163
+
4164
+ def deserialize(params)
4165
+ @TrafficAmount = params['TrafficAmount']
4166
+ @TrafficPackageCount = params['TrafficPackageCount']
4167
+ end
4168
+ end
4169
+
4170
+ # CreateTrafficPackages返回参数结构体
4171
+ class CreateTrafficPackagesResponse < TencentCloud::Common::AbstractModel
4172
+ # @param TrafficPackageSet: 创建的流量包ID列表。
4173
+ # @type TrafficPackageSet: Array
4174
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4175
+ # @type RequestId: String
4176
+
4177
+ attr_accessor :TrafficPackageSet, :RequestId
4178
+
4179
+ def initialize(trafficpackageset=nil, requestid=nil)
4180
+ @TrafficPackageSet = trafficpackageset
4181
+ @RequestId = requestid
4182
+ end
4183
+
4184
+ def deserialize(params)
4185
+ @TrafficPackageSet = params['TrafficPackageSet']
4186
+ @RequestId = params['RequestId']
4187
+ end
4188
+ end
4189
+
4136
4190
  # CreateVpcEndPoint请求参数结构体
4137
4191
  class CreateVpcEndPointRequest < TencentCloud::Common::AbstractModel
4138
4192
  # @param VpcId: VPC实例ID。
@@ -6844,9 +6898,9 @@ module TencentCloud
6844
6898
  # <li> tag-value - String - 是否必填:否 - (过滤条件)按照标签值进行过滤。</li>
6845
6899
  # <li> tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。tag-key使用具体的标签键进行替换。</li>
6846
6900
  # @type Filters: Array
6847
- # @param Offset: 查询带宽包偏移量
6901
+ # @param Offset: 查询带宽包偏移量,默认为0。关于Offset的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小结。
6848
6902
  # @type Offset: Integer
6849
- # @param Limit: 查询带宽包数量限制
6903
+ # @param Limit: 查询带宽包返回数量,默认为20,最大值为100。关于Limit的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小结。
6850
6904
  # @type Limit: Integer
6851
6905
 
6852
6906
  attr_accessor :BandwidthPackageIds, :Filters, :Offset, :Limit
@@ -19174,16 +19228,24 @@ module TencentCloud
19174
19228
 
19175
19229
  # TransformAddress返回参数结构体
19176
19230
  class TransformAddressResponse < TencentCloud::Common::AbstractModel
19231
+ # @param TaskId: 异步任务TaskId。可以使用[DescribeTaskResult](https://cloud.tencent.com/document/api/215/36271)接口查询任务状态。
19232
+ # @type TaskId: Integer
19233
+ # @param AddressId: 转为弹性公网IP后的唯一ID
19234
+ # @type AddressId: String
19177
19235
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
19178
19236
  # @type RequestId: String
19179
19237
 
19180
- attr_accessor :RequestId
19238
+ attr_accessor :TaskId, :AddressId, :RequestId
19181
19239
 
19182
- def initialize(requestid=nil)
19240
+ def initialize(taskid=nil, addressid=nil, requestid=nil)
19241
+ @TaskId = taskid
19242
+ @AddressId = addressid
19183
19243
  @RequestId = requestid
19184
19244
  end
19185
19245
 
19186
19246
  def deserialize(params)
19247
+ @TaskId = params['TaskId']
19248
+ @AddressId = params['AddressId']
19187
19249
  @RequestId = params['RequestId']
19188
19250
  end
19189
19251
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-vpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.487
4
+ version: 3.0.488
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-05 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common