tencentcloud-sdk-vpc 3.0.403 → 3.0.404

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: 6902c72e73190384b6256e8f32b44e4e3fb45693
4
- data.tar.gz: 09f71d77b630495da7be870ecb172196790d5031
3
+ metadata.gz: 2ab9e829a1743b3ea999ffeb3f95880f42768d67
4
+ data.tar.gz: 6b11ab4acaea91443e73f9c5ca4d9b8943981c3b
5
5
  SHA512:
6
- metadata.gz: 688b1820b0168b47fba648089a71e48b2477e40930bbb1bfb2d08885513f5f6e35c23a2b3413bdc98210c1f42d8553a00cce66a1599fd98b69d93d532a5a359b
7
- data.tar.gz: 898460c11a3ef41bb9a45558ad8678ff30d84971ea14f07d7450258f8d53055ddc882e5b1eafa10b19e5ff13fe5c727c7b276a45c39a1d43c88a289f2ab1a6b8
6
+ metadata.gz: c61db03c7bfbf7c98db4ace1b08646093d0464b47426db6c35659a2d63e475516ff4425791b0859aeecfb27791cfcf94810d218180297a65c8fd1b3c3ba35d5f
7
+ data.tar.gz: 62abf691023145b8db12730814ebd67598903d6670505e2e5e11aaeb5c691cf4d232b820110895521dd2876b5964e63c125488f11cb4034e83b675974ae5c9a5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.403
1
+ 3.0.404
@@ -4025,6 +4025,30 @@ module TencentCloud
4025
4025
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4026
4026
  end
4027
4027
 
4028
+ # 本接口 (DescribeTrafficPackages) 用于查询共享流量包详细信息,包括共享流量包唯一标识ID,名称,流量使用信息等
4029
+
4030
+ # @param request: Request instance for DescribeTrafficPackages.
4031
+ # @type request: :class:`Tencentcloud::vpc::V20170312::DescribeTrafficPackagesRequest`
4032
+ # @rtype: :class:`Tencentcloud::vpc::V20170312::DescribeTrafficPackagesResponse`
4033
+ def DescribeTrafficPackages(request)
4034
+ body = send_request('DescribeTrafficPackages', request.serialize)
4035
+ response = JSON.parse(body)
4036
+ if response['Response'].key?('Error') == false
4037
+ model = DescribeTrafficPackagesResponse.new
4038
+ model.deserialize(response['Response'])
4039
+ model
4040
+ else
4041
+ code = response['Response']['Error']['Code']
4042
+ message = response['Response']['Error']['Message']
4043
+ reqid = response['Response']['RequestId']
4044
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4045
+ end
4046
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4047
+ raise e
4048
+ rescue StandardError => e
4049
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4050
+ end
4051
+
4028
4052
  # 查询终端节点列表。
4029
4053
 
4030
4054
  # @param request: Request instance for DescribeVpcEndPoint.
@@ -9606,6 +9606,75 @@ module TencentCloud
9606
9606
  end
9607
9607
  end
9608
9608
 
9609
+ # DescribeTrafficPackages请求参数结构体
9610
+ class DescribeTrafficPackagesRequest < TencentCloud::Common::AbstractModel
9611
+ # @param TrafficPackageIds: 共享流量包ID,支持批量
9612
+ # @type TrafficPackageIds: Array
9613
+ # @param Filters: 每次请求的`Filters`的上限为10。参数不支持同时指定`TrafficPackageIds`和`Filters`。详细的过滤条件如下:
9614
+ # <li> traffic-package_id - String - 是否必填:否 - (过滤条件)按照共享流量包的唯一标识ID过滤。</li>
9615
+ # <li> traffic-package-name - String - 是否必填:否 - (过滤条件)按照共享流量包名称过滤。不支持模糊过滤。</li>
9616
+ # <li> status - String - 是否必填:否 - (过滤条件)按照共享流量包状态过滤。可选状态:[AVAILABLE|EXPIRED|EXHAUSTED]</li>
9617
+ # @type Filters: Array
9618
+ # @param Offset: 分页参数
9619
+ # @type Offset: Integer
9620
+ # @param Limit: 分页参数
9621
+ # @type Limit: Integer
9622
+
9623
+ attr_accessor :TrafficPackageIds, :Filters, :Offset, :Limit
9624
+
9625
+ def initialize(trafficpackageids=nil, filters=nil, offset=nil, limit=nil)
9626
+ @TrafficPackageIds = trafficpackageids
9627
+ @Filters = filters
9628
+ @Offset = offset
9629
+ @Limit = limit
9630
+ end
9631
+
9632
+ def deserialize(params)
9633
+ @TrafficPackageIds = params['TrafficPackageIds']
9634
+ unless params['Filters'].nil?
9635
+ @Filters = []
9636
+ params['Filters'].each do |i|
9637
+ filter_tmp = Filter.new
9638
+ filter_tmp.deserialize(i)
9639
+ @Filters << filter_tmp
9640
+ end
9641
+ end
9642
+ @Offset = params['Offset']
9643
+ @Limit = params['Limit']
9644
+ end
9645
+ end
9646
+
9647
+ # DescribeTrafficPackages返回参数结构体
9648
+ class DescribeTrafficPackagesResponse < TencentCloud::Common::AbstractModel
9649
+ # @param TotalCount: 按照条件查询出来的流量包数量
9650
+ # @type TotalCount: Integer
9651
+ # @param TrafficPackageSet: 流量包信息
9652
+ # @type TrafficPackageSet: Array
9653
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9654
+ # @type RequestId: String
9655
+
9656
+ attr_accessor :TotalCount, :TrafficPackageSet, :RequestId
9657
+
9658
+ def initialize(totalcount=nil, trafficpackageset=nil, requestid=nil)
9659
+ @TotalCount = totalcount
9660
+ @TrafficPackageSet = trafficpackageset
9661
+ @RequestId = requestid
9662
+ end
9663
+
9664
+ def deserialize(params)
9665
+ @TotalCount = params['TotalCount']
9666
+ unless params['TrafficPackageSet'].nil?
9667
+ @TrafficPackageSet = []
9668
+ params['TrafficPackageSet'].each do |i|
9669
+ trafficpackage_tmp = TrafficPackage.new
9670
+ trafficpackage_tmp.deserialize(i)
9671
+ @TrafficPackageSet << trafficpackage_tmp
9672
+ end
9673
+ end
9674
+ @RequestId = params['RequestId']
9675
+ end
9676
+ end
9677
+
9609
9678
  # DescribeVpcEndPoint请求参数结构体
