tccli 3.0.1132.1__py2.py3-none-any.whl → 3.0.1133.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +1 -0
  3. tccli/services/apm/v20210622/examples.json +1 -1
  4. tccli/services/cdwch/v20200915/api.json +9 -9
  5. tccli/services/cdwch/v20200915/examples.json +1 -1
  6. tccli/services/cdwdoris/v20211228/api.json +18 -0
  7. tccli/services/cfw/v20190904/api.json +4 -4
  8. tccli/services/ckafka/v20190819/api.json +130 -74
  9. tccli/services/ckafka/v20190819/examples.json +17 -17
  10. tccli/services/cms/v20190321/api.json +2 -0
  11. tccli/services/cms/v20190321/examples.json +1 -1
  12. tccli/services/csip/v20221121/api.json +137 -42
  13. tccli/services/csip/v20221121/examples.json +4 -4
  14. tccli/services/cynosdb/v20190107/api.json +340 -0
  15. tccli/services/dlc/dlc_client.py +53 -0
  16. tccli/services/dlc/v20210125/api.json +34 -0
  17. tccli/services/dlc/v20210125/examples.json +8 -0
  18. tccli/services/dsgc/v20190723/api.json +20 -18
  19. tccli/services/dsgc/v20190723/examples.json +5 -5
  20. tccli/services/eb/v20210416/examples.json +1 -1
  21. tccli/services/emr/v20190103/api.json +1 -1
  22. tccli/services/essbasic/v20210526/api.json +2 -2
  23. tccli/services/gaap/v20180529/api.json +1 -1
  24. tccli/services/gaap/v20180529/examples.json +0 -6
  25. tccli/services/iecp/v20210914/api.json +40 -40
  26. tccli/services/ims/v20201229/api.json +2 -2
  27. tccli/services/lke/lke_client.py +171 -12
  28. tccli/services/lke/v20231130/api.json +524 -0
  29. tccli/services/lke/v20231130/examples.json +24 -0
  30. tccli/services/monitor/v20180724/api.json +47 -19
  31. tccli/services/monitor/v20180724/examples.json +4 -4
  32. tccli/services/pts/v20210728/api.json +1 -1
  33. tccli/services/pts/v20210728/examples.json +1 -1
  34. tccli/services/rum/v20210622/api.json +2 -0
  35. tccli/services/rum/v20210622/examples.json +1 -1
  36. tccli/services/sms/v20210111/api.json +26 -26
  37. tccli/services/tcr/v20190924/api.json +13 -10
  38. tccli/services/tcr/v20190924/examples.json +2 -2
  39. tccli/services/tke/tke_client.py +53 -0
  40. tccli/services/tke/v20180525/api.json +227 -41
  41. tccli/services/tke/v20180525/examples.json +26 -0
  42. tccli/services/tse/v20201207/api.json +13 -2
  43. tccli/services/tsf/v20180326/api.json +10 -8
  44. tccli/services/tsf/v20180326/examples.json +3 -3
  45. tccli/services/waf/v20180125/api.json +65 -9
  46. tccli/services/waf/v20180125/examples.json +1 -1
  47. tccli/services/wedata/v20210820/api.json +30 -19
  48. {tccli-3.0.1132.1.dist-info → tccli-3.0.1133.1.dist-info}/METADATA +2 -2
  49. {tccli-3.0.1132.1.dist-info → tccli-3.0.1133.1.dist-info}/RECORD +52 -52
  50. {tccli-3.0.1132.1.dist-info → tccli-3.0.1133.1.dist-info}/WHEEL +0 -0
  51. {tccli-3.0.1132.1.dist-info → tccli-3.0.1133.1.dist-info}/entry_points.txt +0 -0
  52. {tccli-3.0.1132.1.dist-info → tccli-3.0.1133.1.dist-info}/license_files/LICENSE +0 -0
@@ -1683,6 +1683,58 @@ def doDescribePrometheusTempSync(args, parsed_globals):
1683
1683
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1684
1684
 
1685
1685
 
