tccli 3.0.1276.1__py2.py3-none-any.whl → 3.0.1278.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.
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1276.1'
1
+ __version__ = '3.0.1278.1'
@@ -205,6 +205,26 @@
205
205
  "output_required": true,
206
206
  "type": "list",
207
207
  "value_allowed_null": false
208
+ },
209
+ {
210
+ "disabled": false,
211
+ "document": "三级标签",
212
+ "example": "无",
213
+ "member": "string",
214
+ "name": "SubTag",
215
+ "output_required": false,
216
+ "type": "string",
217
+ "value_allowed_null": false
218
+ },
219
+ {
220
+ "disabled": false,
221
+ "document": "三级标签码",
222
+ "example": "无",
223
+ "member": "string",
224
+ "name": "SubTagCode",
225
+ "output_required": false,
226
+ "type": "string",
227
+ "value_allowed_null": false
208
228
  }
209
229
  ],
210
230
  "usage": "out"
@@ -392,63 +412,63 @@
392
412
  "members": [
393
413
  {
394
414
  "disabled": false,
395
- "document": "该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。\n注意:此字段可能返回 null,表示取不到有效值。",
415
+ "document": "该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。",
396
416
  "example": "无",
397
417
  "member": "string",
398
418
  "name": "Label",
399
- "required": true,
419
+ "output_required": true,
400
420
  "type": "string",
401
- "value_allowed_null": true
421
+ "value_allowed_null": false
402
422
  },
403
423
  {
404
424
  "disabled": false,
405
- "document": "该字段用于返回ASR识别出的文本内容命中的关键词信息,用于标注内容违规的具体原因(如:加我微信)。该参数可能会有多个返回值,代表命中的多个关键词;若返回值为空,Score不为空,则代表识别结果所对应的恶意标签(Label)来自于语义模型判断的返回值。\n注意:此字段可能返回 null,表示取不到有效值。",
425
+ "document": "该字段用于返回ASR识别出的文本内容命中的关键词信息,用于标注内容违规的具体原因(如:加我微信)。该参数可能会有多个返回值,代表命中的多个关键词;若返回值为空,Score不为空,则代表识别结果所对应的恶意标签(Label)来自于语义模型判断的返回值。",
406
426
  "example": "无",
407
427
  "member": "string",
408
428
  "name": "Keywords",
409
- "required": true,
429
+ "output_required": true,
410
430
  "type": "list",
411
- "value_allowed_null": true
431
+ "value_allowed_null": false
412
432
  },
413
433
  {
414
434
  "disabled": false,
415
- "document": "该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的ID,以方便自定义库管理和配置。\n注意:此字段可能返回 null,表示取不到有效值。",
435
+ "document": "该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的ID,以方便自定义库管理和配置。",
416
436
  "example": "无",
417
437
  "member": "string",
418
438
  "name": "LibId",
419
- "required": true,
439
+ "output_required": true,
420
440
  "type": "string",
421
- "value_allowed_null": true
441
+ "value_allowed_null": false
422
442
  },
423
443
  {
424
444
  "disabled": false,
425
- "document": "该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。\n注意:此字段可能返回 null,表示取不到有效值。",
445
+ "document": "该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。",
426
446
  "example": "无",
427
447
  "member": "string",
428
448
  "name": "LibName",
429
- "required": true,
449
+ "output_required": true,
430
450
  "type": "string",
431
- "value_allowed_null": true
451
+ "value_allowed_null": false
432
452
  },
433
453
  {
434
454
  "disabled": false,
435
- "document": "该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高**),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。\n注意:此字段可能返回 null,表示取不到有效值。",
455
+ "document": "该字段用于返回当前标签下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高**),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容。",
436
456
  "example": "无",
437
457
  "member": "int64",
438
458
  "name": "Score",
439
- "required": true,
459
+ "output_required": true,
440
460
  "type": "int",
441
- "value_allowed_null": true
461
+ "value_allowed_null": false
442
462
  },
443
463
  {
444
464
  "disabled": false,
445
- "document": "该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>\n返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过\n注意:此字段可能返回 null,表示取不到有效值。",
465
+ "document": "该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示具体的后续建议操作。<br>\n返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过",
446
466
  "example": "无",
447
467
  "member": "string",
448
468
  "name": "Suggestion",
449
- "required": true,
469
+ "output_required": true,
450
470
  "type": "string",
451
- "value_allowed_null": true
471
+ "value_allowed_null": false
452
472
  },
453
473
  {
454
474
  "disabled": false,
@@ -456,19 +476,29 @@
456
476
  "example": "无",
457
477
  "member": "int64",
458
478
  "name": "LibType",
459
- "required": true,
479
+ "output_required": true,
460
480
  "type": "int",
461
481
  "value_allowed_null": false
462
482
  },
463
483
  {
464
484
  "disabled": false,
465
- "document": "该字段用于返回当前标签(Lable)下的二级标签。\n注意:此字段可能返回 null,表示取不到有效值。",
485
+ "document": "该字段用于返回当前标签(Lable)下的二级标签。",
466
486
  "example": "无",
467
487
  "member": "string",
468
488
  "name": "SubLabel",
469
- "required": true,
489
+ "output_required": true,
470
490
  "type": "string",
471
- "value_allowed_null": true
491
+ "value_allowed_null": false
492
+ },
493
+ {
494
+ "disabled": false,
495
+ "document": "该字段用于命中的关键词信息",
496
+ "example": "无",
497
+ "member": "HitInfo",
498
+ "name": "HitInfos",
499
+ "output_required": false,
500
+ "type": "list",
501
+ "value_allowed_null": false
472
502
  }
473
503
  ],
