tccli 3.0.908.1__py2.py3-none-any.whl → 3.0.910.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 (118) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdn/v20180606/DescribeHttpsPackages.md +19 -18
  3. tccli/examples/cdn/v20180606/DescribeTrafficPackages.md +16 -14
  4. tccli/examples/cfs/v20190719/DescribeCfsFileSystems.md +31 -31
  5. tccli/examples/cfs/v20190719/UpdateCfsPGroup.md +1 -1
  6. tccli/examples/cms/v20190321/CreateKeywordsSamples.md +10 -0
  7. tccli/examples/cms/v20190321/DeleteLibSamples.md +2 -1
  8. tccli/examples/cms/v20190321/DescribeLibSamples.md +2 -1
  9. tccli/examples/cvm/v20170312/DescribeImportImageOs.md +1 -1
  10. tccli/examples/cynosdb/v20190107/AddInstances.md +8 -8
  11. tccli/examples/cynosdb/v20190107/DescribeParamTemplates.md +2 -2
  12. tccli/examples/ecm/v20190719/AllocateIpv6AddressesBandwidth.md +25 -0
  13. tccli/examples/ecm/v20190719/AssignIpv6CidrBlock.md +23 -0
  14. tccli/examples/ecm/v20190719/AssignIpv6CidrBlocks.md +29 -0
  15. tccli/examples/ecm/v20190719/AssignIpv6SubnetCidrBlock.md +29 -0
  16. tccli/examples/ecm/v20190719/DescribeRegionIpv6Addresses.md +41 -0
  17. tccli/examples/ecm/v20190719/ModifyIpv6AddressesBandwidth.md +22 -0
  18. tccli/examples/ecm/v20190719/QueryVpcTaskResult.md +22 -0
  19. tccli/examples/ecm/v20190719/ReleaseIpv6AddressesBandwidth.md +22 -0
  20. tccli/examples/ecm/v20190719/UnassignIpv6SubnetCidrBlock.md +23 -0
  21. tccli/examples/emr/v20190103/InquiryPriceRenewInstance.md +32 -1
  22. tccli/examples/es/v20180416/ModifyEsVipSecurityGroup.md +21 -0
  23. tccli/examples/ess/v20201111/CreateFlowGroupByFiles.md +118 -0
  24. tccli/examples/ess/v20201111/CreateFlowGroupByTemplates.md +61 -0
  25. tccli/examples/ess/v20201111/CreateFlowReminds.md +3 -3
  26. tccli/examples/ess/v20201111/CreateFlowSignReview.md +2 -2
  27. tccli/examples/essbasic/v20210526/ChannelCreateFlowGroupByTemplates.md +49 -0
  28. tccli/examples/lcic/v20220817/DescribeDocument.md +52 -16
  29. tccli/examples/live/v20180801/DeleteLiveTranscodeTemplate.md +1 -1
  30. tccli/examples/monitor/v20180724/DeletePrometheusScrapeJobs.md +4 -4
  31. tccli/examples/monitor/v20180724/DescribeExporterIntegrations.md +5 -5
  32. tccli/examples/monitor/v20180724/DescribePrometheusAgents.md +10 -10
  33. tccli/examples/monitor/v20180724/DescribePrometheusScrapeJobs.md +8 -8
  34. tccli/examples/ocr/v20181119/DriverLicenseOCR.md +2 -2
  35. tccli/examples/smh/v20210712/DeleteLibrary.md +1 -1
  36. tccli/examples/sqlserver/v20180328/InquiryPriceRenewDBInstance.md +1 -1
  37. tccli/examples/sqlserver/v20180328/InquiryPriceUpgradeDBInstance.md +1 -1
  38. tccli/examples/ssl/v20191205/DescribeDeployedResources.md +5 -5
  39. tccli/examples/tchd/v20230306/DescribeEvents.md +35 -0
  40. tccli/examples/tdmq/v20200217/CreateTopic.md +1 -1
  41. tccli/examples/vod/v20180717/CreateRebuildMediaTemplate.md +2 -2
  42. tccli/examples/vod/v20180717/DeleteRebuildMediaTemplate.md +2 -2
  43. tccli/examples/vod/v20180717/DescribeRebuildMediaTemplates.md +2 -2
  44. tccli/examples/vod/v20180717/ModifyRebuildMediaTemplate.md +2 -2
  45. tccli/examples/vod/v20180717/RebuildMedia.md +2 -2
  46. tccli/examples/vod/v20180717/RebuildMediaByTemplate.md +2 -2
  47. tccli/examples/vpc/v20170312/DescribeSecurityGroups.md +1 -1
  48. tccli/examples/wav/v20210129/QueryClueInfoList.md +1 -0
  49. tccli/examples/wedata/v20210820/DescribeColumnLineage.md +77 -0
  50. tccli/examples/wedata/v20210820/DescribeTableLineage.md +79 -0
  51. tccli/services/__init__.py +3 -0
  52. tccli/services/autoscaling/v20180419/api.json +1 -1
  53. tccli/services/cdn/v20180606/api.json +49 -67
  54. tccli/services/cdn/v20180606/examples.json +3 -3
  55. tccli/services/cfs/v20190719/api.json +65 -26
  56. tccli/services/cfs/v20190719/examples.json +3 -3
  57. tccli/services/cls/v20201016/api.json +7 -2
  58. tccli/services/cms/v20190321/api.json +37 -2
  59. tccli/services/cms/v20190321/examples.json +3 -3
  60. tccli/services/cvm/v20170312/api.json +2 -0
  61. tccli/services/cvm/v20170312/examples.json +2 -2
  62. tccli/services/cynosdb/v20190107/api.json +58 -73
  63. tccli/services/cynosdb/v20190107/examples.json +3 -3
  64. tccli/services/ecm/ecm_client.py +493 -16
  65. tccli/services/ecm/v20190719/api.json +657 -26
  66. tccli/services/ecm/v20190719/examples.json +72 -0
  67. tccli/services/emr/v20190103/api.json +5 -12
  68. tccli/services/emr/v20190103/examples.json +7 -1
  69. tccli/services/es/es_client.py +65 -12
  70. tccli/services/es/v20180416/api.json +43 -0
  71. tccli/services/es/v20180416/examples.json +8 -0
  72. tccli/services/ess/ess_client.py +145 -39
  73. tccli/services/ess/v20201111/api.json +417 -41
  74. tccli/services/ess/v20201111/examples.json +19 -3
  75. tccli/services/essbasic/essbasic_client.py +53 -0
  76. tccli/services/essbasic/v20210526/api.json +105 -3
  77. tccli/services/essbasic/v20210526/examples.json +8 -0
  78. tccli/services/lcic/v20220817/api.json +27 -16
  79. tccli/services/lcic/v20220817/examples.json +10 -4
  80. tccli/services/live/v20180801/api.json +3 -3
  81. tccli/services/live/v20180801/examples.json +1 -1
  82. tccli/services/monitor/v20180724/api.json +20 -24
  83. tccli/services/monitor/v20180724/examples.json +11 -11
  84. tccli/services/ocr/v20181119/api.json +22 -5
  85. tccli/services/ocr/v20181119/examples.json +1 -1
  86. tccli/services/smh/v20210712/api.json +1 -1
  87. tccli/services/smh/v20210712/examples.json +2 -2
  88. tccli/services/sqlserver/v20180328/api.json +8 -15
  89. tccli/services/sqlserver/v20180328/examples.json +2 -2
  90. tccli/services/ssl/v20191205/api.json +1 -0
  91. tccli/services/ssl/v20191205/examples.json +2 -2
  92. tccli/services/tcb/v20180608/api.json +33 -39
  93. tccli/services/tchd/__init__.py +4 -0
  94. tccli/services/tchd/tchd_client.py +194 -0
  95. tccli/services/tchd/v20230306/api.json +167 -0
  96. tccli/services/tchd/v20230306/examples.json +13 -0
  97. tccli/services/tdmq/v20200217/api.json +7 -14
  98. tccli/services/tdmq/v20200217/examples.json +1 -1
  99. tccli/services/tke/v20180525/api.json +33 -20
  100. tccli/services/trtc/trtc_client.py +8 -61
  101. tccli/services/trtc/v20190722/api.json +0 -240
  102. tccli/services/trtc/v20190722/examples.json +0 -8
  103. tccli/services/tse/v20201207/api.json +20 -39
  104. tccli/services/tts/v20190823/api.json +1 -1
  105. tccli/services/vod/v20180717/api.json +40 -36
  106. tccli/services/vod/v20180717/examples.json +12 -12
  107. tccli/services/vpc/v20170312/api.json +21 -7
  108. tccli/services/vpc/v20170312/examples.json +1 -1
  109. tccli/services/wav/v20210129/api.json +10 -0
  110. tccli/services/wav/v20210129/examples.json +1 -1
  111. tccli/services/wedata/v20210820/api.json +1146 -211
  112. tccli/services/wedata/v20210820/examples.json +16 -0
  113. tccli/services/wedata/wedata_client.py +106 -0
  114. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/METADATA +82 -3
  115. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/RECORD +118 -98
  116. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/WHEEL +0 -0
  117. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/entry_points.txt +0 -0
  118. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/license_files/LICENSE +0 -0
