tccli-intl-en 3.0.1282.1__py2.py3-none-any.whl → 3.1.33.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 (207) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/argument.py +1 -1
  3. tccli/services/__init__.py +15 -0
  4. tccli/services/advisor/advisor_client.py +2 -2
  5. tccli/services/ai3d/__init__.py +4 -0
  6. tccli/services/ai3d/ai3d_client.py +266 -0
  7. tccli/services/ai3d/v20250513/api.json +264 -0
  8. tccli/services/ai3d/v20250513/examples.json +20 -0
  9. tccli/services/aiart/aiart_client.py +1 -1
  10. tccli/services/ams/ams_client.py +4 -4
  11. tccli/services/antiddos/antiddos_client.py +70 -70
  12. tccli/services/apigateway/apigateway_client.py +93 -93
  13. tccli/services/apm/apm_client.py +783 -55
  14. tccli/services/apm/v20210622/api.json +3936 -1145
  15. tccli/services/apm/v20210622/examples.json +133 -23
  16. tccli/services/asr/asr_client.py +2 -2
  17. tccli/services/autoscaling/autoscaling_client.py +58 -58
  18. tccli/services/autoscaling/v20180419/api.json +77 -27
  19. tccli/services/batch/batch_client.py +28 -28
  20. tccli/services/bi/bi_client.py +24 -24
  21. tccli/services/billing/billing_client.py +42 -42
  22. tccli/services/cam/cam_client.py +81 -81
  23. tccli/services/captcha/captcha_client.py +1 -1
  24. tccli/services/car/car_client.py +33 -33
  25. tccli/services/cbs/cbs_client.py +38 -38
  26. tccli/services/ccc/ccc_client.py +70 -70
  27. tccli/services/ccc/v20200210/api.json +71 -26
  28. tccli/services/cdb/cdb_client.py +1262 -422
  29. tccli/services/cdb/v20170320/api.json +2166 -335
  30. tccli/services/cdb/v20170320/examples.json +126 -6
  31. tccli/services/cdc/cdc_client.py +20 -20
  32. tccli/services/cdn/cdn_client.py +44 -44
  33. tccli/services/cdn/v20180606/api.json +22 -22
  34. tccli/services/cdn/v20180606/examples.json +1 -1
  35. tccli/services/cdwdoris/cdwdoris_client.py +77 -77
  36. tccli/services/cdwpg/cdwpg_client.py +24 -24
  37. tccli/services/cdz/cdz_client.py +1 -1
  38. tccli/services/cfg/cfg_client.py +16 -16
  39. tccli/services/cfs/cfs_client.py +39 -39
  40. tccli/services/cfw/cfw_client.py +66 -66
  41. tccli/services/chdfs/chdfs_client.py +29 -29
  42. tccli/services/ciam/ciam_client.py +16 -16
  43. tccli/services/ckafka/ckafka_client.py +468 -76
  44. tccli/services/ckafka/v20190819/api.json +1009 -246
  45. tccli/services/ckafka/v20190819/examples.json +73 -23
  46. tccli/services/clb/clb_client.py +720 -384
  47. tccli/services/clb/v20180317/api.json +2255 -1017
  48. tccli/services/clb/v20180317/examples.json +184 -124
  49. tccli/services/cloudaudit/cloudaudit_client.py +18 -18
  50. tccli/services/cls/cls_client.py +86 -86
  51. tccli/services/cmq/cmq_client.py +2 -2
  52. tccli/services/config/config_client.py +6 -6
  53. tccli/services/controlcenter/controlcenter_client.py +225 -1
  54. tccli/services/controlcenter/v20230110/api.json +528 -5
  55. tccli/services/controlcenter/v20230110/examples.json +32 -0
  56. tccli/services/csip/csip_client.py +34 -34
  57. tccli/services/ctsdb/ctsdb_client.py +2 -2
  58. tccli/services/cvm/cvm_client.py +84 -84
  59. tccli/services/cvm/v20170312/api.json +175 -116
  60. tccli/services/cvm/v20170312/examples.json +93 -93
  61. tccli/services/cwp/cwp_client.py +465 -465
  62. tccli/services/cynosdb/cynosdb_client.py +154 -154
  63. tccli/services/dataintegration/dataintegration_client.py +1 -1
  64. tccli/services/dayu/dayu_client.py +103 -103
  65. tccli/services/dbbrain/dbbrain_client.py +42 -42
  66. tccli/services/dc/dc_client.py +18 -18
  67. tccli/services/dcdb/dcdb_client.py +62 -62
  68. tccli/services/dlc/dlc_client.py +109 -109
  69. tccli/services/dms/dms_client.py +2 -2
  70. tccli/services/dnspod/dnspod_client.py +40 -40
  71. tccli/services/domain/domain_client.py +24 -24
  72. tccli/services/dts/dts_client.py +83 -83
  73. tccli/services/eb/eb_client.py +26 -26
  74. tccli/services/ecdn/ecdn_client.py +15 -15
  75. tccli/services/ecm/ecm_client.py +124 -124
  76. tccli/services/eiam/eiam_client.py +40 -40
  77. tccli/services/emr/emr_client.py +77 -77
  78. tccli/services/emr/v20190103/api.json +6 -6
  79. tccli/services/es/es_client.py +21 -21
  80. tccli/services/facefusion/facefusion_client.py +3 -3
  81. tccli/services/faceid/faceid_client.py +19 -19
  82. tccli/services/faceid/v20180301/api.json +124 -46
  83. tccli/services/gaap/gaap_client.py +88 -88
  84. tccli/services/gme/gme_client.py +10 -10
  85. tccli/services/gpm/gpm_client.py +18 -18
  86. tccli/services/gse/gse_client.py +22 -22
  87. tccli/services/gwlb/gwlb_client.py +18 -18
  88. tccli/services/hunyuan/__init__.py +4 -0
  89. tccli/services/hunyuan/hunyuan_client.py +546 -0
  90. tccli/services/hunyuan/v20230901/api.json +628 -0
  91. tccli/services/hunyuan/v20230901/examples.json +60 -0
  92. tccli/services/iai/iai_client.py +29 -29
  93. tccli/services/iap/iap_client.py +6 -6
  94. tccli/services/ims/ims_client.py +1 -1
  95. tccli/services/intlpartnersmgt/intlpartnersmgt_client.py +42 -42
  96. tccli/services/iotcloud/iotcloud_client.py +20 -20
  97. tccli/services/ip/ip_client.py +6 -6
  98. tccli/services/kms/kms_client.py +68 -68
  99. tccli/services/kms/v20190118/api.json +80 -3
  100. tccli/services/kms/v20190118/examples.json +3 -3
  101. tccli/services/lcic/lcic_client.py +53 -53
  102. tccli/services/lighthouse/lighthouse_client.py +434 -98
  103. tccli/services/lighthouse/v20200324/api.json +488 -0
  104. tccli/services/lighthouse/v20200324/examples.json +54 -0
  105. tccli/services/live/live_client.py +120 -120
  106. tccli/services/lke/lke_client.py +90 -90
  107. tccli/services/lkeap/lkeap_client.py +63 -7
  108. tccli/services/lkeap/v20240522/api.json +134 -0
  109. tccli/services/lkeap/v20240522/examples.json +21 -1
  110. tccli/services/mariadb/mariadb_client.py +50 -50
  111. tccli/services/mdc/mdc_client.py +18 -18
  112. tccli/services/mdl/mdl_client.py +225 -57
  113. tccli/services/mdl/v20200326/api.json +903 -59
  114. tccli/services/mdl/v20200326/examples.json +24 -0
  115. tccli/services/mdp/mdp_client.py +62 -62
  116. tccli/services/mdp/v20200527/api.json +191 -28
  117. tccli/services/message/message_client.py +1 -1
  118. tccli/services/mongodb/mongodb_client.py +1081 -129
  119. tccli/services/mongodb/v20190725/api.json +1798 -141
  120. tccli/services/mongodb/v20190725/examples.json +136 -0
  121. tccli/services/monitor/monitor_client.py +149 -149
  122. tccli/services/monitor/v20180724/api.json +8 -8
  123. tccli/services/mps/mps_client.py +1118 -278
  124. tccli/services/mps/v20190612/api.json +2117 -117
  125. tccli/services/mps/v20190612/examples.json +164 -62
  126. tccli/services/mqtt/__init__.py +4 -0
  127. tccli/services/mqtt/mqtt_client.py +1610 -0
  128. tccli/services/mqtt/v20240516/api.json +3057 -0
  129. tccli/services/mqtt/v20240516/examples.json +213 -0
  130. tccli/services/msp/msp_client.py +7 -7
  131. tccli/services/ocr/ocr_client.py +206 -38
  132. tccli/services/ocr/v20181119/api.json +726 -83
  133. tccli/services/ocr/v20181119/examples.json +36 -6
  134. tccli/services/omics/omics_client.py +20 -20
  135. tccli/services/organization/organization_client.py +116 -116
  136. tccli/services/postgres/postgres_client.py +91 -91
  137. tccli/services/privatedns/privatedns_client.py +31 -31
  138. tccli/services/pts/pts_client.py +48 -48
  139. tccli/services/quota/quota_client.py +5 -5
  140. tccli/services/rce/rce_client.py +1 -1
  141. tccli/services/redis/redis_client.py +109 -109
  142. tccli/services/redis/v20180412/api.json +12 -12
  143. tccli/services/region/region_client.py +3 -3
  144. tccli/services/rum/rum_client.py +60 -60
  145. tccli/services/scf/scf_client.py +42 -42
  146. tccli/services/ses/ses_client.py +29 -29
  147. tccli/services/smh/__init__.py +4 -0
  148. tccli/services/smh/smh_client.py +714 -0
  149. tccli/services/smh/v20210712/api.json +1287 -0
  150. tccli/services/smh/v20210712/examples.json +85 -0
  151. tccli/services/sms/sms_client.py +18 -18
  152. tccli/services/sqlserver/sqlserver_client.py +139 -139
  153. tccli/services/ssl/ssl_client.py +38 -38
  154. tccli/services/ssm/ssm_client.py +24 -24
  155. tccli/services/sts/sts_client.py +5 -5
  156. tccli/services/tag/tag_client.py +30 -30
  157. tccli/services/tat/tat_client.py +19 -19
  158. tccli/services/tbaas/tbaas_client.py +4 -4
  159. tccli/services/tcaplusdb/tcaplusdb_client.py +52 -52
  160. tccli/services/tchd/tchd_client.py +1 -1
  161. tccli/services/tcmpp/tcmpp_client.py +104 -104
  162. tccli/services/tcr/tcr_client.py +76 -76
  163. tccli/services/tcsas/tcsas_client.py +2340 -268
  164. tccli/services/tcsas/v20250106/api.json +8410 -3423
  165. tccli/services/tcsas/v20250106/examples.json +308 -12
  166. tccli/services/tcss/tcss_client.py +330 -330
  167. tccli/services/tdid/tdid_client.py +48 -48
  168. tccli/services/tdmq/tdmq_client.py +2500 -372
  169. tccli/services/tdmq/v20200217/api.json +11607 -3958
  170. tccli/services/tdmq/v20200217/examples.json +562 -264
  171. tccli/services/tem/tem_client.py +56 -56
  172. tccli/services/teo/teo_client.py +466 -298
  173. tccli/services/teo/v20220901/api.json +324 -16
  174. tccli/services/teo/v20220901/examples.json +64 -22
  175. tccli/services/tione/tione_client.py +1 -1
  176. tccli/services/tiw/tiw_client.py +51 -51
  177. tccli/services/tke/tke_client.py +306 -138
  178. tccli/services/tke/v20180525/api.json +227 -0
  179. tccli/services/tke/v20180525/examples.json +24 -0
  180. tccli/services/tms/tms_client.py +1 -1
  181. tccli/services/tmt/tmt_client.py +1 -1
  182. tccli/services/trabbit/trabbit_client.py +29 -29
  183. tccli/services/trocket/__init__.py +4 -0
  184. tccli/services/trocket/trocket_client.py +2450 -0
  185. tccli/services/trocket/v20230308/api.json +6062 -0
  186. tccli/services/trocket/v20230308/examples.json +339 -0
  187. tccli/services/trro/trro_client.py +19 -19
  188. tccli/services/trtc/trtc_client.py +51 -51
  189. tccli/services/trtc/v20190722/api.json +15 -15
  190. tccli/services/tts/tts_client.py +1 -1
  191. tccli/services/vclm/vclm_client.py +2 -2
  192. tccli/services/vm/vm_client.py +4 -4
  193. tccli/services/vod/v20180717/api.json +2929 -296
  194. tccli/services/vod/v20180717/examples.json +40 -6
  195. tccli/services/vod/vod_client.py +459 -179
  196. tccli/services/vpc/v20170312/api.json +99 -29
  197. tccli/services/vpc/v20170312/examples.json +21 -13
  198. tccli/services/vpc/vpc_client.py +357 -301
  199. tccli/services/waf/waf_client.py +107 -107
  200. tccli/services/wedata/wedata_client.py +310 -310
  201. tccli/services/yunjing/yunjing_client.py +71 -71
  202. {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/METADATA +2 -2
  203. {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/RECORD +207 -187
  204. {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/WHEEL +1 -1
  205. {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/LICENSE +0 -0
  206. {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/entry_points.txt +0 -0
  207. {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/top_level.txt +0 -0
@@ -42,7 +42,7 @@ def doDetachDisks(args, parsed_globals):
42
42
  endpoint=g_param[OptionsDefine.Endpoint],
43
43
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
44
44
  )
45
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
45
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
46
46
  if g_param[OptionsDefine.Language]:
47
47
  profile.language = g_param[OptionsDefine.Language]
48
48
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -97,7 +97,7 @@ def doDeleteBlueprints(args, parsed_globals):
97
97
  endpoint=g_param[OptionsDefine.Endpoint],
98
98
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
99
99
  )
100
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
100
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
101
101
  if g_param[OptionsDefine.Language]:
102
102
  profile.language = g_param[OptionsDefine.Language]
103
103
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -152,7 +152,7 @@ def doCreateDisks(args, parsed_globals):
152
152
  endpoint=g_param[OptionsDefine.Endpoint],
153
153
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
154
154
  )
155
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
155
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
156
156
  if g_param[OptionsDefine.Language]:
157
157
  profile.language = g_param[OptionsDefine.Language]
158
158
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -207,7 +207,7 @@ def doDescribeAllScenes(args, parsed_globals):
207
207
  endpoint=g_param[OptionsDefine.Endpoint],
208
208
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
209
209
  )
210
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
210
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
211
211
  if g_param[OptionsDefine.Language]:
212
212
  profile.language = g_param[OptionsDefine.Language]
213
213
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -237,7 +237,7 @@ def doDescribeAllScenes(args, parsed_globals):
237
237
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
238
238
 
239
239
 
240
- def doDescribeDiskDiscount(args, parsed_globals):
240
+ def doCancelShareBlueprintAcrossAccounts(args, parsed_globals):
241
241
  g_param = parse_global_arg(parsed_globals)
242
242
 
243
243
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -262,18 +262,18 @@ def doDescribeDiskDiscount(args, parsed_globals):
262
262
  endpoint=g_param[OptionsDefine.Endpoint],
263
263
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
264
264
  )
265
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
265
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
266
266
  if g_param[OptionsDefine.Language]:
267
267
  profile.language = g_param[OptionsDefine.Language]
268
268
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
269
269
  client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
270
270
  client._sdkVersion += ("_CLI_" + __version__)
271
271
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
272
- model = models.DescribeDiskDiscountRequest()
272
+ model = models.CancelShareBlueprintAcrossAccountsRequest()
273
273
  model.from_json_string(json.dumps(args))
274
274
  start_time = time.time()
275
275
  while True:
276
- rsp = client.DescribeDiskDiscount(model)
276
+ rsp = client.CancelShareBlueprintAcrossAccounts(model)
277
277
  result = rsp.to_json_string()
278
278
  try:
279
279
  json_obj = json.loads(result)
@@ -317,7 +317,7 @@ def doCreateFirewallRules(args, parsed_globals):
317
317
  endpoint=g_param[OptionsDefine.Endpoint],
318
318
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
319
319
  )
