tencentcloud-sdk-tke 3.0.872 → 3.0.874
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180525/client.rb +24 -0
- data/lib/v20180525/models.rb +121 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b120c488b95758497ddeb2596ab20bda541a5a0
|
4
|
+
data.tar.gz: 82b8bd44c66207b8ea51bc6d2ab621ebc0ea21c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bec1839242d80c5105e0c45b376cda2122ba637aa0bcc35b065452661aea74ca4f61855d72a34d84202b80ec3365b29646bf3e3427db98e8a5d741aa2e3d9c5f
|
7
|
+
data.tar.gz: 084b9e1fcccff3323e0402c6669e1e165267b3a93be2d45546d06ac148720fadf1608ff225bec1a402e4d3ac6964fecf9ebb8ad81fc727068e01a267a2a410a3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.874
|
data/lib/v20180525/client.rb
CHANGED
@@ -3535,6 +3535,30 @@ module TencentCloud
|
|
3535
3535
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3536
3536
|
end
|
3537
3537
|
|
3538
|
+
# 查询各种规格类型的预留券使用率
|
3539
|
+
|
3540
|
+
# @param request: Request instance for DescribeReservedInstanceUtilizationRate.
|
3541
|
+
# @type request: :class:`Tencentcloud::tke::V20180525::DescribeReservedInstanceUtilizationRateRequest`
|
3542
|
+
# @rtype: :class:`Tencentcloud::tke::V20180525::DescribeReservedInstanceUtilizationRateResponse`
|
3543
|
+
def DescribeReservedInstanceUtilizationRate(request)
|
3544
|
+
body = send_request('DescribeReservedInstanceUtilizationRate', request.serialize)
|
3545
|
+
response = JSON.parse(body)
|
3546
|
+
if response['Response'].key?('Error') == false
|
3547
|
+
model = DescribeReservedInstanceUtilizationRateResponse.new
|
3548
|
+
model.deserialize(response['Response'])
|
3549
|
+
model
|
3550
|
+
else
|
3551
|
+
code = response['Response']['Error']['Code']
|
3552
|
+
message = response['Response']['Error']['Message']
|
3553
|
+
reqid = response['Response']['RequestId']
|
3554
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3555
|
+
end
|
3556
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3557
|
+
raise e
|
3558
|
+
rescue StandardError => e
|
3559
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3560
|
+
end
|
3561
|
+
|
3538
3562
|
# 查询预留实例列表
|
3539
3563
|
|
3540
3564
|
# @param request: Request instance for DescribeReservedInstances.
|
data/lib/v20180525/models.rb
CHANGED
@@ -9604,6 +9604,65 @@ module TencentCloud
|
|
9604
9604
|
end
|
9605
9605
|
end
|
9606
9606
|
|
9607
|
+
# DescribeReservedInstanceUtilizationRate请求参数结构体
|
9608
|
+
class DescribeReservedInstanceUtilizationRateRequest < TencentCloud::Common::AbstractModel
|
9609
|
+
# @param Zone: 可用区
|
9610
|
+
# @type Zone: String
|
9611
|
+
# @param ClusterId: 集群 ID
|
9612
|
+
# @type ClusterId: String
|
9613
|
+
# @param NodeName: 节点名称
|
9614
|
+
# @type NodeName: String
|
9615
|
+
|
9616
|
+
attr_accessor :Zone, :ClusterId, :NodeName
|
9617
|
+
|
9618
|
+
def initialize(zone=nil, clusterid=nil, nodename=nil)
|
9619
|
+
@Zone = zone
|
9620
|
+
@ClusterId = clusterid
|
9621
|
+
@NodeName = nodename
|
9622
|
+
end
|
9623
|
+
|
9624
|
+
def deserialize(params)
|
9625
|
+
@Zone = params['Zone']
|
9626
|
+
@ClusterId = params['ClusterId']
|
9627
|
+
@NodeName = params['NodeName']
|
9628
|
+
end
|
9629
|
+
end
|
9630
|
+
|
9631
|
+
# DescribeReservedInstanceUtilizationRate返回参数结构体
|
9632
|
+
class DescribeReservedInstanceUtilizationRateResponse < TencentCloud::Common::AbstractModel
|
9633
|
+
# @param UtilizationRateSet: 预留券使用率
|
9634
|
+
# @type UtilizationRateSet: Array
|
9635
|
+
# @param PodNum: 按量计费的 Pod 总数
|
9636
|
+
# @type PodNum: Integer
|
9637
|
+
# @param PodRate: Pod 被预留券抵扣的抵扣率
|
9638
|
+
# @type PodRate: Float
|
9639
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9640
|
+
# @type RequestId: String
|
9641
|
+
|
9642
|
+
attr_accessor :UtilizationRateSet, :PodNum, :PodRate, :RequestId
|
9643
|
+
|
9644
|
+
def initialize(utilizationrateset=nil, podnum=nil, podrate=nil, requestid=nil)
|
9645
|
+
@UtilizationRateSet = utilizationrateset
|
9646
|
+
@PodNum = podnum
|
9647
|
+
@PodRate = podrate
|
9648
|
+
@RequestId = requestid
|
9649
|
+
end
|
9650
|
+
|
9651
|
+
def deserialize(params)
|
9652
|
+
unless params['UtilizationRateSet'].nil?
|
9653
|
+
@UtilizationRateSet = []
|
9654
|
+
params['UtilizationRateSet'].each do |i|
|
9655
|
+
reservedinstanceutilizationrate_tmp = ReservedInstanceUtilizationRate.new
|
9656
|
+
reservedinstanceutilizationrate_tmp.deserialize(i)
|
9657
|
+
@UtilizationRateSet << reservedinstanceutilizationrate_tmp
|
9658
|
+
end
|
9659
|
+
end
|
9660
|
+
@PodNum = params['PodNum']
|
9661
|
+
@PodRate = params['PodRate']
|
9662
|
+
@RequestId = params['RequestId']
|
9663
|
+
end
|
9664
|
+
end
|
9665
|
+
|
9607
9666
|
# DescribeReservedInstances请求参数结构体
|
9608
9667
|
class DescribeReservedInstancesRequest < TencentCloud::Common::AbstractModel
|
9609
9668
|
# @param Offset: 偏移量,默认0。
|
@@ -16986,6 +17045,68 @@ module TencentCloud
|
|
16986
17045
|
end
|
16987
17046
|
end
|
16988
17047
|
|
17048
|
+
# 预留券的使用率信息
|
17049
|
+
class ReservedInstanceUtilizationRate < TencentCloud::Common::AbstractModel
|
17050
|
+
# @param Rate: 使用率
|
17051
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17052
|
+
# @type Rate: Float
|
17053
|
+
# @param Num: 预留券数量
|
17054
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17055
|
+
# @type Num: Integer
|
17056
|
+
# @param CPU: 核数
|
17057
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17058
|
+
# @type CPU: Float
|
17059
|
+
# @param Memory: 内存
|
17060
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17061
|
+
# @type Memory: Float
|
17062
|
+
# @param Type: 预留券类型
|
17063
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17064
|
+
# @type Type: String
|
17065
|
+
# @param GpuNum: GPU 卡数
|
17066
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17067
|
+
# @type GpuNum: String
|
17068
|
+
# @param Zone: 可用区
|
17069
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17070
|
+
# @type Zone: String
|
17071
|
+
# @param ClusterId: 集群 ID
|
17072
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17073
|
+
# @type ClusterId: String
|
17074
|
+
# @param NodeName: 节点名称
|
17075
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17076
|
+
# @type NodeName: String
|
17077
|
+
# @param PodNum: Pod 数量
|
17078
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17079
|
+
# @type PodNum: Integer
|
17080
|
+
|
17081
|
+
attr_accessor :Rate, :Num, :CPU, :Memory, :Type, :GpuNum, :Zone, :ClusterId, :NodeName, :PodNum
|
17082
|
+
|
17083
|
+
def initialize(rate=nil, num=nil, cpu=nil, memory=nil, type=nil, gpunum=nil, zone=nil, clusterid=nil, nodename=nil, podnum=nil)
|
17084
|
+
@Rate = rate
|
17085
|
+
@Num = num
|
17086
|
+
@CPU = cpu
|
17087
|
+
@Memory = memory
|
17088
|
+
@Type = type
|
17089
|
+
@GpuNum = gpunum
|
17090
|
+
@Zone = zone
|
17091
|
+
@ClusterId = clusterid
|
17092
|
+
@NodeName = nodename
|
17093
|
+
@PodNum = podnum
|
17094
|
+
end
|
17095
|
+
|
17096
|
+
def deserialize(params)
|
17097
|
+
@Rate = params['Rate']
|
17098
|
+
@Num = params['Num']
|
17099
|
+
@CPU = params['CPU']
|
17100
|
+
@Memory = params['Memory']
|
17101
|
+
@Type = params['Type']
|
17102
|
+
@GpuNum = params['GpuNum']
|
17103
|
+
@Zone = params['Zone']
|
17104
|
+
@ClusterId = params['ClusterId']
|
17105
|
+
@NodeName = params['NodeName']
|
17106
|
+
@PodNum = params['PodNum']
|
17107
|
+
end
|
17108
|
+
end
|
17109
|
+
|
16989
17110
|
# 资源删除选项
|
16990
17111
|
class ResourceDeleteOption < TencentCloud::Common::AbstractModel
|
16991
17112
|
# @param ResourceType: 资源类型,例如CBS、CLB、CVM
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.874
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|