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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e639bffcf93c70dfd02f3355659c8455fe0c9e2
4
- data.tar.gz: 94c0e193a13bd0d2cffa107b5fce11a163bda03c
3
+ metadata.gz: 24dc284020abb783e7fa484b3ed50bdf1c4b2f60
4
+ data.tar.gz: 8f82538efb0ab4faff05ee76c5dcac3355dd31a6
5
5
  SHA512:
6
- metadata.gz: 85f6817ba21205aea73f0c03cb52dc7afde97118b9eb19335c654e6b583c1dccb19ba874936b9544f90407006d0bf21052fd62fca65c573aa88ec2d6f1843600
7
- data.tar.gz: 260f6f3283c7ff9ae7bc0e91f762b49e1ef3a013871790d9a10a66b879df41651bbf73a5037719785bc27c74a9e723eb65d60f43effce1cf597e9e4b7453a572
6
+ metadata.gz: 3dc59479e9fc49edf09c1826cb99c967ea7258e4c0f504a68dfcfe96af98f064e0ccce3a0c107d18ea13786ffe976fe17947547e10c68618f71160e33c86873a
7
+ data.tar.gz: fef4a8958642330545249cb683b7c517b133d4e88e3b70d808310dbf0b1ce8edf15b09010be536244e2171f76686f1fbb22a915873e07759ab8feb91694b290b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.669
1
+ 3.0.670
@@ -845,6 +845,30 @@ module TencentCloud
845
845
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
846
846
  end
847
847
 
848
+ # 预留券实例的购买会预先扣除本次实例购买所需金额,在调用本接口前请确保账户余额充足。
849
+
850
+ # @param request: Request instance for CreateReservedInstances.
851
+ # @type request: :class:`Tencentcloud::tke::V20180525::CreateReservedInstancesRequest`
852
+ # @rtype: :class:`Tencentcloud::tke::V20180525::CreateReservedInstancesResponse`
853
+ def CreateReservedInstances(request)
854
+ body = send_request('CreateReservedInstances', request.serialize)
855
+ response = JSON.parse(body)
856
+ if response['Response'].key?('Error') == false
857
+ model = CreateReservedInstancesResponse.new
858
+ model.deserialize(response['Response'])
859
+ model
860
+ else
861
+ code = response['Response']['Error']['Code']
862
+ message = response['Response']['Error']['Message']
863
+ reqid = response['Response']['RequestId']
864
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
865
+ end
866
+ rescue TencentCloud::Common::TencentCloudSDKException => e
867
+ raise e
868
+ rescue StandardError => e
869
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
+ end
871
+
848
872
  # 创建边缘计算集群
849
873
 
850
874
  # @param request: Request instance for CreateTKEEdgeCluster.
@@ -1517,6 +1541,30 @@ module TencentCloud
1517
1541
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1518
1542
  end
1519
1543
 
