tencentcloud-sdk-tke 3.0.669 → 3.0.670

Sign up to get free protection for your applications and to get access to all the features.
@@ -463,12 +463,16 @@ module TencentCloud
463
463
  # cuDNN的版本信息
464
464
  class CUDNN < TencentCloud::Common::AbstractModel
465
465
  # @param Version: cuDNN的版本
466
+ # 注意:此字段可能返回 null,表示取不到有效值。
466
467
  # @type Version: String
467
468
  # @param Name: cuDNN的名字
469
+ # 注意:此字段可能返回 null,表示取不到有效值。
468
470
  # @type Name: String
469
471
  # @param DocName: cuDNN的Doc名字
472
+ # 注意:此字段可能返回 null,表示取不到有效值。
470
473
  # @type DocName: String
471
474
  # @param DevName: cuDNN的Dev名字
475
+ # 注意:此字段可能返回 null,表示取不到有效值。
472
476
  # @type DevName: String
473
477
 
474
478
  attr_accessor :Version, :Name, :DocName, :DevName
@@ -3502,6 +3506,64 @@ module TencentCloud
3502
3506
  end
3503
3507
  end
3504
3508
 
3509
+ # CreateReservedInstances请求参数结构体
3510
+ class CreateReservedInstancesRequest < TencentCloud::Common::AbstractModel
3511
+ # @param ReservedInstanceSpec: 预留券实例规格。
3512
+ # @type ReservedInstanceSpec: :class:`Tencentcloud::Tke.v20180525.models.ReservedInstanceSpec`
3513
+ # @param InstanceCount: 购买实例数量,一次最大购买数量为300。
3514
+ # @type InstanceCount: Integer
3515
+ # @param InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。
3516
+ # @type InstanceChargePrepaid: :class:`Tencentcloud::Tke.v20180525.models.InstanceChargePrepaid`
3517
+ # @param InstanceName: 预留券名称。
3518
+ # @type InstanceName: String
3519
+ # @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
3520
+ # @type ClientToken: String
3521
+
3522
+ attr_accessor :ReservedInstanceSpec, :InstanceCount, :InstanceChargePrepaid, :InstanceName, :ClientToken
3523
+
3524
+ def initialize(reservedinstancespec=nil, instancecount=nil, instancechargeprepaid=nil, instancename=nil, clienttoken=nil)
3525
+ @ReservedInstanceSpec = reservedinstancespec
3526
+ @InstanceCount = instancecount
3527
+ @InstanceChargePrepaid = instancechargeprepaid
3528
+ @InstanceName = instancename
3529
+ @ClientToken = clienttoken
3530
+ end
3531
+
3532
+ def deserialize(params)
3533
+ unless params['ReservedInstanceSpec'].nil?
3534
+ @ReservedInstanceSpec = ReservedInstanceSpec.new
3535
+ @ReservedInstanceSpec.deserialize(params['ReservedInstanceSpec'])
3536
+ end
3537
+ @InstanceCount = params['InstanceCount']
3538
+ unless params['InstanceChargePrepaid'].nil?
3539
+ @InstanceChargePrepaid = InstanceChargePrepaid.new
3540
+ @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
3541
+ end
3542
+ @InstanceName = params['InstanceName']
3543
+ @ClientToken = params['ClientToken']
3544
+ end
3545
+ end
3546
+
3547
+ # CreateReservedInstances返回参数结构体
3548
+ class CreateReservedInstancesResponse < TencentCloud::Common::AbstractModel
3549
+ # @param ReservedInstanceIds: 预留券实例 ID。
3550
+ # @type ReservedInstanceIds: Array
3551
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3552
+ # @type RequestId: String
3553
+
3554
+ attr_accessor :ReservedInstanceIds, :RequestId
3555
+
3556
+ def initialize(reservedinstanceids=nil, requestid=nil)
3557
+ @ReservedInstanceIds = reservedinstanceids
3558
+ @RequestId = requestid
3559
+ end
3560
+
3561
+ def deserialize(params)
3562
+ @ReservedInstanceIds = params['ReservedInstanceIds']
3563
+ @RequestId = params['RequestId']
3564
+ end
3565
+ end
3566
+
3505
3567
  # CreateTKEEdgeCluster请求参数结构体
3506
3568
  class CreateTKEEdgeClusterRequest < TencentCloud::Common::AbstractModel
3507
3569
  # @param K8SVersion: k8s版本号
@@ -4757,6 +4819,38 @@ module TencentCloud
4757
4819
  end
4758
4820
  end
4759
4821
 
4822
+ # DeleteReservedInstances请求参数结构体
4823
+ class DeleteReservedInstancesRequest < TencentCloud::Common::AbstractModel
4824
+ # @param ReservedInstanceIds: 预留券实例ID。
4825
+ # @type ReservedInstanceIds: Array
4826
+
4827
+ attr_accessor :ReservedInstanceIds
4828
+
4829
+ def initialize(reservedinstanceids=nil)
4830
+ @ReservedInstanceIds = reservedinstanceids
4831
+ end
4832
+
4833
+ def deserialize(params)
4834
+ @ReservedInstanceIds = params['ReservedInstanceIds']
4835
+ end
4836
+ end
4837
+
4838
+ # DeleteReservedInstances返回参数结构体
4839
+ class DeleteReservedInstancesResponse < TencentCloud::Common::AbstractModel
4840
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4841
+ # @type RequestId: String
4842
+
4843
+ attr_accessor :RequestId
4844
+
4845
+ def initialize(requestid=nil)
4846
+ @RequestId = requestid
4847
+ end
4848
+
4849
+ def deserialize(params)
4850
+ @RequestId = params['RequestId']
4851
+ end
4852
+ end
4853
+
4760
4854
  # DeleteTKEEdgeCluster请求参数结构体
4761
4855
  class DeleteTKEEdgeClusterRequest < TencentCloud::Common::AbstractModel
4762
4856
  # @param ClusterId: 集群ID
@@ -7601,6 +7695,212 @@ module TencentCloud
7601
7695
  end
7602
7696
  end
7603
7697
 
