tccli 3.0.1297.1__py2.py3-none-any.whl → 3.0.1299.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/batch/batch_client.py +4 -110
  3. tccli/services/batch/v20170312/api.json +0 -527
  4. tccli/services/batch/v20170312/examples.json +0 -16
  5. tccli/services/bi/v20220105/api.json +87 -1
  6. tccli/services/bi/v20220105/examples.json +7 -7
  7. tccli/services/cam/v20190116/api.json +84 -84
  8. tccli/services/cbs/v20170312/api.json +24 -24
  9. tccli/services/cdn/v20180606/api.json +240 -179
  10. tccli/services/cdn/v20180606/examples.json +1 -1
  11. tccli/services/cfg/v20210820/api.json +5 -3
  12. tccli/services/cfg/v20210820/examples.json +1 -1
  13. tccli/services/chdfs/v20201112/api.json +7 -1
  14. tccli/services/cls/cls_client.py +235 -23
  15. tccli/services/cls/v20201016/api.json +457 -3
  16. tccli/services/cls/v20201016/examples.json +32 -0
  17. tccli/services/controlcenter/v20230110/api.json +63 -58
  18. tccli/services/cvm/v20170312/api.json +2 -2
  19. tccli/services/dbbrain/dbbrain_client.py +106 -0
  20. tccli/services/dbbrain/v20191016/api.json +365 -6
  21. tccli/services/dbbrain/v20191016/examples.json +8 -0
  22. tccli/services/dbbrain/v20210527/api.json +550 -21
  23. tccli/services/dbbrain/v20210527/examples.json +16 -0
  24. tccli/services/dcdb/v20180411/api.json +102 -6
  25. tccli/services/dcdb/v20180411/examples.json +4 -4
  26. tccli/services/dlc/dlc_client.py +53 -0
  27. tccli/services/dlc/v20210125/api.json +162 -0
  28. tccli/services/dlc/v20210125/examples.json +8 -0
  29. tccli/services/dnspod/v20210323/api.json +128 -127
  30. tccli/services/ess/v20201111/api.json +1 -1
  31. tccli/services/essbasic/v20210526/api.json +5 -5
  32. tccli/services/facefusion/v20220927/api.json +2 -2
  33. tccli/services/facefusion/v20220927/examples.json +1 -1
  34. tccli/services/gs/v20191118/api.json +22 -3
  35. tccli/services/gs/v20191118/examples.json +1 -1
  36. tccli/services/hai/v20230812/api.json +16 -16
  37. tccli/services/iotcloud/v20210408/api.json +2 -2
  38. tccli/services/iotcloud/v20210408/examples.json +3 -3
  39. tccli/services/iotexplorer/v20190423/api.json +947 -857
  40. tccli/services/iotexplorer/v20190423/examples.json +83 -83
  41. tccli/services/live/v20180801/api.json +2 -2
  42. tccli/services/lkeap/v20240522/api.json +3 -3
  43. tccli/services/mariadb/v20170312/api.json +84 -8
  44. tccli/services/mariadb/v20170312/examples.json +3 -3
  45. tccli/services/mps/v20190612/api.json +63 -61
  46. tccli/services/mps/v20190612/examples.json +48 -48
  47. tccli/services/mqtt/v20240516/api.json +62 -12
  48. tccli/services/mqtt/v20240516/examples.json +6 -6
  49. tccli/services/ocr/ocr_client.py +307 -360
  50. tccli/services/ocr/v20181119/api.json +73 -289
  51. tccli/services/ocr/v20181119/examples.json +0 -8
  52. tccli/services/organization/v20210331/api.json +9 -0
  53. tccli/services/partners/v20180321/api.json +10 -0
  54. tccli/services/sqlserver/v20180328/api.json +9 -0
  55. tccli/services/sqlserver/v20180328/examples.json +1 -1
  56. tccli/services/tcb/v20180608/api.json +11 -1
  57. tccli/services/tdmq/v20200217/api.json +30 -0
  58. tccli/services/teo/v20220106/api.json +4 -4
  59. tccli/services/teo/v20220901/api.json +48 -7
  60. tccli/services/teo/v20220901/examples.json +51 -15
  61. tccli/services/tione/v20211111/api.json +25 -5
  62. tccli/services/tke/v20180525/api.json +2 -2
  63. tccli/services/trro/trro_client.py +269 -4
  64. tccli/services/trro/v20220325/api.json +504 -0
  65. tccli/services/trro/v20220325/examples.json +40 -0
  66. tccli/services/tse/v20201207/api.json +34 -34
  67. tccli/services/vdb/v20230616/api.json +738 -15
  68. tccli/services/vdb/v20230616/examples.json +64 -0
  69. tccli/services/vdb/vdb_client.py +428 -4
  70. tccli/services/vod/v20180717/api.json +9 -0
  71. tccli/services/vod/v20240718/api.json +985 -0
  72. tccli/services/vod/v20240718/examples.json +66 -0
  73. tccli/services/vod/vod_client.py +330 -12
  74. tccli/services/vpc/v20170312/api.json +175 -0
  75. tccli/services/vpc/v20170312/examples.json +8 -0
  76. tccli/services/vpc/vpc_client.py +53 -0
  77. tccli/services/wedata/v20210820/api.json +464 -1
  78. tccli/services/wedata/v20210820/examples.json +22 -0
  79. tccli/services/wedata/wedata_client.py +114 -8
  80. tccli/services/weilingwith/v20230427/api.json +10 -10
  81. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/METADATA +2 -2
  82. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/RECORD +85 -85
  83. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/WHEEL +0 -0
  84. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/entry_points.txt +0 -0
  85. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,5 +1,21 @@