320
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
320
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
321
321
  if g_param[OptionsDefine.Language]:
322
322
  profile.language = g_param[OptionsDefine.Language]
323
323
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -372,7 +372,7 @@ def doDescribeInstancesReturnable(args, parsed_globals):
372
372
  endpoint=g_param[OptionsDefine.Endpoint],
373
373
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
374
374
  )
375
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
375
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
376
376
  if g_param[OptionsDefine.Language]:
377
377
  profile.language = g_param[OptionsDefine.Language]
378
378
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -427,7 +427,7 @@ def doModifyInstancesAttribute(args, parsed_globals):
427
427
  endpoint=g_param[OptionsDefine.Endpoint],
428
428
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
429
429
  )
430
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
430
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
431
431
  if g_param[OptionsDefine.Language]:
432
432
  profile.language = g_param[OptionsDefine.Language]
433
433
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -482,7 +482,7 @@ def doDescribeZones(args, parsed_globals):
482
482
  endpoint=g_param[OptionsDefine.Endpoint],
483
483
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
484
484
  )
485
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
485
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
486
486
  if g_param[OptionsDefine.Language]:
487
487
  profile.language = g_param[OptionsDefine.Language]
488
488
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -537,7 +537,7 @@ def doDescribeFirewallRulesTemplate(args, parsed_globals):
537
537
  endpoint=g_param[OptionsDefine.Endpoint],