@@ -485,6 +485,58 @@ def doResetRoutes(args, parsed_globals):
485
485
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
486
 
487
487
 
488
+ def doAssignIpv6CidrBlocks(args, parsed_globals):
489
+ g_param = parse_global_arg(parsed_globals)
490
+
491
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
492
+ cred = credential.CVMRoleCredential()
493
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
494
+ cred = credential.STSAssumeRoleCredential(
495
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
496
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
497
+ )
498
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
499
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
500
+ else:
501
+ cred = credential.Credential(
502
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
503
+ )
504
+ http_profile = HttpProfile(
505
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
506
+ reqMethod="POST",
507
+ endpoint=g_param[OptionsDefine.Endpoint],
508
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
509
+ )
510
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
511
+ if g_param[OptionsDefine.Language]:
512
+ profile.language = g_param[OptionsDefine.Language]
513
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
514
+ client = mod.EcmClient(cred, g_param[OptionsDefine.Region], profile)
515
+ client._sdkVersion += ("_CLI_" + __version__)
516
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
517
+ model = models.AssignIpv6CidrBlocksRequest()
518
+ model.from_json_string(json.dumps(args))
519
+ start_time = time.time()
520
+ while True:
521
+ rsp = client.AssignIpv6CidrBlocks(model)
522
+ result = rsp.to_json_string()
523
+ try:
524
+ json_obj = json.loads(result)
525
+ except TypeError as e:
526
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
527
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
528
+ break
529
+ cur_time = time.time()
530
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
531
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
532
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
533
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
534
+ else:
535
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
536
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
537
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
+
539
+
488
540
  def doDescribeSecurityGroupPolicies(args, parsed_globals):