1686
+ def doDescribePodChargeInfo(args, parsed_globals):
1687
+ g_param = parse_global_arg(parsed_globals)
1688
+
1689
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1690
+ cred = credential.CVMRoleCredential()
1691
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1692
+ cred = credential.STSAssumeRoleCredential(
1693
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1694
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1695
+ )
1696
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1697
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1698
+ else:
1699
+ cred = credential.Credential(
1700
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1701
+ )
1702
+ http_profile = HttpProfile(
1703
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1704
+ reqMethod="POST",
1705
+ endpoint=g_param[OptionsDefine.Endpoint],
1706
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1707
+ )
1708
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1709
+ if g_param[OptionsDefine.Language]:
1710
+ profile.language = g_param[OptionsDefine.Language]
1711
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1712
+ client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
1713
+ client._sdkVersion += ("_CLI_" + __version__)
1714
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1715
+ model = models.DescribePodChargeInfoRequest()
1716
+ model.from_json_string(json.dumps(args))
1717
+ start_time = time.time()
1718
+ while True:
1719
+ rsp = client.DescribePodChargeInfo(model)
1720
+ result = rsp.to_json_string()
1721
+ try:
1722
+ json_obj = json.loads(result)
1723
+ except TypeError as e:
1724
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1725
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1726
+ break
1727
+ cur_time = time.time()
1728
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1729
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1730
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1731
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1732
+ else:
1733
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1734
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1735
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1736
+
1737
+
1686
1738
  def doDescribeVersions(args, parsed_globals):
1687
1739
  g_param = parse_global_arg(parsed_globals)
1688
1740
 
@@ -11712,6 +11764,7 @@ ACTION_MAP = {
11712
11764
  "DescribeAvailableTKEEdgeVersion": doDescribeAvailableTKEEdgeVersion,
11713
11765
  "DescribeTKEEdgeClusters": doDescribeTKEEdgeClusters,
11714
11766
  "DescribePrometheusTempSync": doDescribePrometheusTempSync,
11767
+ "DescribePodChargeInfo": doDescribePodChargeInfo,
11715
11768
  "DescribeVersions": doDescribeVersions,
11716
11769
  "DescribePrometheusAlertPolicy": doDescribePrometheusAlertPolicy,
11717
11770
  "DescribeEdgeClusterExtraArgs": doDescribeEdgeClusterExtraArgs,
@@ -847,6 +847,13 @@
847
847
  "output": "DescribeLogSwitchesResponse",
848
848
  "status": "online"
849
849
  },