538
538
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
539
539
  )
540
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
540
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
541
541
  if g_param[OptionsDefine.Language]:
542
542
  profile.language = g_param[OptionsDefine.Language]
543
543
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -592,7 +592,7 @@ def doCreateKeyPair(args, parsed_globals):
592
592
  endpoint=g_param[OptionsDefine.Endpoint],
593
593
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
594
594
  )
595
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
595
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
596
596
  if g_param[OptionsDefine.Language]:
597
597
  profile.language = g_param[OptionsDefine.Language]
598
598
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -647,7 +647,7 @@ def doDescribeBundles(args, parsed_globals):
647
647
  endpoint=g_param[OptionsDefine.Endpoint],
648
648
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
649
649
  )
650
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
650
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
651
651
  if g_param[OptionsDefine.Language]:
652
652
  profile.language = g_param[OptionsDefine.Language]
653
653
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -702,7 +702,7 @@ def doDescribeInstancesDiskNum(args, parsed_globals):
702
702
  endpoint=g_param[OptionsDefine.Endpoint],
703
703
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
704
704
  )
705
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
705
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
706
706
  if g_param[OptionsDefine.Language]:
707
707
  profile.language = g_param[OptionsDefine.Language]
708
708
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -757,7 +757,7 @@ def doDeleteKeyPairs(args, parsed_globals):
757
757
  endpoint=g_param[OptionsDefine.Endpoint],
758
758
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
759
759
  )
760
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
760
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
761
761
  if g_param[OptionsDefine.Language]:
762
762
  profile.language = g_param[OptionsDefine.Language]
763
763
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -812,7 +812,7 @@ def doModifyDisksRenewFlag(args, parsed_globals):
812
812
  endpoint=g_param[OptionsDefine.Endpoint],
813
813
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
814
814
  )
815
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
815
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
816
816
  if g_param[OptionsDefine.Language]:
817
817
  profile.language = g_param[OptionsDefine.Language]
818
818
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -867,7 +867,7 @@ def doDescribeCcnAttachedInstances(args, parsed_globals):
867
867
  endpoint=g_param[OptionsDefine.Endpoint],
868
868
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
869
869
  )
870
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
870
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
871
871
  if g_param[OptionsDefine.Language]:
872
872
  profile.language = g_param[OptionsDefine.Language]
873
873
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -922,7 +922,7 @@ def doDescribeInstances(args, parsed_globals):
922
922
  endpoint=g_param[OptionsDefine.Endpoint],
923
923
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
924
924
  )
925
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
925
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
926
926
  if g_param[OptionsDefine.Language]:
927
927
  profile.language = g_param[OptionsDefine.Language]
928
928
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -977,7 +977,7 @@ def doImportKeyPair(args, parsed_globals):
977
977
  endpoint=g_param[OptionsDefine.Endpoint],
978
978
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
979
979
  )
980
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
980
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
981
981
  if g_param[OptionsDefine.Language]:
982
982
  profile.language = g_param[OptionsDefine.Language]
983
983
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1007,6 +1007,61 @@ def doImportKeyPair(args, parsed_globals):
1007
1007
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1008
1008
 
1009
1009
 
1010
+ def doDescribeImagesToShare(args, parsed_globals):
1011
+ g_param = parse_global_arg(parsed_globals)
1012
+
1013
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1014
+ cred = credential.CVMRoleCredential()
1015
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1016
+ cred = credential.STSAssumeRoleCredential(
1017
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1018
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1019
+ )
1020
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1021
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1022
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1023
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1024
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1025
+ else:
1026
+ cred = credential.Credential(
1027
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1028
+ )
1029
+ http_profile = HttpProfile(
1030
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1031
+ reqMethod="POST",
1032
+ endpoint=g_param[OptionsDefine.Endpoint],
1033
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1034
+ )
1035
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1036
+ if g_param[OptionsDefine.Language]:
1037
+ profile.language = g_param[OptionsDefine.Language]
1038
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1039
+ client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
1040
+ client._sdkVersion += ("_CLI_" + __version__)
1041
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1042
+ model = models.DescribeImagesToShareRequest()
1043
+ model.from_json_string(json.dumps(args))
1044
+ start_time = time.time()
1045
+ while True:
1046
+ rsp = client.DescribeImagesToShare(model)
1047
+ result = rsp.to_json_string()
1048
+ try:
1049
+ json_obj = json.loads(result)
1050
+ except TypeError as e:
1051
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1052
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1053
+ break
1054
+ cur_time = time.time()
1055
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1056
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1057
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1058
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1059
+ else:
1060
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1061
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1062
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1063
+
1064
+
1010
1065
  def doDescribeInstancesTrafficPackages(args, parsed_globals):
1011
1066
  g_param = parse_global_arg(parsed_globals)
1012
1067
 
@@ -1032,7 +1087,7 @@ def doDescribeInstancesTrafficPackages(args, parsed_globals):
1032
1087
  endpoint=g_param[OptionsDefine.Endpoint],
1033
1088
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1034
1089
  )
1035
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1090
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1036
1091
  if g_param[OptionsDefine.Language]:
1037
1092
  profile.language = g_param[OptionsDefine.Language]
1038
1093
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1087,7 +1142,7 @@ def doInquirePriceCreateBlueprint(args, parsed_globals):
1087
1142
  endpoint=g_param[OptionsDefine.Endpoint],