489
541
  g_param = parse_global_arg(parsed_globals)
490
542
 
@@ -901,7 +953,7 @@ def doDescribeNode(args, parsed_globals):
901
953
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
902
954
 
903
955
 
904
- def doImportImage(args, parsed_globals):
956
+ def doAssignPrivateIpAddresses(args, parsed_globals):
905
957
  g_param = parse_global_arg(parsed_globals)
906
958
 
907
959
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -930,11 +982,11 @@ def doImportImage(args, parsed_globals):
930
982
  client = mod.EcmClient(cred, g_param[OptionsDefine.Region], profile)
931
983
  client._sdkVersion += ("_CLI_" + __version__)
932
984
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
933
- model = models.ImportImageRequest()
985
+ model = models.AssignPrivateIpAddressesRequest()
934
986
  model.from_json_string(json.dumps(args))
935
987
  start_time = time.time()
936
988
  while True:
937
- rsp = client.ImportImage(model)
989
+ rsp = client.AssignPrivateIpAddresses(model)
938
990
  result = rsp.to_json_string()
939
991
  try:
940
992
  json_obj = json.loads(result)
@@ -1837,6 +1889,58 @@ def doAttachDisks(args, parsed_globals):
1837
1889
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1838
1890
 
1839
1891
 
1892
+ def doAssignIpv6SubnetCidrBlock(args, parsed_globals):
1893
+ g_param = parse_global_arg(parsed_globals)
1894
+
1895
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1896
+ cred = credential.CVMRoleCredential()
1897
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1898
+ cred = credential.STSAssumeRoleCredential(
1899
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1900
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1901
+ )
1902
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1903
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1904
+ else:
1905
+ cred = credential.Credential(
1906
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1907
+ )
1908
+ http_profile = HttpProfile(
1909
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1910
+ reqMethod="POST",
1911
+ endpoint=g_param[OptionsDefine.Endpoint],
1912
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1913
+ )
1914
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1915
+ if g_param[OptionsDefine.Language]:
1916
+ profile.language = g_param[OptionsDefine.Language]
1917
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1918
+ client = mod.EcmClient(cred, g_param[OptionsDefine.Region], profile)
1919
+ client._sdkVersion += ("_CLI_" + __version__)
1920
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1921
+ model = models.AssignIpv6SubnetCidrBlockRequest()
1922
+ model.from_json_string(json.dumps(args))
1923
+ start_time = time.time()
1924
+ while True:
1925
+ rsp = client.AssignIpv6SubnetCidrBlock(model)
1926
+ result = rsp.to_json_string()
1927
+ try:
1928
+ json_obj = json.loads(result)
1929
+ except TypeError as e:
1930
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1931
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1932
+ break
1933
+ cur_time = time.time()
1934
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1935
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1936
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1937
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1938
+ else:
1939
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1940
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1941
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
+
1943
+
1840
1944
  def doAllocateAddresses(args, parsed_globals):