7698
+ # DescribePodDeductionRate请求参数结构体
7699
+ class DescribePodDeductionRateRequest < TencentCloud::Common::AbstractModel
7700
+ # @param Zone: 可用区
7701
+ # @type Zone: String
7702
+ # @param ClusterId: 集群 ID
7703
+ # @type ClusterId: String
7704
+ # @param NodeName: 节点名称
7705
+ # @type NodeName: String
7706
+
7707
+ attr_accessor :Zone, :ClusterId, :NodeName
7708
+
7709
+ def initialize(zone=nil, clusterid=nil, nodename=nil)
7710
+ @Zone = zone
7711
+ @ClusterId = clusterid
7712
+ @NodeName = nodename
7713
+ end
7714
+
7715
+ def deserialize(params)
7716
+ @Zone = params['Zone']
7717
+ @ClusterId = params['ClusterId']
7718
+ @NodeName = params['NodeName']
7719
+ end
7720
+ end
7721
+
7722
+ # DescribePodDeductionRate返回参数结构体
7723
+ class DescribePodDeductionRateResponse < TencentCloud::Common::AbstractModel
7724
+ # @param PodDeductionRateSet: 各个规格的 可被预留券抵扣的Pod 抵扣率
7725
+ # @type PodDeductionRateSet: Array
7726
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7727
+ # @type RequestId: String
7728
+
7729
+ attr_accessor :PodDeductionRateSet, :RequestId
7730
+
7731
+ def initialize(poddeductionrateset=nil, requestid=nil)
7732
+ @PodDeductionRateSet = poddeductionrateset
7733
+ @RequestId = requestid
7734
+ end
7735
+
7736
+ def deserialize(params)
7737
+ unless params['PodDeductionRateSet'].nil?
7738
+ @PodDeductionRateSet = []
7739
+ params['PodDeductionRateSet'].each do |i|
7740
+ poddeductionrate_tmp = PodDeductionRate.new
7741
+ poddeductionrate_tmp.deserialize(i)
7742
+ @PodDeductionRateSet << poddeductionrate_tmp
7743
+ end
7744
+ end
7745
+ @RequestId = params['RequestId']
7746
+ end
7747
+ end
7748
+
7749
+ # DescribePodsBySpec请求参数结构体
7750
+ class DescribePodsBySpecRequest < TencentCloud::Common::AbstractModel
7751
+ # @param Cpu: 核数
7752
+ # @type Cpu: Float
7753
+ # @param Memory: 内存
7754
+ # @type Memory: Float
7755
+ # @param GpuNum: 卡数,有0.25、0.5、1、2、4等
7756
+ # @type GpuNum: String
7757
+ # @param Zone: 可用区
7758
+ # @type Zone: String
7759
+ # @param ClusterId: 集群 ID
7760
+ # @type ClusterId: String
7761
+ # @param NodeName: 节点名称
7762
+ # @type NodeName: String
7763
+ # @param Offset: 偏移量,默认0。
7764
+ # @type Offset: Integer
7765
+ # @param Limit: 返回数量,默认为20,最大值为100。
7766
+ # @type Limit: Integer
7767
+ # @param Filters: pod-type
7768
+ # 按照**【Pod 类型**】进行过滤。资源类型:intel、amd、v100、t4、a10\*gnv4、a10\*gnv4v等。
7769
+ # 类型:String
7770
+ # 必选:否
7771
+
7772
+ # pod-deduct
7773
+ # 按照**【上个周期抵扣的Pod**】进行过滤。Values可不设置。
7774
+ # 必选:否
7775
+
7776
+ # pod-not-deduct
7777
+ # 按照**【上个周期未抵扣的Pod**】进行过滤。Values可不设置。
7778
+ # 必选:否
7779
+ # @type Filters: Array
7780
+
7781
+ attr_accessor :Cpu, :Memory, :GpuNum, :Zone, :ClusterId, :NodeName, :Offset, :Limit, :Filters
7782
+
7783
+ def initialize(cpu=nil, memory=nil, gpunum=nil, zone=nil, clusterid=nil, nodename=nil, offset=nil, limit=nil, filters=nil)
7784
+ @Cpu = cpu
7785
+ @Memory = memory
7786
+ @GpuNum = gpunum
7787
+ @Zone = zone
7788
+ @ClusterId = clusterid
7789
+ @NodeName = nodename
7790
+ @Offset = offset
7791
+ @Limit = limit
7792
+ @Filters = filters
7793
+ end
7794
+
7795
+ def deserialize(params)
7796
+ @Cpu = params['Cpu']
7797
+ @Memory = params['Memory']
7798
+ @GpuNum = params['GpuNum']
7799
+ @Zone = params['Zone']
7800
+ @ClusterId = params['ClusterId']
7801
+ @NodeName = params['NodeName']
7802
+ @Offset = params['Offset']
7803
+ @Limit = params['Limit']
7804
+ unless params['Filters'].nil?
7805
+ @Filters = []
7806
+ params['Filters'].each do |i|
7807
+ filter_tmp = Filter.new
7808
+ filter_tmp.deserialize(i)
7809
+ @Filters << filter_tmp
7810
+ end
7811
+ end
7812
+ end
7813
+ end
7814
+
7815
+ # DescribePodsBySpec返回参数结构体
7816
+ class DescribePodsBySpecResponse < TencentCloud::Common::AbstractModel
7817
+ # @param TotalCount: Pod 总数
7818
+ # @type TotalCount: Integer
7819
+ # @param PodSet: Pod 节点信息
7820
+ # @type PodSet: Array
7821
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7822
+ # @type RequestId: String
7823
+
7824
+ attr_accessor :TotalCount, :PodSet, :RequestId
7825
+
7826
+ def initialize(totalcount=nil, podset=nil, requestid=nil)
7827
+ @TotalCount = totalcount
7828
+ @PodSet = podset
7829
+ @RequestId = requestid
7830
+ end
7831
+
7832
+ def deserialize(params)
7833
+ @TotalCount = params['TotalCount']
7834
+ unless params['PodSet'].nil?
7835
+ @PodSet = []
7836
+ params['PodSet'].each do |i|
7837
+ podnodeinfo_tmp = PodNodeInfo.new
7838
+ podnodeinfo_tmp.deserialize(i)
7839
+ @PodSet << podnodeinfo_tmp
7840
+ end
7841
+ end
7842
+ @RequestId = params['RequestId']
7843
+ end
7844
+ end
7845
+
7846
+ # DescribePostNodeResources请求参数结构体
7847
+ class DescribePostNodeResourcesRequest < TencentCloud::Common::AbstractModel
7848
+ # @param ClusterId: 集群 ID
7849
+ # @type ClusterId: String
7850
+ # @param NodeName: 节点名称
7851
+ # @type NodeName: String
7852
+
7853
+ attr_accessor :ClusterId, :NodeName
7854
+
7855
+ def initialize(clusterid=nil, nodename=nil)
7856
+ @ClusterId = clusterid
7857
+ @NodeName = nodename
7858
+ end
7859
+
7860
+ def deserialize(params)
7861
+ @ClusterId = params['ClusterId']
7862
+ @NodeName = params['NodeName']
7863
+ end
7864
+ end
7865
+
7866
+ # DescribePostNodeResources返回参数结构体
7867
+ class DescribePostNodeResourcesResponse < TencentCloud::Common::AbstractModel
7868
+ # @param PodSet: Pod详情
7869
+ # @type PodSet: Array
7870
+ # @param ReservedInstanceSet: 预留券详情
7871
+ # @type ReservedInstanceSet: Array
7872
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7873
+ # @type RequestId: String
7874
+
7875
+ attr_accessor :PodSet, :ReservedInstanceSet, :RequestId
7876
+
7877
+ def initialize(podset=nil, reservedinstanceset=nil, requestid=nil)
7878
+ @PodSet = podset
7879
+ @ReservedInstanceSet = reservedinstanceset
7880
+ @RequestId = requestid
7881
+ end
7882
+
7883
+ def deserialize(params)
7884
+ unless params['PodSet'].nil?
7885
+ @PodSet = []
7886
+ params['PodSet'].each do |i|
7887
+ supernoderesource_tmp = SuperNodeResource.new
7888
+ supernoderesource_tmp.deserialize(i)
7889
+ @PodSet << supernoderesource_tmp
7890
+ end
7891
+ end
7892
+ unless params['ReservedInstanceSet'].nil?
7893
+ @ReservedInstanceSet = []
7894
+ params['ReservedInstanceSet'].each do |i|
7895
+ supernoderesource_tmp = SuperNodeResource.new
7896
+ supernoderesource_tmp.deserialize(i)
7897
+ @ReservedInstanceSet << supernoderesource_tmp
7898
+ end
7899
+ end
7900
+ @RequestId = params['RequestId']
7901
+ end
7902
+ end
7903
+
7604
7904
  # DescribePrometheusAgentInstances请求参数结构体