1088
1143
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1089
1144
  )
1090
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1145
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1091
1146
  if g_param[OptionsDefine.Language]:
1092
1147
  profile.language = g_param[OptionsDefine.Language]
1093
1148
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1142,7 +1197,7 @@ def doAttachDisks(args, parsed_globals):
1142
1197
  endpoint=g_param[OptionsDefine.Endpoint],
1143
1198
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1144
1199
  )
1145
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1200
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1146
1201
  if g_param[OptionsDefine.Language]:
1147
1202
  profile.language = g_param[OptionsDefine.Language]
1148
1203
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1197,7 +1252,7 @@ def doAssociateInstancesKeyPairs(args, parsed_globals):
1197
1252
  endpoint=g_param[OptionsDefine.Endpoint],
1198
1253
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1199
1254
  )
1200
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1255
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1201
1256
  if g_param[OptionsDefine.Language]:
1202
1257
  profile.language = g_param[OptionsDefine.Language]
1203
1258
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1252,7 +1307,7 @@ def doDeleteFirewallRules(args, parsed_globals):
1252
1307
  endpoint=g_param[OptionsDefine.Endpoint],
1253
1308
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1254
1309
  )
1255
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1310
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1256
1311
  if g_param[OptionsDefine.Language]:
1257
1312
  profile.language = g_param[OptionsDefine.Language]
1258
1313
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1307,7 +1362,7 @@ def doDisassociateInstancesKeyPairs(args, parsed_globals):
1307
1362
  endpoint=g_param[OptionsDefine.Endpoint],
1308
1363
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1309
1364
  )
1310
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1365
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1311
1366
  if g_param[OptionsDefine.Language]:
1312
1367
  profile.language = g_param[OptionsDefine.Language]
1313
1368
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1362,7 +1417,7 @@ def doDescribeBundleDiscount(args, parsed_globals):
1362
1417
  endpoint=g_param[OptionsDefine.Endpoint],
1363
1418
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1364
1419
  )
1365
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1420
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1366
1421
  if g_param[OptionsDefine.Language]:
1367
1422
  profile.language = g_param[OptionsDefine.Language]
1368
1423
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1392,6 +1447,61 @@ def doDescribeBundleDiscount(args, parsed_globals):
1392
1447
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1393
1448
 
1394
1449
 
1450
+ def doCreateInstances(args, parsed_globals):
1451
+ g_param = parse_global_arg(parsed_globals)
1452
+
1453
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1454
+ cred = credential.CVMRoleCredential()
1455
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1456
+ cred = credential.STSAssumeRoleCredential(
1457
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1458
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1459
+ )
1460
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1461
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1462
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1463
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1464
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1465
+ else:
1466
+ cred = credential.Credential(
1467
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1468
+ )
1469
+ http_profile = HttpProfile(
1470
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1471
+ reqMethod="POST",
1472
+ endpoint=g_param[OptionsDefine.Endpoint],
1473
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1474
+ )
1475
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1476
+ if g_param[OptionsDefine.Language]:
1477
+ profile.language = g_param[OptionsDefine.Language]
1478
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1479
+ client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
1480
+ client._sdkVersion += ("_CLI_" + __version__)
1481
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1482
+ model = models.CreateInstancesRequest()
1483
+ model.from_json_string(json.dumps(args))
1484
+ start_time = time.time()
1485
+ while True:
1486
+ rsp = client.CreateInstances(model)
1487
+ result = rsp.to_json_string()
1488
+ try:
1489
+ json_obj = json.loads(result)
1490
+ except TypeError as e:
1491
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1492
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1493
+ break
1494
+ cur_time = time.time()
1495
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1496
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1497
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1498
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1499
+ else:
1500
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1501
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1502
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1503
+
1504
+
1395
1505
  def doAttachCcn(args, parsed_globals):
1396
1506
  g_param = parse_global_arg(parsed_globals)
1397
1507
 
@@ -1417,7 +1527,7 @@ def doAttachCcn(args, parsed_globals):
1417
1527
  endpoint=g_param[OptionsDefine.Endpoint],
1418
1528
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1419
1529
  )
1420
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1530
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1421
1531
  if g_param[OptionsDefine.Language]:
1422
1532
  profile.language = g_param[OptionsDefine.Language]
1423
1533
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1472,7 +1582,7 @@ def doDescribeBlueprints(args, parsed_globals):
1472
1582
  endpoint=g_param[OptionsDefine.Endpoint],
1473
1583
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1474
1584
  )
1475
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1585
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1476
1586
  if g_param[OptionsDefine.Language]:
1477
1587
  profile.language = g_param[OptionsDefine.Language]
1478
1588
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1527,7 +1637,7 @@ def doResetInstancesPassword(args, parsed_globals):
1527
1637
  endpoint=g_param[OptionsDefine.Endpoint],
1528
1638
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1529
1639
  )
1530
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1640
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1531
1641
  if g_param[OptionsDefine.Language]:
1532
1642
  profile.language = g_param[OptionsDefine.Language]
1533
1643
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1582,7 +1692,7 @@ def doModifyInstancesRenewFlag(args, parsed_globals):
1582
1692
  endpoint=g_param[OptionsDefine.Endpoint],
1583
1693
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1584
1694
  )
1585
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1695
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1586
1696
  if g_param[OptionsDefine.Language]:
1587
1697
  profile.language = g_param[OptionsDefine.Language]
1588
1698
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1637,7 +1747,7 @@ def doDescribeDisksDeniedActions(args, parsed_globals):
1637
1747
  endpoint=g_param[OptionsDefine.Endpoint],
1638
1748
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1639
1749
  )
1640
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1750
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1641
1751
  if g_param[OptionsDefine.Language]:
1642
1752
  profile.language = g_param[OptionsDefine.Language]
1643
1753
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1667,6 +1777,61 @@ def doDescribeDisksDeniedActions(args, parsed_globals):
1667
1777
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1668
1778
 
1669
1779
 
1780
+ def doRenewInstances(args, parsed_globals):
1781
+ g_param = parse_global_arg(parsed_globals)
1782
+
1783
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1784
+ cred = credential.CVMRoleCredential()
1785
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1786
+ cred = credential.STSAssumeRoleCredential(
1787
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1788
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1789
+ )
1790
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
1791
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
1792
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
1793
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1794
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1795
+ else:
1796
+ cred = credential.Credential(
1797
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1798
+ )
1799
+ http_profile = HttpProfile(
1800
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1801
+ reqMethod="POST",
1802
+ endpoint=g_param[OptionsDefine.Endpoint],
1803
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1804
+ )
1805
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1806
+ if g_param[OptionsDefine.Language]:
1807
+ profile.language = g_param[OptionsDefine.Language]
1808
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1809
+ client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
1810
+ client._sdkVersion += ("_CLI_" + __version__)
1811
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1812
+ model = models.RenewInstancesRequest()
1813
+ model.from_json_string(json.dumps(args))
1814
+ start_time = time.time()
1815
+ while True:
1816
+ rsp = client.RenewInstances(model)
1817
+ result = rsp.to_json_string()
1818
+ try:
1819
+ json_obj = json.loads(result)
1820
+ except TypeError as e:
1821
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1822
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1823
+ break
1824
+ cur_time = time.time()
1825
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1826
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1827
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1828
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1829
+ else:
1830
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1831
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1832
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1833
+
1834
+
1670
1835
  def doDescribeModifyInstanceBundles(args, parsed_globals):
1671
1836
  g_param = parse_global_arg(parsed_globals)
1672
1837
 
@@ -1692,7 +1857,7 @@ def doDescribeModifyInstanceBundles(args, parsed_globals):
1692
1857
  endpoint=g_param[OptionsDefine.Endpoint],