1841
1945
  g_param = parse_global_arg(parsed_globals)
1842
1946
 
@@ -2253,6 +2357,110 @@ def doModifySecurityGroupAttribute(args, parsed_globals):
2253
2357
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2254
2358
 
2255
2359
 
2360
+ def doModifyIpv6AddressesBandwidth(args, parsed_globals):
2361
+ g_param = parse_global_arg(parsed_globals)
2362
+
2363
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2364
+ cred = credential.CVMRoleCredential()
2365
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2366
+ cred = credential.STSAssumeRoleCredential(
2367
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2368
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2369
+ )
2370
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2371
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2372
+ else:
2373
+ cred = credential.Credential(
2374
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2375
+ )
2376
+ http_profile = HttpProfile(
2377
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2378
+ reqMethod="POST",
2379
+ endpoint=g_param[OptionsDefine.Endpoint],
2380
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2381
+ )
2382
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2383
+ if g_param[OptionsDefine.Language]:
2384
+ profile.language = g_param[OptionsDefine.Language]
2385
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2386
+ client = mod.EcmClient(cred, g_param[OptionsDefine.Region], profile)
2387
+ client._sdkVersion += ("_CLI_" + __version__)
2388
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2389
+ model = models.ModifyIpv6AddressesBandwidthRequest()
2390
+ model.from_json_string(json.dumps(args))
2391
+ start_time = time.time()
2392
+ while True:
2393
+ rsp = client.ModifyIpv6AddressesBandwidth(model)
2394
+ result = rsp.to_json_string()
2395
+ try:
2396
+ json_obj = json.loads(result)
2397
+ except TypeError as e:
2398
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2399
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2400
+ break
2401
+ cur_time = time.time()
2402
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2403
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2404
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2405
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2406
+ else:
2407
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2408
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2409
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2410
+
2411
+
2412
+ def doAllocateIpv6AddressesBandwidth(args, parsed_globals):
2413
+ g_param = parse_global_arg(parsed_globals)
2414
+
2415
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2416
+ cred = credential.CVMRoleCredential()
2417
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2418
+ cred = credential.STSAssumeRoleCredential(
2419
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2420
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2421
+ )
2422
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2423
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2424
+ else:
2425
+ cred = credential.Credential(
2426
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2427
+ )
2428
+ http_profile = HttpProfile(
2429
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2430
+ reqMethod="POST",
2431
+ endpoint=g_param[OptionsDefine.Endpoint],
2432
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2433
+ )
2434
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2435
+ if g_param[OptionsDefine.Language]:
2436
+ profile.language = g_param[OptionsDefine.Language]
2437
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2438
+ client = mod.EcmClient(cred, g_param[OptionsDefine.Region], profile)
2439
+ client._sdkVersion += ("_CLI_" + __version__)
2440
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2441
+ model = models.AllocateIpv6AddressesBandwidthRequest()
2442
+ model.from_json_string(json.dumps(args))
2443
+ start_time = time.time()
2444
+ while True:
2445
+ rsp = client.AllocateIpv6AddressesBandwidth(model)
2446
+ result = rsp.to_json_string()
2447
+ try:
2448
+ json_obj = json.loads(result)
2449
+ except TypeError as e:
2450
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2451
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2452
+ break
2453
+ cur_time = time.time()
2454
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2455
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2456
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2457
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2458
+ else:
2459
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2460
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2461
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2462
+
2463
+
2256
2464
  def doBatchRegisterTargets(args, parsed_globals):
2257
2465
  g_param = parse_global_arg(parsed_globals)
2258
2466
 
@@ -2773,6 +2981,58 @@ def doModifyTargetPort(args, parsed_globals):
2773
2981
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2774
2982
 
2775
2983
 