850
+ "DescribePodChargeInfo": {
851
+ "document": "查询正在运行中Pod的计费信息。可以通过 Namespace 和 Name 来查询某个 Pod 的信息,也可以通过 Pod 的 Uid 批量查询。",
852
+ "input": "DescribePodChargeInfoRequest",
853
+ "name": "查询超级节点上正在运行中Pod的计费信息",
854
+ "output": "DescribePodChargeInfoResponse",
855
+ "status": "online"
856
+ },
850
857
  "DescribePodDeductionRate": {
851
858
  "document": "查询各个规格的 Pod 的抵扣率",
852
859
  "input": "DescribePodDeductionRateRequest",
@@ -1581,7 +1588,7 @@
1581
1588
  {
1582
1589
  "disabled": false,
1583
1590
  "document": "集群ID",
1584
- "example": "cls-xxx",
1591
+ "example": "cls-asvdar",
1585
1592
  "member": "string",
1586
1593
  "name": "ClusterId",
1587
1594
  "required": true,
@@ -1828,7 +1835,7 @@
1828
1835
  {
1829
1836
  "disabled": false,
1830
1837
  "document": "集群ID",
1831
- "example": "cls-xxxx",
1838
+ "example": "cls-brehdsf",
1832
1839
  "member": "string",
1833
1840
  "name": "ClusterId",
1834
1841
  "required": true,
@@ -1837,7 +1844,7 @@
1837
1844
  {
1838
1845
  "disabled": false,
1839
1846
  "document": "为集群容器网络增加的子网列表",
1840
- "example": "[\"subnet-xxxxx\\n\"]",
1847
+ "example": "[\"subnet-gsdfggf\\n\"]",
1841
1848
  "member": "string",
1842
1849
  "name": "SubnetIds",
1843
1850
  "required": true,
@@ -1846,7 +1853,7 @@
1846
1853
  {
1847
1854
  "disabled": false,
1848
1855
  "document": "集群所属的VPC的ID",
1849
- "example": "vpc-xxxx",
1856
+ "example": "vpc-sdahtdd",
1850
1857
  "member": "string",
1851
1858
  "name": "VpcId",
1852
1859
  "required": true,
@@ -4302,7 +4309,8 @@
4302
4309
  "example": "2021-01-22T06:56:09Z",
4303
4310
  "member": "string",
4304
4311
  "name": "StartTime",
4305
- "required": true,
4312
+ "output_required": true,
4313
+ "required": false,
4306
4314
  "type": "string",
4307
4315
  "value_allowed_null": true
4308
4316
  },
@@ -4312,7 +4320,8 @@
4312
4320
  "example": "running",
4313
4321
  "member": "string",
4314
4322
  "name": "State",
4315
- "required": true,
4323
+ "output_required": true,
4324
+ "required": false,
4316
4325
  "type": "string",
4317
4326
  "value_allowed_null": false
4318
4327
  },
@@ -4322,7 +4331,8 @@
4322
4331
  "example": "2021-01-22T06:56:09Z",
4323
4332
  "member": "string",
4324
4333
  "name": "FinishTime",
4325
- "required": true,
4334
+ "output_required": true,
4335
+ "required": false,
4326
4336
  "type": "string",
4327
4337
  "value_allowed_null": true
4328
4338
  },
@@ -4332,7 +4342,8 @@
4332
4342
  "example": "0",
4333
4343
  "member": "int64",
4334
4344
  "name": "ExitCode",
4335
- "required": true,
4345
+ "output_required": true,
4346
+ "required": false,
4336
4347
  "type": "int",
4337
4348
  "value_allowed_null": true
4338
4349
  },
@@ -4342,7 +4353,8 @@
4342
4353
  "example": "todo ",
4343
4354
  "member": "string",
4344
4355
  "name": "Reason",
4345
- "required": true,
4356
+ "output_required": true,
4357
+ "required": false,
4346
4358
  "type": "string",
4347
4359
  "value_allowed_null": true
4348
4360
  },
@@ -4352,7 +4364,8 @@
4352
4364
  "example": " todo",
4353
4365
  "member": "string",
4354
4366
  "name": "Message",
4355
- "required": true,
4367
+ "output_required": true,
4368
+ "required": false,
4356
4369
  "type": "string",
4357
4370
  "value_allowed_null": true
4358
4371
  },
@@ -4362,12 +4375,13 @@
4362
4375
  "example": " 1",
4363
4376
  "member": "int64",
4364
4377
  "name": "RestartCount",
4365
- "required": true,
4378
+ "output_required": true,
4379
+ "required": false,
4366
4380
  "type": "int",
4367
4381
  "value_allowed_null": true
4368
4382
  }
4369
4383
  ],
4370
- "usage": "out"
4384
+ "usage": "both"
4371
4385
  },
4372
4386
  "ControllerStatus": {
4373
4387
  "document": "集群中控制器的状态描述",
@@ -6058,7 +6072,7 @@
6058
6072
  },
6059
6073
  {
6060
6074
  "disabled": false,
6061
- "document": "实例所属子网Id",
6075
+ "document": "实例所属子网 ID",
6062
6076
  "example": "\"\"",
6063
6077
  "member": "string",
6064
6078
  "name": "SubnetId",
@@ -6067,7 +6081,7 @@
6067
6081
  },
6068
6082
  {
6069
6083
  "disabled": false,
6070
- "document": "实例所属VPC Id",
6084
+ "document": "实例所属 VPC ID",
6071
6085
  "example": "\"\"",
6072
6086
  "member": "string",
6073
6087
  "name": "VpcId",
@@ -6085,7 +6099,7 @@
6085
6099
  },