1693
1858
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1694
1859
  )
1695
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1860
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1696
1861
  if g_param[OptionsDefine.Language]:
1697
1862
  profile.language = g_param[OptionsDefine.Language]
1698
1863
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1747,7 +1912,7 @@ def doDescribeDisks(args, parsed_globals):
1747
1912
  endpoint=g_param[OptionsDefine.Endpoint],
1748
1913
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1749
1914
  )
1750
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1915
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1751
1916
  if g_param[OptionsDefine.Language]:
1752
1917
  profile.language = g_param[OptionsDefine.Language]
1753
1918
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1802,7 +1967,7 @@ def doDescribeGeneralResourceQuotas(args, parsed_globals):
1802
1967
  endpoint=g_param[OptionsDefine.Endpoint],
1803
1968
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1804
1969
  )
1805
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1970
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1806
1971
  if g_param[OptionsDefine.Language]:
1807
1972
  profile.language = g_param[OptionsDefine.Language]
1808
1973
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1857,7 +2022,7 @@ def doModifyBlueprintAttribute(args, parsed_globals):
1857
2022
  endpoint=g_param[OptionsDefine.Endpoint],
1858
2023
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1859
2024
  )
1860
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2025
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1861
2026
  if g_param[OptionsDefine.Language]:
1862
2027
  profile.language = g_param[OptionsDefine.Language]
1863
2028
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1912,7 +2077,7 @@ def doDescribeInstancesDeniedActions(args, parsed_globals):
1912
2077
  endpoint=g_param[OptionsDefine.Endpoint],
1913
2078
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1914
2079
  )
1915
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2080
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1916
2081
  if g_param[OptionsDefine.Language]:
1917
2082
  profile.language = g_param[OptionsDefine.Language]
1918
2083
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1967,7 +2132,7 @@ def doInquirePriceRenewInstances(args, parsed_globals):
1967
2132
  endpoint=g_param[OptionsDefine.Endpoint],
1968
2133
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1969
2134
  )
1970
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2135
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1971
2136
  if g_param[OptionsDefine.Language]:
1972
2137
  profile.language = g_param[OptionsDefine.Language]
1973
2138
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2022,7 +2187,7 @@ def doDeleteSnapshots(args, parsed_globals):
2022
2187
  endpoint=g_param[OptionsDefine.Endpoint],
2023
2188
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2024
2189
  )
2025
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2190
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2026
2191
  if g_param[OptionsDefine.Language]:
2027
2192
  profile.language = g_param[OptionsDefine.Language]
2028
2193
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2077,7 +2242,7 @@ def doInquirePriceCreateInstances(args, parsed_globals):
2077
2242
  endpoint=g_param[OptionsDefine.Endpoint],
2078
2243
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2079
2244
  )
2080
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2245
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2081
2246
  if g_param[OptionsDefine.Language]:
2082
2247
  profile.language = g_param[OptionsDefine.Language]
2083
2248
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2132,7 +2297,7 @@ def doDescribeInstanceLoginKeyPairAttribute(args, parsed_globals):
2132
2297
  endpoint=g_param[OptionsDefine.Endpoint],
2133
2298
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2134
2299
  )
2135
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2300
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2136
2301
  if g_param[OptionsDefine.Language]:
2137
2302
  profile.language = g_param[OptionsDefine.Language]
2138
2303
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2187,7 +2352,7 @@ def doModifyDisksAttribute(args, parsed_globals):
2187
2352
  endpoint=g_param[OptionsDefine.Endpoint],
2188
2353
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2189
2354
  )
2190
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2355
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2191
2356
  if g_param[OptionsDefine.Language]:
2192
2357
  profile.language = g_param[OptionsDefine.Language]
2193
2358
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2242,7 +2407,7 @@ def doStopInstances(args, parsed_globals):
2242
2407
  endpoint=g_param[OptionsDefine.Endpoint],
2243
2408
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2244
2409
  )
2245
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2410
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2246
2411
  if g_param[OptionsDefine.Language]:
2247
2412
  profile.language = g_param[OptionsDefine.Language]
2248
2413
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2297,7 +2462,7 @@ def doModifyInstancesLoginKeyPairAttribute(args, parsed_globals):
2297
2462
  endpoint=g_param[OptionsDefine.Endpoint],
2298
2463
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2299
2464
  )
2300
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2465
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2301
2466
  if g_param[OptionsDefine.Language]:
2302
2467
  profile.language = g_param[OptionsDefine.Language]
2303
2468
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2352,7 +2517,7 @@ def doDescribeRegions(args, parsed_globals):
2352
2517
  endpoint=g_param[OptionsDefine.Endpoint],
2353
2518
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2354
2519
  )
2355
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2520
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2356
2521
  if g_param[OptionsDefine.Language]:
2357
2522
  profile.language = g_param[OptionsDefine.Language]
2358
2523
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2407,7 +2572,7 @@ def doDescribeDisksReturnable(args, parsed_globals):
2407
2572
  endpoint=g_param[OptionsDefine.Endpoint],
2408
2573
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2409
2574
  )
2410
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2575
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2411
2576
  if g_param[OptionsDefine.Language]:
2412
2577
  profile.language = g_param[OptionsDefine.Language]
2413
2578
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2462,7 +2627,7 @@ def doInquirePriceRenewDisks(args, parsed_globals):
2462
2627
  endpoint=g_param[OptionsDefine.Endpoint],
2463
2628
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2464
2629
  )
2465
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2630
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2466
2631
  if g_param[OptionsDefine.Language]:
2467
2632
  profile.language = g_param[OptionsDefine.Language]
2468
2633
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2517,7 +2682,7 @@ def doDescribeBlueprintInstances(args, parsed_globals):
2517
2682
  endpoint=g_param[OptionsDefine.Endpoint],
2518
2683
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2519
2684
  )
2520
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2685
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2521
2686
  if g_param[OptionsDefine.Language]:
2522
2687
  profile.language = g_param[OptionsDefine.Language]
2523
2688
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2572,7 +2737,7 @@ def doResetInstance(args, parsed_globals):
2572
2737
  endpoint=g_param[OptionsDefine.Endpoint],
2573
2738
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2574
2739
  )
2575
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2740
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2576
2741
  if g_param[OptionsDefine.Language]:
2577
2742
  profile.language = g_param[OptionsDefine.Language]
2578
2743
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2627,7 +2792,7 @@ def doApplyInstanceSnapshot(args, parsed_globals):
2627
2792
  endpoint=g_param[OptionsDefine.Endpoint],
2628
2793
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2629
2794
  )
2630
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2795
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2631
2796
  if g_param[OptionsDefine.Language]:
2632
2797
  profile.language = g_param[OptionsDefine.Language]
2633
2798
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2682,7 +2847,7 @@ def doDetachCcn(args, parsed_globals):
2682
2847
  endpoint=g_param[OptionsDefine.Endpoint],
2683
2848
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2684
2849
  )
2685
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2850
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2686
2851
  if g_param[OptionsDefine.Language]:
2687
2852
  profile.language = g_param[OptionsDefine.Language]
2688
2853
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2737,7 +2902,7 @@ def doDescribeSnapshots(args, parsed_globals):
2737
2902
  endpoint=g_param[OptionsDefine.Endpoint],
2738
2903
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2739
2904
  )
2740
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2905
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2741
2906
  if g_param[OptionsDefine.Language]:
2742
2907
  profile.language = g_param[OptionsDefine.Language]
2743
2908
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2792,7 +2957,7 @@ def doModifyFirewallRules(args, parsed_globals):
2792
2957
  endpoint=g_param[OptionsDefine.Endpoint],
2793
2958
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2794
2959
  )
2795
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2960
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2796
2961
  if g_param[OptionsDefine.Language]:
2797
2962
  profile.language = g_param[OptionsDefine.Language]
2798
2963
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2847,7 +3012,7 @@ def doTerminateInstances(args, parsed_globals):
2847
3012
  endpoint=g_param[OptionsDefine.Endpoint],
2848
3013
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2849
3014
  )
2850
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3015
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2851
3016
  if g_param[OptionsDefine.Language]:
2852
3017
  profile.language = g_param[OptionsDefine.Language]
2853
3018
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -2877,7 +3042,7 @@ def doTerminateInstances(args, parsed_globals):
2877
3042
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
3043
 
2879
3044
 
2880
- def doRenewInstances(args, parsed_globals):
3045
+ def doSyncBlueprint(args, parsed_globals):
2881
3046
  g_param = parse_global_arg(parsed_globals)
2882
3047
 
2883
3048
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2902,18 +3067,18 @@ def doRenewInstances(args, parsed_globals):
2902
3067
  endpoint=g_param[OptionsDefine.Endpoint],
2903
3068
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2904
3069
  )
2905
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3070
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2906
3071
  if g_param[OptionsDefine.Language]:
2907
3072
  profile.language = g_param[OptionsDefine.Language]
2908
3073
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2909
3074
  client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
2910
3075
  client._sdkVersion += ("_CLI_" + __version__)
2911
3076
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2912
- model = models.RenewInstancesRequest()
3077
+ model = models.SyncBlueprintRequest()
2913
3078
  model.from_json_string(json.dumps(args))
2914
3079
  start_time = time.time()
2915
3080
  while True:
2916
- rsp = client.RenewInstances(model)
3081
+ rsp = client.SyncBlueprint(model)
2917
3082
  result = rsp.to_json_string()
2918
3083
  try:
2919
3084
  json_obj = json.loads(result)
@@ -2957,7 +3122,7 @@ def doTerminateDisks(args, parsed_globals):
2957
3122
  endpoint=g_param[OptionsDefine.Endpoint],
2958
3123
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2959
3124
  )
2960
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3125
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2961
3126
  if g_param[OptionsDefine.Language]:
2962
3127
  profile.language = g_param[OptionsDefine.Language]
2963
3128
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3012,7 +3177,7 @@ def doDescribeInstanceVncUrl(args, parsed_globals):
3012
3177
  endpoint=g_param[OptionsDefine.Endpoint],
3013
3178
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3014
3179
  )
3015
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3180
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3016
3181
  if g_param[OptionsDefine.Language]:
3017
3182
  profile.language = g_param[OptionsDefine.Language]
3018
3183
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3067,7 +3232,7 @@ def doModifySnapshotAttribute(args, parsed_globals):
3067
3232
  endpoint=g_param[OptionsDefine.Endpoint],
3068
3233
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3069
3234
  )
3070
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3235
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3071
3236
  if g_param[OptionsDefine.Language]:
3072
3237
  profile.language = g_param[OptionsDefine.Language]
3073
3238
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3122,7 +3287,7 @@ def doDescribeFirewallRules(args, parsed_globals):
3122
3287
  endpoint=g_param[OptionsDefine.Endpoint],
3123
3288
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3124
3289
  )
3125
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3290
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3126
3291
  if g_param[OptionsDefine.Language]:
3127
3292
  profile.language = g_param[OptionsDefine.Language]
3128
3293
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3177,7 +3342,7 @@ def doStartInstances(args, parsed_globals):
3177
3342
  endpoint=g_param[OptionsDefine.Endpoint],
3178
3343
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3179
3344
  )
3180
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3345
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3181
3346
  if g_param[OptionsDefine.Language]:
3182
3347
  profile.language = g_param[OptionsDefine.Language]
3183
3348
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3232,7 +3397,7 @@ def doDescribeKeyPairs(args, parsed_globals):
3232
3397
  endpoint=g_param[OptionsDefine.Endpoint],
3233
3398
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3234
3399
  )
3235
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3400
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3236
3401
  if g_param[OptionsDefine.Language]:
3237
3402
  profile.language = g_param[OptionsDefine.Language]
3238
3403
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3287,7 +3452,7 @@ def doDescribeResetInstanceBlueprints(args, parsed_globals):
3287
3452
  endpoint=g_param[OptionsDefine.Endpoint],
3288
3453
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3289
3454
  )
3290
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3455
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3291
3456
  if g_param[OptionsDefine.Language]:
3292
3457
  profile.language = g_param[OptionsDefine.Language]
3293
3458
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3342,7 +3507,7 @@ def doInquirePriceCreateDisks(args, parsed_globals):
3342
3507
  endpoint=g_param[OptionsDefine.Endpoint],
3343
3508
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3344
3509
  )
3345
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3510
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3346
3511
  if g_param[OptionsDefine.Language]:
3347
3512
  profile.language = g_param[OptionsDefine.Language]
3348
3513
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3397,7 +3562,7 @@ def doDescribeScenes(args, parsed_globals):
3397
3562
  endpoint=g_param[OptionsDefine.Endpoint],
3398
3563
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3399
3564
  )
3400
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3565
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3401
3566
  if g_param[OptionsDefine.Language]:
3402
3567
  profile.language = g_param[OptionsDefine.Language]
3403
3568
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3452,7 +3617,7 @@ def doIsolateDisks(args, parsed_globals):
3452
3617
  endpoint=g_param[OptionsDefine.Endpoint],
3453
3618
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3454
3619
  )
3455
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3620
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3456
3621
  if g_param[OptionsDefine.Language]:
3457
3622
  profile.language = g_param[OptionsDefine.Language]
3458
3623
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3507,7 +3672,7 @@ def doIsolateInstances(args, parsed_globals):
3507
3672
  endpoint=g_param[OptionsDefine.Endpoint],
3508
3673
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3509
3674
  )
3510
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3675
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3511
3676
  if g_param[OptionsDefine.Language]:
3512
3677
  profile.language = g_param[OptionsDefine.Language]
3513
3678
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3562,7 +3727,7 @@ def doDescribeDiskConfigs(args, parsed_globals):
3562
3727
  endpoint=g_param[OptionsDefine.Endpoint],
3563
3728
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3564
3729
  )
3565
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3730
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3566
3731
  if g_param[OptionsDefine.Language]:
3567
3732
  profile.language = g_param[OptionsDefine.Language]
3568
3733
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3617,7 +3782,7 @@ def doModifyFirewallRuleDescription(args, parsed_globals):
3617
3782
  endpoint=g_param[OptionsDefine.Endpoint],
3618
3783
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3619
3784
  )
3620
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3785
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3621
3786
  if g_param[OptionsDefine.Language]:
3622
3787
  profile.language = g_param[OptionsDefine.Language]
3623
3788
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3647,7 +3812,7 @@ def doModifyFirewallRuleDescription(args, parsed_globals):
3647
3812
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3648
3813
 
3649
3814
 
3650
- def doResetAttachCcn(args, parsed_globals):
3815
+ def doDescribeDiskDiscount(args, parsed_globals):
3651
3816
  g_param = parse_global_arg(parsed_globals)
3652
3817
 
3653
3818
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3672,18 +3837,18 @@ def doResetAttachCcn(args, parsed_globals):
3672
3837
  endpoint=g_param[OptionsDefine.Endpoint],
3673
3838
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3674
3839
  )
3675
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3840
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3676
3841
  if g_param[OptionsDefine.Language]:
3677
3842
  profile.language = g_param[OptionsDefine.Language]
3678
3843
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3679
3844
  client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
3680
3845
  client._sdkVersion += ("_CLI_" + __version__)
3681
3846
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3682
- model = models.ResetAttachCcnRequest()
3847
+ model = models.DescribeDiskDiscountRequest()
3683
3848
  model.from_json_string(json.dumps(args))