2984
+ def doDeleteImage(args, parsed_globals):
2985
+ g_param = parse_global_arg(parsed_globals)
2986
+
2987
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2988
+ cred = credential.CVMRoleCredential()
2989
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2990
+ cred = credential.STSAssumeRoleCredential(
2991
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2992
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2993
+ )
2994
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2995
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2996
+ else:
2997
+ cred = credential.Credential(
2998
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2999
+ )
3000
+ http_profile = HttpProfile(
3001
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3002
+ reqMethod="POST",
3003
+ endpoint=g_param[OptionsDefine.Endpoint],
3004
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3005
+ )
3006
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3007
+ if g_param[OptionsDefine.Language]:
3008
+ profile.language = g_param[OptionsDefine.Language]
3009
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3010
+ client = mod.EcmClient(cred, g_param[OptionsDefine.Region], profile)
3011
+ client._sdkVersion += ("_CLI_" + __version__)
3012
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3013
+ model = models.DeleteImageRequest()
3014
+ model.from_json_string(json.dumps(args))
3015
+ start_time = time.time()
3016
+ while True:
3017
+ rsp = client.DeleteImage(model)
3018
+ result = rsp.to_json_string()
3019
+ try:
3020
+ json_obj = json.loads(result)
3021
+ except TypeError as e:
3022
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3023
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3024
+ break
3025
+ cur_time = time.time()
3026
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3027
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3028
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3029
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3030
+ else:
3031
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3032
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3033
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3034
+
3035
+
2776
3036
  def doDeleteNetworkInterface(args, parsed_globals):
2777
3037
  g_param = parse_global_arg(parsed_globals)
2778
3038
 
@@ -3033,6 +3293,58 @@ def doReplaceRoutes(args, parsed_globals):
3033
3293
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3034
3294
 
3035
3295
 