9610
9679
  class DescribeVpcEndPointRequest < TencentCloud::Common::AbstractModel
9611
9680
  # @param Filters: 过滤条件。
@@ -18043,6 +18112,67 @@ module TencentCloud
18043
18112
  end
18044
18113
  end
18045
18114
 
18115
+ # 流量包信息描述类型
18116
+ class TrafficPackage < TencentCloud::Common::AbstractModel
18117
+ # @param TrafficPackageId: 流量包唯一ID
18118
+ # @type TrafficPackageId: String
18119
+ # @param TrafficPackageName: 流量包名称
18120
+ # 注意:此字段可能返回 null,表示取不到有效值。
18121
+ # @type TrafficPackageName: String
18122
+ # @param TotalAmount: 流量包总量,单位GB
18123
+ # @type TotalAmount: Float
18124
+ # @param RemainingAmount: 流量包剩余量,单位GB
18125
+ # @type RemainingAmount: Float
18126
+ # @param Status: 流量包状态,可能的值有: AVAILABLE-可用状态, EXPIRED-已过期, EXHAUSTED-已用完, REFUNDED-已退还, DELETED-已删除
18127
+ # @type Status: String
18128
+ # @param CreatedTime: 流量包创建时间
18129
+ # @type CreatedTime: String
18130
+ # @param Deadline: 流量包截止时间
18131
+ # @type Deadline: String
18132
+ # @param UsedAmount: 已使用的流量,单位GB
18133
+ # @type UsedAmount: Float
18134
+ # @param TagSet: 流量包标签
18135
+ # 注意:此字段可能返回 null,表示取不到有效值。
18136
+ # @type TagSet: Array
18137
+ # @param DeductType: 区分闲时流量包与全时流量包
18138
+ # @type DeductType: String
18139
+
18140
+ attr_accessor :TrafficPackageId, :TrafficPackageName, :TotalAmount, :RemainingAmount, :Status, :CreatedTime, :Deadline, :UsedAmount, :TagSet, :DeductType
18141
+
18142
+ def initialize(trafficpackageid=nil, trafficpackagename=nil, totalamount=nil, remainingamount=nil, status=nil, createdtime=nil, deadline=nil, usedamount=nil, tagset=nil, deducttype=nil)
18143
+ @TrafficPackageId = trafficpackageid
18144
+ @TrafficPackageName = trafficpackagename
18145
+ @TotalAmount = totalamount
18146
+ @RemainingAmount = remainingamount
18147
+ @Status = status
18148
+ @CreatedTime = createdtime
18149
+ @Deadline = deadline
18150
+ @UsedAmount = usedamount
18151
+ @TagSet = tagset
18152
+ @DeductType = deducttype
18153
+ end
18154
+
18155
+ def deserialize(params)
18156
+ @TrafficPackageId = params['TrafficPackageId']
18157
+ @TrafficPackageName = params['TrafficPackageName']
18158
+ @TotalAmount = params['TotalAmount']
18159
+ @RemainingAmount = params['RemainingAmount']
18160
+ @Status = params['Status']
18161
+ @CreatedTime = params['CreatedTime']
18162
+ @Deadline = params['Deadline']
18163
+ @UsedAmount = params['UsedAmount']
18164
+ unless params['TagSet'].nil?
18165
+ @TagSet = []
18166
+ params['TagSet'].each do |i|
18167
+ tag_tmp = Tag.new
18168
+ tag_tmp.deserialize(i)
18169
+ @TagSet << tag_tmp
18170
+ end
18171
+ end
18172
+ @DeductType = params['DeductType']
18173
+ end
18174
+ end
18175
+
18046
18176
  # TransformAddress请求参数结构体
18047
18177
  class TransformAddressRequest < TencentCloud::Common::AbstractModel
18048
18178
  # @param InstanceId: 待操作有普通公网 IP 的实例 ID。实例 ID 形如:`ins-11112222`。可通过登录[控制台](https://console.cloud.tencent.com/cvm)查询,也可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/9389) 接口返回值中的`InstanceId`获取。
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.403
4
+ version: 3.0.404
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-09-02 00:00:00.000000000 Z
11
+ date: 2022-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common