3684
3849
  start_time = time.time()
3685
3850
  while True:
3686
- rsp = client.ResetAttachCcn(model)
3851
+ rsp = client.DescribeDiskDiscount(model)
3687
3852
  result = rsp.to_json_string()
3688
3853
  try:
3689
3854
  json_obj = json.loads(result)
@@ -3727,7 +3892,7 @@ def doRebootInstances(args, parsed_globals):
3727
3892
  endpoint=g_param[OptionsDefine.Endpoint],
3728
3893
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3729
3894
  )
3730
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3895
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3731
3896
  if g_param[OptionsDefine.Language]:
3732
3897
  profile.language = g_param[OptionsDefine.Language]
3733
3898
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3757,7 +3922,7 @@ def doRebootInstances(args, parsed_globals):
3757
3922
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3758
3923
 
3759
3924
 
3760
- def doCreateInstances(args, parsed_globals):
3925
+ def doCreateInstanceSnapshot(args, parsed_globals):
3761
3926
  g_param = parse_global_arg(parsed_globals)
3762
3927
 
3763
3928
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3782,18 +3947,73 @@ def doCreateInstances(args, parsed_globals):
3782
3947
  endpoint=g_param[OptionsDefine.Endpoint],
3783
3948
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3784
3949
  )
3785
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3950
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3786
3951
  if g_param[OptionsDefine.Language]:
3787
3952
  profile.language = g_param[OptionsDefine.Language]
3788
3953
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3789
3954
  client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
3790
3955
  client._sdkVersion += ("_CLI_" + __version__)
3791
3956
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3792
- model = models.CreateInstancesRequest()
3957
+ model = models.CreateInstanceSnapshotRequest()
3793
3958
  model.from_json_string(json.dumps(args))
3794
3959
  start_time = time.time()
3795
3960
  while True:
3796
- rsp = client.CreateInstances(model)
3961
+ rsp = client.CreateInstanceSnapshot(model)
3962
+ result = rsp.to_json_string()
3963
+ try:
3964
+ json_obj = json.loads(result)
3965
+ except TypeError as e:
3966
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3967
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3968
+ break
3969
+ cur_time = time.time()
3970
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3971
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3972
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3973
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3974
+ else:
3975
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3976
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3977
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3978
+
3979
+
3980
+ def doModifyImageSharePermission(args, parsed_globals):
3981
+ g_param = parse_global_arg(parsed_globals)
3982
+
3983
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3984
+ cred = credential.CVMRoleCredential()
3985
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3986
+ cred = credential.STSAssumeRoleCredential(
3987
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3988
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3989
+ )
3990
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3991
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3992
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3993
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3994
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3995
+ else:
3996
+ cred = credential.Credential(
3997
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3998
+ )
3999
+ http_profile = HttpProfile(
4000
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4001
+ reqMethod="POST",
4002
+ endpoint=g_param[OptionsDefine.Endpoint],
4003
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4004
+ )
4005
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4006
+ if g_param[OptionsDefine.Language]:
4007
+ profile.language = g_param[OptionsDefine.Language]
4008
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4009
+ client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
4010
+ client._sdkVersion += ("_CLI_" + __version__)
4011
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4012
+ model = models.ModifyImageSharePermissionRequest()
4013
+ model.from_json_string(json.dumps(args))
4014
+ start_time = time.time()
4015
+ while True:
4016
+ rsp = client.ModifyImageSharePermission(model)
3797
4017
  result = rsp.to_json_string()
3798
4018
  try:
3799
4019
  json_obj = json.loads(result)
@@ -3837,7 +4057,7 @@ def doRenewDisks(args, parsed_globals):
3837
4057
  endpoint=g_param[OptionsDefine.Endpoint],
3838
4058
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3839
4059
  )
3840
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4060
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3841
4061
  if g_param[OptionsDefine.Language]:
3842
4062
  profile.language = g_param[OptionsDefine.Language]
3843
4063
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3867,6 +4087,61 @@ def doRenewDisks(args, parsed_globals):
3867
4087
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3868
4088
 
3869
4089
 
4090
+ def doDescribeSnapshotsDeniedActions(args, parsed_globals):
4091
+ g_param = parse_global_arg(parsed_globals)
4092
+
4093
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4094
+ cred = credential.CVMRoleCredential()
4095
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4096
+ cred = credential.STSAssumeRoleCredential(
4097
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4098
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4099
+ )
4100
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4101
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4102
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4103
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4104
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4105
+ else:
4106
+ cred = credential.Credential(
4107
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4108
+ )
4109
+ http_profile = HttpProfile(
4110
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4111
+ reqMethod="POST",
4112
+ endpoint=g_param[OptionsDefine.Endpoint],
4113
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4114
+ )
4115
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4116
+ if g_param[OptionsDefine.Language]:
4117
+ profile.language = g_param[OptionsDefine.Language]
4118
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4119
+ client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
4120
+ client._sdkVersion += ("_CLI_" + __version__)
4121
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4122
+ model = models.DescribeSnapshotsDeniedActionsRequest()
4123
+ model.from_json_string(json.dumps(args))
4124
+ start_time = time.time()
4125
+ while True:
4126
+ rsp = client.DescribeSnapshotsDeniedActions(model)
4127
+ result = rsp.to_json_string()
4128
+ try:
4129
+ json_obj = json.loads(result)
4130
+ except TypeError as e:
4131
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4132
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4133
+ break
4134
+ cur_time = time.time()
4135
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4136
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4137
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4138
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4139
+ else:
4140
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4141
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4142
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4143
+
4144
+
3870
4145
  def doCreateBlueprint(args, parsed_globals):
3871
4146
  g_param = parse_global_arg(parsed_globals)
3872
4147
 
@@ -3892,7 +4167,7 @@ def doCreateBlueprint(args, parsed_globals):
3892
4167
  endpoint=g_param[OptionsDefine.Endpoint],
3893
4168
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3894
4169
  )
3895
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4170
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3896
4171
  if g_param[OptionsDefine.Language]:
3897
4172
  profile.language = g_param[OptionsDefine.Language]
3898
4173
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -3922,7 +4197,7 @@ def doCreateBlueprint(args, parsed_globals):
3922
4197
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3923
4198
 
3924
4199
 
3925
- def doDescribeSnapshotsDeniedActions(args, parsed_globals):
4200
+ def doShareBlueprintAcrossAccounts(args, parsed_globals):
3926
4201
  g_param = parse_global_arg(parsed_globals)
3927
4202
 
3928
4203
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3947,18 +4222,18 @@ def doDescribeSnapshotsDeniedActions(args, parsed_globals):
3947
4222
  endpoint=g_param[OptionsDefine.Endpoint],
3948
4223
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3949
4224
  )
3950
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4225
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3951
4226
  if g_param[OptionsDefine.Language]:
3952
4227
  profile.language = g_param[OptionsDefine.Language]
3953
4228
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3954
4229
  client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
3955
4230
  client._sdkVersion += ("_CLI_" + __version__)
3956
4231
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3957
- model = models.DescribeSnapshotsDeniedActionsRequest()
4232
+ model = models.ShareBlueprintAcrossAccountsRequest()
3958
4233
  model.from_json_string(json.dumps(args))
3959
4234
  start_time = time.time()
3960
4235
  while True:
3961
- rsp = client.DescribeSnapshotsDeniedActions(model)
4236
+ rsp = client.ShareBlueprintAcrossAccounts(model)
3962
4237
  result = rsp.to_json_string()
3963
4238
  try:
3964
4239
  json_obj = json.loads(result)
@@ -3977,7 +4252,7 @@ def doDescribeSnapshotsDeniedActions(args, parsed_globals):
3977
4252
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3978
4253
 