3296
+ def doUnassignIpv6SubnetCidrBlock(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('-', '_')]
3305
+ )
3306
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_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.EcmClient(cred, g_param[OptionsDefine.Region], profile)
3323
+ client._sdkVersion += ("_CLI_" + __version__)
3324
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3325
+ model = models.UnassignIpv6SubnetCidrBlockRequest()
3326
+ model.from_json_string(json.dumps(args))
3327
+ start_time = time.time()
3328
+ while True:
3329
+ rsp = client.UnassignIpv6SubnetCidrBlock(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
+
3036
3348
  def doDescribeRouteConflicts(args, parsed_globals):
3037
3349
  g_param = parse_global_arg(parsed_globals)
3038
3350
 
@@ -3449,6 +3761,58 @@ def doDeleteSecurityGroupPolicies(args, parsed_globals):
3449
3761
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3450
3762
 
3451
3763
 
3764
+ def doDescribeRegionIpv6Addresses(args, parsed_globals):
3765
+ g_param = parse_global_arg(parsed_globals)
3766
+
3767
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3768
+ cred = credential.CVMRoleCredential()
3769
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3770
+ cred = credential.STSAssumeRoleCredential(
3771
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3772
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3773
+ )
3774
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3775
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3776
+ else:
3777
+ cred = credential.Credential(
3778
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3779
+ )
3780
+ http_profile = HttpProfile(
3781
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3782
+ reqMethod="POST",
3783
+ endpoint=g_param[OptionsDefine.Endpoint],
3784
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3785
+ )
3786
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3787
+ if g_param[OptionsDefine.Language]:
3788
+ profile.language = g_param[OptionsDefine.Language]
3789
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3790
+ client = mod.EcmClient(cred, g_param[OptionsDefine.Region], profile)
3791
+ client._sdkVersion += ("_CLI_" + __version__)
3792
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3793
+ model = models.DescribeRegionIpv6AddressesRequest()
3794
+ model.from_json_string(json.dumps(args))
3795
+ start_time = time.time()
3796
+ while True:
3797
+ rsp = client.DescribeRegionIpv6Addresses(model)
3798
+ result = rsp.to_json_string()
3799
+ try:
3800
+ json_obj = json.loads(result)
3801
+ except TypeError as e:
3802
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3803
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3804
+ break
3805
+ cur_time = time.time()
3806
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3807
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3808
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3809
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3810
+ else:
3811
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3812
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3813
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3814
+
3815
+
3452
3816
  def doCreateKeyPair(args, parsed_globals):
3453
3817
  g_param = parse_global_arg(parsed_globals)
3454
3818
 
@@ -5061,7 +5425,7 @@ def doDescribeHaVips(args, parsed_globals):
5061
5425
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5062
5426
 
5063
5427
 
5064
- def doAssignPrivateIpAddresses(args, parsed_globals):
5428
+ def doImportImage(args, parsed_globals):
5065
5429
  g_param = parse_global_arg(parsed_globals)
5066
5430
 
5067
5431
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5090,11 +5454,11 @@ def doAssignPrivateIpAddresses(args, parsed_globals):
5090
5454
  client = mod.EcmClient(cred, g_param[OptionsDefine.Region], profile)
5091
5455
  client._sdkVersion += ("_CLI_" + __version__)
5092
5456
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5093
- model = models.AssignPrivateIpAddressesRequest()
5457
+ model = models.ImportImageRequest()
5094
5458
  model.from_json_string(json.dumps(args))
5095
5459
  start_time = time.time()
5096
5460
  while True:
5097
- rsp = client.AssignPrivateIpAddresses(model)
5461
+ rsp = client.ImportImage(model)
5098
5462
  result = rsp.to_json_string()
5099
5463
  try:
5100
5464
  json_obj = json.loads(result)
@@ -5529,6 +5893,58 @@ def doModifyPrivateIpAddressesAttribute(args, parsed_globals):
5529
5893
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5530
5894
 
5531
5895
 
5896
+ def doAssignIpv6CidrBlock(args, parsed_globals):
5897
+ g_param = parse_global_arg(parsed_globals)
5898
+
5899
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5900
+ cred = credential.CVMRoleCredential()
5901
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5902
+ cred = credential.STSAssumeRoleCredential(
5903
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5904
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
5905
+ )
5906
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5907
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5908
+ else:
5909
+ cred = credential.Credential(
5910
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5911
+ )
5912
+ http_profile = HttpProfile(
5913
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5914
+ reqMethod="POST",
5915
+ endpoint=g_param[OptionsDefine.Endpoint],
5916
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5917
+ )
5918
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5919
+ if g_param[OptionsDefine.Language]:
5920
+ profile.language = g_param[OptionsDefine.Language]
5921
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5922
+ client = mod.EcmClient(cred, g_param[OptionsDefine.Region], profile)
5923
+ client._sdkVersion += ("_CLI_" + __version__)
5924
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5925
+ model = models.AssignIpv6CidrBlockRequest()
5926
+ model.from_json_string(json.dumps(args))
5927
+ start_time = time.time()
5928
+ while True:
5929
+ rsp = client.AssignIpv6CidrBlock(model)
5930
+ result = rsp.to_json_string()
5931
+ try:
5932
+ json_obj = json.loads(result)
5933
+ except TypeError as e:
5934
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5935
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5936
+ break
5937
+ cur_time = time.time()
5938
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5939
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5940
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5941
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5942
+ else:
5943
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5944
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5945
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5946
+
5947
+
5532
5948
  def doModifyModuleImage(args, parsed_globals):
5533
5949
  g_param = parse_global_arg(parsed_globals)
5534
5950
 
@@ -5685,6 +6101,58 @@ def doCreateModule(args, parsed_globals):
5685
6101
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5686
6102
 
5687
6103
 
6104
+ def doReleaseIpv6AddressesBandwidth(args, parsed_globals):
6105
+ g_param = parse_global_arg(parsed_globals)
6106
+
6107
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6108
+ cred = credential.CVMRoleCredential()
6109
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6110
+ cred = credential.STSAssumeRoleCredential(
6111
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6112
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
6113
+ )
6114
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6115
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6116
+ else:
6117
+ cred = credential.Credential(
6118
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6119
+ )
6120
+ http_profile = HttpProfile(
6121
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6122
+ reqMethod="POST",
6123
+ endpoint=g_param[OptionsDefine.Endpoint],
6124
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6125
+ )
6126
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6127
+ if g_param[OptionsDefine.Language]:
6128
+ profile.language = g_param[OptionsDefine.Language]
6129
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6130
+ client = mod.EcmClient(cred, g_param[OptionsDefine.Region], profile)
6131
+ client._sdkVersion += ("_CLI_" + __version__)
6132
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6133
+ model = models.ReleaseIpv6AddressesBandwidthRequest()
6134
+ model.from_json_string(json.dumps(args))
6135
+ start_time = time.time()
6136
+ while True:
6137
+ rsp = client.ReleaseIpv6AddressesBandwidth(model)
6138
+ result = rsp.to_json_string()
6139
+ try:
6140
+ json_obj = json.loads(result)
6141
+ except TypeError as e:
6142
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6143
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6144
+ break
6145
+ cur_time = time.time()
6146
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6147
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6148
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6149
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6150
+ else:
6151
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6152
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6153
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6154
+
6155
+
5688
6156
  def doEnableRoutes(args, parsed_globals):
5689
6157
  g_param = parse_global_arg(parsed_globals)
5690
6158
 
@@ -6413,7 +6881,7 @@ def doDescribeTargets(args, parsed_globals):
6413
6881
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6414
6882
 
6415
6883
 
6416
- def doDeleteImage(args, parsed_globals):
6884
+ def doModifyVpcAttribute(args, parsed_globals):
6417
6885
  g_param = parse_global_arg(parsed_globals)
6418
6886
 
6419
6887
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6442,11 +6910,11 @@ def doDeleteImage(args, parsed_globals):
6442
6910
  client = mod.EcmClient(cred, g_param[OptionsDefine.Region], profile)
6443
6911
  client._sdkVersion += ("_CLI_" + __version__)
6444
6912
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6445
- model = models.DeleteImageRequest()
6913
+ model = models.ModifyVpcAttributeRequest()
6446
6914
  model.from_json_string(json.dumps(args))
6447
6915
  start_time = time.time()
6448
6916
  while True:
6449
- rsp = client.DeleteImage(model)
6917
+ rsp = client.ModifyVpcAttribute(model)
6450
6918
  result = rsp.to_json_string()
6451
6919
  try:
6452
6920
  json_obj = json.loads(result)
@@ -6725,7 +7193,7 @@ def doCreateSecurityGroupPolicies(args, parsed_globals):
6725
7193
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6726
7194
 
6727
7195
 
6728
- def doModifyVpcAttribute(args, parsed_globals):
7196
+ def doQueryVpcTaskResult(args, parsed_globals):
6729
7197
  g_param = parse_global_arg(parsed_globals)
6730
7198
 
6731
7199
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6754,11 +7222,11 @@ def doModifyVpcAttribute(args, parsed_globals):
6754
7222
  client = mod.EcmClient(cred, g_param[OptionsDefine.Region], profile)
6755
7223
  client._sdkVersion += ("_CLI_" + __version__)
6756
7224
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6757
- model = models.ModifyVpcAttributeRequest()
7225
+ model = models.QueryVpcTaskResultRequest()
6758
7226
  model.from_json_string(json.dumps(args))
6759
7227
  start_time = time.time()
6760
7228
  while True:
6761
- rsp = client.ModifyVpcAttribute(model)
7229
+ rsp = client.QueryVpcTaskResult(model)
6762
7230
  result = rsp.to_json_string()
6763
7231
  try:
6764
7232
  json_obj = json.loads(result)
@@ -6797,6 +7265,7 @@ ACTION_MAP = {
6797
7265
  "ReplaceRouteTableAssociation": doReplaceRouteTableAssociation,
6798
7266
  "ModifyInstancesAttribute": doModifyInstancesAttribute,
6799
7267
  "ResetRoutes": doResetRoutes,
7268
+ "AssignIpv6CidrBlocks": doAssignIpv6CidrBlocks,
6800
7269
  "DescribeSecurityGroupPolicies": doDescribeSecurityGroupPolicies,
6801
7270
  "RunInstances": doRunInstances,
6802
7271
  "DescribeCustomImageTask": doDescribeCustomImageTask,
@@ -6805,7 +7274,7 @@ ACTION_MAP = {
6805
7274
  "DescribeListeners": doDescribeListeners,
6806
7275
  "CreateImage": doCreateImage,
6807
7276
  "DescribeNode": doDescribeNode,
6808
- "ImportImage": doImportImage,
7277
+ "AssignPrivateIpAddresses": doAssignPrivateIpAddresses,
6809
7278
  "BatchDeregisterTargets": doBatchDeregisterTargets,
6810
7279
  "ModifyLoadBalancerAttributes": doModifyLoadBalancerAttributes,
6811
7280
  "DescribeLoadBalanceTaskStatus": doDescribeLoadBalanceTaskStatus,
@@ -6823,6 +7292,7 @@ ACTION_MAP = {
6823
7292
  "DisassociateAddress": doDisassociateAddress,
6824
7293
  "CreateVpc": doCreateVpc,
6825
7294
  "AttachDisks": doAttachDisks,
7295
+ "AssignIpv6SubnetCidrBlock": doAssignIpv6SubnetCidrBlock,
6826
7296
  "AllocateAddresses": doAllocateAddresses,
6827
7297
  "ModifyModuleDisableWanIp": doModifyModuleDisableWanIp,
6828
7298
  "ModifyListener": doModifyListener,
@@ -6831,6 +7301,8 @@ ACTION_MAP = {
6831
7301
  "ModifyDefaultSubnet": doModifyDefaultSubnet,
6832
7302
  "DeleteSubnet": doDeleteSubnet,
6833
7303
  "ModifySecurityGroupAttribute": doModifySecurityGroupAttribute,
7304
+ "ModifyIpv6AddressesBandwidth": doModifyIpv6AddressesBandwidth,
7305
+ "AllocateIpv6AddressesBandwidth": doAllocateIpv6AddressesBandwidth,
6834
7306
  "BatchRegisterTargets": doBatchRegisterTargets,
6835
7307
  "DescribeInstancesDeniedActions": doDescribeInstancesDeniedActions,
6836
7308
  "CreateNetworkInterface": doCreateNetworkInterface,
@@ -6841,11 +7313,13 @@ ACTION_MAP = {
6841
7313
  "ResetInstances": doResetInstances,
6842
7314
  "TerminateDisks": doTerminateDisks,
6843
7315
  "ModifyTargetPort": doModifyTargetPort,
7316
+ "DeleteImage": doDeleteImage,
6844
7317
  "DeleteNetworkInterface": doDeleteNetworkInterface,
6845
7318
  "DeleteModule": doDeleteModule,
6846
7319
  "ReleaseIpv6Addresses": doReleaseIpv6Addresses,
6847
7320
  "DescribeTargetHealth": doDescribeTargetHealth,
6848
7321
  "ReplaceRoutes": doReplaceRoutes,
7322
+ "UnassignIpv6SubnetCidrBlock": doUnassignIpv6SubnetCidrBlock,
6849
7323
  "DescribeRouteConflicts": doDescribeRouteConflicts,
6850
7324
  "DetachDisks": doDetachDisks,
6851
7325
  "DisableRoutes": doDisableRoutes,
@@ -6854,6 +7328,7 @@ ACTION_MAP = {
6854
7328
  "AttachNetworkInterface": doAttachNetworkInterface,
6855
7329
  "ReleaseAddresses": doReleaseAddresses,
6856
7330
  "DeleteSecurityGroupPolicies": doDeleteSecurityGroupPolicies,
7331
+ "DescribeRegionIpv6Addresses": doDescribeRegionIpv6Addresses,
6857
7332
  "CreateKeyPair": doCreateKeyPair,
6858
7333
  "ModifyModuleConfig": doModifyModuleConfig,
6859
7334
  "SetLoadBalancerSecurityGroups": doSetLoadBalancerSecurityGroups,
@@ -6885,7 +7360,7 @@ ACTION_MAP = {
6885
7360
  "CreateLoadBalancer": doCreateLoadBalancer,
6886
7361
  "ModifyModuleNetwork": doModifyModuleNetwork,
6887
7362
  "DescribeHaVips": doDescribeHaVips,
6888
- "AssignPrivateIpAddresses": doAssignPrivateIpAddresses,
7363
+ "ImportImage": doImportImage,
6889
7364
  "DeleteHaVip": doDeleteHaVip,
6890
7365
  "DescribeAddressQuota": doDescribeAddressQuota,
6891
7366
  "DeleteLoadBalancerListeners": doDeleteLoadBalancerListeners,
@@ -6894,9 +7369,11 @@ ACTION_MAP = {
6894
7369
  "DescribeInstances": doDescribeInstances,
6895
7370
  "DescribeSecurityGroups": doDescribeSecurityGroups,
6896
7371
  "ModifyPrivateIpAddressesAttribute": doModifyPrivateIpAddressesAttribute,
7372
+ "AssignIpv6CidrBlock": doAssignIpv6CidrBlock,
6897
7373
  "ModifyModuleImage": doModifyModuleImage,
6898
7374
  "ResetInstancesPassword": doResetInstancesPassword,
6899
7375
  "CreateModule": doCreateModule,
7376
+ "ReleaseIpv6AddressesBandwidth": doReleaseIpv6AddressesBandwidth,
6900
7377
  "EnableRoutes": doEnableRoutes,
6901
7378
  "DescribeLoadBalancers": doDescribeLoadBalancers,
6902
7379
  "DescribeDisks": doDescribeDisks,
@@ -6911,13 +7388,13 @@ ACTION_MAP = {
6911
7388
  "CreateHaVip": doCreateHaVip,
6912
7389
  "ModifyModuleIpDirect": doModifyModuleIpDirect,
6913
7390
  "DescribeTargets": doDescribeTargets,
6914
- "DeleteImage": doDeleteImage,
7391
+ "ModifyVpcAttribute": doModifyVpcAttribute,
6915
7392
  "DescribeSecurityGroupAssociationStatistics": doDescribeSecurityGroupAssociationStatistics,
6916
7393
  "DescribePeakBaseOverview": doDescribePeakBaseOverview,
6917
7394
  "ModifyAddressAttribute": doModifyAddressAttribute,
6918
7395
  "RemovePrivateIpAddresses": doRemovePrivateIpAddresses,
6919
7396
  "CreateSecurityGroupPolicies": doCreateSecurityGroupPolicies,
6920
- "ModifyVpcAttribute": doModifyVpcAttribute,
7397
+ "QueryVpcTaskResult": doQueryVpcTaskResult,
6921
7398
 
6922
7399
  }
6923
7400