7605
7905
  class DescribePrometheusAgentInstancesRequest < TencentCloud::Common::AbstractModel
7606
7906
  # @param ClusterId: 集群id
@@ -8753,6 +9053,81 @@ module TencentCloud
8753
9053
  end
8754
9054
  end
8755
9055
 
9056
+ # DescribeRIUtilizationDetail请求参数结构体
9057
+ class DescribeRIUtilizationDetailRequest < TencentCloud::Common::AbstractModel
9058
+ # @param Offset: 偏移量,默认0。
9059
+ # @type Offset: Integer
9060
+ # @param Limit: 返回数量,默认为20,最大值为100。
9061
+ # @type Limit: Integer
9062
+ # @param Filters: reserved-instance-id
9063
+ # 按照**【预留实例ID**】进行过滤。预留实例ID形如:eksri-xxxxxxxx。
9064
+ # 类型:String
9065
+ # 必选:否
9066
+
9067
+ # begin-time
9068
+ # 按照**【抵扣开始时间**】进行过滤。形如:2023-06-28 15:27:40。
9069
+ # 类型:String
9070
+ # 必选:否
9071
+
9072
+ # end-time
9073
+ # 按照**【抵扣结束时间**】进行过滤。形如:2023-06-28 15:27:40。
9074
+ # 类型:String
9075
+ # 必选:否
9076
+ # @type Filters: Array
9077
+
9078
+ attr_accessor :Offset, :Limit, :Filters
9079
+
9080
+ def initialize(offset=nil, limit=nil, filters=nil)
9081
+ @Offset = offset
9082
+ @Limit = limit
9083
+ @Filters = filters
9084
+ end
9085
+
9086
+ def deserialize(params)
9087
+ @Offset = params['Offset']
9088
+ @Limit = params['Limit']
9089
+ unless params['Filters'].nil?
9090
+ @Filters = []
9091
+ params['Filters'].each do |i|
9092
+ filter_tmp = Filter.new
9093
+ filter_tmp.deserialize(i)
9094
+ @Filters << filter_tmp
9095
+ end
9096
+ end
9097
+ end
9098
+ end
9099
+
9100
+ # DescribeRIUtilizationDetail返回参数结构体
9101
+ class DescribeRIUtilizationDetailResponse < TencentCloud::Common::AbstractModel
9102
+ # @param TotalCount: 总数。
9103
+ # @type TotalCount: Integer
9104
+ # @param RIUtilizationDetailSet: 详情。
9105
+ # @type RIUtilizationDetailSet: Array
9106
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9107
+ # @type RequestId: String
9108
+
9109
+ attr_accessor :TotalCount, :RIUtilizationDetailSet, :RequestId
9110
+
9111
+ def initialize(totalcount=nil, riutilizationdetailset=nil, requestid=nil)
9112
+ @TotalCount = totalcount
9113
+ @RIUtilizationDetailSet = riutilizationdetailset
9114
+ @RequestId = requestid
9115
+ end
9116
+
9117
+ def deserialize(params)
9118
+ @TotalCount = params['TotalCount']
9119
+ unless params['RIUtilizationDetailSet'].nil?
9120
+ @RIUtilizationDetailSet = []
9121
+ params['RIUtilizationDetailSet'].each do |i|
9122
+ riutilizationdetail_tmp = RIUtilizationDetail.new
9123
+ riutilizationdetail_tmp.deserialize(i)
9124
+ @RIUtilizationDetailSet << riutilizationdetail_tmp
9125
+ end
9126
+ end
9127
+ @RequestId = params['RequestId']
9128
+ end
9129
+ end
9130
+
8756
9131
  # DescribeRegions请求参数结构体
8757
9132
  class DescribeRegionsRequest < TencentCloud::Common::AbstractModel
8758
9133
 
@@ -8797,36 +9172,162 @@ module TencentCloud
8797
9172
  end
8798
9173
  end
8799
9174
 
8800
- # DescribeResourceUsage请求参数结构体
8801
- class DescribeResourceUsageRequest < TencentCloud::Common::AbstractModel
8802
- # @param ClusterId: 集群ID
8803
- # @type ClusterId: String
9175
+ # DescribeReservedInstances请求参数结构体
9176
+ class DescribeReservedInstancesRequest < TencentCloud::Common::AbstractModel
9177
+ # @param Offset: 偏移量,默认0。
9178
+ # @type Offset: Integer
9179
+ # @param Limit: 返回数量,默认为20,最大值为100。
9180
+ # @type Limit: Integer
9181
+ # @param Filters: status
9182
+ # 按照**【状态**】进行过滤。状态:Creating、Active、Expired、Refunded。
9183
+ # 类型:String
9184
+ # 必选:否
8804
9185
 
8805
- attr_accessor :ClusterId
9186
+ # resource-type
9187
+ # 按照**【资源类型**】进行过滤。资源类型:common、amd、v100、t4、a10\*gnv4、a10\*gnv4v等,common表示通用类型。
9188
+ # 类型:String
9189
+ # 必选:否
8806
9190
 
8807
- def initialize(clusterid=nil)
8808
- @ClusterId = clusterid
8809
- end
9191
+ # cpu
9192
+ # 按照**【核数**】进行过滤。
9193
+ # 类型:String
9194
+ # 必选:否
8810
9195
 
8811
- def deserialize(params)
8812
- @ClusterId = params['ClusterId']
8813
- end
8814
- end
9196
+ # memory
9197
+ # 按照**【内存**】进行过滤。
9198
+ # 类型:String
9199
+ # 必选:否
8815
9200
 