474
504
  "usage": "out"
@@ -1752,6 +1752,24 @@
1752
1752
  "name": "ClientToken",
1753
1753
  "required": false,
1754
1754
  "type": "string"
1755
+ },
1756
+ {
1757
+ "disabled": false,
1758
+ "document": "置放群组的亲和度,在置放群组的实例会按该亲和度分布,亲和度的取值范围是:1-10,默认为1",
1759
+ "example": "3",
1760
+ "member": "int64",
1761
+ "name": "Affinity",
1762
+ "required": false,
1763
+ "type": "int"
1764
+ },
1765
+ {
1766
+ "disabled": false,
1767
+ "document": "标签描述列表。通过指定该参数可以绑定标签到置放群组。",
1768
+ "example": "[ { \"ResourceType\": \"ps\", \"Tags\": [ { \"Key\": \"myTag\", \"Value\": \"cloud\" } ] } ]",
1769
+ "member": "TagSpecification",
1770
+ "name": "TagSpecification",
1771
+ "required": false,
1772
+ "type": "list"
1755
1773
  }
1756
1774
  ],
1757
1775
  "type": "object"
@@ -3244,6 +3262,15 @@
3244
3262
  "name": "Limit",
3245
3263
  "required": false,
3246
3264
  "type": "int"
3265
+ },
3266
+ {
3267
+ "disabled": false,
3268
+ "document": "<li><strong>tag-key</strong></li>\n<p style=\"padding-left: 30px;\">按照【<strong>标签键</strong>】进行过滤。</p><p style=\"padding-left: 30px;\">类型:String</p><p style=\"padding-left: 30px;\">必选:否</p>\n<li><strong>tag-value</strong></li> <p style=\"padding-left: 30px;\">按照【<strong>标签值</strong>】进行过滤。</p><p style=\"padding-left: 30px;\">类型:String</p><p style=\"padding-left: 30px;\">必选:否</p>\n<li><strong>tag:tag-key</strong></li> <p style=\"padding-left: 30px;\">按照【<strong>标签键值对</strong>】进行过滤。tag-key使用具体的标签键进行替换。</p><p style=\"padding-left: 30px;\">类型:String</p><p style=\"padding-left: 30px;\">必选:否</p>\n每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。",
3269
+ "example": "[ { \"Name\": \"tag-key \", \"Values\": [ \"myTag\" ] } ]",
3270
+ "member": "Filter",
3271
+ "name": "Filters",
3272
+ "required": false,
3273
+ "type": "list"
3247
3274
  }