6086
6100
  {
6087
6101
  "disabled": false,
6088
- "document": "安全组Id",
6102
+ "document": "安全组 ID",
6089
6103
  "example": "\"\"",
6090
6104
  "member": "string",
6091
6105
  "name": "SecurityGroupIds",
@@ -6185,7 +6199,7 @@
6185
6199
  "example": "[]",
6186
6200
  "member": "string",
6187
6201
  "name": "ImageCacheId",
6188
- "required": true,
6202
+ "output_required": true,
6189
6203
  "type": "string",
6190
6204
  "value_allowed_null": false
6191
6205
  },
@@ -7331,7 +7345,7 @@
7331
7345
  {
7332
7346
  "disabled": false,
7333
7347
  "document": "路由表名称。",
7334
- "example": "",
7348
+ "example": "MANAGED_CLUSTER",
7335
7349
  "member": "string",
7336
7350
  "name": "RouteTableName",
7337
7351
  "required": true,
@@ -7340,7 +7354,7 @@
7340
7354
  {
7341
7355
  "disabled": false,
7342
7356
  "document": "下一跳地址。",
7343
- "example": "",
7357
+ "example": "10.0.0.3",
7344
7358
  "member": "string",
7345
7359
  "name": "GatewayIp",
7346
7360
  "required": true,
@@ -7349,7 +7363,7 @@
7349
7363
  {
7350
7364
  "disabled": false,
7351
7365
  "document": "目的端CIDR。",
7352
- "example": "",
7366
+ "example": "10.4.0.0/24",
7353
7367
  "member": "string",
7354
7368
  "name": "DestinationCidrBlock",
7355
7369
  "required": true,
@@ -7376,7 +7390,7 @@
7376
7390
  {
7377
7391
  "disabled": false,
7378
7392
  "document": "路由表名称",
7379
- "example": "",
7393
+ "example": "MANAGED_CLUSTER",
7380
7394
  "member": "string",
7381
7395
  "name": "RouteTableName",
7382
7396
  "required": true,
@@ -9671,7 +9685,7 @@
9671
9685
  {
9672
9686
  "disabled": false,
9673
9687
  "document": "路由表名称。",
9674
- "example": "",
9688
+ "example": "cls-abcdefgh",
9675
9689
  "member": "string",
9676
9690
  "name": "RouteTableName",
9677
9691
  "required": true,
@@ -9680,7 +9694,7 @@
9680
9694
  {
9681
9695
  "disabled": false,
9682
9696
  "document": "过滤条件,当前只支持按照单个条件GatewayIP进行过滤(可选)",
9683
- "example": "",
9697
+ "example": "[{\"Name\":\"GatewayIP\",\"Values\":\"10.0.0.3\"}]",
9684
9698
  "member": "Filter",
9685
9699
  "name": "Filters",
9686
9700
  "required": false,
@@ -9695,18 +9709,20 @@
9695
9709
  {
9696
9710
  "disabled": false,
9697
9711
  "document": "符合条件的实例数量。",
9698
- "example": "",
9712
+ "example": "1",
9699
9713
  "member": "int64",
9700
9714
  "name": "TotalCount",
9715
+ "output_required": true,
9701
9716
  "type": "int",
9702
9717
  "value_allowed_null": false
9703
9718
  },
9704
9719
  {
9705
9720
  "disabled": false,
9706
9721
  "document": "集群路由对象。",
9707
- "example": "",
9722
+ "example": "",
9708
9723
  "member": "RouteInfo",
9709
9724
  "name": "RouteSet",
9725
+ "output_required": true,
9710
9726
  "type": "list",
9711
9727
  "value_allowed_null": false
9712
9728
  },
@@ -10904,7 +10920,7 @@
10904
10920
  "example": "\"Running\"",
10905
10921
  "member": "string",
10906
10922
  "name": "Status",
10907
- "required": true,
10923
+ "output_required": true,
10908
10924
  "type": "string",
10909
10925
  "value_allowed_null": false
10910
10926
  },
@@ -10914,7 +10930,7 @@
10914
10930
  "example": "\"ipamd has not been installed yet\"",
10915
10931
  "member": "string",
10916
10932
  "name": "ErrorMessage",
10917
- "required": true,
10933
+ "output_required": true,
10918
10934
  "type": "string",
10919
10935
  "value_allowed_null": true
10920
10936
  },
@@ -11394,6 +11410,16 @@
11394
11410
  "type": "string",
11395
11411
  "value_allowed_null": true
11396
11412
  },
11413
+ {
11414
+ "disabled": false,
11415
+ "document": "是否开启了中继网卡模式\n注意:此字段可能返回 null,表示取不到有效值。",
11416
+ "example": "false",
11417
+ "member": "bool",
11418
+ "name": "EnableTrunkingENI",
11419
+ "output_required": false,
11420
+ "type": "bool",
11421
+ "value_allowed_null": true
11422
+ },
11397
11423
  {
11398
11424
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11399
11425
  "member": "string",
@@ -11463,7 +11489,7 @@
11463
11489
  "example": "[]",
11464
11490
  "member": "uint64",
11465
11491
  "name": "TotalCount",
11466
- "required": true,
11492
+ "output_required": true,
11467
11493
  "type": "int",
11468
11494
  "value_allowed_null": false
11469
11495
  },
@@ -11473,7 +11499,7 @@
11473
11499
  "example": "[]",
11474
11500
  "member": "ImageCache",
11475
11501
  "name": "ImageCaches",
11476
- "required": true,
11502
+ "output_required": true,
11477
11503
  "type": "list",
11478
11504
  "value_allowed_null": false
11479
11505
  },
@@ -11567,6 +11593,70 @@
11567
11593
  ],
11568
11594
  "type": "object"
11569
11595
  },