1
1
  {
2
2
  "actions": {
3
+ "CreateIncrementalMigrationStrategy": [
4
+ {
5
+ "document": "创建增量迁移策略",
6
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateIncrementalMigrationStrategy\n<公共请求参数>\n\n{\n \"SubAppId\": 1020304056,\n \"BucketId\": \"bucketid1\",\n \"StrategyName\": \"strategy_name\",\n \"OriginType\": \"HTTP\",\n \"HttpOriginConfig\": {\n \"OriginInfo\": {\n \"EndpointInfo\": {\n \"Endpoint\": \"example.com:8080\"\n }\n },\n \"OriginParameter\": {\n \"HttpHeaderInfo\": {\n \"HeaderFollowMode\": \"FOLLOW_ALL\"\n }\n }\n }\n}",
7
+ "output": "{\n \"Response\": {\n \"RequestId\": \"83bb5dcc-reqid-demo-a891-9ceeed3bb173\",\n \"StrategyId\": \"im-123-demoid\"\n }\n}",
8
+ "title": "创建增量迁移策略"
9
+ }
10
+ ],
11
+ "CreateStorage": [
12
+ {
13
+ "document": "开通专业版应用重庆地域存储。",
14
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateStorage\n<公共请求参数>\n\n{\n \"SubAppId\": 1020304056,\n \"StorageRegion\": \"ap-chongqing\",\n \"StorageName\": \"my-storage\"\n}",
15
+ "output": "{\n \"Response\": {\n \"BucketId\": \"bucketid123\",\n \"RequestId\": \"f13e691e-8df1-demo-b734-ac63af4b9a64\"\n }\n}",
16
+ "title": "开通专业版应用存储"
17
+ }
18
+ ],
3
19
  "CreateStorageCredentials": [
4
20
  {
5
21
  "document": "申请上传单个文件临时凭证",
@@ -25,6 +41,56 @@
25
41
  "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"***********************************\",\n \"AccessKeyId\": \"***********************************\",\n \"SecretAccessKey\": \"***********************************\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
26
42
  "title": "申请自动就近上传文件的临时凭证"
27
43
  }
44
+ ],
45
+ "DeleteIncrementalMigrationStrategy": [
46
+ {
47
+ "document": "删除增量迁移策略",
48
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteIncrementalMigrationStrategy\n<公共请求参数>\n\n{\n \"SubAppId\": 1020304056,\n \"BucketId\": \"bucketid2\",\n \"StrategyId\": \"im-123-demoid\"\n}",
49
+ "output": "{\n \"Response\": {\n \"RequestId\": \"397d92f2-demo-reqid-bfbd-c2f7e3569c9d\"\n }\n}",
50
+ "title": "删除增量迁移策略"
51
+ }
52
+ ],
53
+ "DescribeIncrementalMigrationStrategyInfos": [
54
+ {
55
+ "document": "查询当前应用下的增量迁移策略,输出按照更新时间升序排序。",
56
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeIncrementalMigrationStrategyInfos\n<公共请求参数>\n\n{\n \"SubAppId\": 1020304056,\n \"SortBy\": {\n \"Field\": \"UpdateTime\",\n \"Order\": \"Asc\"\n },\n \"Offset\": 0,\n \"Limit\": 10\n}",
57
+ "output": "{\n \"Response\": {\n \"RequestId\": \"b6376a73-reqid-demo-b097-de6bb60b3976\",\n \"StrategyInfoSet\": [\n {\n \"BucketId\": \"bucketid1\",\n \"HttpOriginConfig\": {\n \"Mode\": \"ASYNC\",\n \"OriginCondition\": {\n \"HttpStatusCode\": 404,\n \"Prefix\": \"prefix/\"\n },\n \"OriginInfo\": {\n \"EndpointInfo\": {\n \"Endpoint\": \"example.com\",\n \"StandbyEndpointSet\": [\n \"standby.com\",\n \"standby2.com\"\n ]\n },\n \"FileInfo\": {\n \"PrefixConfig\": {\n \"Prefix\": \"prefix\"\n },\n \"SuffixConfig\": {\n \"Suffix\": \"suffix\"\n }\n }\n },\n \"OriginParameter\": {\n \"HttpHeaderInfo\": {\n \"FollowHttpHeaderKeySet\": [\n \"Host\"\n ],\n \"HeaderFollowMode\": \"FOLLOW_ALL\",\n \"NewHttpHeaderSet\": [\n {\n \"Key\": \"Host\",\n \"Value\": \"demo.com\"\n }\n ]\n },\n \"HttpRedirectCode\": 302,\n \"OriginRedirectionFollowMode\": \"FOLLOW\",\n \"Protocol\": \"HTTP\",\n \"QueryStringFollowMode\": \"FOLLOW\"\n }\n },\n \"OriginType\": \"HTTP\",\n \"StrategyId\": \"im-123-demoid\",\n \"StrategyName\": \"my-strategy-1\",\n \"SubAppId\": 123456789\n },\n {\n \"BucketId\": \"bucketid2\",\n \"HttpOriginConfig\": {\n \"Mode\": \"SYNC\",\n \"OriginCondition\": {\n \"HttpStatusCode\": 404\n },\n \"OriginInfo\": {\n \"EndpointInfo\": {\n \"Endpoint\": \"example.com\"\n }\n },\n \"OriginParameter\": {\n \"HttpHeaderInfo\": {\n \"HeaderFollowMode\": \"IGNORE_ALL\",\n \"NewHttpHeaderSet\": [\n {\n \"Key\": \"host\",\n \"Value\": \"demo.com\"\n }\n ]\n },\n \"HttpRedirectCode\": 301,\n \"OriginRedirectionFollowMode\": \"FOLLOW\",\n \"Protocol\": \"HTTPS\",\n \"QueryStringFollowMode\": \"FOLLOW\"\n }\n },\n \"OriginType\": \"HTTP\",\n \"StrategyId\": \"im-123-demoid2\",\n \"StrategyName\": \"my-strategy-2\",\n \"SubAppId\": 123456789\n }\n ],\n \"TotalCount\": 2\n }\n}",
58
+ "title": "查询应用下的策略信息"
59
+ },
60
+ {
61
+ "document": "查询应用指定存储桶的增量迁移策略",
62
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeIncrementalMigrationStrategyInfos\n<公共请求参数>\n\n{\n \"SubAppId\": 1020304056,\n \"Filters\": [\n {\n \"Name\": \"BucketId\",\n \"Values\": [\n \"bucketid2\"\n ]\n }\n ],\n \"SortBy\": {\n \"Field\": \"UpdateTime\",\n \"Order\": \"Asc\"\n },\n \"Offset\": 0,\n \"Limit\": 10\n}",
63
+ "output": "{\n \"Response\": {\n \"RequestId\": \"a70a4fb9-reqid-demo-aa39-3282aa745a26\",\n \"StrategyInfoSet\": [\n {\n \"BucketId\": \"bucketid2\",\n \"HttpOriginConfig\": {\n \"Mode\": \"SYNC\",\n \"OriginCondition\": {\n \"HttpStatusCode\": 404\n },\n \"OriginInfo\": {\n \"EndpointInfo\": {\n \"Endpoint\": \"example2.com\"\n }\n },\n \"OriginParameter\": {\n \"HttpHeaderInfo\": {\n \"HeaderFollowMode\": \"IGNORE_ALL\",\n \"NewHttpHeaderSet\": [\n {\n \"Key\": \"host\",\n \"Value\": \"demo.com\"\n }\n ]\n },\n \"HttpRedirectCode\": 301,\n \"OriginRedirectionFollowMode\": \"FOLLOW\",\n \"Protocol\": \"HTTPS\",\n \"QueryStringFollowMode\": \"FOLLOW\"\n }\n },\n \"OriginType\": \"HTTP\",\n \"StrategyId\": \"im-123-demoid2\",\n \"StrategyName\": \"my-strategy-2\",\n \"SubAppId\": 123456789\n }\n ],\n \"TotalCount\": 1\n }\n}",
64
+ "title": "查询应用指定存储桶的增量迁移策略"
65
+ }
66
+ ],
67
+ "DescribeStorage": [
68
+ {
69
+ "document": "按照创建时间倒序,分页查询专业版应用的存储信息。",
70
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeStorage\n<公共请求参数>\n\n{\n \"SubAppId\": 1020304056,\n \"SortBy\": {\n \"Field\": \"CreateTime\",\n \"Order\": \"Desc\"\n },\n \"Offset\": 0,\n \"Limit\": 20\n}",
71
+ "output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"StorageInfoSet\": [\n {\n \"BucketId\": \"bucketId123demo\",\n \"CreateTime\": \"2024-07-18T00:00:00+00:00\",\n \"InternetAccessDomain\": \"example123.vodpro.ap-guangzhou.eovod.com\",\n \"InternetAccessDomainStatus\": \"DEPLOYING\",\n \"StorageName\": \"my-storage\",\n \"StorageRegion\": \"ap-guangzhou\"\n },\n {\n \"BucketId\": \"bucketId456demo\",\n \"CreateTime\": \"2024-07-17T00:00:00+00:00\",\n \"InternetAccessDomain\": \"example456.vodpro.ap-guangzhou.eovod.com\",\n \"InternetAccessDomainStatus\": \"ONLINE\",\n \"StorageName\": \"my-storage2\",\n \"StorageRegion\": \"ap-shanghai\"\n }\n ],\n \"RequestId\": \"af4b9a1e-8df1-demo-reqid-ac6364f13e69\"\n }\n}",
72
+ "title": "分页查询专业版应用存储信息"
73
+ },
74
+ {
75
+ "document": "添加查询过滤器 Filter,按照存储桶 ID 过滤查询存储桶信息。",
76
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeStorage\n<公共请求参数>\n\n{\n \"SubAppId\": 1020304056,\n \"Filters\": [\n {\n \"Name\": \"BucketId\",\n \"Values\": [\n \"bucketId123demo\"\n ]\n }\n ]\n}",
77
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"StorageInfoSet\": [\n {\n \"BucketId\": \"bucketId123demo\",\n \"CreateTime\": \"2024-07-18T00:00:00+00:00\",\n \"InternetAccessDomain\": \"example123.vodpro.ap-guangzhou.eovod.com\",\n \"InternetAccessDomainStatus\": \"DEPLOYING\",\n \"StorageName\": \"my-storage\",\n \"StorageRegion\": \"ap-guangzhou\"\n }\n ],\n \"RequestId\": \"bf5c72d0-5b34-demo-reqid-4b5a2d7b4c68\"\n }\n}",
78
+ "title": "按照存储桶 ID 查询专业版应用的存储信息"
79
+ }
80
+ ],
81
+ "ModifyIncrementalMigrationStrategy": [
82
+ {
83
+ "document": "修改增量迁移策略名称",
84
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyIncrementalMigrationStrategy\n<公共请求参数>\n\n{\n \"SubAppId\": 1020304056,\n \"BucketId\": \"bucketid2\",\n \"StrategyId\": \"im-123-demoid\",\n \"StrategyName\": \"demo-modify\"\n}",
85
+ "output": "{\n \"Response\": {\n \"RequestId\": \"94a26124-reqid-demo-ad0f-e8458e187f02\"\n }\n}",
86
+ "title": "修改增量迁移策略名称"
87
+ },
88
+ {
89
+ "document": "修改增量迁移策略回源类型及 HTTP 回源配置信息",
90
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyIncrementalMigrationStrategy\n<公共请求参数>\n\n{\n \"SubAppId\": 1020304056,\n \"BucketId\": \"bucketid2\",\n \"StrategyId\": \"im-123-demoid\",\n \"StrategyName\": \"\",\n \"OriginType\": \"HTTP\",\n \"HttpOriginConfig\": {\n \"OriginInfo\": {\n \"EndpointInfo\": {\n \"Endpoint\": \"example2.com\"\n }\n },\n \"OriginParameter\": {\n \"HttpHeaderInfo\": {\n \"HeaderFollowMode\": \"IGNORE_ALL\",\n \"NewHttpHeaderSet\": [\n {\n \"Key\": \"host\",\n \"Value\": \"demo2.com\"\n }\n ]\n },\n \"Protocol\": \"FOLLOW\",\n \"QueryStringFollowMode\": \"FOLLOW\",\n \"HttpRedirectCode\": 302,\n \"OriginRedirectionFollowMode\": \"IGNORE\"\n },\n \"Mode\": \"SYNC\",\n \"OriginCondition\": {\n \"HttpStatusCode\": 404\n }\n }\n}",
91
+ "output": "{\n \"Response\": {\n \"RequestId\": \"300b29b9-demo-reqid-ade4-f84f176e60c3\"\n }\n}",
92
+ "title": "修改增量迁移策略内容"
93
+ }
28
94
  ]
29
95
  },
30
96
  "version": "1.0"
@@ -1787,7 +1787,7 @@ def doDescribeTasks(args, parsed_globals):
1787
1787
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1788
1788
 
1789
1789
 
1790
- def doCreateStorageRegion(args, parsed_globals):
1790
+ def doDescribeStorage(args, parsed_globals):
1791
1791
  g_param = parse_global_arg(parsed_globals)
1792
1792
 
1793
1793
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1816,11 +1816,11 @@ def doCreateStorageRegion(args, parsed_globals):
1816
1816
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
1817
1817
  client._sdkVersion += ("_CLI_" + __version__)
1818
1818
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1819
- model = models.CreateStorageRegionRequest()
1819
+ model = models.DescribeStorageRequest()
1820
1820
  model.from_json_string(json.dumps(args))
1821
1821
  start_time = time.time()
1822
1822
  while True:
1823
- rsp = client.CreateStorageRegion(model)
1823
+ rsp = client.DescribeStorage(model)
1824
1824
  result = rsp.to_json_string()
1825
1825
  try:
1826
1826
  json_obj = json.loads(result)
@@ -2359,6 +2359,58 @@ def doModifyImageSpriteTemplate(args, parsed_globals):
2359
2359
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2360
2360
 
2361
2361
 
2362
+ def doCreateStorage(args, parsed_globals):
2363
+ g_param = parse_global_arg(parsed_globals)
2364
+
2365
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2366
+ cred = credential.CVMRoleCredential()
2367
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2368
+ cred = credential.STSAssumeRoleCredential(
2369
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2370
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2371
+ )
2372
+ 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):
2373
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2374
+ else:
2375
+ cred = credential.Credential(
2376
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2377
+ )
2378
+ http_profile = HttpProfile(
2379
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2380
+ reqMethod="POST",
2381
+ endpoint=g_param[OptionsDefine.Endpoint],
2382
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2383
+ )
2384
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2385
+ if g_param[OptionsDefine.Language]:
2386
+ profile.language = g_param[OptionsDefine.Language]
2387
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2388
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
2389
+ client._sdkVersion += ("_CLI_" + __version__)
2390
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2391
+ model = models.CreateStorageRequest()
2392
+ model.from_json_string(json.dumps(args))
2393
+ start_time = time.time()
2394
+ while True:
2395
+ rsp = client.CreateStorage(model)
2396
+ result = rsp.to_json_string()
2397
+ try:
2398
+ json_obj = json.loads(result)
2399
+ except TypeError as e:
2400
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2401
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2402
+ break
2403
+ cur_time = time.time()
2404
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2405
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2406
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2407
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2408
+ else:
2409
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2410
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2411
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2412
+
2413
+
2362
2414
  def doDeleteClass(args, parsed_globals):
2363
2415
  g_param = parse_global_arg(parsed_globals)
2364
2416
 
@@ -4179,7 +4231,7 @@ def doEnhanceMediaByTemplate(args, parsed_globals):
4179
4231
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4180
4232
 
4181
4233
 
4182
- def doModifyPersonSample(args, parsed_globals):
4234
+ def doCreateStorageRegion(args, parsed_globals):
4183
4235
  g_param = parse_global_arg(parsed_globals)
4184
4236
 
4185
4237
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4208,11 +4260,11 @@ def doModifyPersonSample(args, parsed_globals):
4208
4260
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
4209
4261
  client._sdkVersion += ("_CLI_" + __version__)
4210
4262
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4211
- model = models.ModifyPersonSampleRequest()
4263
+ model = models.CreateStorageRegionRequest()
4212
4264
  model.from_json_string(json.dumps(args))
4213
4265
  start_time = time.time()
4214
4266
  while True:
4215
- rsp = client.ModifyPersonSample(model)
4267
+ rsp = client.CreateStorageRegion(model)
4216
4268
  result = rsp.to_json_string()
4217
4269
  try:
4218
4270
  json_obj = json.loads(result)
@@ -4803,7 +4855,7 @@ def doExtractCopyRightWatermark(args, parsed_globals):
4803
4855
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4804
4856
 
4805
4857
 
4806
- def doDescribeStorageRegions(args, parsed_globals):
4858
+ def doModifyIncrementalMigrationStrategy(args, parsed_globals):
4807
4859
  g_param = parse_global_arg(parsed_globals)
4808
4860
 
4809
4861
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4832,11 +4884,11 @@ def doDescribeStorageRegions(args, parsed_globals):
4832
4884
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
4833
4885
  client._sdkVersion += ("_CLI_" + __version__)
4834
4886
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4835
- model = models.DescribeStorageRegionsRequest()
4887
+ model = models.ModifyIncrementalMigrationStrategyRequest()
4836
4888
  model.from_json_string(json.dumps(args))
4837
4889
  start_time = time.time()
4838
4890
  while True:
4839
- rsp = client.DescribeStorageRegions(model)
4891
+ rsp = client.ModifyIncrementalMigrationStrategy(model)
4840
4892
  result = rsp.to_json_string()
4841
4893
  try:
4842
4894
  json_obj = json.loads(result)
@@ -5167,6 +5219,58 @@ def doModifyVodDomainConfig(args, parsed_globals):
5167
5219
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5168
5220
 
5169
5221
 
5222
+ def doCreateIncrementalMigrationStrategy(args, parsed_globals):
5223
+ g_param = parse_global_arg(parsed_globals)
5224
+
5225
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5226
+ cred = credential.CVMRoleCredential()
5227
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5228
+ cred = credential.STSAssumeRoleCredential(
5229
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5230
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5231
+ )
5232
+ 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):
5233
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5234
+ else:
5235
+ cred = credential.Credential(
5236
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5237
+ )
5238
+ http_profile = HttpProfile(
5239
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5240
+ reqMethod="POST",
5241
+ endpoint=g_param[OptionsDefine.Endpoint],
5242
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5243
+ )
5244
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5245
+ if g_param[OptionsDefine.Language]:
5246
+ profile.language = g_param[OptionsDefine.Language]
5247
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5248
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
5249
+ client._sdkVersion += ("_CLI_" + __version__)
5250
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5251
+ model = models.CreateIncrementalMigrationStrategyRequest()
5252
+ model.from_json_string(json.dumps(args))
5253
+ start_time = time.time()
5254
+ while True:
5255
+ rsp = client.CreateIncrementalMigrationStrategy(model)
5256
+ result = rsp.to_json_string()
5257
+ try:
5258
+ json_obj = json.loads(result)
5259
+ except TypeError as e:
5260
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5261
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5262
+ break
5263
+ cur_time = time.time()
5264
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5265
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5266
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5267
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5268
+ else:
5269
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5270
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5271
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5272
+
5273
+
5170
5274
  def doDescribeSnapshotByTimeOffsetTemplates(args, parsed_globals):
5171
5275
  g_param = parse_global_arg(parsed_globals)
5172
5276
 
@@ -6051,6 +6155,58 @@ def doCreateSubAppId(args, parsed_globals):
6051
6155
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6052
6156
 
6053
6157
 
6158
+ def doModifyPersonSample(args, parsed_globals):
6159
+ g_param = parse_global_arg(parsed_globals)
6160
+
6161
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6162
+ cred = credential.CVMRoleCredential()
6163
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6164
+ cred = credential.STSAssumeRoleCredential(
6165
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6166
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6167
+ )
6168
+ 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):
6169
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6170
+ else:
6171
+ cred = credential.Credential(
6172
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6173
+ )
6174
+ http_profile = HttpProfile(
6175
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6176
+ reqMethod="POST",
6177
+ endpoint=g_param[OptionsDefine.Endpoint],
6178
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6179
+ )
6180
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6181
+ if g_param[OptionsDefine.Language]:
6182
+ profile.language = g_param[OptionsDefine.Language]
6183
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6184
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
6185
+ client._sdkVersion += ("_CLI_" + __version__)
6186
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6187
+ model = models.ModifyPersonSampleRequest()
6188
+ model.from_json_string(json.dumps(args))
6189
+ start_time = time.time()
6190
+ while True:
6191
+ rsp = client.ModifyPersonSample(model)
6192
+ result = rsp.to_json_string()
6193
+ try:
6194
+ json_obj = json.loads(result)
6195
+ except TypeError as e:
6196
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6197
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6198
+ break
6199
+ cur_time = time.time()
6200
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6201
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6202
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6203
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6204
+ else:
6205
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6206
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6207
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6208
+
6209
+
6054
6210
  def doDescribeAnimatedGraphicsTemplates(args, parsed_globals):
6055
6211
  g_param = parse_global_arg(parsed_globals)
6056
6212
 
@@ -7403,6 +7559,58 @@ def doDescribeQualityInspectTemplates(args, parsed_globals):
7403
7559
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7404
7560
 
7405
7561
 
7562
+ def doDescribeIncrementalMigrationStrategyInfos(args, parsed_globals):
7563
+ g_param = parse_global_arg(parsed_globals)
7564
+
7565
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7566
+ cred = credential.CVMRoleCredential()
7567
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7568
+ cred = credential.STSAssumeRoleCredential(
7569
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7570
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7571
+ )
7572
+ 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):
7573
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7574
+ else:
7575
+ cred = credential.Credential(
7576
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7577
+ )
7578
+ http_profile = HttpProfile(
7579
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7580
+ reqMethod="POST",
7581
+ endpoint=g_param[OptionsDefine.Endpoint],
7582
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7583
+ )
7584
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7585
+ if g_param[OptionsDefine.Language]:
7586
+ profile.language = g_param[OptionsDefine.Language]
7587
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7588
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
7589
+ client._sdkVersion += ("_CLI_" + __version__)
7590
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
7591
+ model = models.DescribeIncrementalMigrationStrategyInfosRequest()
7592
+ model.from_json_string(json.dumps(args))
7593
+ start_time = time.time()
7594
+ while True:
7595
+ rsp = client.DescribeIncrementalMigrationStrategyInfos(model)
7596
+ result = rsp.to_json_string()
7597
+ try:
7598
+ json_obj = json.loads(result)
7599
+ except TypeError as e:
7600
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
7601
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7602
+ break
7603
+ cur_time = time.time()
7604
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7605
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7606
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7607
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7608
+ else:
7609
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7610
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7611
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7612
+
7613
+
7406
7614
  def doCreateJustInTimeTranscodeTemplate(args, parsed_globals):
7407
7615
  g_param = parse_global_arg(parsed_globals)
7408
7616
 
@@ -7559,6 +7767,58 @@ def doDescribeSubAppIds(args, parsed_globals):
7559
7767
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7560
7768
 
7561
7769
 
7770
+ def doDeleteIncrementalMigrationStrategy(args, parsed_globals):
7771
+ g_param = parse_global_arg(parsed_globals)
7772
+
7773
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7774
+ cred = credential.CVMRoleCredential()
7775
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7776
+ cred = credential.STSAssumeRoleCredential(
7777
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7778
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7779
+ )
7780
+ 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):
7781
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7782
+ else:
7783
+ cred = credential.Credential(
7784
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7785
+ )
7786
+ http_profile = HttpProfile(
7787
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7788
+ reqMethod="POST",
7789
+ endpoint=g_param[OptionsDefine.Endpoint],
7790
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7791
+ )
7792
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7793
+ if g_param[OptionsDefine.Language]:
7794
+ profile.language = g_param[OptionsDefine.Language]
7795
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7796
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
7797
+ client._sdkVersion += ("_CLI_" + __version__)
7798
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
7799
+ model = models.DeleteIncrementalMigrationStrategyRequest()
7800
+ model.from_json_string(json.dumps(args))
7801
+ start_time = time.time()
7802
+ while True:
7803
+ rsp = client.DeleteIncrementalMigrationStrategy(model)
7804
+ result = rsp.to_json_string()
7805
+ try:
7806
+ json_obj = json.loads(result)
7807
+ except TypeError as e:
7808
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
7809
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7810
+ break
7811
+ cur_time = time.time()
7812
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7813
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7814
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7815
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7816
+ else:
7817
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7818
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7819
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7820
+
7821
+
7562
7822
  def doDescribeHeadTailTemplates(args, parsed_globals):
7563
7823
  g_param = parse_global_arg(parsed_globals)
7564
7824
 
@@ -8963,6 +9223,58 @@ def doDeleteRoundPlay(args, parsed_globals):
8963
9223
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8964
9224
 
8965
9225
 
9226
+ def doDescribeStorageRegions(args, parsed_globals):
9227
+ g_param = parse_global_arg(parsed_globals)
9228
+
9229
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
9230
+ cred = credential.CVMRoleCredential()
9231
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
9232
+ cred = credential.STSAssumeRoleCredential(
9233
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
9234
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
9235
+ )
9236
+ 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):
9237
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
9238
+ else:
9239
+ cred = credential.Credential(
9240
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
9241
+ )
9242
+ http_profile = HttpProfile(
9243
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
9244
+ reqMethod="POST",
9245
+ endpoint=g_param[OptionsDefine.Endpoint],
9246
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
9247
+ )
9248
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
9249
+ if g_param[OptionsDefine.Language]:
9250
+ profile.language = g_param[OptionsDefine.Language]
9251
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
9252
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
9253
+ client._sdkVersion += ("_CLI_" + __version__)
9254
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
9255
+ model = models.DescribeStorageRegionsRequest()
9256
+ model.from_json_string(json.dumps(args))
9257
+ start_time = time.time()
9258
+ while True:
9259
+ rsp = client.DescribeStorageRegions(model)
9260
+ result = rsp.to_json_string()
9261
+ try:
9262
+ json_obj = json.loads(result)
9263
+ except TypeError as e:
9264
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
9265
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
9266
+ break
9267
+ cur_time = time.time()
9268
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
9269
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
9270
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
9271
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
9272
+ else:
9273
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
9274
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
9275
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9276
+
9277
+
8966
9278
  def doModifyClass(args, parsed_globals):
8967
9279
  g_param = parse_global_arg(parsed_globals)
8968
9280
 
@@ -9530,7 +9842,7 @@ ACTION_MAP = {
9530
9842
  "CreateCLSLogset": doCreateCLSLogset,
9531
9843
  "SetCLSPushTarget": doSetCLSPushTarget,
9532
9844
  "DescribeTasks": doDescribeTasks,
9533
- "CreateStorageRegion": doCreateStorageRegion,
9845
+ "DescribeStorage": doDescribeStorage,
9534
9846
  "DeleteCLSTopic": doDeleteCLSTopic,
9535
9847
  "ResetProcedureTemplate": doResetProcedureTemplate,
9536
9848
  "DescribeCDNUsageData": doDescribeCDNUsageData,
@@ -9541,6 +9853,7 @@ ACTION_MAP = {
9541
9853
  "ModifyReviewTemplate": doModifyReviewTemplate,
9542
9854
  "DescribeLicenseUsageData": doDescribeLicenseUsageData,
9543
9855
  "ModifyImageSpriteTemplate": doModifyImageSpriteTemplate,
9856
+ "CreateStorage": doCreateStorage,
9544
9857
  "DeleteClass": doDeleteClass,
9545
9858
  "ExecuteFunction": doExecuteFunction,
9546
9859
  "DescribeClientUploadAccelerationUsageData": doDescribeClientUploadAccelerationUsageData,
@@ -9576,7 +9889,7 @@ ACTION_MAP = {
9576
9889
  "CreateSuperPlayerConfig": doCreateSuperPlayerConfig,
9577
9890
  "DescribeCLSPushTargets": doDescribeCLSPushTargets,
9578
9891
  "EnhanceMediaByTemplate": doEnhanceMediaByTemplate,
9579
- "ModifyPersonSample": doModifyPersonSample,
9892
+ "CreateStorageRegion": doCreateStorageRegion,
9580
9893
  "CreateEnhanceMediaTemplate": doCreateEnhanceMediaTemplate,
9581
9894
  "CreateRebuildMediaTemplate": doCreateRebuildMediaTemplate,
9582
9895
  "DescribeCurrentPlaylist": doDescribeCurrentPlaylist,
@@ -9588,13 +9901,14 @@ ACTION_MAP = {
9588
9901
  "CreateAIAnalysisTemplate": doCreateAIAnalysisTemplate,
9589
9902
  "DescribeDailyMostPlayedStat": doDescribeDailyMostPlayedStat,
9590
9903
  "ExtractCopyRightWatermark": doExtractCopyRightWatermark,
9591
- "DescribeStorageRegions": doDescribeStorageRegions,
9904
+ "ModifyIncrementalMigrationStrategy": doModifyIncrementalMigrationStrategy,
9592
9905
  "RefreshUrlCache": doRefreshUrlCache,
9593
9906
  "ModifyJustInTimeTranscodeTemplate": doModifyJustInTimeTranscodeTemplate,
9594
9907
  "ModifyQualityInspectTemplate": doModifyQualityInspectTemplate,
9595
9908
  "VerifyDomainRecord": doVerifyDomainRecord,
9596
9909
  "DescribeImageReviewUsageData": doDescribeImageReviewUsageData,
9597
9910
  "ModifyVodDomainConfig": doModifyVodDomainConfig,
9911
+ "CreateIncrementalMigrationStrategy": doCreateIncrementalMigrationStrategy,
9598
9912
  "DescribeSnapshotByTimeOffsetTemplates": doDescribeSnapshotByTimeOffsetTemplates,
9599
9913
  "PullUpload": doPullUpload,
9600
9914
  "CreateComplexAdaptiveDynamicStreamingTask": doCreateComplexAdaptiveDynamicStreamingTask,
@@ -9612,6 +9926,7 @@ ACTION_MAP = {
9612
9926
  "DescribePersonSamples": doDescribePersonSamples,
9613
9927
  "DeleteAIRecognitionTemplate": doDeleteAIRecognitionTemplate,
9614
9928
  "CreateSubAppId": doCreateSubAppId,
9929
+ "ModifyPersonSample": doModifyPersonSample,
9615
9930
  "DescribeAnimatedGraphicsTemplates": doDescribeAnimatedGraphicsTemplates,
9616
9931
  "ForbidMediaDistribution": doForbidMediaDistribution,
9617
9932
  "ManageTask": doManageTask,
@@ -9638,9 +9953,11 @@ ACTION_MAP = {
9638
9953
  "DescribeContentReviewTemplates": doDescribeContentReviewTemplates,
9639
9954
  "DeleteQualityInspectTemplate": doDeleteQualityInspectTemplate,
9640
9955
  "DescribeQualityInspectTemplates": doDescribeQualityInspectTemplates,
9956
+ "DescribeIncrementalMigrationStrategyInfos": doDescribeIncrementalMigrationStrategyInfos,
9641
9957
  "CreateJustInTimeTranscodeTemplate": doCreateJustInTimeTranscodeTemplate,
9642
9958
  "CreateAIRecognitionTemplate": doCreateAIRecognitionTemplate,
9643
9959
  "DescribeSubAppIds": doDescribeSubAppIds,
9960
+ "DeleteIncrementalMigrationStrategy": doDeleteIncrementalMigrationStrategy,
9644
9961
  "DescribeHeadTailTemplates": doDescribeHeadTailTemplates,
9645
9962
  "DescribeDefaultDistributionConfig": doDescribeDefaultDistributionConfig,
9646
9963
  "DescribeReviewTemplates": doDescribeReviewTemplates,
@@ -9668,6 +9985,7 @@ ACTION_MAP = {
9668
9985
  "CreatePersonSample": doCreatePersonSample,
9669
9986
  "ModifySubAppIdStatus": doModifySubAppIdStatus,
9670
9987
  "DeleteRoundPlay": doDeleteRoundPlay,
9988
+ "DescribeStorageRegions": doDescribeStorageRegions,
9671
9989
  "ModifyClass": doModifyClass,
9672
9990
  "ModifyContentReviewTemplate": doModifyContentReviewTemplate,
9673
9991
  "DeleteVodDomain": doDeleteVodDomain,