3248
3275
  ],
3249
3276
  "type": "object"
@@ -4813,23 +4840,33 @@
4813
4840
  },
4814
4841
  {
4815
4842
  "disabled": false,
4816
- "document": "分散置放群组内,云服务器id列表。\n注意:此字段可能返回 null,表示取不到有效值。",
4843
+ "document": "分散置放群组内,云服务器id列表。",
4817
4844
  "example": "[\"ins-19029pru\"]",
4818
4845
  "member": "string",
4819
4846
  "name": "InstanceIds",
4820
4847
  "output_required": true,
4821
4848
  "type": "list",
4822
- "value_allowed_null": true
4849
+ "value_allowed_null": false
4823
4850
  },
4824
4851
  {
4825
4852
  "disabled": false,
4826
- "document": "分散置放群组创建时间。\n注意:此字段可能返回 null,表示取不到有效值。",
4853
+ "document": "分散置放群组创建时间。",
4827
4854
  "example": "\"2021-04-27T08:49:34Z\"",
4828
4855
  "member": "datetime_iso",
4829
4856
  "name": "CreateTime",
4830
4857
  "output_required": true,
4831
4858
  "type": "string",
4832
- "value_allowed_null": true
4859
+ "value_allowed_null": false
4860
+ },
4861
+ {
4862
+ "disabled": false,
4863
+ "document": "置放群组关联的标签列表。",
4864
+ "example": "无",
4865
+ "member": "Tag",
4866
+ "name": "Tags",
4867
+ "output_required": false,
4868
+ "type": "list",
4869
+ "value_allowed_null": false
4833
4870
  }
4834
4871
  ],
4835
4872
  "usage": "out"
@@ -2357,7 +2357,7 @@ def doModifyResourceScheduler(args, parsed_globals):
2357
2357
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2358
2358
 
2359
2359
 
2360
- def doDescribeNodeResourceConfigFast(args, parsed_globals):
2360
+ def doModifySLInstanceBasic(args, parsed_globals):
2361
2361
  g_param = parse_global_arg(parsed_globals)
2362
2362
 
2363
2363
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2386,11 +2386,11 @@ def doDescribeNodeResourceConfigFast(args, parsed_globals):
2386
2386
  client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
2387
2387
  client._sdkVersion += ("_CLI_" + __version__)
2388
2388
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2389
- model = models.DescribeNodeResourceConfigFastRequest()
2389
+ model = models.ModifySLInstanceBasicRequest()
2390
2390
  model.from_json_string(json.dumps(args))
2391
2391
  start_time = time.time()
2392
2392
  while True:
2393
- rsp = client.DescribeNodeResourceConfigFast(model)
2393
+ rsp = client.ModifySLInstanceBasic(model)
2394
2394
  result = rsp.to_json_string()
2395
2395
  try:
2396
2396
  json_obj = json.loads(result)
@@ -3293,6 +3293,58 @@ def doDescribeNodeDataDisks(args, parsed_globals):
3293
3293
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3294
3294
 
3295
3295
 
