tccli 3.0.1294.1__py2.py3-none-any.whl → 3.0.1295.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/captcha/v20190722/api.json +49 -39
  3. tccli/services/cbs/v20170312/api.json +16 -16
  4. tccli/services/ccc/v20200210/api.json +89 -6
  5. tccli/services/ccc/v20200210/examples.json +1 -1
  6. tccli/services/cdc/v20201214/api.json +1 -1
  7. tccli/services/cdwpg/v20201230/api.json +21 -21
  8. tccli/services/cdwpg/v20201230/examples.json +6 -6
  9. tccli/services/clb/v20180317/api.json +1 -1
  10. tccli/services/dbdc/v20201029/api.json +42 -42
  11. tccli/services/dlc/v20210125/api.json +212 -17
  12. tccli/services/ess/v20201111/api.json +1 -1
  13. tccli/services/essbasic/v20210526/api.json +3 -3
  14. tccli/services/essbasic/v20210526/examples.json +2 -2
  15. tccli/services/hai/v20230812/api.json +53 -53
  16. tccli/services/hunyuan/v20230901/api.json +3 -3
  17. tccli/services/iotcloud/v20210408/api.json +29 -29
  18. tccli/services/iotcloud/v20210408/examples.json +6 -6
  19. tccli/services/iotvideo/v20191126/api.json +35 -34
  20. tccli/services/iotvideo/v20191126/examples.json +2 -2
  21. tccli/services/iotvideo/v20201215/api.json +310 -292
  22. tccli/services/iotvideo/v20201215/examples.json +54 -54
  23. tccli/services/iotvideo/v20211125/api.json +282 -274
  24. tccli/services/iotvideo/v20211125/examples.json +64 -64
  25. tccli/services/live/v20180801/api.json +8 -8
  26. tccli/services/lkeap/v20240522/api.json +1 -1
  27. tccli/services/mariadb/v20170312/api.json +5 -5
  28. tccli/services/monitor/v20180724/api.json +59 -3
  29. tccli/services/monitor/v20180724/examples.json +2 -2
  30. tccli/services/mps/v20190612/api.json +123 -4
  31. tccli/services/mqtt/v20240516/api.json +62 -62
  32. tccli/services/mqtt/v20240516/examples.json +2 -2
  33. tccli/services/privatedns/v20201028/api.json +32 -32
  34. tccli/services/taf/taf_client.py +53 -0
  35. tccli/services/taf/v20200210/api.json +138 -0
  36. tccli/services/taf/v20200210/examples.json +8 -0
  37. tccli/services/tag/v20180813/api.json +2 -2
  38. tccli/services/tbaas/v20180416/api.json +21 -16
  39. tccli/services/tcr/v20190924/api.json +41 -23
  40. tccli/services/tdmq/v20200217/api.json +2 -2
  41. tccli/services/tke/tke_client.py +61 -8
  42. tccli/services/tke/v20180525/api.json +355 -245
  43. tccli/services/tke/v20180525/examples.json +14 -0
  44. tccli/services/tsf/v20180326/api.json +44 -12
  45. tccli/services/vod/v20180717/api.json +682 -673
  46. tccli/services/vod/v20180717/examples.json +19 -19
  47. tccli/services/vpc/v20170312/api.json +84 -3
  48. tccli/services/waf/v20180125/api.json +2 -2
  49. tccli/services/waf/v20180125/examples.json +2 -2
  50. {tccli-3.0.1294.1.dist-info → tccli-3.0.1295.1.dist-info}/METADATA +2 -2
  51. {tccli-3.0.1294.1.dist-info → tccli-3.0.1295.1.dist-info}/RECORD +54 -54
  52. {tccli-3.0.1294.1.dist-info → tccli-3.0.1295.1.dist-info}/WHEEL +0 -0
  53. {tccli-3.0.1294.1.dist-info → tccli-3.0.1295.1.dist-info}/entry_points.txt +0 -0
  54. {tccli-3.0.1294.1.dist-info → tccli-3.0.1295.1.dist-info}/license_files/LICENSE +0 -0
@@ -3684,19 +3684,19 @@
3684
3684
  "example": "Opened",
3685
3685
  "member": "string",
3686
3686
  "name": "Status",
3687
- "required": true,
3687
+ "output_required": true,
3688
3688
  "type": "string",
3689
3689
  "value_allowed_null": false
3690
3690
  },
3691
3691
  {
3692
3692
  "disabled": false,
3693
- "document": "原因\n注意:此字段可能返回 null,表示取不到有效值。",
3693
+ "document": "原因",
3694
3694
  "example": "error",
3695
3695
  "member": "string",
3696
3696
  "name": "Reason",
3697
- "required": true,
3697
+ "output_required": true,
3698
3698
  "type": "string",
3699
- "value_allowed_null": true
3699
+ "value_allowed_null": false
3700
3700
  },