1544
+ # 预留券实例如符合退还规则,可通过本接口主动退还。
1545
+
1546
+ # @param request: Request instance for DeleteReservedInstances.
1547
+ # @type request: :class:`Tencentcloud::tke::V20180525::DeleteReservedInstancesRequest`
1548
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DeleteReservedInstancesResponse`
1549
+ def DeleteReservedInstances(request)
1550
+ body = send_request('DeleteReservedInstances', request.serialize)
1551
+ response = JSON.parse(body)
1552
+ if response['Response'].key?('Error') == false
1553
+ model = DeleteReservedInstancesResponse.new
1554
+ model.deserialize(response['Response'])
1555
+ model
1556
+ else
1557
+ code = response['Response']['Error']['Code']
1558
+ message = response['Response']['Error']['Message']
1559
+ reqid = response['Response']['RequestId']
1560
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1561
+ end
1562
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1563
+ raise e
1564
+ rescue StandardError => e
1565
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1566
+ end
1567
+
1520
1568
  # 删除边缘计算集群
1521
1569
 
1522
1570
  # @param request: Request instance for DeleteTKEEdgeCluster.
@@ -2741,6 +2789,78 @@ module TencentCloud
2741
2789
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2742
2790
  end
2743
2791
 
2792
+ # 查询各个规格的 Pod 的抵扣率
2793
+
2794
+ # @param request: Request instance for DescribePodDeductionRate.
2795
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePodDeductionRateRequest`
2796
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePodDeductionRateResponse`
2797
+ def DescribePodDeductionRate(request)
2798
+ body = send_request('DescribePodDeductionRate', request.serialize)
2799
+ response = JSON.parse(body)
2800
+ if response['Response'].key?('Error') == false
2801
+ model = DescribePodDeductionRateResponse.new
2802
+ model.deserialize(response['Response'])
2803
+ model
2804
+ else
2805
+ code = response['Response']['Error']['Code']
2806
+ message = response['Response']['Error']['Message']
2807
+ reqid = response['Response']['RequestId']
2808
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2809
+ end
2810
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2811
+ raise e
2812
+ rescue StandardError => e
2813
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2814
+ end
2815
+
2816
+ # 查询可以用预留券抵扣的 Pod 信息。
2817
+
2818
+ # @param request: Request instance for DescribePodsBySpec.
2819
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePodsBySpecRequest`
2820
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePodsBySpecResponse`
2821
+ def DescribePodsBySpec(request)
2822
+ body = send_request('DescribePodsBySpec', request.serialize)
2823
+ response = JSON.parse(body)
2824
+ if response['Response'].key?('Error') == false
2825
+ model = DescribePodsBySpecResponse.new
2826
+ model.deserialize(response['Response'])
2827
+ model
2828
+ else
2829
+ code = response['Response']['Error']['Code']
2830
+ message = response['Response']['Error']['Message']
2831
+ reqid = response['Response']['RequestId']
2832
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2833
+ end
2834
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2835
+ raise e
2836
+ rescue StandardError => e
2837
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2838
+ end
2839
+
2840
+ # 包括 Pod 资源统计和绑定的预留券资源统计。
2841
+
2842
+ # @param request: Request instance for DescribePostNodeResources.
2843
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribePostNodeResourcesRequest`
2844
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribePostNodeResourcesResponse`
2845
+ def DescribePostNodeResources(request)
2846
+ body = send_request('DescribePostNodeResources', request.serialize)
2847
+ response = JSON.parse(body)
2848
+ if response['Response'].key?('Error') == false
2849
+ model = DescribePostNodeResourcesResponse.new
2850
+ model.deserialize(response['Response'])
2851
+ model
2852
+ else
2853
+ code = response['Response']['Error']['Code']
2854
+ message = response['Response']['Error']['Message']
2855
+ reqid = response['Response']['RequestId']
2856
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2857
+ end
2858
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2859
+ raise e
2860
+ rescue StandardError => e
2861
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2862
+ end
2863
+
2744
2864
  # 获取关联目标集群的实例列表
2745
2865
 
2746
2866
  # @param request: Request instance for DescribePrometheusAgentInstances.
@@ -3197,6 +3317,30 @@ module TencentCloud
3197
3317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3198
3318
  end
3199
3319
 
3320
+ # 预留实例用量查询
3321
+
3322
+ # @param request: Request instance for DescribeRIUtilizationDetail.
3323
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribeRIUtilizationDetailRequest`
3324
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribeRIUtilizationDetailResponse`
3325
+ def DescribeRIUtilizationDetail(request)
3326
+ body = send_request('DescribeRIUtilizationDetail', request.serialize)
3327
+ response = JSON.parse(body)
3328
+ if response['Response'].key?('Error') == false
3329
+ model = DescribeRIUtilizationDetailResponse.new
3330
+ model.deserialize(response['Response'])
3331
+ model
3332
+ else
3333
+ code = response['Response']['Error']['Code']
3334
+ message = response['Response']['Error']['Message']
3335
+ reqid = response['Response']['RequestId']
3336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3337
+ end
3338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3339
+ raise e
3340
+ rescue StandardError => e
3341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3342
+ end
3343
+
3200
3344
  # 获取容器服务支持的所有地域
3201
3345
 
3202
3346
  # @param request: Request instance for DescribeRegions.
@@ -3221,6 +3365,30 @@ module TencentCloud
3221
3365
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3222
3366
  end
3223
3367
 
3368
+ # 查询预留实例列表
3369
+
3370
+ # @param request: Request instance for DescribeReservedInstances.
3371
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribeReservedInstancesRequest`
3372
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribeReservedInstancesResponse`
3373
+ def DescribeReservedInstances(request)
3374
+ body = send_request('DescribeReservedInstances', request.serialize)
3375
+ response = JSON.parse(body)
3376
+ if response['Response'].key?('Error') == false
3377
+ model = DescribeReservedInstancesResponse.new
3378
+ model.deserialize(response['Response'])
3379
+ model
3380
+ else
3381
+ code = response['Response']['Error']['Code']
3382
+ message = response['Response']['Error']['Message']
3383
+ reqid = response['Response']['RequestId']
3384
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3385
+ end
3386
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3387
+ raise e
3388
+ rescue StandardError => e
3389
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3390
+ end
3391
+
3224
3392
  # 获取集群资源使用量
3225
3393
 
3226
3394
  # @param request: Request instance for DescribeResourceUsage.
@@ -4373,6 +4541,30 @@ module TencentCloud
4373
4541
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4374
4542
  end
4375
4543
 
4544
+ # 修改预留券的抵扣范围,抵扣范围取值:Region、Zone 和 Node。
4545
+
4546
+ # @param request: Request instance for ModifyReservedInstanceScope.
4547
+ # @type request: :class:`Tencentcloud::tke::V20180525::ModifyReservedInstanceScopeRequest`
4548
+ # @rtype: :class:`Tencentcloud::tke::V20180525::ModifyReservedInstanceScopeResponse`
4549
+ def ModifyReservedInstanceScope(request)
4550
+ body = send_request('ModifyReservedInstanceScope', request.serialize)
4551
+ response = JSON.parse(body)
4552
+ if response['Response'].key?('Error') == false
4553
+ model = ModifyReservedInstanceScopeResponse.new
4554
+ model.deserialize(response['Response'])
4555
+ model
4556
+ else
4557
+ code = response['Response']['Error']['Code']
4558
+ message = response['Response']['Error']['Message']
4559
+ reqid = response['Response']['RequestId']
4560
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4561
+ end
4562
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4563
+ raise e
4564
+ rescue StandardError => e
4565
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4566
+ end
4567
+
4376
4568
  # 移出节点池节点,但保留在集群内
4377
4569
 
4378
4570
  # @param request: Request instance for RemoveNodeFromNodePool.
@@ -4397,6 +4589,30 @@ module TencentCloud
4397
4589
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4398
4590
  end
4399
4591
 
4592
+ # 续费时请确保账户余额充足。
4593
+
4594
+ # @param request: Request instance for RenewReservedInstances.
4595
+ # @type request: :class:`Tencentcloud::tke::V20180525::RenewReservedInstancesRequest`
4596
+ # @rtype: :class:`Tencentcloud::tke::V20180525::RenewReservedInstancesResponse`
4597
+ def RenewReservedInstances(request)
4598
+ body = send_request('RenewReservedInstances', request.serialize)
4599
+ response = JSON.parse(body)
4600
+ if response['Response'].key?('Error') == false
4601
+ model = RenewReservedInstancesResponse.new
4602
+ model.deserialize(response['Response'])
4603
+ model
4604
+ else
4605
+ code = response['Response']['Error']['Code']
4606
+ message = response['Response']['Error']['Message']
4607
+ reqid = response['Response']['RequestId']
4608
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4609
+ end
4610
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4611
+ raise e
4612
+ rescue StandardError => e
4613
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4614
+ end
4615
+
4400
4616
  # 重启弹性容器实例,支持批量操作
4401
4617
 
4402
4618
  # @param request: Request instance for RestartEKSContainerInstances.