3296
+ def doDescribeNodeResourceConfigFast(args, parsed_globals):
3297
+ g_param = parse_global_arg(parsed_globals)
3298
+
3299
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3300
+ cred = credential.CVMRoleCredential()
3301
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3302
+ cred = credential.STSAssumeRoleCredential(
3303
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3304
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3305
+ )
3306
+ 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):
3307
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3308
+ else:
3309
+ cred = credential.Credential(
3310
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3311
+ )
3312
+ http_profile = HttpProfile(
3313
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3314
+ reqMethod="POST",
3315
+ endpoint=g_param[OptionsDefine.Endpoint],
3316
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3317
+ )
3318
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3319
+ if g_param[OptionsDefine.Language]:
3320
+ profile.language = g_param[OptionsDefine.Language]
3321
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3322
+ client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
3323
+ client._sdkVersion += ("_CLI_" + __version__)
3324
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3325
+ model = models.DescribeNodeResourceConfigFastRequest()
3326
+ model.from_json_string(json.dumps(args))
3327
+ start_time = time.time()
3328
+ while True:
3329
+ rsp = client.DescribeNodeResourceConfigFast(model)
3330
+ result = rsp.to_json_string()
3331
+ try:
3332
+ json_obj = json.loads(result)
3333
+ except TypeError as e:
3334
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3335
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3336
+ break
3337
+ cur_time = time.time()
3338
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3339
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3340
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3341
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3342
+ else:
3343
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3344
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3345
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
+
3347
+
3296
3348
  def doDescribeAutoScaleStrategies(args, parsed_globals):
3297
3349
  g_param = parse_global_arg(parsed_globals)
3298
3350
 
@@ -4077,7 +4129,7 @@ ACTION_MAP = {
4077
4129
  "DescribeInstanceRenewNodes": doDescribeInstanceRenewNodes,
4078
4130
  "DescribeHDFSStorageInfo": doDescribeHDFSStorageInfo,
4079
4131
  "ModifyResourceScheduler": doModifyResourceScheduler,
4080
- "DescribeNodeResourceConfigFast": doDescribeNodeResourceConfigFast,
4132
+ "ModifySLInstanceBasic": doModifySLInstanceBasic,
4081
4133
  "DescribeResourceScheduleDiffDetail": doDescribeResourceScheduleDiffDetail,
4082
4134
  "SyncPodState": doSyncPodState,
4083
4135
  "DescribeSparkQueries": doDescribeSparkQueries,
@@ -4095,6 +4147,7 @@ ACTION_MAP = {
4095
4147
  "TerminateInstance": doTerminateInstance,
4096
4148
  "ModifySLInstance": doModifySLInstance,
4097
4149
  "DescribeNodeDataDisks": doDescribeNodeDataDisks,
4150
+ "DescribeNodeResourceConfigFast": doDescribeNodeResourceConfigFast,
4098
4151
  "DescribeAutoScaleStrategies": doDescribeAutoScaleStrategies,
4099
4152
  "DescribeGlobalConfig": doDescribeGlobalConfig,
4100
4153
  "DescribeAutoScaleGroupGlobalConf": doDescribeAutoScaleGroupGlobalConf,
@@ -434,6 +434,13 @@
434
434
  "output": "ModifySLInstanceResponse",
435
435
  "status": "online"
436
436
  },
437
+ "ModifySLInstanceBasic": {
438
+ "document": "serverless hbase修改实例名称",
439
+ "input": "ModifySLInstanceBasicRequest",
440
+ "name": "Serverless HBase修改实例名称",
441
+ "output": "ModifySLInstanceBasicResponse",
442
+ "status": "online"
443
+ },
437
444
  "ModifyUserManagerPwd": {
438
445
  "document": "修改用户密码(用户管理)",
439
446
  "input": "ModifyUserManagerPwdRequest",
@@ -4646,30 +4653,30 @@
4646
4653
  {
4647
4654
  "disabled": false,
4648
4655
  "document": "后付费配额列表\n注意:此字段可能返回 null,表示取不到有效值。",
4649
- "example": "[]",
4656
+ "example": "",
4650
4657
  "member": "QuotaEntity",
4651
4658
  "name": "PostPaidQuotaSet",
4652
- "required": true,
4659
+ "output_required": true,
4653
4660
  "type": "list",
4654
4661
  "value_allowed_null": true
4655
4662
  },
4656
4663
  {
4657
4664
  "disabled": false,
4658
4665
  "document": "竞价实例配额列表\n注意:此字段可能返回 null,表示取不到有效值。",
4659
- "example": "[]",
4666
+ "example": "",
4660
4667
  "member": "QuotaEntity",
4661
4668
  "name": "SpotPaidQuotaSet",
4662
- "required": true,
4669
+ "output_required": true,
4663
4670
  "type": "list",
4664
4671
  "value_allowed_null": true
4665
4672
  },
4666
4673
  {
4667
4674
  "disabled": false,
4668
4675
  "document": "eks配额\n注意:此字段可能返回 null,表示取不到有效值。",
4669
- "example": "[]",
4676
+ "example": "",
4670
4677
  "member": "PodSaleSpec",
4671
4678
  "name": "EksQuotaSet",
4672
- "required": true,
4679
+ "output_required": true,
4673
4680
  "type": "list",
4674
4681
  "value_allowed_null": true
4675
4682
  },
@@ -11689,6 +11696,42 @@
11689
11696
  ],
11690
11697
  "type": "object"
11691
11698
  },