11596
+ "DescribePodChargeInfoRequest": {
11597
+ "document": "DescribePodChargeInfo请求参数结构体",
11598
+ "members": [
11599
+ {
11600
+ "disabled": false,
11601
+ "document": "集群ID",
11602
+ "example": "cls-12345678",
11603
+ "member": "string",
11604
+ "name": "ClusterId",
11605
+ "required": true,
11606
+ "type": "string"
11607
+ },
11608
+ {
11609
+ "disabled": false,
11610
+ "document": "命名空间",
11611
+ "example": "default",
11612
+ "member": "string",
11613
+ "name": "Namespace",
11614
+ "required": false,
11615
+ "type": "string"
11616
+ },
11617
+ {
11618
+ "disabled": false,
11619
+ "document": "Pod名称",
11620
+ "example": "test-0",
11621
+ "member": "string",
11622
+ "name": "Name",
11623
+ "required": false,
11624
+ "type": "string"
11625
+ },
11626
+ {
11627
+ "disabled": false,
11628
+ "document": "Pod的Uid",
11629
+ "example": "4df5eb56-df50-4bd4-b84e-8c3f7fdf7ab8",
11630
+ "member": "string",
11631
+ "name": "Uids",
11632
+ "required": false,
11633
+ "type": "list"
11634
+ }
11635
+ ],
11636
+ "type": "object"
11637
+ },
11638
+ "DescribePodChargeInfoResponse": {
11639
+ "document": "DescribePodChargeInfo返回参数结构体",
11640
+ "members": [
11641
+ {
11642
+ "disabled": false,
11643
+ "document": "Pod计费信息",
11644
+ "example": "无",
11645
+ "member": "PodChargeInfo",
11646
+ "name": "ChargeInfoSet",
11647
+ "output_required": false,
11648
+ "type": "list",
11649
+ "value_allowed_null": false
11650
+ },
11651
+ {
11652
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11653
+ "member": "string",
11654
+ "name": "RequestId",
11655
+ "type": "string"
11656
+ }
11657
+ ],
11658
+ "type": "object"
11659
+ },
11570
11660
  "DescribePodDeductionRateRequest": {
11571
11661
  "document": "DescribePodDeductionRate请求参数结构体",
11572
11662
  "members": [
@@ -16099,7 +16189,7 @@
16099
16189
  "example": "[]",
16100
16190
  "member": "bool",
16101
16191
  "name": "Found",
16102
- "required": true,
16192
+ "output_required": true,
16103
16193
  "type": "bool",
16104
16194
  "value_allowed_null": false
16105
16195
  },
@@ -16109,7 +16199,7 @@
16109
16199
  "example": "[]",
16110
16200
  "member": "ImageCache",
16111
16201
  "name": "ImageCache",
16112
- "required": true,
16202
+ "output_required": true,
16113
16203
  "type": "object",
16114
16204
  "value_allowed_null": true
16115
16205
  },