3701
3701
  {
3702
3702
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -4033,23 +4033,23 @@
4033
4033
  },
4034
4034
  {
4035
4035
  "disabled": false,
4036
- "document": "镜像的Labels信息\n注意:此字段可能返回 null,表示取不到有效值。",
4036
+ "document": "镜像的Labels信息",
4037
4037
  "example": "无",
4038
4038
  "member": "KeyValueString",
4039
4039
  "name": "Labels",
4040
4040
  "output_required": false,
4041
4041
  "type": "list",
4042
- "value_allowed_null": true
4042
+ "value_allowed_null": false
4043
4043
  },
4044
4044
  {
4045
4045
  "disabled": false,
4046
- "document": "镜像大小,单位:byte\n注意:此字段可能返回 null,表示取不到有效值。",
4046
+ "document": "镜像大小,单位:byte",
4047
4047
  "example": "39436994",
4048
4048
  "member": "int64",
4049
4049
  "name": "Size",
4050
4050
  "output_required": false,
4051
4051
  "type": "int",
4052
- "value_allowed_null": true
4052
+ "value_allowed_null": false
4053
4053
  },
4054
4054
  {
4055
4055
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -4245,6 +4245,24 @@
4245
4245
  "name": "RegistryId",
4246
4246
  "required": true,
4247
4247
  "type": "string"
4248
+ },
4249
+ {
4250
+ "disabled": false,
4251
+ "document": "页数,默认为1",
4252
+ "example": "1",
4253
+ "member": "int64",
4254
+ "name": "Page",
4255
+ "required": false,
4256
+ "type": "int"
4257
+ },
4258
+ {
4259
+ "disabled": false,
4260
+ "document": "每页展示个数,最大值为100",
4261
+ "example": "100",
4262
+ "member": "int64",
4263
+ "name": "PageSize",
4264
+ "required": false,
4265
+ "type": "int"
4248
4266
  }
4249
4267
  ],
4250
4268
  "type": "object"
