tccli 3.0.1064.1__py2.py3-none-any.whl → 3.0.1067.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 (83) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/ccc/v20200210/AbortPredictiveDialingCampaign.md +21 -0
  3. tccli/examples/ccc/v20200210/CreatePredictiveDialingCampaign.md +33 -0
  4. tccli/examples/ccc/v20200210/DeletePredictiveDialingCampaign.md +21 -0
  5. tccli/examples/ccc/v20200210/DescribePredictiveDialingCampaign.md +32 -0
  6. tccli/examples/ccc/v20200210/DescribePredictiveDialingCampaigns.md +55 -0
  7. tccli/examples/ccc/v20200210/DescribePredictiveDialingSessions.md +29 -0
  8. tccli/examples/ccc/v20200210/PausePredictiveDialingCampaign.md +21 -0
  9. tccli/examples/ccc/v20200210/ResumePredictiveDialingCampaign.md +21 -0
  10. tccli/examples/ccc/v20200210/UpdatePredictiveDialingCampaign.md +33 -0
  11. tccli/examples/cfw/v20190904/CreateBlockIgnoreRuleNew.md +25 -0
  12. tccli/examples/cfw/v20190904/DeleteBlockIgnoreRuleNew.md +23 -0
  13. tccli/examples/cfw/v20190904/ModifyBlockIgnoreRuleNew.md +24 -0
  14. tccli/examples/cls/v20201016/DescribeConfigMachineGroups.md +1 -0
  15. tccli/examples/cls/v20201016/DescribeMachineGroups.md +1 -0
  16. tccli/examples/csip/v20221121/DescribeTopAttackInfo.md +26 -0
  17. tccli/examples/ecm/v20190719/ModifyPrivateIpAddressesAttribute.md +1 -1
  18. tccli/examples/mna/v20210119/AddDevice.md +1 -1
  19. tccli/examples/mna/v20210119/GetMultiFlowStatistic.md +7 -1
  20. tccli/examples/mna/v20210119/GetNetMonitor.md +7 -49
  21. tccli/examples/mna/v20210119/GetStatisticData.md +5 -3
  22. tccli/examples/omics/v20221128/CreateVolume.md +25 -0
  23. tccli/examples/omics/v20221128/DeleteVolume.md +20 -0
  24. tccli/examples/omics/v20221128/DeleteVolumeData.md +21 -0
  25. tccli/examples/omics/v20221128/DescribeVolumes.md +37 -0
  26. tccli/examples/omics/v20221128/ModifyVolume.md +21 -0
  27. tccli/examples/postgres/v20170312/ModifyDBInstanceSpec.md +1 -0
  28. tccli/examples/tse/v20201207/CreateGovernanceInstances.md +32 -0
  29. tccli/examples/tse/v20201207/DeleteGovernanceInstances.md +35 -0
  30. tccli/examples/tse/v20201207/DescribeGovernanceInstances.md +56 -0
  31. tccli/examples/tse/v20201207/ModifyGovernanceInstances.md +35 -0
  32. tccli/examples/vod/v20180717/CreateDomainVerifyRecord.md +3 -1
  33. tccli/examples/vod/v20180717/DescribeDefaultDistributionConfig.md +22 -0
  34. tccli/examples/vod/v20180717/ModifyDefaultDistributionConfig.md +21 -0
  35. tccli/examples/waf/v20180125/CreateDeals.md +42 -0
  36. tccli/examples/wedata/v20210820/BatchStartIntegrationTasks.md +10 -7
  37. tccli/examples/wedata/v20210820/BatchStopIntegrationTasks.md +37 -6
  38. tccli/services/ccc/ccc_client.py +493 -16
  39. tccli/services/ccc/v20200210/api.json +927 -42
  40. tccli/services/ccc/v20200210/examples.json +72 -0
  41. tccli/services/cdb/v20170320/api.json +1 -1
  42. tccli/services/cfw/cfw_client.py +171 -12
  43. tccli/services/cfw/v20190904/api.json +258 -2
  44. tccli/services/cfw/v20190904/examples.json +24 -0
  45. tccli/services/ckafka/v20190819/api.json +17 -17
  46. tccli/services/cls/v20201016/api.json +45 -17
  47. tccli/services/cls/v20201016/examples.json +2 -2
  48. tccli/services/csip/csip_client.py +57 -4
  49. tccli/services/csip/v20221121/api.json +70 -0
  50. tccli/services/csip/v20221121/examples.json +8 -0
  51. tccli/services/cynosdb/v20190107/api.json +3 -3
  52. tccli/services/ecm/v20190719/api.json +3 -3
  53. tccli/services/ecm/v20190719/examples.json +1 -1
  54. tccli/services/ess/v20201111/api.json +3 -3
  55. tccli/services/essbasic/v20210526/api.json +5 -5
  56. tccli/services/iotvideo/v20211125/api.json +1 -1
  57. tccli/services/lighthouse/v20200324/api.json +1 -1
  58. tccli/services/mna/v20210119/api.json +144 -9
  59. tccli/services/mna/v20210119/examples.json +6 -6
  60. tccli/services/monitor/v20180724/api.json +20 -0
  61. tccli/services/omics/omics_client.py +277 -12
  62. tccli/services/omics/v20221128/api.json +425 -0
  63. tccli/services/omics/v20221128/examples.json +40 -0
  64. tccli/services/postgres/v20170312/api.json +27 -0
  65. tccli/services/postgres/v20170312/examples.json +1 -1
  66. tccli/services/trp/v20210515/api.json +18 -0
  67. tccli/services/trtc/v20190722/api.json +10 -1
  68. tccli/services/tse/tse_client.py +220 -8
  69. tccli/services/tse/v20201207/api.json +779 -42
  70. tccli/services/tse/v20201207/examples.json +32 -0
  71. tccli/services/vod/v20180717/api.json +146 -1
  72. tccli/services/vod/v20180717/examples.json +17 -1
  73. tccli/services/vod/vod_client.py +106 -0
  74. tccli/services/waf/v20180125/api.json +256 -1
  75. tccli/services/waf/v20180125/examples.json +8 -0
  76. tccli/services/waf/waf_client.py +57 -4
  77. tccli/services/wedata/v20210820/api.json +140 -15
  78. tccli/services/wedata/v20210820/examples.json +10 -4
  79. {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/METADATA +2 -2
  80. {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/RECORD +83 -58
  81. {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/WHEEL +0 -0
  82. {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/entry_points.txt +0 -0
  83. {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/license_files/LICENSE +0 -0
@@ -693,7 +693,7 @@ def doModifyUpstreamNodeStatus(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
- def doBindAutoScalerResourceStrategyToGroups(args, parsed_globals):
696
+ def doDeleteCloudNativeAPIGatewayPublicNetwork(args, parsed_globals):
697
697
  g_param = parse_global_arg(parsed_globals)
698
698
 
699
699
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -722,11 +722,11 @@ def doBindAutoScalerResourceStrategyToGroups(args, parsed_globals):
722
722
  client = mod.TseClient(cred, g_param[OptionsDefine.Region], profile)
723
723
  client._sdkVersion += ("_CLI_" + __version__)
724
724
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
- model = models.BindAutoScalerResourceStrategyToGroupsRequest()
725
+ model = models.DeleteCloudNativeAPIGatewayPublicNetworkRequest()
726
726
  model.from_json_string(json.dumps(args))
727
727
  start_time = time.time()
728
728
  while True:
729
- rsp = client.BindAutoScalerResourceStrategyToGroups(model)
729
+ rsp = client.DeleteCloudNativeAPIGatewayPublicNetwork(model)
730
730
  result = rsp.to_json_string()
731
731
  try:
732
732
  json_obj = json.loads(result)
@@ -797,7 +797,7 @@ def doDeleteWafDomains(args, parsed_globals):
797
797
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
798
798
 
799
799
 
800
- def doDeleteCloudNativeAPIGatewayPublicNetwork(args, parsed_globals):
800
+ def doBindAutoScalerResourceStrategyToGroups(args, parsed_globals):
801
801
  g_param = parse_global_arg(parsed_globals)
802
802
 
803
803
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -826,11 +826,11 @@ def doDeleteCloudNativeAPIGatewayPublicNetwork(args, parsed_globals):
826
826
  client = mod.TseClient(cred, g_param[OptionsDefine.Region], profile)
827
827
  client._sdkVersion += ("_CLI_" + __version__)
828
828
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
829
- model = models.DeleteCloudNativeAPIGatewayPublicNetworkRequest()
829
+ model = models.BindAutoScalerResourceStrategyToGroupsRequest()
830
830
  model.from_json_string(json.dumps(args))
831
831
  start_time = time.time()
832
832
  while True:
833
- rsp = client.DeleteCloudNativeAPIGatewayPublicNetwork(model)
833
+ rsp = client.BindAutoScalerResourceStrategyToGroups(model)
834
834
  result = rsp.to_json_string()
835
835
  try:
836
836
  json_obj = json.loads(result)
@@ -2045,6 +2045,58 @@ def doDescribeCloudNativeAPIGatewayConfig(args, parsed_globals):
2045
2045
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2046
2046
 
2047
2047
 
2048
+ def doDeleteGovernanceInstances(args, parsed_globals):
2049
+ g_param = parse_global_arg(parsed_globals)
2050
+
2051
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2052
+ cred = credential.CVMRoleCredential()
2053
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2054
+ cred = credential.STSAssumeRoleCredential(
2055
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2056
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2057
+ )
2058
+ 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):
2059
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2060
+ else:
2061
+ cred = credential.Credential(
2062
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2063
+ )
2064
+ http_profile = HttpProfile(
2065
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2066
+ reqMethod="POST",
2067
+ endpoint=g_param[OptionsDefine.Endpoint],
2068
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2069
+ )
2070
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2071
+ if g_param[OptionsDefine.Language]:
2072
+ profile.language = g_param[OptionsDefine.Language]
2073
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2074
+ client = mod.TseClient(cred, g_param[OptionsDefine.Region], profile)
2075
+ client._sdkVersion += ("_CLI_" + __version__)
2076
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2077
+ model = models.DeleteGovernanceInstancesRequest()
2078
+ model.from_json_string(json.dumps(args))
2079
+ start_time = time.time()
2080
+ while True:
2081
+ rsp = client.DeleteGovernanceInstances(model)
2082
+ result = rsp.to_json_string()
2083
+ try:
2084
+ json_obj = json.loads(result)
2085
+ except TypeError as e:
2086
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2087
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2088
+ break
2089
+ cur_time = time.time()
2090
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2091
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2092
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2093
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2094
+ else:
2095
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2096
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2097
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2098
+
2099
+
2048
2100
  def doDescribeWafProtection(args, parsed_globals):
2049
2101
  g_param = parse_global_arg(parsed_globals)
2050
2102
 
@@ -3137,6 +3189,58 @@ def doUpdateCloudNativeAPIGatewayCertificateInfo(args, parsed_globals):
3137
3189
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3138
3190
 
3139
3191
 
3192
+ def doCreateGovernanceInstances(args, parsed_globals):
3193
+ g_param = parse_global_arg(parsed_globals)
3194
+
3195
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3196
+ cred = credential.CVMRoleCredential()
3197
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3198
+ cred = credential.STSAssumeRoleCredential(
3199
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3200
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3201
+ )
3202
+ 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):
3203
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3204
+ else:
3205
+ cred = credential.Credential(
3206
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3207
+ )
3208
+ http_profile = HttpProfile(
3209
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3210
+ reqMethod="POST",
3211
+ endpoint=g_param[OptionsDefine.Endpoint],
3212
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3213
+ )
3214
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3215
+ if g_param[OptionsDefine.Language]:
3216
+ profile.language = g_param[OptionsDefine.Language]
3217
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3218
+ client = mod.TseClient(cred, g_param[OptionsDefine.Region], profile)
3219
+ client._sdkVersion += ("_CLI_" + __version__)
3220
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3221
+ model = models.CreateGovernanceInstancesRequest()
3222
+ model.from_json_string(json.dumps(args))
3223
+ start_time = time.time()
3224
+ while True:
3225
+ rsp = client.CreateGovernanceInstances(model)
3226
+ result = rsp.to_json_string()
3227
+ try:
3228
+ json_obj = json.loads(result)
3229
+ except TypeError as e:
3230
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3231
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3232
+ break
3233
+ cur_time = time.time()
3234
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3235
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3236
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3237
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3238
+ else:
3239
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3240
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3241
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3242
+
3243
+
3140
3244
  def doDescribePublicNetwork(args, parsed_globals):
3141
3245
  g_param = parse_global_arg(parsed_globals)
3142
3246
 
@@ -3501,6 +3605,58 @@ def doDescribeCloudNativeAPIGatewayCertificateDetails(args, parsed_globals):
3501
3605
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3502
3606
 
3503
3607
 
3608
+ def doModifyGovernanceInstances(args, parsed_globals):
3609
+ g_param = parse_global_arg(parsed_globals)
3610
+
3611
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3612
+ cred = credential.CVMRoleCredential()
3613
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3614
+ cred = credential.STSAssumeRoleCredential(
3615
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3616
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3617
+ )
3618
+ 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):
3619
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3620
+ else:
3621
+ cred = credential.Credential(
3622
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3623
+ )
3624
+ http_profile = HttpProfile(
3625
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3626
+ reqMethod="POST",
3627
+ endpoint=g_param[OptionsDefine.Endpoint],
3628
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3629
+ )
3630
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3631
+ if g_param[OptionsDefine.Language]:
3632
+ profile.language = g_param[OptionsDefine.Language]
3633
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3634
+ client = mod.TseClient(cred, g_param[OptionsDefine.Region], profile)
3635
+ client._sdkVersion += ("_CLI_" + __version__)
3636
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3637
+ model = models.ModifyGovernanceInstancesRequest()
3638
+ model.from_json_string(json.dumps(args))
3639
+ start_time = time.time()
3640
+ while True:
3641
+ rsp = client.ModifyGovernanceInstances(model)
3642
+ result = rsp.to_json_string()
3643
+ try:
3644
+ json_obj = json.loads(result)
3645
+ except TypeError as e:
3646
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3647
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3648
+ break
3649
+ cur_time = time.time()
3650
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3651
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3652
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3653
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3654
+ else:
3655
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3656
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3657
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3658
+
3659
+
3504
3660
  def doModifyCloudNativeAPIGatewayRoute(args, parsed_globals):
3505
3661
  g_param = parse_global_arg(parsed_globals)
3506
3662
 
@@ -3761,6 +3917,58 @@ def doCreateNativeGatewayServerGroup(args, parsed_globals):
3761
3917
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3762
3918
 
3763
3919
 
3920
+ def doDescribeGovernanceInstances(args, parsed_globals):
3921
+ g_param = parse_global_arg(parsed_globals)
3922
+
3923
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3924
+ cred = credential.CVMRoleCredential()
3925
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3926
+ cred = credential.STSAssumeRoleCredential(
3927
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3928
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3929
+ )
3930
+ 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):
3931
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3932
+ else:
3933
+ cred = credential.Credential(
3934
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3935
+ )
3936
+ http_profile = HttpProfile(
3937
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3938
+ reqMethod="POST",
3939
+ endpoint=g_param[OptionsDefine.Endpoint],
3940
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3941
+ )
3942
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3943
+ if g_param[OptionsDefine.Language]:
3944
+ profile.language = g_param[OptionsDefine.Language]
3945
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3946
+ client = mod.TseClient(cred, g_param[OptionsDefine.Region], profile)
3947
+ client._sdkVersion += ("_CLI_" + __version__)
3948
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3949
+ model = models.DescribeGovernanceInstancesRequest()
3950
+ model.from_json_string(json.dumps(args))
3951
+ start_time = time.time()
3952
+ while True:
3953
+ rsp = client.DescribeGovernanceInstances(model)
3954
+ result = rsp.to_json_string()
3955
+ try:
3956
+ json_obj = json.loads(result)
3957
+ except TypeError as e:
3958
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3959
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3960
+ break
3961
+ cur_time = time.time()
3962
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3963
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3964
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3965
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3966
+ else:
3967
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3968
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3969
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3970
+
3971
+
3764
3972
  def doModifyNetworkAccessStrategy(args, parsed_globals):
3765
3973
  g_param = parse_global_arg(parsed_globals)
3766
3974
 
@@ -3837,9 +4045,9 @@ ACTION_MAP = {
3837
4045
  "ModifyCloudNativeAPIGatewayServiceRateLimit": doModifyCloudNativeAPIGatewayServiceRateLimit,
3838
4046
  "CreateEngine": doCreateEngine,
3839
4047
  "ModifyUpstreamNodeStatus": doModifyUpstreamNodeStatus,
3840
- "BindAutoScalerResourceStrategyToGroups": doBindAutoScalerResourceStrategyToGroups,
3841
- "DeleteWafDomains": doDeleteWafDomains,
3842
4048
  "DeleteCloudNativeAPIGatewayPublicNetwork": doDeleteCloudNativeAPIGatewayPublicNetwork,
4049
+ "DeleteWafDomains": doDeleteWafDomains,
4050
+ "BindAutoScalerResourceStrategyToGroups": doBindAutoScalerResourceStrategyToGroups,
3843
4051
  "DeleteCloudNativeAPIGatewayService": doDeleteCloudNativeAPIGatewayService,
3844
4052
  "DescribeCloudNativeAPIGatewayServiceRateLimit": doDescribeCloudNativeAPIGatewayServiceRateLimit,
3845
4053
  "CreateCloudNativeAPIGatewayServiceRateLimit": doCreateCloudNativeAPIGatewayServiceRateLimit,
@@ -3863,6 +4071,7 @@ ACTION_MAP = {
3863
4071
  "CreateCloudNativeAPIGateway": doCreateCloudNativeAPIGateway,
3864
4072
  "DescribeSREInstances": doDescribeSREInstances,
3865
4073
  "DescribeCloudNativeAPIGatewayConfig": doDescribeCloudNativeAPIGatewayConfig,
4074
+ "DeleteGovernanceInstances": doDeleteGovernanceInstances,
3866
4075
  "DescribeWafProtection": doDescribeWafProtection,
3867
4076
  "DescribeCloudNativeAPIGatewayRouteRateLimit": doDescribeCloudNativeAPIGatewayRouteRateLimit,
3868
4077
  "ModifyCloudNativeAPIGatewayService": doModifyCloudNativeAPIGatewayService,
@@ -3884,6 +4093,7 @@ ACTION_MAP = {
3884
4093
  "DeleteCloudNativeAPIGatewayCertificate": doDeleteCloudNativeAPIGatewayCertificate,
3885
4094
  "CreateCloudNativeAPIGatewayRoute": doCreateCloudNativeAPIGatewayRoute,
3886
4095
  "UpdateCloudNativeAPIGatewayCertificateInfo": doUpdateCloudNativeAPIGatewayCertificateInfo,
4096
+ "CreateGovernanceInstances": doCreateGovernanceInstances,
3887
4097
  "DescribePublicNetwork": doDescribePublicNetwork,
3888
4098
  "DescribeAutoScalerResourceStrategies": doDescribeAutoScalerResourceStrategies,
3889
4099
  "CreateAutoScalerResourceStrategy": doCreateAutoScalerResourceStrategy,
@@ -3891,11 +4101,13 @@ ACTION_MAP = {
3891
4101
  "DescribeNativeGatewayServerGroups": doDescribeNativeGatewayServerGroups,
3892
4102
  "DescribeNacosReplicas": doDescribeNacosReplicas,
3893
4103
  "DescribeCloudNativeAPIGatewayCertificateDetails": doDescribeCloudNativeAPIGatewayCertificateDetails,
4104
+ "ModifyGovernanceInstances": doModifyGovernanceInstances,
3894
4105
  "ModifyCloudNativeAPIGatewayRoute": doModifyCloudNativeAPIGatewayRoute,
3895
4106
  "DeleteNativeGatewayServerGroup": doDeleteNativeGatewayServerGroup,
3896
4107
  "DeleteAutoScalerResourceStrategy": doDeleteAutoScalerResourceStrategy,
3897
4108
  "DescribeCloudNativeAPIGatewayCanaryRules": doDescribeCloudNativeAPIGatewayCanaryRules,
3898
4109
  "CreateNativeGatewayServerGroup": doCreateNativeGatewayServerGroup,
4110
+ "DescribeGovernanceInstances": doDescribeGovernanceInstances,
3899
4111
  "ModifyNetworkAccessStrategy": doModifyNetworkAccessStrategy,
3900
4112
 
3901
4113
  }