3979
4254
 
3980
- def doCreateInstanceSnapshot(args, parsed_globals):
4255
+ def doResetAttachCcn(args, parsed_globals):
3981
4256
  g_param = parse_global_arg(parsed_globals)
3982
4257
 
3983
4258
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4002,18 +4277,73 @@ def doCreateInstanceSnapshot(args, parsed_globals):
4002
4277
  endpoint=g_param[OptionsDefine.Endpoint],
4003
4278
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4004
4279
  )
4005
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4280
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4006
4281
  if g_param[OptionsDefine.Language]:
4007
4282
  profile.language = g_param[OptionsDefine.Language]
4008
4283
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4009
4284
  client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
4010
4285
  client._sdkVersion += ("_CLI_" + __version__)
4011
4286
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4012
- model = models.CreateInstanceSnapshotRequest()
4287
+ model = models.ResetAttachCcnRequest()
4013
4288
  model.from_json_string(json.dumps(args))
4014
4289
  start_time = time.time()
4015
4290
  while True:
4016
- rsp = client.CreateInstanceSnapshot(model)
4291
+ rsp = client.ResetAttachCcn(model)
4292
+ result = rsp.to_json_string()
4293
+ try:
4294
+ json_obj = json.loads(result)
4295
+ except TypeError as e:
4296
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4297
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4298
+ break
4299
+ cur_time = time.time()
4300
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4301
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4302
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4303
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4304
+ else:
4305
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4306
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4307
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4308
+
4309
+
4310
+ def doResizeDisks(args, parsed_globals):
4311
+ g_param = parse_global_arg(parsed_globals)
4312
+
4313
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4314
+ cred = credential.CVMRoleCredential()
4315
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4316
+ cred = credential.STSAssumeRoleCredential(
4317
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4318
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4319
+ )
4320
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4321
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4322
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4323
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4324
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4325
+ else:
4326
+ cred = credential.Credential(
4327
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4328
+ )
4329
+ http_profile = HttpProfile(
4330
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4331
+ reqMethod="POST",
4332
+ endpoint=g_param[OptionsDefine.Endpoint],
4333
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4334
+ )
4335
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4336
+ if g_param[OptionsDefine.Language]:
4337
+ profile.language = g_param[OptionsDefine.Language]
4338
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4339
+ client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
4340
+ client._sdkVersion += ("_CLI_" + __version__)
4341
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4342
+ model = models.ResizeDisksRequest()
4343
+ model.from_json_string(json.dumps(args))
4344
+ start_time = time.time()
4345
+ while True:
4346
+ rsp = client.ResizeDisks(model)
4017
4347
  result = rsp.to_json_string()
4018
4348
  try:
4019
4349
  json_obj = json.loads(result)
@@ -4057,7 +4387,7 @@ def doModifyInstancesBundle(args, parsed_globals):
4057
4387
  endpoint=g_param[OptionsDefine.Endpoint],
4058
4388
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4059
4389
  )
4060
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4390
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4061
4391
  if g_param[OptionsDefine.Language]:
4062
4392
  profile.language = g_param[OptionsDefine.Language]
4063
4393
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -4102,7 +4432,7 @@ ACTION_MAP = {
4102
4432
  "DeleteBlueprints": doDeleteBlueprints,
4103
4433
  "CreateDisks": doCreateDisks,
4104
4434
  "DescribeAllScenes": doDescribeAllScenes,
4105
- "DescribeDiskDiscount": doDescribeDiskDiscount,
4435
+ "CancelShareBlueprintAcrossAccounts": doCancelShareBlueprintAcrossAccounts,
4106
4436
  "CreateFirewallRules": doCreateFirewallRules,
4107
4437
  "DescribeInstancesReturnable": doDescribeInstancesReturnable,
4108
4438
  "ModifyInstancesAttribute": doModifyInstancesAttribute,
@@ -4116,6 +4446,7 @@ ACTION_MAP = {
4116
4446
  "DescribeCcnAttachedInstances": doDescribeCcnAttachedInstances,
4117
4447
  "DescribeInstances": doDescribeInstances,
4118
4448
  "ImportKeyPair": doImportKeyPair,
4449
+ "DescribeImagesToShare": doDescribeImagesToShare,
4119
4450
  "DescribeInstancesTrafficPackages": doDescribeInstancesTrafficPackages,
4120
4451
  "InquirePriceCreateBlueprint": doInquirePriceCreateBlueprint,
4121
4452
  "AttachDisks": doAttachDisks,
@@ -4123,11 +4454,13 @@ ACTION_MAP = {
4123
4454
  "DeleteFirewallRules": doDeleteFirewallRules,
4124
4455
  "DisassociateInstancesKeyPairs": doDisassociateInstancesKeyPairs,
4125
4456
  "DescribeBundleDiscount": doDescribeBundleDiscount,
4457
+ "CreateInstances": doCreateInstances,
4126
4458
  "AttachCcn": doAttachCcn,
4127
4459
  "DescribeBlueprints": doDescribeBlueprints,
4128
4460
  "ResetInstancesPassword": doResetInstancesPassword,
4129
4461
  "ModifyInstancesRenewFlag": doModifyInstancesRenewFlag,
4130
4462
  "DescribeDisksDeniedActions": doDescribeDisksDeniedActions,
4463
+ "RenewInstances": doRenewInstances,
4131
4464
  "DescribeModifyInstanceBundles": doDescribeModifyInstanceBundles,
4132
4465
  "DescribeDisks": doDescribeDisks,
4133
4466
  "DescribeGeneralResourceQuotas": doDescribeGeneralResourceQuotas,
@@ -4150,7 +4483,7 @@ ACTION_MAP = {
4150
4483
  "DescribeSnapshots": doDescribeSnapshots,
4151
4484
  "ModifyFirewallRules": doModifyFirewallRules,
4152
4485
  "TerminateInstances": doTerminateInstances,
4153
- "RenewInstances": doRenewInstances,
4486
+ "SyncBlueprint": doSyncBlueprint,
4154
4487
  "TerminateDisks": doTerminateDisks,
4155
4488
  "DescribeInstanceVncUrl": doDescribeInstanceVncUrl,
4156
4489
  "ModifySnapshotAttribute": doModifySnapshotAttribute,
@@ -4164,13 +4497,16 @@ ACTION_MAP = {
4164
4497
  "IsolateInstances": doIsolateInstances,
4165
4498
  "DescribeDiskConfigs": doDescribeDiskConfigs,
4166
4499
  "ModifyFirewallRuleDescription": doModifyFirewallRuleDescription,
4167
- "ResetAttachCcn": doResetAttachCcn,
4500
+ "DescribeDiskDiscount": doDescribeDiskDiscount,
4168
4501
  "RebootInstances": doRebootInstances,
4169
- "CreateInstances": doCreateInstances,
4502
+ "CreateInstanceSnapshot": doCreateInstanceSnapshot,
4503
+ "ModifyImageSharePermission": doModifyImageSharePermission,
4170
4504
  "RenewDisks": doRenewDisks,
4171
- "CreateBlueprint": doCreateBlueprint,
4172
4505
  "DescribeSnapshotsDeniedActions": doDescribeSnapshotsDeniedActions,
4173
- "CreateInstanceSnapshot": doCreateInstanceSnapshot,
4506
+ "CreateBlueprint": doCreateBlueprint,
4507
+ "ShareBlueprintAcrossAccounts": doShareBlueprintAcrossAccounts,
4508
+ "ResetAttachCcn": doResetAttachCcn,
4509
+ "ResizeDisks": doResizeDisks,
4174
4510
  "ModifyInstancesBundle": doModifyInstancesBundle,
4175
4511
 
4176
4512
  }