8816
- # DescribeResourceUsage返回参数结构体
8817
- class DescribeResourceUsageResponse < TencentCloud::Common::AbstractModel
8818
- # @param CRDUsage: CRD使用量
8819
- # @type CRDUsage: :class:`Tencentcloud::Tke.v20180525.models.ResourceUsage`
8820
- # @param PodUsage: Pod使用量
8821
- # @type PodUsage: Integer
8822
- # @param RSUsage: ReplicaSet使用量
8823
- # @type RSUsage: Integer
8824
- # @param ConfigMapUsage: ConfigMap使用量
8825
- # @type ConfigMapUsage: Integer
8826
- # @param OtherUsage: 其他资源使用量
8827
- # @type OtherUsage: :class:`Tencentcloud::Tke.v20180525.models.ResourceUsage`
8828
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8829
- # @type RequestId: String
9201
+ # gpu
9202
+ # 按照**【GPU卡数**】进行过滤,取值有0.25、0.5、1、2、4等。
9203
+ # 类型:String
9204
+ # 必选:否
9205
+
9206
+ # cluster-id
9207
+ # 按照**【集群ID**】进行过滤。
9208
+ # 类型:String
9209
+ # 必选:否
9210
+
9211
+ # node-name
9212
+ # 按照**【节点名称**】进行过滤。
9213
+ # 类型:String
9214
+ # 必选:否
9215
+
9216
+ # scope
9217
+ # 按照**【可用区**】进行过滤。比如:ap-guangzhou-2,为空字符串表示地域抵扣范围。如果只过滤可用区抵扣范围,需要同时将cluster-id、node-name设置为空字符串。
9218
+ # 类型:String
9219
+ # 必选:否
9220
+
9221
+ # reserved-instance-id
9222
+ # 按照**【预留实例ID**】进行过滤。预留实例ID形如:eksri-xxxxxxxx。
9223
+ # 类型:String
9224
+ # 必选:否
9225
+
9226
+ # reserved-instance-name
9227
+ # 按照**【预留实例名称**】进行过滤。
9228
+ # 类型:String
9229
+ # 必选:否
9230
+
9231
+ # reserved-instance-deduct
9232
+ # 按照**【上个周期抵扣的预留券**】进行过滤。Values可不设置。
9233
+ # 必选:否
9234
+
9235
+ # reserved-instance-not-deduct
9236
+ # 按照**【上个周期未抵扣的预留券**】进行过滤。Values可不设置。
9237
+ # 必选:否
9238
+ # @type Filters: Array
9239
+ # @param OrderField: 排序字段。支持CreatedAt、ActiveAt、ExpireAt。默认值CreatedAt。
9240
+ # @type OrderField: String
9241
+ # @param OrderDirection: 排序方法。顺序:ASC,倒序:DESC。默认值DESC。
9242
+ # @type OrderDirection: String
9243
+
9244
+ attr_accessor :Offset, :Limit, :Filters, :OrderField, :OrderDirection
9245
+
9246
+ def initialize(offset=nil, limit=nil, filters=nil, orderfield=nil, orderdirection=nil)
9247
+ @Offset = offset
9248
+ @Limit = limit
9249
+ @Filters = filters
9250
+ @OrderField = orderfield
9251
+ @OrderDirection = orderdirection
9252
+ end
9253
+
9254
+ def deserialize(params)
9255
+ @Offset = params['Offset']
9256
+ @Limit = params['Limit']
9257
+ unless params['Filters'].nil?
9258
+ @Filters = []
9259
+ params['Filters'].each do |i|
9260
+ filter_tmp = Filter.new
9261
+ filter_tmp.deserialize(i)
9262
+ @Filters << filter_tmp
9263
+ end
9264
+ end
9265
+ @OrderField = params['OrderField']
9266
+ @OrderDirection = params['OrderDirection']
9267
+ end
9268
+ end
9269
+
9270
+ # DescribeReservedInstances返回参数结构体
9271
+ class DescribeReservedInstancesResponse < TencentCloud::Common::AbstractModel
9272
+ # @param TotalCount: 总数。
9273
+ # @type TotalCount: Integer
9274
+ # @param ReservedInstanceSet: 预留实例列表。
9275
+ # @type ReservedInstanceSet: Array
9276
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9277
+ # @type RequestId: String
9278
+
9279
+ attr_accessor :TotalCount, :ReservedInstanceSet, :RequestId
9280
+
9281
+ def initialize(totalcount=nil, reservedinstanceset=nil, requestid=nil)
9282
+ @TotalCount = totalcount
9283
+ @ReservedInstanceSet = reservedinstanceset
9284
+ @RequestId = requestid
9285
+ end
9286
+
9287
+ def deserialize(params)
9288
+ @TotalCount = params['TotalCount']
9289
+ unless params['ReservedInstanceSet'].nil?
9290
+ @ReservedInstanceSet = []
9291
+ params['ReservedInstanceSet'].each do |i|
9292
+ reservedinstance_tmp = ReservedInstance.new
9293
+ reservedinstance_tmp.deserialize(i)
9294
+ @ReservedInstanceSet << reservedinstance_tmp
9295
+ end
9296
+ end
9297
+ @RequestId = params['RequestId']
9298
+ end
9299
+ end
9300
+
9301
+ # DescribeResourceUsage请求参数结构体
9302
+ class DescribeResourceUsageRequest < TencentCloud::Common::AbstractModel
9303
+ # @param ClusterId: 集群ID
9304
+ # @type ClusterId: String
9305
+
9306
+ attr_accessor :ClusterId
9307
+
9308
+ def initialize(clusterid=nil)
9309
+ @ClusterId = clusterid
9310
+ end
9311
+
9312
+ def deserialize(params)
9313
+ @ClusterId = params['ClusterId']
9314
+ end
9315
+ end
9316
+
9317
+ # DescribeResourceUsage返回参数结构体
9318
+ class DescribeResourceUsageResponse < TencentCloud::Common::AbstractModel
9319
+ # @param CRDUsage: CRD使用量
9320
+ # @type CRDUsage: :class:`Tencentcloud::Tke.v20180525.models.ResourceUsage`
9321
+ # @param PodUsage: Pod使用量
9322
+ # @type PodUsage: Integer
9323
+ # @param RSUsage: ReplicaSet使用量
9324
+ # @type RSUsage: Integer
9325
+ # @param ConfigMapUsage: ConfigMap使用量
9326
+ # @type ConfigMapUsage: Integer
9327
+ # @param OtherUsage: 其他资源使用量
9328
+ # @type OtherUsage: :class:`Tencentcloud::Tke.v20180525.models.ResourceUsage`
9329
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9330
+ # @type RequestId: String
8830
9331
 
8831
9332
  attr_accessor :CRDUsage, :PodUsage, :RSUsage, :ConfigMapUsage, :OtherUsage, :RequestId
8832
9333
 
@@ -9535,8 +10036,10 @@ module TencentCloud
9535
10036
  # GPU驱动和CUDA的版本信息
9536
10037
  class DriverVersion < TencentCloud::Common::AbstractModel
9537
10038
  # @param Version: GPU驱动或者CUDA的版本
10039
+ # 注意:此字段可能返回 null,表示取不到有效值。
9538
10040
  # @type Version: String
9539
10041
  # @param Name: GPU驱动或者CUDA的名字
10042
+ # 注意:此字段可能返回 null,表示取不到有效值。
9540
10043
  # @type Name: String
9541
10044
 
9542
10045
  attr_accessor :Version, :Name
@@ -11632,6 +12135,31 @@ module TencentCloud
11632
12135
  end
11633
12136
  end
11634
12137
 
12138
+ # 包年包月配置
12139
+ class InstanceChargePrepaid < TencentCloud::Common::AbstractModel
12140
+ # @param Period: 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。
12141
+ # @type Period: Integer
12142
+ # @param RenewFlag: 自动续费标识。取值范围:
12143
+ # NOTIFY_AND_AUTO_RENEW:通知过期且自动续费
12144
+ # NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费
12145
+ # DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费
12146
+
12147
+ # 默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
12148
+ # @type RenewFlag: String
12149
+
12150
+ attr_accessor :Period, :RenewFlag
12151
+
12152
+ def initialize(period=nil, renewflag=nil)
12153
+ @Period = period
12154
+ @RenewFlag = renewflag
12155
+ end
12156
+
12157
+ def deserialize(params)
12158
+ @Period = params['Period']
12159
+ @RenewFlag = params['RenewFlag']
12160
+ end
12161
+ end
12162
+
11635
12163
  # CVM实例数据盘挂载配置
11636
12164
  class InstanceDataDiskMountSetting < TencentCloud::Common::AbstractModel
11637
12165
  # @param InstanceType: CVM实例类型
@@ -12736,10 +13264,12 @@ module TencentCloud
12736
13264
  # @type DeletionProtection: Boolean
12737
13265
  # @param DockerGraphPath: dockerd --graph 指定值, 默认为 /var/lib/docker