11699
+ "ModifySLInstanceBasicRequest": {
11700
+ "document": "ModifySLInstanceBasic请求参数结构体",
11701
+ "members": [
11702
+ {
11703
+ "disabled": false,
11704
+ "document": "集群实例ID",
11705
+ "example": "无",
11706
+ "member": "string",
11707
+ "name": "InstanceId",
11708
+ "required": true,
11709
+ "type": "string"
11710
+ },
11711
+ {
11712
+ "disabled": false,
11713
+ "document": "实例名称",
11714
+ "example": "无",
11715
+ "member": "string",
11716
+ "name": "ClusterName",
11717
+ "required": true,
11718
+ "type": "string"
11719
+ }
11720
+ ],
11721
+ "type": "object"
11722
+ },
11723
+ "ModifySLInstanceBasicResponse": {
11724
+ "document": "ModifySLInstanceBasic返回参数结构体",
11725
+ "members": [
11726
+ {
11727
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11728
+ "member": "string",
11729
+ "name": "RequestId",
11730
+ "type": "string"
11731
+ }
11732
+ ],
11733
+ "type": "object"
11734
+ },
11692
11735
  "ModifySLInstanceRequest": {
11693
11736
  "document": "ModifySLInstance请求参数结构体",
11694
11737
  "members": [
@@ -496,6 +496,14 @@
496
496
  "title": "Serverless HBase变配实例"
497
497
  }
498
498
  ],