@@ -16352,7 +16442,7 @@
16352
16442
  "example": "\"\"",
16353
16443
  "member": "string",
16354
16444
  "name": "ImageCacheId",
16355
- "required": true,
16445
+ "output_required": true,
16356
16446
  "type": "string",
16357
16447
  "value_allowed_null": false
16358
16448
  },
@@ -16362,7 +16452,7 @@
16362
16452
  "example": "\"\"",
16363
16453
  "member": "string",
16364
16454
  "name": "ImageCacheName",
16365
- "required": true,
16455
+ "output_required": true,
16366
16456
  "type": "string",
16367
16457
  "value_allowed_null": false
16368
16458
  },
@@ -16372,7 +16462,7 @@
16372
16462
  "example": "\"\"",
16373
16463
  "member": "uint64",
16374
16464
  "name": "ImageCacheSize",
16375
- "required": true,
16465
+ "output_required": true,
16376
16466
  "type": "int",
16377
16467
  "value_allowed_null": false
16378
16468
  },
@@ -16382,7 +16472,7 @@
16382
16472
  "example": "\"\"",
16383
16473
  "member": "string",
16384
16474
  "name": "Images",
16385
- "required": true,
16475
+ "output_required": true,
16386
16476
  "type": "list",
16387
16477
  "value_allowed_null": false
16388
16478
  },
@@ -16392,7 +16482,7 @@
16392
16482
  "example": "\"\"",
16393
16483
  "member": "string",
16394
16484
  "name": "CreationTime",
16395
- "required": true,
16485
+ "output_required": true,
16396
16486
  "type": "string",
16397
16487
  "value_allowed_null": false
16398
16488
  },
@@ -16402,7 +16492,7 @@
16402
16492
  "example": "\"\"",
16403
16493
  "member": "string",
16404
16494
  "name": "ExpireDateTime",
16405
- "required": true,
16495
+ "output_required": true,
16406
16496
  "type": "string",
16407
16497
  "value_allowed_null": false
16408
16498
  },
@@ -16412,7 +16502,7 @@
16412
16502
  "example": "\"\"",
16413
16503
  "member": "ImageCacheEvent",
16414
16504
  "name": "Events",
16415
- "required": true,
16505
+ "output_required": true,
16416
16506
  "type": "list",
16417
16507
  "value_allowed_null": false
16418
16508
  },
@@ -16422,7 +16512,7 @@
16422
16512
  "example": "\"\"",
16423
16513
  "member": "string",
16424
16514
  "name": "LastMatchedTime",
16425
- "required": true,
16515
+ "output_required": true,
16426
16516
  "type": "string",
16427
16517
  "value_allowed_null": false
16428
16518
  },
@@ -16432,7 +16522,7 @@
16432
16522
  "example": "\"\"",
16433
16523
  "member": "string",
16434
16524
  "name": "SnapshotId",
16435
- "required": true,
16525
+ "output_required": true,
16436
16526
  "type": "string",
16437
16527
  "value_allowed_null": false
16438
16528
  },
@@ -16442,7 +16532,7 @@
16442
16532
  "example": "\"\"",
16443
16533
  "member": "string",
16444
16534
  "name": "Status",