12738
13266
  # @type DockerGraphPath: String
13267
+ # @param PreStartUserScript: base64编码后的自定义脚本
13268
+ # @type PreStartUserScript: String
12739
13269
 
12740
- attr_accessor :ClusterId, :NodePoolId, :Name, :MaxNodesNum, :MinNodesNum, :Labels, :Taints, :EnableAutoscale, :OsName, :OsCustomizeType, :GPUArgs, :UserScript, :IgnoreExistedNode, :ExtraArgs, :Tags, :Unschedulable, :DeletionProtection, :DockerGraphPath
13270
+ attr_accessor :ClusterId, :NodePoolId, :Name, :MaxNodesNum, :MinNodesNum, :Labels, :Taints, :EnableAutoscale, :OsName, :OsCustomizeType, :GPUArgs, :UserScript, :IgnoreExistedNode, :ExtraArgs, :Tags, :Unschedulable, :DeletionProtection, :DockerGraphPath, :PreStartUserScript
12741
13271
 
12742
- def initialize(clusterid=nil, nodepoolid=nil, name=nil, maxnodesnum=nil, minnodesnum=nil, labels=nil, taints=nil, enableautoscale=nil, osname=nil, oscustomizetype=nil, gpuargs=nil, userscript=nil, ignoreexistednode=nil, extraargs=nil, tags=nil, unschedulable=nil, deletionprotection=nil, dockergraphpath=nil)
13272
+ def initialize(clusterid=nil, nodepoolid=nil, name=nil, maxnodesnum=nil, minnodesnum=nil, labels=nil, taints=nil, enableautoscale=nil, osname=nil, oscustomizetype=nil, gpuargs=nil, userscript=nil, ignoreexistednode=nil, extraargs=nil, tags=nil, unschedulable=nil, deletionprotection=nil, dockergraphpath=nil, prestartuserscript=nil)
12743
13273
  @ClusterId = clusterid
12744
13274
  @NodePoolId = nodepoolid
12745
13275
  @Name = name
@@ -12758,6 +13288,7 @@ module TencentCloud
12758
13288
  @Unschedulable = unschedulable
12759
13289
  @DeletionProtection = deletionprotection
12760
13290
  @DockerGraphPath = dockergraphpath
13291
+ @PreStartUserScript = prestartuserscript
12761
13292
  end
12762
13293
 
12763
13294
  def deserialize(params)
@@ -12806,6 +13337,7 @@ module TencentCloud
12806
13337
  @Unschedulable = params['Unschedulable']
12807
13338
  @DeletionProtection = params['DeletionProtection']
12808
13339
  @DockerGraphPath = params['DockerGraphPath']
13340
+ @PreStartUserScript = params['PreStartUserScript']
12809
13341
  end
12810
13342
  end
12811
13343
 
@@ -13330,6 +13862,45 @@ module TencentCloud
13330
13862
  end
13331
13863
  end
13332
13864
 
13865
+ # ModifyReservedInstanceScope请求参数结构体
13866
+ class ModifyReservedInstanceScopeRequest < TencentCloud::Common::AbstractModel
13867
+ # @param ReservedInstanceIds: 预留券唯一 ID
13868
+ # @type ReservedInstanceIds: Array
13869
+ # @param ReservedInstanceScope: 预留券抵扣范围信息
13870
+ # @type ReservedInstanceScope: :class:`Tencentcloud::Tke.v20180525.models.ReservedInstanceScope`
13871
+
13872
+ attr_accessor :ReservedInstanceIds, :ReservedInstanceScope
13873
+
13874
+ def initialize(reservedinstanceids=nil, reservedinstancescope=nil)
13875
+ @ReservedInstanceIds = reservedinstanceids
13876
+ @ReservedInstanceScope = reservedinstancescope
13877
+ end
13878
+
13879
+ def deserialize(params)
13880
+ @ReservedInstanceIds = params['ReservedInstanceIds']
13881
+ unless params['ReservedInstanceScope'].nil?
13882
+ @ReservedInstanceScope = ReservedInstanceScope.new
13883
+ @ReservedInstanceScope.deserialize(params['ReservedInstanceScope'])
13884
+ end
13885
+ end
13886
+ end
13887
+
13888
+ # ModifyReservedInstanceScope返回参数结构体
13889
+ class ModifyReservedInstanceScopeResponse < TencentCloud::Common::AbstractModel
13890
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
13891
+ # @type RequestId: String
13892
+
13893
+ attr_accessor :RequestId
13894
+
13895
+ def initialize(requestid=nil)
13896
+ @RequestId = requestid
13897
+ end
13898
+
13899
+ def deserialize(params)
13900
+ @RequestId = params['RequestId']
13901
+ end
13902
+ end
13903
+
13333
13904
  # EKS Instance Nfs Volume
13334
13905
  class NfsVolume < TencentCloud::Common::AbstractModel
13335
13906
  # @param Name: nfs volume 数据卷名称
@@ -13439,10 +14010,28 @@ module TencentCloud
13439
14010
  # @param DeletionProtection: 删除保护开关
13440
14011
  # 注意:此字段可能返回 null,表示取不到有效值。
13441
14012
  # @type DeletionProtection: Boolean
14013
+ # @param ExtraArgs: 节点配置
14014
+ # 注意:此字段可能返回 null,表示取不到有效值。
14015
+ # @type ExtraArgs: :class:`Tencentcloud::Tke.v20180525.models.InstanceExtraArgs`
14016
+ # @param GPUArgs: GPU驱动相关参数
14017
+ # 注意:此字段可能返回 null,表示取不到有效值。
14018
+ # @type GPUArgs: :class:`Tencentcloud::Tke.v20180525.models.GPUArgs`
14019
+ # @param DockerGraphPath: dockerd --graph 指定值, 默认为 /var/lib/docker
14020
+ # 注意:此字段可能返回 null,表示取不到有效值。
14021
+ # @type DockerGraphPath: String
14022
+ # @param DataDisks: 多盘数据盘挂载信息:新建节点时请确保购买CVM的参数传递了购买多个数据盘的信息,如CreateClusterInstances API的RunInstancesPara下的DataDisks也需要设置购买多个数据盘, 具体可以参考CreateClusterInstances接口的添加集群节点(多块数据盘)样例;添加已有节点时,请确保填写的分区信息在节点上真实存在
14023
+ # 注意:此字段可能返回 null,表示取不到有效值。
14024
+ # @type DataDisks: Array
14025
+ # @param Unschedulable: 是否不可调度
14026
+ # 注意:此字段可能返回 null,表示取不到有效值。
14027
+ # @type Unschedulable: Integer
14028
+ # @param PreStartUserScript: 用户自定义脚本,在UserScript前执行
14029
+ # 注意:此字段可能返回 null,表示取不到有效值。
14030
+ # @type PreStartUserScript: String
13442
14031
 
13443
- attr_accessor :NodePoolId, :Name, :ClusterInstanceId, :LifeState, :LaunchConfigurationId, :AutoscalingGroupId, :Labels, :Taints, :NodeCountSummary, :AutoscalingGroupStatus, :MaxNodesNum, :MinNodesNum, :DesiredNodesNum, :NodePoolOs, :OsCustomizeType, :ImageId, :DesiredPodNum, :UserScript, :Tags, :DeletionProtection
14032
+ attr_accessor :NodePoolId, :Name, :ClusterInstanceId, :LifeState, :LaunchConfigurationId, :AutoscalingGroupId, :Labels, :Taints, :NodeCountSummary, :AutoscalingGroupStatus, :MaxNodesNum, :MinNodesNum, :DesiredNodesNum, :NodePoolOs, :OsCustomizeType, :ImageId, :DesiredPodNum, :UserScript, :Tags, :DeletionProtection, :ExtraArgs, :GPUArgs, :DockerGraphPath, :DataDisks, :Unschedulable, :PreStartUserScript
13444
14033
 