499
+ "ModifySLInstanceBasic": [
500
+ {
501
+ "document": "serverless hbase修改实例名称",
502
+ "input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifySLInstanceBasic\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-aiggb3ig\",\n \"ClusterName\": \"test-haoyu2\"\n}",
503
+ "output": "{\n \"Response\": {\n \"RequestId\": \"0d54ddd0-3456-482b-aa5b-408a77534b79\"\n }\n}",
504
+ "title": "serverless hbase修改实例名称"
505
+ }
506
+ ],
499
507
  "ModifyUserManagerPwd": [
500
508
  {
501
509
  "document": "test",
@@ -849,6 +849,58 @@ def doCreateFlowByFiles(args, parsed_globals):
849
849
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
850
850
 
851
851
 
852
+ def doCreateIntegrationSubOrganizationActiveRecord(args, parsed_globals):
853
+ g_param = parse_global_arg(parsed_globals)
854
+
855
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
856
+ cred = credential.CVMRoleCredential()
857
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
858
+ cred = credential.STSAssumeRoleCredential(
859
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
860
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
861
+ )
862
+ 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):
863
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
864
+ else:
865
+ cred = credential.Credential(
866
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
867
+ )
868
+ http_profile = HttpProfile(
869
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
870
+ reqMethod="POST",
871
+ endpoint=g_param[OptionsDefine.Endpoint],
872
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
873
+ )
874
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
875
+ if g_param[OptionsDefine.Language]:
876
+ profile.language = g_param[OptionsDefine.Language]
877
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
878
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
879
+ client._sdkVersion += ("_CLI_" + __version__)
880
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
881
+ model = models.CreateIntegrationSubOrganizationActiveRecordRequest()
882
+ model.from_json_string(json.dumps(args))
883
+ start_time = time.time()
884
+ while True:
885
+ rsp = client.CreateIntegrationSubOrganizationActiveRecord(model)
886
+ result = rsp.to_json_string()
887
+ try:
888
+ json_obj = json.loads(result)
889
+ except TypeError as e:
890
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
891
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
892
+ break
893
+ cur_time = time.time()
894
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
895
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
896
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
897
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
898
+ else:
899
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
900
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
901
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
902
+
903
+
852
904
  def doDescribeIntegrationRoles(args, parsed_globals):
853
905
  g_param = parse_global_arg(parsed_globals)
854
906
 
@@ -3553,7 +3605,7 @@ def doUploadFiles(args, parsed_globals):
3553
3605
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3554
3606
 
3555
3607
 
3556
- def doCreateIntegrationSubOrganizationActiveRecord(args, parsed_globals):
3608
+ def doCreateFlowForwards(args, parsed_globals):
3557
3609
  g_param = parse_global_arg(parsed_globals)
3558
3610
 
3559
3611
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3582,11 +3634,11 @@ def doCreateIntegrationSubOrganizationActiveRecord(args, parsed_globals):
3582
3634
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
3583
3635
  client._sdkVersion += ("_CLI_" + __version__)
3584
3636
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3585
- model = models.CreateIntegrationSubOrganizationActiveRecordRequest()
3637
+ model = models.CreateFlowForwardsRequest()
3586
3638
  model.from_json_string(json.dumps(args))
3587
3639
  start_time = time.time()
3588
3640
  while True:
3589
- rsp = client.CreateIntegrationSubOrganizationActiveRecord(model)
3641
+ rsp = client.CreateFlowForwards(model)
3590
3642
  result = rsp.to_json_string()
3591
3643
  try:
3592
3644
  json_obj = json.loads(result)
@@ -5244,6 +5296,7 @@ ACTION_MAP = {
5244
5296
  "VerifyDigitFile": doVerifyDigitFile,
5245
5297
  "CreatePartnerAutoSignAuthUrl": doCreatePartnerAutoSignAuthUrl,
5246
5298
  "CreateFlowByFiles": doCreateFlowByFiles,
5299
+ "CreateIntegrationSubOrganizationActiveRecord": doCreateIntegrationSubOrganizationActiveRecord,
5247
5300
  "DescribeIntegrationRoles": doDescribeIntegrationRoles,
5248
5301
  "DescribeIntegrationEmployees": doDescribeIntegrationEmployees,
5249
5302
  "CreatePersonAuthCertificateImage": doCreatePersonAuthCertificateImage,
@@ -5296,7 +5349,7 @@ ACTION_MAP = {
5296
5349
  "CreateConvertTaskApi": doCreateConvertTaskApi,
5297
5350
  "CreateOrganizationAuthUrl": doCreateOrganizationAuthUrl,
5298
5351
  "UploadFiles": doUploadFiles,
5299
- "CreateIntegrationSubOrganizationActiveRecord": doCreateIntegrationSubOrganizationActiveRecord,
5352
+ "CreateFlowForwards": doCreateFlowForwards,
5300
5353
  "DescribeFlowComponents": doDescribeFlowComponents,
5301
5354
  "CreateWebThemeConfig": doCreateWebThemeConfig,
5302
5355
  "CreateDynamicFlowApprover": doCreateDynamicFlowApprover,