16445
- "required": true,
16535
+ "output_required": true,
16446
16536
  "type": "string",
16447
16537
  "value_allowed_null": false
16448
16538
  }
@@ -19625,6 +19715,102 @@
19625
19715
  ],
19626
19716
  "usage": "out"
19627
19717
  },
19718
+ "PodChargeInfo": {
19719
+ "document": "Pod计费信息",
19720
+ "members": [
19721
+ {
19722
+ "disabled": false,
19723
+ "document": "Pod计费开始时间",
19724
+ "example": "\"2021-07-13 23:06:43\"",
19725
+ "member": "string",
19726
+ "name": "StartTime",
19727
+ "output_required": true,
19728
+ "type": "string",
19729
+ "value_allowed_null": false
19730
+ },
19731
+ {
19732
+ "disabled": false,
19733
+ "document": "Pod的Uid",
19734
+ "example": "\"74425581-ba21-4d03-8e18-33792a647a26\"",
19735
+ "member": "string",
19736
+ "name": "Uid",
19737
+ "output_required": true,
19738
+ "type": "string",
19739
+ "value_allowed_null": false
19740
+ },
19741
+ {
19742
+ "disabled": false,
19743
+ "document": "Pod的CPU",
19744
+ "example": "1",
19745
+ "member": "float",
19746
+ "name": "Cpu",
19747
+ "output_required": true,
19748
+ "type": "float",
19749
+ "value_allowed_null": false
19750
+ },
19751
+ {
19752
+ "disabled": false,
19753
+ "document": "Pod的内存",
19754
+ "example": "2",
19755
+ "member": "float",
19756
+ "name": "Memory",
19757
+ "output_required": true,
19758
+ "type": "float",
19759
+ "value_allowed_null": false
19760
+ },
19761
+ {
19762
+ "disabled": false,
19763
+ "document": "Pod类型:intel、amd、v100、t4、a10\\*gnv4、a10\\*gnv4v等。",
19764
+ "example": "intel",
19765
+ "member": "string",
19766
+ "name": "Type",
19767
+ "output_required": true,
19768
+ "type": "string",
19769
+ "value_allowed_null": false
19770
+ },
19771
+ {
19772
+ "disabled": false,
19773
+ "document": "Pod是GPU时,表示GPU卡数\n注意:此字段可能返回 null,表示取不到有效值。",
19774
+ "example": "\"0.25\"",
19775
+ "member": "string",
19776
+ "name": "Gpu",
19777
+ "output_required": false,
19778
+ "type": "string",
19779
+ "value_allowed_null": true
19780
+ },
19781
+ {
19782
+ "disabled": false,
19783
+ "document": "计费类型\nPREPAID:Pod调度到包月超级节点\nPOSTPAID_BY_HOUR:按量计费\nRESERVED_INSTANCE:上个周期被预留券抵扣\nSPOT:竞价实例\nTPOD:特惠实例",
19784
+ "example": "POSTPAID_BY_HOUR",
19785
+ "member": "string",
19786
+ "name": "ChargeType",
19787
+ "output_required": true,
19788
+ "type": "string",
19789
+ "value_allowed_null": false
19790
+ },
19791
+ {
19792
+ "disabled": false,
19793
+ "document": "命名空间",
19794
+ "example": "无",
19795
+ "member": "string",
19796
+ "name": "Namespace",
19797
+ "output_required": true,
19798
+ "type": "string",
19799
+ "value_allowed_null": false
19800
+ },
19801
+ {
19802
+ "disabled": false,
19803
+ "document": "Pod名称",
19804
+ "example": "无",
19805
+ "member": "string",
19806
+ "name": "Name",
19807
+ "output_required": true,
19808
+ "type": "string",
19809
+ "value_allowed_null": false
19810
+ }
19811
+ ],
19812
+ "usage": "out"
19813
+ },
19628
19814
  "PodDeductionRate": {
19629
19815
  "document": "可被预留券抵扣的 Pod 某种规格的抵扣率",
19630
19816
  "members": [
@@ -24562,7 +24748,7 @@
24562
24748
  "members": [
24563
24749
  {
24564
24750
  "disabled": false,
24565
- "document": "镜像缓存Id",
24751
+ "document": "镜像缓存ID",
24566
24752
  "example": "\"\"",
24567
24753
  "member": "string",
24568
24754
  "name": "ImageCacheId",
@@ -998,6 +998,32 @@
998
998
  "title": "查询开关列表接口示例"
999
999
  }
1000
1000
  ],
1001
+ "DescribePodChargeInfo": [
1002
+ {
1003
+ "document": " 需要同时指定 Namespace 和 Name",
1004
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePodChargeInfo\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-s180xq54\",\n \"Namespace\": \"default\"\n}",
1005
+ "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"Namespace and Name must be set\"\n },\n \"RequestId\": \"e9de622d-82fc-4aa1-a32c-f2679bc51a9e\"\n }\n}",
1006
+ "title": "只指定 Namespace"
1007
+ },
1008
+ {
1009
+ "document": " 需要同时输入 Namespace 和 Name,或者 Uid",
1010
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePodChargeInfo\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-s180xq54\"\n}",
1011
+ "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"Namespace,Name,Uid is empty\"\n },\n \"RequestId\": \"99a94acb-7566-410b-8dc8-b611ca160820\"\n }\n}",
1012
+ "title": "不输入必要参数"
1013
+ },
1014
+ {
1015
+ "document": "同时指定了 Namespace 和 Name",
1016
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePodChargeInfo\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-s180xq54\",\n \"Namespace\": \"default\",\n \"Name\": \"nginx-c4cd9685f-m58ts\"\n}",
1017
+ "output": "{\n \"Response\": {\n \"ChargeInfoSet\": [\n {\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"Cpu\": 1,\n \"Memory\": 1,\n \"Name\": \"nginx-c4cd9685f-m58ts\",\n \"Namespace\": \"default\",\n \"StartTime\": \"2024-03-26 00:10:38\",\n \"Type\": \"intel\",\n \"Uid\": \"4df5eb56-df50-4bd4-b84e-8c3f7fdf7ab8\"\n }\n ],\n \"RequestId\": \"9b400838-e679-486f-a7d3-854d5040a6e6\"\n }\n}",
1018
+ "title": "通过 Namespace 和 Name 查询"
1019
+ },
1020
+ {
1021
+ "document": "输入多个Uid来查询",
1022
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePodChargeInfo\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-0x51a7qw\",\n \"Uids\": [\n \"6c4022b4-288c-449e-b50f-ae06d91dd48e\",\n \"a49edc4a-b316-45b0-8ce4-8f23f93a27c7\"\n ]\n}",
1023
+ "output": "{\n \"Response\": {\n \"ChargeInfoSet\": [\n {\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"Cpu\": 2,\n \"Memory\": 4,\n \"Name\": \"csi-cbs-controller-6678658c57-hhbvw\",\n \"Namespace\": \"kube-system\",\n \"StartTime\": \"2024-04-17 00:08:15\",\n \"Type\": \"intel\",\n \"Uid\": \"6c4022b4-288c-449e-b50f-ae06d91dd48e\"\n },\n {\n \"ChargeType\": \"NO_CHARGE\",\n \"Cpu\": 0.25,\n \"Memory\": 0.5,\n \"Name\": \"coredns-56555dd999-ntc6g\",\n \"Namespace\": \"kube-system\",\n \"StartTime\": \"2024-04-17 00:08:11\",\n \"Type\": \"intel\",\n \"Uid\": \"a49edc4a-b316-45b0-8ce4-8f23f93a27c7\"\n }\n ],\n \"RequestId\": \"9fe5a6b6-ad87-426d-b619-b600d0a18f23\"\n }\n}",
1024
+ "title": "查询多个运行中的Pod计费信息"
1025
+ }
1026
+ ],
1001
1027
  "DescribePodDeductionRate": [
1002
1028
  {
1003
1029
  "document": "可被预留券抵扣的 Pod 的抵扣率查询",