13445
- def initialize(nodepoolid=nil, name=nil, clusterinstanceid=nil, lifestate=nil, launchconfigurationid=nil, autoscalinggroupid=nil, labels=nil, taints=nil, nodecountsummary=nil, autoscalinggroupstatus=nil, maxnodesnum=nil, minnodesnum=nil, desirednodesnum=nil, nodepoolos=nil, oscustomizetype=nil, imageid=nil, desiredpodnum=nil, userscript=nil, tags=nil, deletionprotection=nil)
14034
+ def initialize(nodepoolid=nil, name=nil, clusterinstanceid=nil, lifestate=nil, launchconfigurationid=nil, autoscalinggroupid=nil, labels=nil, taints=nil, nodecountsummary=nil, autoscalinggroupstatus=nil, maxnodesnum=nil, minnodesnum=nil, desirednodesnum=nil, nodepoolos=nil, oscustomizetype=nil, imageid=nil, desiredpodnum=nil, userscript=nil, tags=nil, deletionprotection=nil, extraargs=nil, gpuargs=nil, dockergraphpath=nil, datadisks=nil, unschedulable=nil, prestartuserscript=nil)
13446
14035
  @NodePoolId = nodepoolid
13447
14036
  @Name = name
13448
14037
  @ClusterInstanceId = clusterinstanceid
@@ -13463,6 +14052,12 @@ module TencentCloud
13463
14052
  @UserScript = userscript
13464
14053
  @Tags = tags
13465
14054
  @DeletionProtection = deletionprotection
14055
+ @ExtraArgs = extraargs
14056
+ @GPUArgs = gpuargs
14057
+ @DockerGraphPath = dockergraphpath
14058
+ @DataDisks = datadisks
14059
+ @Unschedulable = unschedulable
14060
+ @PreStartUserScript = prestartuserscript
13466
14061
  end
13467
14062
 
13468
14063
  def deserialize(params)
@@ -13510,6 +14105,25 @@ module TencentCloud
13510
14105
  end
13511
14106
  end
13512
14107
  @DeletionProtection = params['DeletionProtection']
14108
+ unless params['ExtraArgs'].nil?
14109
+ @ExtraArgs = InstanceExtraArgs.new
14110
+ @ExtraArgs.deserialize(params['ExtraArgs'])
14111
+ end
14112
+ unless params['GPUArgs'].nil?
14113
+ @GPUArgs = GPUArgs.new
14114
+ @GPUArgs.deserialize(params['GPUArgs'])
14115
+ end
14116
+ @DockerGraphPath = params['DockerGraphPath']
14117
+ unless params['DataDisks'].nil?
14118
+ @DataDisks = []
14119
+ params['DataDisks'].each do |i|
14120
+ datadisk_tmp = DataDisk.new
14121
+ datadisk_tmp.deserialize(i)
14122
+ @DataDisks << datadisk_tmp
14123
+ end
14124
+ end
14125
+ @Unschedulable = params['Unschedulable']
14126
+ @PreStartUserScript = params['PreStartUserScript']
13513
14127
  end
13514
14128
  end
13515
14129
 
@@ -13611,6 +14225,48 @@ module TencentCloud
13611
14225
  end
13612
14226
  end
13613
14227
 
14228
+ # 可被预留券抵扣的 Pod 某种规格的抵扣率
14229
+ class PodDeductionRate < TencentCloud::Common::AbstractModel
14230
+ # @param Cpu: Pod的 CPU
14231
+ # 注意:此字段可能返回 null,表示取不到有效值。
14232
+ # @type Cpu: Float
14233
+ # @param Memory: Pod 的内存
14234
+ # 注意:此字段可能返回 null,表示取不到有效值。
14235
+ # @type Memory: Float
14236
+ # @param Type: Pod 的类型
14237
+ # 注意:此字段可能返回 null,表示取不到有效值。
14238
+ # @type Type: String
14239
+ # @param GpuNum: Pod 的 GPU 卡数,Pod 类型为 GPU 时有效。
14240
+ # 注意:此字段可能返回 null,表示取不到有效值。
14241
+ # @type GpuNum: String
14242
+ # @param TotalNum: 这种规格的 Pod总数
14243
+ # 注意:此字段可能返回 null,表示取不到有效值。
14244
+ # @type TotalNum: Integer
14245
+ # @param DeductionNum: 这种规格的 Pod被预留券抵扣的数量
14246
+ # 注意:此字段可能返回 null,表示取不到有效值。
14247
+ # @type DeductionNum: Integer
14248
+
14249
+ attr_accessor :Cpu, :Memory, :Type, :GpuNum, :TotalNum, :DeductionNum
14250
+
14251
+ def initialize(cpu=nil, memory=nil, type=nil, gpunum=nil, totalnum=nil, deductionnum=nil)
14252
+ @Cpu = cpu
14253
+ @Memory = memory
14254
+ @Type = type
14255
+ @GpuNum = gpunum
14256
+ @TotalNum = totalnum
14257
+ @DeductionNum = deductionnum
14258
+ end
14259
+
14260
+ def deserialize(params)
14261
+ @Cpu = params['Cpu']
14262
+ @Memory = params['Memory']
14263
+ @Type = params['Type']
14264
+ @GpuNum = params['GpuNum']
14265
+ @TotalNum = params['TotalNum']
14266
+ @DeductionNum = params['DeductionNum']
14267
+ end
14268
+ end
14269
+
13614
14270
  # 某机型可支持的最大 VPC-CNI 模式的 Pod 数量
13615
14271
  class PodLimitsByType < TencentCloud::Common::AbstractModel
13616
14272
  # @param TKERouteENINonStaticIP: TKE共享网卡非固定IP模式可支持的Pod数量
@@ -13673,6 +14329,43 @@ module TencentCloud
13673
14329
  end
13674
14330
  end
13675
14331
 
14332
+ # Pod所在的节点信息
14333
+ class PodNodeInfo < TencentCloud::Common::AbstractModel
14334
+ # @param ClusterId: 集群 ID
14335
+ # 注意:此字段可能返回 null,表示取不到有效值。
14336
+ # @type ClusterId: String
14337
+ # @param NodeName: 节点名称
14338
+ # 注意:此字段可能返回 null,表示取不到有效值。
14339
+ # @type NodeName: String
14340
+ # @param Zone: 可用区
14341
+ # 注意:此字段可能返回 null,表示取不到有效值。
14342
+ # @type Zone: String
14343
+ # @param Namespace: 命名空间
14344
+ # 注意:此字段可能返回 null,表示取不到有效值。
14345
+ # @type Namespace: String
14346
+ # @param Name: Pod 名称
14347
+ # 注意:此字段可能返回 null,表示取不到有效值。
14348
+ # @type Name: String
14349
+
14350
+ attr_accessor :ClusterId, :NodeName, :Zone, :Namespace, :Name
14351
+
14352
+ def initialize(clusterid=nil, nodename=nil, zone=nil, namespace=nil, name=nil)
14353
+ @ClusterId = clusterid
14354
+ @NodeName = nodename
14355
+ @Zone = zone
14356
+ @Namespace = namespace
14357
+ @Name = name
14358
+ end
14359
+
14360
+ def deserialize(params)
14361
+ @ClusterId = params['ClusterId']
14362
+ @NodeName = params['NodeName']
14363
+ @Zone = params['Zone']
14364
+ @Namespace = params['Namespace']
14365
+ @Name = params['Name']
14366
+ end
14367
+ end
14368
+
13676
14369
  # 健康检查探测参数