@@ -4254,23 +4272,23 @@
4254
4272
  "members": [
4255
4273
  {
4256
4274
  "disabled": false,
4257
- "document": "规则列表\n注意:此字段可能返回 null,表示取不到有效值。",
4275
+ "document": "规则列表",
4258
4276
  "example": "无",
4259
4277
  "member": "ImmutableTagRule",
4260
4278
  "name": "Rules",
4261
4279
  "output_required": true,
4262
4280
  "type": "list",
4263
- "value_allowed_null": true
4281
+ "value_allowed_null": false
4264
4282
  },
4265
4283
  {
4266
4284
  "disabled": false,
4267
- "document": "未创建规则的命名空间\n注意:此字段可能返回 null,表示取不到有效值。",
4285
+ "document": "未创建规则的命名空间",
4268
4286
  "example": "[\"ns1\",\"ns2\"]",
4269
4287
  "member": "string",
4270
4288
  "name": "EmptyNs",
4271
4289
  "output_required": true,
4272
4290
  "type": "list",
4273
- "value_allowed_null": true
4291
+ "value_allowed_null": false
4274
4292
  },
4275
4293
  {
4276
4294
  "disabled": false,
@@ -4365,13 +4383,13 @@
4365
4383
  "members": [
4366
4384
  {
4367
4385
  "disabled": false,
4368
- "document": "域名信息列表\n注意:此字段可能返回 null,表示取不到有效值。",
4386
+ "document": "域名信息列表",
4369
4387
  "example": "无",
4370
4388
  "member": "CustomizedDomainInfo",
4371
4389
  "name": "DomainInfoList",
4372
4390
  "output_required": true,
4373
4391
  "type": "list",
4374
- "value_allowed_null": true
4392
+ "value_allowed_null": false
4375
4393
  },
4376
4394
  {
4377
4395
  "disabled": false,
@@ -4557,13 +4575,13 @@
4557
4575
  },
4558
4576
  {
4559
4577
  "disabled": false,
4560
- "document": "实例信息列表\n注意:此字段可能返回 null,表示取不到有效值。",
4578
+ "document": "实例信息列表",
4561
4579
  "example": "nil",
4562
4580
  "member": "Registry",
4563
4581
  "name": "Registries",
4564
4582
  "output_required": true,
4565
4583
  "type": "list",
4566
- "value_allowed_null": true
4584
+ "value_allowed_null": false
4567
4585
  },
4568
4586
  {
4569
4587
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -4594,13 +4612,13 @@
4594
4612
  "members": [
4595
4613
  {
4596
4614
  "disabled": false,
4597
- "document": "vpc私有域名解析状态列表\n注意:此字段可能返回 null,表示取不到有效值。",
4615
+ "document": "vpc私有域名解析状态列表",
4598
4616
  "example": "[{\"Region\":\"ap-guangzhou\",\"Status\":\"DISABLED\",\"VpcId\":\"vpc-5sdsx9k9\"}]",
4599
4617
  "member": "VpcPrivateDomainStatus",
4600
4618
  "name": "VpcSet",
4601
- "required": true,
4619
+ "output_required": true,
4602
4620
  "type": "list",
4603
- "value_allowed_null": true
4621
+ "value_allowed_null": false
4604
4622
  },
4605
4623
  {
4606
4624
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -5433,13 +5451,13 @@
5433
5451
  "members": [
5434
5452
  {
5435
5453
  "disabled": false,
5436
- "document": "服务级账号列表\n注意:此字段可能返回 null,表示取不到有效值。",
5454
+ "document": "服务级账号列表",
5437
5455
  "example": "无",
5438
5456
  "member": "ServiceAccount",
5439
5457
  "name": "ServiceAccounts",
5440
5458
  "output_required": true,
5441
5459
  "type": "list",
5442
- "value_allowed_null": true
5460
+ "value_allowed_null": false
5443
5461
  },
5444
5462
  {
5445
5463
  "disabled": false,
@@ -9090,14 +9108,14 @@
9090
9108
  },
9091
9109
  {
9092
9110
  "disabled": false,
9093
- "document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。",
9111
+ "document": "创建时间",
9094
9112
  "example": "2023-02-14T07:14:43+08:00",
9095
9113
  "member": "datetime_iso",
9096
9114
  "name": "CreateTime",
9097
9115
  "output_required": true,
9098
9116
  "required": false,
9099
9117
  "type": "string",
9100
- "value_allowed_null": true
9118
+ "value_allowed_null": false
9101
9119
  },
9102
9120
  {
9103
9121
  "disabled": false,
@@ -19449,13 +19449,13 @@
19449
19449
  },
19450
19450
  {
19451
19451
  "disabled": false,
19452
- "document": "备注信息\n注意:此字段可能返回 null,表示取不到有效值。",
19452
+ "document": "备注信息",
19453
19453
  "example": "remark-info",
19454
19454
  "member": "string",
19455
19455
  "name": "Remark",
19456
19456
  "output_required": true,
19457
19457
  "type": "string",
19458
- "value_allowed_null": true
19458
+ "value_allowed_null": false
19459
19459
  },
19460
19460
  {
19461
19461
  "disabled": false,
@@ -747,7 +747,7 @@ def doDeleteEdgeClusterInstances(args, parsed_globals):
747
747
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
748
748
 
749
749
 
750
- def doModifyPrometheusAlertRule(args, parsed_globals):
750
+ def doDescribeTKEEdgeExternalKubeconfig(args, parsed_globals):
751
751
  g_param = parse_global_arg(parsed_globals)
752
752
 
753
753
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -776,11 +776,11 @@ def doModifyPrometheusAlertRule(args, parsed_globals):
776
776
  client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
777
777
  client._sdkVersion += ("_CLI_" + __version__)
778
778
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
779
- model = models.ModifyPrometheusAlertRuleRequest()
779
+ model = models.DescribeTKEEdgeExternalKubeconfigRequest()
780
780
  model.from_json_string(json.dumps(args))
781
781
  start_time = time.time()
782
782
  while True:
783
- rsp = client.ModifyPrometheusAlertRule(model)
783
+ rsp = client.DescribeTKEEdgeExternalKubeconfig(model)
784
784
  result = rsp.to_json_string()
785
785
  try:
786
786
  json_obj = json.loads(result)
@@ -2203,7 +2203,7 @@ def doModifyReservedInstanceScope(args, parsed_globals):
2203
2203
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2204
2204
 
2205
2205
 
2206
- def doDescribeTKEEdgeExternalKubeconfig(args, parsed_globals):
2206
+ def doDescribeOSImages(args, parsed_globals):
2207
2207
  g_param = parse_global_arg(parsed_globals)
2208
2208
 
2209
2209
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2232,11 +2232,11 @@ def doDescribeTKEEdgeExternalKubeconfig(args, parsed_globals):
2232
2232
  client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
2233
2233
  client._sdkVersion += ("_CLI_" + __version__)
2234
2234
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2235
- model = models.DescribeTKEEdgeExternalKubeconfigRequest()
2235
+ model = models.DescribeOSImagesRequest()
2236
2236
  model.from_json_string(json.dumps(args))
2237
2237
  start_time = time.time()
2238
2238
  while True:
2239
- rsp = client.DescribeTKEEdgeExternalKubeconfig(model)
2239
+ rsp = client.DescribeOSImages(model)
2240
2240
  result = rsp.to_json_string()
2241
2241
  try:
2242
2242
  json_obj = json.loads(result)
@@ -4699,6 +4699,58 @@ def doAddExistedInstances(args, parsed_globals):
4699
4699
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4700
4700
 
4701
4701
 
4702
+ def doModifyPrometheusAlertRule(args, parsed_globals):
4703
+ g_param = parse_global_arg(parsed_globals)
4704
+
4705
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4706
+ cred = credential.CVMRoleCredential()
4707
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4708
+ cred = credential.STSAssumeRoleCredential(
4709
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4710
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4711
+ )
4712
+ 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):
4713
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4714
+ else:
4715
+ cred = credential.Credential(
4716
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4717
+ )
4718
+ http_profile = HttpProfile(
4719
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4720
+ reqMethod="POST",
4721
+ endpoint=g_param[OptionsDefine.Endpoint],
4722
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4723
+ )
4724
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4725
+ if g_param[OptionsDefine.Language]:
4726
+ profile.language = g_param[OptionsDefine.Language]
4727
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4728
+ client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
4729
+ client._sdkVersion += ("_CLI_" + __version__)
4730
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4731
+ model = models.ModifyPrometheusAlertRuleRequest()
4732
+ model.from_json_string(json.dumps(args))
4733
+ start_time = time.time()
4734
+ while True:
4735
+ rsp = client.ModifyPrometheusAlertRule(model)
4736
+ result = rsp.to_json_string()
4737
+ try:
4738
+ json_obj = json.loads(result)
4739
+ except TypeError as e:
4740
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4741
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4742
+ break
4743
+ cur_time = time.time()
4744
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4745
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4746
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4747
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4748
+ else:
4749
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4750
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4751
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4752
+
4753
+
4702
4754
  def doCreateEdgeCVMInstances(args, parsed_globals):
4703
4755
  g_param = parse_global_arg(parsed_globals)
4704
4756
 
@@ -12578,7 +12630,7 @@ ACTION_MAP = {
12578
12630
  "UpdateEdgeClusterVersion": doUpdateEdgeClusterVersion,
12579
12631
  "DescribeExternalNodeSupportConfig": doDescribeExternalNodeSupportConfig,
12580
12632
  "DeleteEdgeClusterInstances": doDeleteEdgeClusterInstances,
12581
- "ModifyPrometheusAlertRule": doModifyPrometheusAlertRule,
12633
+ "DescribeTKEEdgeExternalKubeconfig": doDescribeTKEEdgeExternalKubeconfig,
12582
12634
  "SetNodePoolNodeProtection": doSetNodePoolNodeProtection,
12583
12635
  "DescribeEKSContainerInstanceEvent": doDescribeEKSContainerInstanceEvent,
12584
12636
  "DescribeEdgeAvailableExtraArgs": doDescribeEdgeAvailableExtraArgs,
@@ -12606,7 +12658,7 @@ ACTION_MAP = {
12606
12658
  "DeleteEKSCluster": doDeleteEKSCluster,
12607
12659
  "AddNodeToNodePool": doAddNodeToNodePool,
12608
12660
  "ModifyReservedInstanceScope": doModifyReservedInstanceScope,
12609
- "DescribeTKEEdgeExternalKubeconfig": doDescribeTKEEdgeExternalKubeconfig,
12661
+ "DescribeOSImages": doDescribeOSImages,
12610
12662
  "DescribeClusters": doDescribeClusters,
12611
12663
  "CreateCLSLogConfig": doCreateCLSLogConfig,
12612
12664
  "EnableClusterAudit": doEnableClusterAudit,
@@ -12654,6 +12706,7 @@ ACTION_MAP = {
12654
12706
  "DescribeRegions": doDescribeRegions,
12655
12707
  "DescribeReservedInstanceUtilizationRate": doDescribeReservedInstanceUtilizationRate,
12656
12708
  "AddExistedInstances": doAddExistedInstances,
12709
+ "ModifyPrometheusAlertRule": doModifyPrometheusAlertRule,
12657
12710
  "CreateEdgeCVMInstances": doCreateEdgeCVMInstances,
12658
12711
  "DisableClusterDeletionProtection": doDisableClusterDeletionProtection,
12659
12712
  "DescribePrometheusTargets": doDescribePrometheusTargets,