tencentcloud-sdk-tke 3.0.871 → 3.0.873

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: ceb8e2c6aad7b866d3fa550a1bd65e8a49eb925d
4
- data.tar.gz: 5ce45b12bac3e342b96af66ca4cc726944e8b6e8
3
+ metadata.gz: c7b56e390fd779e2bd2fd555626940560291a86c
4
+ data.tar.gz: d217b462839fb19df7569811e1e54e9331a3ea2e
5
5
  SHA512:
6
- metadata.gz: 14dca77d6f8fdeb874fd9d03a1836dd15a1a4dd85558f22ae8bfda4484f52cddcffe78135a5d28e2e8ed3b668a5d33f4163d60c5bf8cd67140172c3066c0cb8d
7
- data.tar.gz: cb686a5d425af63bb24fdc9343848f6228d6f3113478c93fd4db57f7235a3894f50de4ebcf5a8f8ea1a2358862c2c5745106b9509427629a8af3c46874bd90a8
6
+ metadata.gz: 681404658ef2500cf6f689cca804a10af1301ef99b622ac43063aa2aef52b827da42d90bb0ebc219890f873ca619e75d22c050d47860718fef0211ed2fd7c257
7
+ data.tar.gz: fc21736ca4b9baddb2880d73cad47eb8094b4886dea988593de9fee861b636b74fb7c05d38aed4f9281e4baed8fbe14d986b02ce4867b859256dcfb7d2061dde
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.871
1
+ 3.0.873
@@ -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.
@@ -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.871
4
+ version: 3.0.873
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-23 00:00:00.000000000 Z
11
+ date: 2024-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common