13677
14370
  class Probe < TencentCloud::Common::AbstractModel
13678
14371
  # @param InitialDelaySeconds: Number of seconds after the container has started before liveness probes are initiated.
@@ -15073,6 +15766,62 @@ module TencentCloud
15073
15766
  end
15074
15767
  end
15075
15768
 
15769
+ # 预留券抵扣详情
15770
+ class RIUtilizationDetail < TencentCloud::Common::AbstractModel
15771
+ # @param ReservedInstanceId: 预留券ID
15772
+ # @type ReservedInstanceId: String
15773
+ # @param EksId: Pod唯一ID
15774
+ # @type EksId: String
15775
+ # @param ClusterId: 集群ID
15776
+ # @type ClusterId: String
15777
+ # @param Name: Pod的名称
15778
+ # @type Name: String
15779
+ # @param Namespace: Pod的命名空间
15780
+ # @type Namespace: String
15781
+ # @param Kind: 工作负载类型
15782
+ # @type Kind: String
15783
+ # @param KindName: 工作负载名称
15784
+ # @type KindName: String
15785
+ # @param Uid: Pod的uid
15786
+ # @type Uid: String
15787
+ # @param StartTime: 用量开始时间
15788
+ # @type StartTime: String
15789
+ # @param EndTime: 用量结束时间
15790
+ # @type EndTime: String
15791
+ # @param Product: 抵扣资源所属产品
15792
+ # @type Product: String
15793
+
15794
+ attr_accessor :ReservedInstanceId, :EksId, :ClusterId, :Name, :Namespace, :Kind, :KindName, :Uid, :StartTime, :EndTime, :Product
15795
+
15796
+ def initialize(reservedinstanceid=nil, eksid=nil, clusterid=nil, name=nil, namespace=nil, kind=nil, kindname=nil, uid=nil, starttime=nil, endtime=nil, product=nil)
15797
+ @ReservedInstanceId = reservedinstanceid
15798
+ @EksId = eksid
15799
+ @ClusterId = clusterid
15800
+ @Name = name
15801
+ @Namespace = namespace
15802
+ @Kind = kind
15803
+ @KindName = kindname
15804
+ @Uid = uid
15805
+ @StartTime = starttime
15806
+ @EndTime = endtime
15807
+ @Product = product
15808
+ end
15809
+
15810
+ def deserialize(params)
15811
+ @ReservedInstanceId = params['ReservedInstanceId']
15812
+ @EksId = params['EksId']
15813
+ @ClusterId = params['ClusterId']
15814
+ @Name = params['Name']
15815
+ @Namespace = params['Namespace']
15816
+ @Kind = params['Kind']
15817
+ @KindName = params['KindName']
15818
+ @Uid = params['Uid']
15819
+ @StartTime = params['StartTime']
15820
+ @EndTime = params['EndTime']
15821
+ @Product = params['Product']
15822
+ end
15823
+ end
15824
+
15076
15825
  # 地域属性信息
15077
15826
  class RegionInstance < TencentCloud::Common::AbstractModel
15078
15827
  # @param RegionName: 地域名称
@@ -15365,6 +16114,181 @@ module TencentCloud
15365
16114
  end
15366
16115
  end
15367
16116
 
16117
+ # RenewReservedInstances请求参数结构体
16118
+ class RenewReservedInstancesRequest < TencentCloud::Common::AbstractModel
16119
+ # @param ReservedInstanceIds: 预留券实例ID,每次请求实例的上限为100。
16120
+ # @type ReservedInstanceIds: Array
16121
+ # @param InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。
16122
+ # @type InstanceChargePrepaid: :class:`Tencentcloud::Tke.v20180525.models.InstanceChargePrepaid`
16123
+ # @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
16124
+ # @type ClientToken: String
16125
+
16126
+ attr_accessor :ReservedInstanceIds, :InstanceChargePrepaid, :ClientToken
16127
+
16128
+ def initialize(reservedinstanceids=nil, instancechargeprepaid=nil, clienttoken=nil)
16129
+ @ReservedInstanceIds = reservedinstanceids
16130
+ @InstanceChargePrepaid = instancechargeprepaid
16131
+ @ClientToken = clienttoken
16132
+ end
16133
+
16134
+ def deserialize(params)
16135
+ @ReservedInstanceIds = params['ReservedInstanceIds']
16136
+ unless params['InstanceChargePrepaid'].nil?
16137
+ @InstanceChargePrepaid = InstanceChargePrepaid.new
16138
+ @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
16139
+ end
16140
+ @ClientToken = params['ClientToken']
16141
+ end
16142
+ end
16143
+
16144
+ # RenewReservedInstances返回参数结构体
16145
+ class RenewReservedInstancesResponse < TencentCloud::Common::AbstractModel
16146
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
16147
+ # @type RequestId: String
16148
+
16149
+ attr_accessor :RequestId
16150
+
16151
+ def initialize(requestid=nil)
16152
+ @RequestId = requestid
16153
+ end
16154
+
16155
+ def deserialize(params)
16156
+ @RequestId = params['RequestId']
16157
+ end
16158
+ end
16159
+
16160
+ # 预留实例
16161
+ class ReservedInstance < TencentCloud::Common::AbstractModel
16162
+ # @param ReservedInstanceId: 预留实例ID
16163
+ # @type ReservedInstanceId: String
16164
+ # @param ReservedInstanceName: 预留实例名称
16165
+ # @type ReservedInstanceName: String
16166
+ # @param Status: 预留券状态
16167
+ # @type Status: String
16168
+ # @param TimeSpan: 有效期,单位:月
16169
+ # @type TimeSpan: Integer
16170
+ # @param ResourceType: 抵扣资源类型
16171
+ # @type ResourceType: String
16172
+ # @param Cpu: 资源核数
16173
+ # @type Cpu: Float
16174
+ # @param Memory: 资源内存,单位:Gi
16175
+ # @type Memory: Float
16176
+ # @param Scope: 预留券的范围,默认值region。
16177
+ # @type Scope: String
16178
+ # @param CreatedAt: 创建时间
16179
+ # @type CreatedAt: String
16180
+ # @param ActiveAt: 生效时间
16181
+ # @type ActiveAt: String
16182
+ # @param ExpireAt: 过期时间
16183
+ # @type ExpireAt: String
16184
+ # @param GpuCount: GPU卡数
16185
+ # @type GpuCount: String
16186
+ # @param AutoRenewFlag: 自动续费标记
16187
+ # @type AutoRenewFlag: Integer
16188
+ # @param ClusterId: 集群 ID
16189
+ # @type ClusterId: String
16190
+ # @param NodeName: 节点名称
16191
+ # @type NodeName: String
16192
+ # @param DeductStatus: 上个周期预留券的抵扣状态,Deduct、NotDeduct
16193
+ # @type DeductStatus: String
16194
+
16195
+ attr_accessor :ReservedInstanceId, :ReservedInstanceName, :Status, :TimeSpan, :ResourceType, :Cpu, :Memory, :Scope, :CreatedAt, :ActiveAt, :ExpireAt, :GpuCount, :AutoRenewFlag, :ClusterId, :NodeName, :DeductStatus
16196
+
16197
+ def initialize(reservedinstanceid=nil, reservedinstancename=nil, status=nil, timespan=nil, resourcetype=nil, cpu=nil, memory=nil, scope=nil, createdat=nil, activeat=nil, expireat=nil, gpucount=nil, autorenewflag=nil, clusterid=nil, nodename=nil, deductstatus=nil)
16198
+ @ReservedInstanceId = reservedinstanceid
16199
+ @ReservedInstanceName = reservedinstancename
16200
+ @Status = status
16201
+ @TimeSpan = timespan
16202
+ @ResourceType = resourcetype
16203
+ @Cpu = cpu
16204
+ @Memory = memory
16205
+ @Scope = scope
16206
+ @CreatedAt = createdat
16207
+ @ActiveAt = activeat
16208
+ @ExpireAt = expireat
16209
+ @GpuCount = gpucount
16210
+ @AutoRenewFlag = autorenewflag
16211
+ @ClusterId = clusterid
16212
+ @NodeName = nodename
16213
+ @DeductStatus = deductstatus
16214
+ end
16215
+
16216
+ def deserialize(params)
16217
+ @ReservedInstanceId = params['ReservedInstanceId']
16218
+ @ReservedInstanceName = params['ReservedInstanceName']
16219
+ @Status = params['Status']
16220
+ @TimeSpan = params['TimeSpan']
16221
+ @ResourceType = params['ResourceType']
16222
+ @Cpu = params['Cpu']
16223
+ @Memory = params['Memory']
16224
+ @Scope = params['Scope']
16225
+ @CreatedAt = params['CreatedAt']
16226
+ @ActiveAt = params['ActiveAt']
16227
+ @ExpireAt = params['ExpireAt']
16228
+ @GpuCount = params['GpuCount']
16229
+ @AutoRenewFlag = params['AutoRenewFlag']
16230
+ @ClusterId = params['ClusterId']
16231
+ @NodeName = params['NodeName']
16232
+ @DeductStatus = params['DeductStatus']
16233
+ end
16234
+ end
16235
+
16236
+ # 预留券抵扣范围的描述信息,当抵扣范围为 Region 时,表示地域抵扣,其他参数不需要传;当抵扣范围为 Zone 时,表示可用区抵扣,Zone 参数必传;当抵扣范围为 Node 时,表示节点抵扣,参数 Zone、ClusterId和NodeName均必传。
16237
+ class ReservedInstanceScope < TencentCloud::Common::AbstractModel
16238
+ # @param Scope: 抵扣范围,取值:Region、Zone 和 Node
16239
+ # @type Scope: String
16240
+ # @param Zone: 可用区
16241
+ # @type Zone: String
16242
+ # @param ClusterId: 集群 ID
16243
+ # @type ClusterId: String
16244
+ # @param NodeName: 节点名称
16245
+ # @type NodeName: String
16246
+
16247
+ attr_accessor :Scope, :Zone, :ClusterId, :NodeName
16248
+
16249
+ def initialize(scope=nil, zone=nil, clusterid=nil, nodename=nil)
16250
+ @Scope = scope
16251
+ @Zone = zone
16252
+ @ClusterId = clusterid
16253
+ @NodeName = nodename
16254
+ end
16255
+
16256
+ def deserialize(params)
16257
+ @Scope = params['Scope']
16258
+ @Zone = params['Zone']
16259
+ @ClusterId = params['ClusterId']
16260
+ @NodeName = params['NodeName']
16261
+ end
16262
+ end
16263
+
16264
+ # 预留券规格
16265
+ class ReservedInstanceSpec < TencentCloud::Common::AbstractModel
16266
+ # @param Type: 资源类型:common、amd、v100、t4、a10\*gnv4、a10\*gnv4v、a10\*pnv4、windows-common、windows-amd,common表示通用类型。
16267
+ # @type Type: String
16268
+ # @param Cpu: 核数
16269
+ # @type Cpu: Float
16270
+ # @param Memory: 内存
16271
+ # @type Memory: Float
16272
+ # @param Gpu: GPU卡数,当Type为GPU类型时设置。
16273
+ # @type Gpu: Float
16274
+
16275
+ attr_accessor :Type, :Cpu, :Memory, :Gpu
16276
+
16277
+ def initialize(type=nil, cpu=nil, memory=nil, gpu=nil)
16278
+ @Type = type
16279
+ @Cpu = cpu
16280
+ @Memory = memory
16281
+ @Gpu = gpu
16282
+ end
16283
+
16284
+ def deserialize(params)
16285
+ @Type = params['Type']
16286
+ @Cpu = params['Cpu']
16287
+ @Memory = params['Memory']
16288
+ @Gpu = params['Gpu']
16289
+ end
16290
+ end
16291
+
15368
16292
  # 资源删除选项
15369
16293
  class ResourceDeleteOption < TencentCloud::Common::AbstractModel
15370
16294
  # @param ResourceType: 资源类型,例如CBS
@@ -15991,6 +16915,43 @@ module TencentCloud
15991
16915
  end
15992
16916
  end
15993
16917
 
16918
+ # 超级节点上的资源统计
16919
+ class SuperNodeResource < TencentCloud::Common::AbstractModel
16920
+ # @param NodeName: 节点名称
16921
+ # 注意:此字段可能返回 null,表示取不到有效值。
16922
+ # @type NodeName: String
16923
+ # @param Num: 节点上的资源总数
16924
+ # 注意:此字段可能返回 null,表示取不到有效值。
16925
+ # @type Num: Integer
16926
+ # @param Cpu: 节点上的总核数
16927
+ # 注意:此字段可能返回 null,表示取不到有效值。
16928
+ # @type Cpu: Float
16929
+ # @param Memory: 节点上的总内存数
16930
+ # 注意:此字段可能返回 null,表示取不到有效值。
16931
+ # @type Memory: Float
16932
+ # @param Gpu: 节点上的总 GPU 卡数
16933
+ # 注意:此字段可能返回 null,表示取不到有效值。
16934
+ # @type Gpu: Float
16935
+
16936
+ attr_accessor :NodeName, :Num, :Cpu, :Memory, :Gpu
16937
+
16938
+ def initialize(nodename=nil, num=nil, cpu=nil, memory=nil, gpu=nil)
16939
+ @NodeName = nodename
16940
+ @Num = num
16941
+ @Cpu = cpu
16942
+ @Memory = memory
16943
+ @Gpu = gpu
16944
+ end
16945
+
16946
+ def deserialize(params)
16947
+ @NodeName = params['NodeName']
16948
+ @Num = params['Num']
16949
+ @Cpu = params['Cpu']
16950
+ @Memory = params['Memory']
16951
+ @Gpu = params['Gpu']
16952
+ end
16953
+ end
16954
+
15994
16955
  # SyncPrometheusTemp请求参数结构体
15995
16956
  class SyncPrometheusTempRequest < TencentCloud::Common::AbstractModel
15996
16957
  # @param TemplateId: 实例id