tccli 3.0.1231.1__py2.py3-none-any.whl → 3.0.1232.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -123,6 +123,58 @@ def doDescribeModelService(args, parsed_globals):
123
123
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
124
124
 
125
125
 
126
+ def doDescribeBillingSpecs(args, parsed_globals):
127
+ g_param = parse_global_arg(parsed_globals)
128
+
129
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
130
+ cred = credential.CVMRoleCredential()
131
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
132
+ cred = credential.STSAssumeRoleCredential(
133
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
134
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
135
+ )
136
+ 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):
137
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
138
+ else:
139
+ cred = credential.Credential(
140
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
141
+ )
142
+ http_profile = HttpProfile(
143
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
144
+ reqMethod="POST",
145
+ endpoint=g_param[OptionsDefine.Endpoint],
146
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
147
+ )
148
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
149
+ if g_param[OptionsDefine.Language]:
150
+ profile.language = g_param[OptionsDefine.Language]
151
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
152
+ client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
153
+ client._sdkVersion += ("_CLI_" + __version__)
154
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
155
+ model = models.DescribeBillingSpecsRequest()
156
+ model.from_json_string(json.dumps(args))
157
+ start_time = time.time()
158
+ while True:
159
+ rsp = client.DescribeBillingSpecs(model)
160
+ result = rsp.to_json_string()
161
+ try:
162
+ json_obj = json.loads(result)
163
+ except TypeError as e:
164
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
165
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
166
+ break
167
+ cur_time = time.time()
168
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
169
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
170
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
171
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
172
+ else:
173
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
174
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
175
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
176
+
177
+
126
178
  def doDeleteDataset(args, parsed_globals):
127
179
  g_param = parse_global_arg(parsed_globals)
128
180
 
@@ -175,7 +227,7 @@ def doDeleteDataset(args, parsed_globals):
175
227
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
176
228
 
177
229
 
178
- def doDescribeModelServiceCallInfo(args, parsed_globals):
230
+ def doDescribeBillingSpecsPrice(args, parsed_globals):
179
231
  g_param = parse_global_arg(parsed_globals)
180
232
 
181
233
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -204,11 +256,11 @@ def doDescribeModelServiceCallInfo(args, parsed_globals):
204
256
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
205
257
  client._sdkVersion += ("_CLI_" + __version__)
206
258
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
207
- model = models.DescribeModelServiceCallInfoRequest()
259
+ model = models.DescribeBillingSpecsPriceRequest()
208
260
  model.from_json_string(json.dumps(args))
209
261
  start_time = time.time()
210
262
  while True:
211
- rsp = client.DescribeModelServiceCallInfo(model)
263
+ rsp = client.DescribeBillingSpecsPrice(model)
212
264
  result = rsp.to_json_string()
213
265
  try:
214
266
  json_obj = json.loads(result)
@@ -227,7 +279,7 @@ def doDescribeModelServiceCallInfo(args, parsed_globals):
227
279
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
228
280
 
229
281
 
230
- def doUpdateNotebookInstance(args, parsed_globals):
282
+ def doDescribeModelServiceCallInfo(args, parsed_globals):
231
283
  g_param = parse_global_arg(parsed_globals)
232
284
 
233
285
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -256,11 +308,11 @@ def doUpdateNotebookInstance(args, parsed_globals):
256
308
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
257
309
  client._sdkVersion += ("_CLI_" + __version__)
258
310
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
259
- model = models.UpdateNotebookInstanceRequest()
311
+ model = models.DescribeModelServiceCallInfoRequest()
260
312
  model.from_json_string(json.dumps(args))
261
313
  start_time = time.time()
262
314
  while True:
263
- rsp = client.UpdateNotebookInstance(model)
315
+ rsp = client.DescribeModelServiceCallInfo(model)
264
316
  result = rsp.to_json_string()
265
317
  try:
266
318
  json_obj = json.loads(result)
@@ -279,7 +331,7 @@ def doUpdateNotebookInstance(args, parsed_globals):
279
331
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
280
332
 
281
333
 
282
- def doDescribeTrainingTasks(args, parsed_globals):
334
+ def doCreateTrainingModel(args, parsed_globals):
283
335
  g_param = parse_global_arg(parsed_globals)
284
336
 
285
337
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -308,11 +360,11 @@ def doDescribeTrainingTasks(args, parsed_globals):
308
360
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
309
361
  client._sdkVersion += ("_CLI_" + __version__)
310
362
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
311
- model = models.DescribeTrainingTasksRequest()
363
+ model = models.CreateTrainingModelRequest()
312
364
  model.from_json_string(json.dumps(args))
313
365
  start_time = time.time()
314
366
  while True:
315
- rsp = client.DescribeTrainingTasks(model)
367
+ rsp = client.CreateTrainingModel(model)
316
368
  result = rsp.to_json_string()
317
369
  try:
318
370
  json_obj = json.loads(result)
@@ -331,7 +383,7 @@ def doDescribeTrainingTasks(args, parsed_globals):
331
383
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
332
384
 
333
385
 
334
- def doDescribeBuildInImages(args, parsed_globals):
386
+ def doUpdateNotebookInstance(args, parsed_globals):
335
387
  g_param = parse_global_arg(parsed_globals)
336
388
 
337
389
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -360,11 +412,11 @@ def doDescribeBuildInImages(args, parsed_globals):
360
412
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
361
413
  client._sdkVersion += ("_CLI_" + __version__)
362
414
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
363
- model = models.DescribeBuildInImagesRequest()
415
+ model = models.UpdateNotebookInstanceRequest()
364
416
  model.from_json_string(json.dumps(args))
365
417
  start_time = time.time()
366
418
  while True:
367
- rsp = client.DescribeBuildInImages(model)
419
+ rsp = client.UpdateNotebookInstance(model)
368
420
  result = rsp.to_json_string()
369
421
  try:
370
422
  json_obj = json.loads(result)
@@ -383,7 +435,7 @@ def doDescribeBuildInImages(args, parsed_globals):
383
435
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
384
436
 
385
437
 
386
- def doDescribeNotebookLifecycleScripts(args, parsed_globals):
438
+ def doDescribeTrainingTasks(args, parsed_globals):
387
439
  g_param = parse_global_arg(parsed_globals)
388
440
 
389
441
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -412,11 +464,11 @@ def doDescribeNotebookLifecycleScripts(args, parsed_globals):
412
464
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
413
465
  client._sdkVersion += ("_CLI_" + __version__)
414
466
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
415
- model = models.DescribeNotebookLifecycleScriptsRequest()
467
+ model = models.DescribeTrainingTasksRequest()
416
468
  model.from_json_string(json.dumps(args))
417
469
  start_time = time.time()
418
470
  while True:
419
- rsp = client.DescribeNotebookLifecycleScripts(model)
471
+ rsp = client.DescribeTrainingTasks(model)
420
472
  result = rsp.to_json_string()
421
473
  try:
422
474
  json_obj = json.loads(result)
@@ -435,7 +487,7 @@ def doDescribeNotebookLifecycleScripts(args, parsed_globals):
435
487
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
436
488
 
437
489
 
438
- def doStopTrainingJob(args, parsed_globals):
490
+ def doDescribeBuildInImages(args, parsed_globals):
439
491
  g_param = parse_global_arg(parsed_globals)
440
492
 
441
493
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -464,11 +516,11 @@ def doStopTrainingJob(args, parsed_globals):
464
516
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
465
517
  client._sdkVersion += ("_CLI_" + __version__)
466
518
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
467
- model = models.StopTrainingJobRequest()
519
+ model = models.DescribeBuildInImagesRequest()
468
520
  model.from_json_string(json.dumps(args))
469
521
  start_time = time.time()
470
522
  while True:
471
- rsp = client.StopTrainingJob(model)
523
+ rsp = client.DescribeBuildInImages(model)
472
524
  result = rsp.to_json_string()
473
525
  try:
474
526
  json_obj = json.loads(result)
@@ -487,7 +539,7 @@ def doStopTrainingJob(args, parsed_globals):
487
539
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
488
540
 
489
541
 
490
- def doStartNotebook(args, parsed_globals):
542
+ def doDescribeNotebookLifecycleScripts(args, parsed_globals):
491
543
  g_param = parse_global_arg(parsed_globals)
492
544
 
493
545
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -516,11 +568,11 @@ def doStartNotebook(args, parsed_globals):
516
568
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
517
569
  client._sdkVersion += ("_CLI_" + __version__)
518
570
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
519
- model = models.StartNotebookRequest()
571
+ model = models.DescribeNotebookLifecycleScriptsRequest()
520
572
  model.from_json_string(json.dumps(args))
521
573
  start_time = time.time()
522
574
  while True:
523
- rsp = client.StartNotebook(model)
575
+ rsp = client.DescribeNotebookLifecycleScripts(model)
524
576
  result = rsp.to_json_string()
525
577
  try:
526
578
  json_obj = json.loads(result)
@@ -539,7 +591,7 @@ def doStartNotebook(args, parsed_globals):
539
591
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
540
592
 
541
593
 
542
- def doCreateTrainingModel(args, parsed_globals):
594
+ def doStopTrainingJob(args, parsed_globals):
543
595
  g_param = parse_global_arg(parsed_globals)
544
596
 
545
597
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -568,11 +620,11 @@ def doCreateTrainingModel(args, parsed_globals):
568
620
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
569
621
  client._sdkVersion += ("_CLI_" + __version__)
570
622
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
571
- model = models.CreateTrainingModelRequest()
623
+ model = models.StopTrainingJobRequest()
572
624
  model.from_json_string(json.dumps(args))
573
625
  start_time = time.time()
574
626
  while True:
575
- rsp = client.CreateTrainingModel(model)
627
+ rsp = client.StopTrainingJob(model)
576
628
  result = rsp.to_json_string()
577
629
  try:
578
630
  json_obj = json.loads(result)
@@ -591,7 +643,7 @@ def doCreateTrainingModel(args, parsed_globals):
591
643
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
592
644
 
593
645
 
594
- def doStartNotebookInstance(args, parsed_globals):
646
+ def doStartNotebook(args, parsed_globals):
595
647
  g_param = parse_global_arg(parsed_globals)
596
648
 
597
649
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -620,11 +672,11 @@ def doStartNotebookInstance(args, parsed_globals):
620
672
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
621
673
  client._sdkVersion += ("_CLI_" + __version__)
622
674
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
623
- model = models.StartNotebookInstanceRequest()
675
+ model = models.StartNotebookRequest()
624
676
  model.from_json_string(json.dumps(args))
625
677
  start_time = time.time()
626
678
  while True:
627
- rsp = client.StartNotebookInstance(model)
679
+ rsp = client.StartNotebook(model)
628
680
  result = rsp.to_json_string()
629
681
  try:
630
682
  json_obj = json.loads(result)
@@ -643,7 +695,7 @@ def doStartNotebookInstance(args, parsed_globals):
643
695
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
644
696
 
645
697
 
646
- def doDeleteNotebook(args, parsed_globals):
698
+ def doDescribeNotebooks(args, parsed_globals):
647
699
  g_param = parse_global_arg(parsed_globals)
648
700
 
649
701
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -672,11 +724,11 @@ def doDeleteNotebook(args, parsed_globals):
672
724
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
673
725
  client._sdkVersion += ("_CLI_" + __version__)
674
726
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
675
- model = models.DeleteNotebookRequest()
727
+ model = models.DescribeNotebooksRequest()
676
728
  model.from_json_string(json.dumps(args))
677
729
  start_time = time.time()
678
730
  while True:
679
- rsp = client.DeleteNotebook(model)
731
+ rsp = client.DescribeNotebooks(model)
680
732
  result = rsp.to_json_string()
681
733
  try:
682
734
  json_obj = json.loads(result)
@@ -695,7 +747,7 @@ def doDeleteNotebook(args, parsed_globals):
695
747
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
696
748
 
697
749
 
698
- def doDescribeTrainingTask(args, parsed_globals):
750
+ def doStartNotebookInstance(args, parsed_globals):
699
751
  g_param = parse_global_arg(parsed_globals)
700
752
 
701
753
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -724,11 +776,11 @@ def doDescribeTrainingTask(args, parsed_globals):
724
776
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
725
777
  client._sdkVersion += ("_CLI_" + __version__)
726
778
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
727
- model = models.DescribeTrainingTaskRequest()
779
+ model = models.StartNotebookInstanceRequest()
728
780
  model.from_json_string(json.dumps(args))
729
781
  start_time = time.time()
730
782
  while True:
731
- rsp = client.DescribeTrainingTask(model)
783
+ rsp = client.StartNotebookInstance(model)
732
784
  result = rsp.to_json_string()
733
785
  try:
734
786
  json_obj = json.loads(result)
@@ -747,7 +799,7 @@ def doDescribeTrainingTask(args, parsed_globals):
747
799
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
748
800
 
749
801
 
750
- def doDescribeTrainingTaskPods(args, parsed_globals):
802
+ def doDeleteNotebook(args, parsed_globals):
751
803
  g_param = parse_global_arg(parsed_globals)
752
804
 
753
805
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -776,11 +828,11 @@ def doDescribeTrainingTaskPods(args, parsed_globals):
776
828
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
777
829
  client._sdkVersion += ("_CLI_" + __version__)
778
830
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
779
- model = models.DescribeTrainingTaskPodsRequest()
831
+ model = models.DeleteNotebookRequest()
780
832
  model.from_json_string(json.dumps(args))
781
833
  start_time = time.time()
782
834
  while True:
783
- rsp = client.DescribeTrainingTaskPods(model)
835
+ rsp = client.DeleteNotebook(model)
784
836
  result = rsp.to_json_string()
785
837
  try:
786
838
  json_obj = json.loads(result)
@@ -799,7 +851,7 @@ def doDescribeTrainingTaskPods(args, parsed_globals):
799
851
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
800
852
 
801
853
 
802
- def doDescribeModelServiceHotUpdated(args, parsed_globals):
854
+ def doDeleteNotebookInstance(args, parsed_globals):
803
855
  g_param = parse_global_arg(parsed_globals)
804
856
 
805
857
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -828,11 +880,11 @@ def doDescribeModelServiceHotUpdated(args, parsed_globals):
828
880
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
829
881
  client._sdkVersion += ("_CLI_" + __version__)
830
882
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
831
- model = models.DescribeModelServiceHotUpdatedRequest()
883
+ model = models.DeleteNotebookInstanceRequest()
832
884
  model.from_json_string(json.dumps(args))
833
885
  start_time = time.time()
834
886
  while True:
835
- rsp = client.DescribeModelServiceHotUpdated(model)
887
+ rsp = client.DeleteNotebookInstance(model)
836
888
  result = rsp.to_json_string()
837
889
  try:
838
890
  json_obj = json.loads(result)
@@ -851,7 +903,7 @@ def doDescribeModelServiceHotUpdated(args, parsed_globals):
851
903
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
852
904
 
853
905
 
854
- def doDescribeModelAccelerateTask(args, parsed_globals):
906
+ def doDescribeTrainingTaskPods(args, parsed_globals):
855
907
  g_param = parse_global_arg(parsed_globals)
856
908
 
857
909
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -880,11 +932,11 @@ def doDescribeModelAccelerateTask(args, parsed_globals):
880
932
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
881
933
  client._sdkVersion += ("_CLI_" + __version__)
882
934
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
883
- model = models.DescribeModelAccelerateTaskRequest()
935
+ model = models.DescribeTrainingTaskPodsRequest()
884
936
  model.from_json_string(json.dumps(args))
885
937
  start_time = time.time()
886
938
  while True:
887
- rsp = client.DescribeModelAccelerateTask(model)
939
+ rsp = client.DescribeTrainingTaskPods(model)
888
940
  result = rsp.to_json_string()
889
941
  try:
890
942
  json_obj = json.loads(result)
@@ -903,7 +955,7 @@ def doDescribeModelAccelerateTask(args, parsed_globals):
903
955
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
904
956
 
905
957
 
906
- def doChatCompletion(args, parsed_globals):
958
+ def doDescribeModelServiceHotUpdated(args, parsed_globals):
907
959
  g_param = parse_global_arg(parsed_globals)
908
960
 
909
961
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -932,11 +984,11 @@ def doChatCompletion(args, parsed_globals):
932
984
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
933
985
  client._sdkVersion += ("_CLI_" + __version__)
934
986
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
935
- model = models.ChatCompletionRequest()
987
+ model = models.DescribeModelServiceHotUpdatedRequest()
936
988
  model.from_json_string(json.dumps(args))
937
989
  start_time = time.time()
938
990
  while True:
939
- rsp = client.ChatCompletion(model)
991
+ rsp = client.DescribeModelServiceHotUpdated(model)
940
992
  result = rsp.to_json_string()
941
993
  try:
942
994
  json_obj = json.loads(result)
@@ -955,7 +1007,7 @@ def doChatCompletion(args, parsed_globals):
955
1007
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
956
1008
 
957
1009
 
958
- def doDescribeModelAccelerateVersions(args, parsed_globals):
1010
+ def doDescribeModelAccelerateTask(args, parsed_globals):
959
1011
  g_param = parse_global_arg(parsed_globals)
960
1012
 
961
1013
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -984,11 +1036,11 @@ def doDescribeModelAccelerateVersions(args, parsed_globals):
984
1036
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
985
1037
  client._sdkVersion += ("_CLI_" + __version__)
986
1038
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
987
- model = models.DescribeModelAccelerateVersionsRequest()
1039
+ model = models.DescribeModelAccelerateTaskRequest()
988
1040
  model.from_json_string(json.dumps(args))
989
1041
  start_time = time.time()
990
1042
  while True:
991
- rsp = client.DescribeModelAccelerateVersions(model)
1043
+ rsp = client.DescribeModelAccelerateTask(model)
992
1044
  result = rsp.to_json_string()
993
1045
  try:
994
1046
  json_obj = json.loads(result)
@@ -1007,7 +1059,7 @@ def doDescribeModelAccelerateVersions(args, parsed_globals):
1007
1059
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1008
1060
 
1009
1061
 
1010
- def doCreateDataset(args, parsed_globals):
1062
+ def doChatCompletion(args, parsed_globals):
1011
1063
  g_param = parse_global_arg(parsed_globals)
1012
1064
 
1013
1065
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1036,11 +1088,11 @@ def doCreateDataset(args, parsed_globals):
1036
1088
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1037
1089
  client._sdkVersion += ("_CLI_" + __version__)
1038
1090
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1039
- model = models.CreateDatasetRequest()
1091
+ model = models.ChatCompletionRequest()
1040
1092
  model.from_json_string(json.dumps(args))
1041
1093
  start_time = time.time()
1042
1094
  while True:
1043
- rsp = client.CreateDataset(model)
1095
+ rsp = client.ChatCompletion(model)
1044
1096
  result = rsp.to_json_string()
1045
1097
  try:
1046
1098
  json_obj = json.loads(result)
@@ -1059,7 +1111,7 @@ def doCreateDataset(args, parsed_globals):
1059
1111
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1060
1112
 
1061
1113
 
1062
- def doCreateNotebook(args, parsed_globals):
1114
+ def doDescribeModelAccelerateVersions(args, parsed_globals):
1063
1115
  g_param = parse_global_arg(parsed_globals)
1064
1116
 
1065
1117
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1088,11 +1140,11 @@ def doCreateNotebook(args, parsed_globals):
1088
1140
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1089
1141
  client._sdkVersion += ("_CLI_" + __version__)
1090
1142
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1091
- model = models.CreateNotebookRequest()
1143
+ model = models.DescribeModelAccelerateVersionsRequest()
1092
1144
  model.from_json_string(json.dumps(args))
1093
1145
  start_time = time.time()
1094
1146
  while True:
1095
- rsp = client.CreateNotebook(model)
1147
+ rsp = client.DescribeModelAccelerateVersions(model)
1096
1148
  result = rsp.to_json_string()
1097
1149
  try:
1098
1150
  json_obj = json.loads(result)
@@ -1111,7 +1163,7 @@ def doCreateNotebook(args, parsed_globals):
1111
1163
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1112
1164
 
1113
1165
 
1114
- def doDescribeModelServiceGroup(args, parsed_globals):
1166
+ def doCreateDataset(args, parsed_globals):
1115
1167
  g_param = parse_global_arg(parsed_globals)
1116
1168
 
1117
1169
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1140,11 +1192,11 @@ def doDescribeModelServiceGroup(args, parsed_globals):
1140
1192
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1141
1193
  client._sdkVersion += ("_CLI_" + __version__)
1142
1194
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1143
- model = models.DescribeModelServiceGroupRequest()
1195
+ model = models.CreateDatasetRequest()
1144
1196
  model.from_json_string(json.dumps(args))
1145
1197
  start_time = time.time()
1146
1198
  while True:
1147
- rsp = client.DescribeModelServiceGroup(model)
1199
+ rsp = client.CreateDataset(model)
1148
1200
  result = rsp.to_json_string()
1149
1201
  try:
1150
1202
  json_obj = json.loads(result)
@@ -1163,7 +1215,7 @@ def doDescribeModelServiceGroup(args, parsed_globals):
1163
1215
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1164
1216
 
1165
1217
 
1166
- def doCreatePresignedNotebookInstanceUrl(args, parsed_globals):
1218
+ def doCreateNotebook(args, parsed_globals):
1167
1219
  g_param = parse_global_arg(parsed_globals)
1168
1220
 
1169
1221
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1192,11 +1244,11 @@ def doCreatePresignedNotebookInstanceUrl(args, parsed_globals):
1192
1244
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1193
1245
  client._sdkVersion += ("_CLI_" + __version__)
1194
1246
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1195
- model = models.CreatePresignedNotebookInstanceUrlRequest()
1247
+ model = models.CreateNotebookRequest()
1196
1248
  model.from_json_string(json.dumps(args))
1197
1249
  start_time = time.time()
1198
1250
  while True:
1199
- rsp = client.CreatePresignedNotebookInstanceUrl(model)
1251
+ rsp = client.CreateNotebook(model)
1200
1252
  result = rsp.to_json_string()
1201
1253
  try:
1202
1254
  json_obj = json.loads(result)
@@ -1215,7 +1267,7 @@ def doCreatePresignedNotebookInstanceUrl(args, parsed_globals):
1215
1267
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1216
1268
 
1217
1269
 
1218
- def doDeleteNotebookInstance(args, parsed_globals):
1270
+ def doDescribeModelServiceGroup(args, parsed_globals):
1219
1271
  g_param = parse_global_arg(parsed_globals)
1220
1272
 
1221
1273
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1244,11 +1296,11 @@ def doDeleteNotebookInstance(args, parsed_globals):
1244
1296
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1245
1297
  client._sdkVersion += ("_CLI_" + __version__)
1246
1298
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1247
- model = models.DeleteNotebookInstanceRequest()
1299
+ model = models.DescribeModelServiceGroupRequest()
1248
1300
  model.from_json_string(json.dumps(args))
1249
1301
  start_time = time.time()
1250
1302
  while True:
1251
- rsp = client.DeleteNotebookInstance(model)
1303
+ rsp = client.DescribeModelServiceGroup(model)
1252
1304
  result = rsp.to_json_string()
1253
1305
  try:
1254
1306
  json_obj = json.loads(result)
@@ -1267,7 +1319,7 @@ def doDeleteNotebookInstance(args, parsed_globals):
1267
1319
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1268
1320
 
1269
1321
 
1270
- def doDeleteModelServiceGroup(args, parsed_globals):
1322
+ def doCreatePresignedNotebookInstanceUrl(args, parsed_globals):
1271
1323
  g_param = parse_global_arg(parsed_globals)
1272
1324
 
1273
1325
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1296,11 +1348,11 @@ def doDeleteModelServiceGroup(args, parsed_globals):
1296
1348
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1297
1349
  client._sdkVersion += ("_CLI_" + __version__)
1298
1350
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1299
- model = models.DeleteModelServiceGroupRequest()
1351
+ model = models.CreatePresignedNotebookInstanceUrlRequest()
1300
1352
  model.from_json_string(json.dumps(args))
1301
1353
  start_time = time.time()
1302
1354
  while True:
1303
- rsp = client.DeleteModelServiceGroup(model)
1355
+ rsp = client.CreatePresignedNotebookInstanceUrl(model)
1304
1356
  result = rsp.to_json_string()
1305
1357
  try:
1306
1358
  json_obj = json.loads(result)
@@ -1319,7 +1371,7 @@ def doDeleteModelServiceGroup(args, parsed_globals):
1319
1371
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1320
1372
 
1321
1373
 
1322
- def doDescribeNotebookLifecycleScript(args, parsed_globals):
1374
+ def doDeleteModelServiceGroup(args, parsed_globals):
1323
1375
  g_param = parse_global_arg(parsed_globals)
1324
1376
 
1325
1377
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1348,11 +1400,11 @@ def doDescribeNotebookLifecycleScript(args, parsed_globals):
1348
1400
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1349
1401
  client._sdkVersion += ("_CLI_" + __version__)
1350
1402
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1351
- model = models.DescribeNotebookLifecycleScriptRequest()
1403
+ model = models.DeleteModelServiceGroupRequest()
1352
1404
  model.from_json_string(json.dumps(args))
1353
1405
  start_time = time.time()
1354
1406
  while True:
1355
- rsp = client.DescribeNotebookLifecycleScript(model)
1407
+ rsp = client.DeleteModelServiceGroup(model)
1356
1408
  result = rsp.to_json_string()
1357
1409
  try:
1358
1410
  json_obj = json.loads(result)
@@ -1371,7 +1423,7 @@ def doDescribeNotebookLifecycleScript(args, parsed_globals):
1371
1423
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1372
1424
 
1373
1425
 
1374
- def doPushTrainingMetrics(args, parsed_globals):
1426
+ def doDescribeNotebookLifecycleScript(args, parsed_globals):
1375
1427
  g_param = parse_global_arg(parsed_globals)
1376
1428
 
1377
1429
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1400,11 +1452,11 @@ def doPushTrainingMetrics(args, parsed_globals):
1400
1452
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1401
1453
  client._sdkVersion += ("_CLI_" + __version__)
1402
1454
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1403
- model = models.PushTrainingMetricsRequest()
1455
+ model = models.DescribeNotebookLifecycleScriptRequest()
1404
1456
  model.from_json_string(json.dumps(args))
1405
1457
  start_time = time.time()
1406
1458
  while True:
1407
- rsp = client.PushTrainingMetrics(model)
1459
+ rsp = client.DescribeNotebookLifecycleScript(model)
1408
1460
  result = rsp.to_json_string()
1409
1461
  try:
1410
1462
  json_obj = json.loads(result)
@@ -1423,7 +1475,7 @@ def doPushTrainingMetrics(args, parsed_globals):
1423
1475
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1424
1476
 
1425
1477
 
1426
- def doDescribeTrainingModelVersions(args, parsed_globals):
1478
+ def doPushTrainingMetrics(args, parsed_globals):
1427
1479
  g_param = parse_global_arg(parsed_globals)
1428
1480
 
1429
1481
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1452,11 +1504,11 @@ def doDescribeTrainingModelVersions(args, parsed_globals):
1452
1504
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1453
1505
  client._sdkVersion += ("_CLI_" + __version__)
1454
1506
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1455
- model = models.DescribeTrainingModelVersionsRequest()
1507
+ model = models.PushTrainingMetricsRequest()
1456
1508
  model.from_json_string(json.dumps(args))
1457
1509
  start_time = time.time()
1458
1510
  while True:
1459
- rsp = client.DescribeTrainingModelVersions(model)
1511
+ rsp = client.PushTrainingMetrics(model)
1460
1512
  result = rsp.to_json_string()
1461
1513
  try:
1462
1514
  json_obj = json.loads(result)
@@ -1475,7 +1527,7 @@ def doDescribeTrainingModelVersions(args, parsed_globals):
1475
1527
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1476
1528
 
1477
1529
 
1478
- def doCreateNotebookLifecycleScript(args, parsed_globals):
1530
+ def doDescribeTrainingModelVersions(args, parsed_globals):
1479
1531
  g_param = parse_global_arg(parsed_globals)
1480
1532
 
1481
1533
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1504,11 +1556,11 @@ def doCreateNotebookLifecycleScript(args, parsed_globals):
1504
1556
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1505
1557
  client._sdkVersion += ("_CLI_" + __version__)
1506
1558
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1507
- model = models.CreateNotebookLifecycleScriptRequest()
1559
+ model = models.DescribeTrainingModelVersionsRequest()
1508
1560
  model.from_json_string(json.dumps(args))
1509
1561
  start_time = time.time()
1510
1562
  while True:
1511
- rsp = client.CreateNotebookLifecycleScript(model)
1563
+ rsp = client.DescribeTrainingModelVersions(model)
1512
1564
  result = rsp.to_json_string()
1513
1565
  try:
1514
1566
  json_obj = json.loads(result)
@@ -1527,7 +1579,7 @@ def doCreateNotebookLifecycleScript(args, parsed_globals):
1527
1579
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1528
1580
 
1529
1581
 
1530
- def doCreateCodeRepository(args, parsed_globals):
1582
+ def doCreateNotebookLifecycleScript(args, parsed_globals):
1531
1583
  g_param = parse_global_arg(parsed_globals)
1532
1584
 
1533
1585
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1556,11 +1608,11 @@ def doCreateCodeRepository(args, parsed_globals):
1556
1608
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1557
1609
  client._sdkVersion += ("_CLI_" + __version__)
1558
1610
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1559
- model = models.CreateCodeRepositoryRequest()
1611
+ model = models.CreateNotebookLifecycleScriptRequest()
1560
1612
  model.from_json_string(json.dumps(args))
1561
1613
  start_time = time.time()
1562
1614
  while True:
1563
- rsp = client.CreateCodeRepository(model)
1615
+ rsp = client.CreateNotebookLifecycleScript(model)
1564
1616
  result = rsp.to_json_string()
1565
1617
  try:
1566
1618
  json_obj = json.loads(result)
@@ -1579,7 +1631,7 @@ def doCreateCodeRepository(args, parsed_globals):
1579
1631
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1580
1632
 
1581
1633
 
1582
- def doCreateModelService(args, parsed_globals):
1634
+ def doCreateCodeRepository(args, parsed_globals):
1583
1635
  g_param = parse_global_arg(parsed_globals)
1584
1636
 
1585
1637
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1608,11 +1660,11 @@ def doCreateModelService(args, parsed_globals):
1608
1660
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1609
1661
  client._sdkVersion += ("_CLI_" + __version__)
1610
1662
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1611
- model = models.CreateModelServiceRequest()
1663
+ model = models.CreateCodeRepositoryRequest()
1612
1664
  model.from_json_string(json.dumps(args))
1613
1665
  start_time = time.time()
1614
1666
  while True:
1615
- rsp = client.CreateModelService(model)
1667
+ rsp = client.CreateCodeRepository(model)
1616
1668
  result = rsp.to_json_string()
1617
1669
  try:
1618
1670
  json_obj = json.loads(result)
@@ -1631,7 +1683,7 @@ def doCreateModelService(args, parsed_globals):
1631
1683
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1632
1684
 
1633
1685
 
1634
- def doDescribeTrainingJob(args, parsed_globals):
1686
+ def doCreateModelService(args, parsed_globals):
1635
1687
  g_param = parse_global_arg(parsed_globals)
1636
1688
 
1637
1689
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1660,11 +1712,11 @@ def doDescribeTrainingJob(args, parsed_globals):
1660
1712
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1661
1713
  client._sdkVersion += ("_CLI_" + __version__)
1662
1714
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1663
- model = models.DescribeTrainingJobRequest()
1715
+ model = models.CreateModelServiceRequest()
1664
1716
  model.from_json_string(json.dumps(args))
1665
1717
  start_time = time.time()
1666
1718
  while True:
1667
- rsp = client.DescribeTrainingJob(model)
1719
+ rsp = client.CreateModelService(model)
1668
1720
  result = rsp.to_json_string()
1669
1721
  try:
1670
1722
  json_obj = json.loads(result)
@@ -1683,7 +1735,7 @@ def doDescribeTrainingJob(args, parsed_globals):
1683
1735
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1684
1736
 
1685
1737
 
1686
- def doStopNotebookInstance(args, parsed_globals):
1738
+ def doDescribeTrainingJob(args, parsed_globals):
1687
1739
  g_param = parse_global_arg(parsed_globals)
1688
1740
 
1689
1741
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1712,11 +1764,11 @@ def doStopNotebookInstance(args, parsed_globals):
1712
1764
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1713
1765
  client._sdkVersion += ("_CLI_" + __version__)
1714
1766
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1715
- model = models.StopNotebookInstanceRequest()
1767
+ model = models.DescribeTrainingJobRequest()
1716
1768
  model.from_json_string(json.dumps(args))
1717
1769
  start_time = time.time()
1718
1770
  while True:
1719
- rsp = client.StopNotebookInstance(model)
1771
+ rsp = client.DescribeTrainingJob(model)
1720
1772
  result = rsp.to_json_string()
1721
1773
  try:
1722
1774
  json_obj = json.loads(result)
@@ -1735,7 +1787,7 @@ def doStopNotebookInstance(args, parsed_globals):
1735
1787
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1736
1788
 
1737
1789
 
1738
- def doCreatePresignedNotebookUrl(args, parsed_globals):
1790
+ def doStopNotebookInstance(args, parsed_globals):
1739
1791
  g_param = parse_global_arg(parsed_globals)
1740
1792
 
1741
1793
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1764,11 +1816,11 @@ def doCreatePresignedNotebookUrl(args, parsed_globals):
1764
1816
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1765
1817
  client._sdkVersion += ("_CLI_" + __version__)
1766
1818
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1767
- model = models.CreatePresignedNotebookUrlRequest()
1819
+ model = models.StopNotebookInstanceRequest()
1768
1820
  model.from_json_string(json.dumps(args))
1769
1821
  start_time = time.time()
1770
1822
  while True:
1771
- rsp = client.CreatePresignedNotebookUrl(model)
1823
+ rsp = client.StopNotebookInstance(model)
1772
1824
  result = rsp.to_json_string()
1773
1825
  try:
1774
1826
  json_obj = json.loads(result)
@@ -1787,7 +1839,7 @@ def doCreatePresignedNotebookUrl(args, parsed_globals):
1787
1839
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1788
1840
 
1789
1841
 
1790
- def doDeleteModelService(args, parsed_globals):
1842
+ def doCreatePresignedNotebookUrl(args, parsed_globals):
1791
1843
  g_param = parse_global_arg(parsed_globals)
1792
1844
 
1793
1845
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1816,11 +1868,11 @@ def doDeleteModelService(args, parsed_globals):
1816
1868
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1817
1869
  client._sdkVersion += ("_CLI_" + __version__)
1818
1870
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1819
- model = models.DeleteModelServiceRequest()
1871
+ model = models.CreatePresignedNotebookUrlRequest()
1820
1872
  model.from_json_string(json.dumps(args))
1821
1873
  start_time = time.time()
1822
1874
  while True:
1823
- rsp = client.DeleteModelService(model)
1875
+ rsp = client.CreatePresignedNotebookUrl(model)
1824
1876
  result = rsp.to_json_string()
1825
1877
  try:
1826
1878
  json_obj = json.loads(result)
@@ -1839,7 +1891,7 @@ def doDeleteModelService(args, parsed_globals):
1839
1891
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1840
1892
 
1841
1893
 
1842
- def doDescribeDatasets(args, parsed_globals):
1894
+ def doDeleteModelService(args, parsed_globals):
1843
1895
  g_param = parse_global_arg(parsed_globals)
1844
1896
 
1845
1897
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1868,11 +1920,11 @@ def doDescribeDatasets(args, parsed_globals):
1868
1920
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1869
1921
  client._sdkVersion += ("_CLI_" + __version__)
1870
1922
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1871
- model = models.DescribeDatasetsRequest()
1923
+ model = models.DeleteModelServiceRequest()
1872
1924
  model.from_json_string(json.dumps(args))
1873
1925
  start_time = time.time()
1874
1926
  while True:
1875
- rsp = client.DescribeDatasets(model)
1927
+ rsp = client.DeleteModelService(model)
1876
1928
  result = rsp.to_json_string()
1877
1929
  try:
1878
1930
  json_obj = json.loads(result)
@@ -1891,7 +1943,7 @@ def doDescribeDatasets(args, parsed_globals):
1891
1943
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1892
1944
 
1893
1945
 
1894
- def doDescribeBillingResourceInstanceRunningJobs(args, parsed_globals):
1946
+ def doDescribeDatasets(args, parsed_globals):
1895
1947
  g_param = parse_global_arg(parsed_globals)
1896
1948
 
1897
1949
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1920,11 +1972,11 @@ def doDescribeBillingResourceInstanceRunningJobs(args, parsed_globals):
1920
1972
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1921
1973
  client._sdkVersion += ("_CLI_" + __version__)
1922
1974
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1923
- model = models.DescribeBillingResourceInstanceRunningJobsRequest()
1975
+ model = models.DescribeDatasetsRequest()
1924
1976
  model.from_json_string(json.dumps(args))
1925
1977
  start_time = time.time()
1926
1978
  while True:
1927
- rsp = client.DescribeBillingResourceInstanceRunningJobs(model)
1979
+ rsp = client.DescribeDatasets(model)
1928
1980
  result = rsp.to_json_string()
1929
1981
  try:
1930
1982
  json_obj = json.loads(result)
@@ -1943,7 +1995,7 @@ def doDescribeBillingResourceInstanceRunningJobs(args, parsed_globals):
1943
1995
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1944
1996
 
1945
1997
 
1946
- def doSendChatMessage(args, parsed_globals):
1998
+ def doDescribeBillingResourceInstanceRunningJobs(args, parsed_globals):
1947
1999
  g_param = parse_global_arg(parsed_globals)
1948
2000
 
1949
2001
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1972,11 +2024,11 @@ def doSendChatMessage(args, parsed_globals):
1972
2024
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
1973
2025
  client._sdkVersion += ("_CLI_" + __version__)
1974
2026
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1975
- model = models.SendChatMessageRequest()
2027
+ model = models.DescribeBillingResourceInstanceRunningJobsRequest()
1976
2028
  model.from_json_string(json.dumps(args))
1977
2029
  start_time = time.time()
1978
2030
  while True:
1979
- rsp = client.SendChatMessage(model)
2031
+ rsp = client.DescribeBillingResourceInstanceRunningJobs(model)
1980
2032
  result = rsp.to_json_string()
1981
2033
  try:
1982
2034
  json_obj = json.loads(result)
@@ -2047,7 +2099,7 @@ def doModifyModelService(args, parsed_globals):
2047
2099
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2048
2100
 
2049
2101
 
2050
- def doDescribeNotebooks(args, parsed_globals):
2102
+ def doDescribeTrainingTask(args, parsed_globals):
2051
2103
  g_param = parse_global_arg(parsed_globals)
2052
2104
 
2053
2105
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2076,11 +2128,11 @@ def doDescribeNotebooks(args, parsed_globals):
2076
2128
  client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
2077
2129
  client._sdkVersion += ("_CLI_" + __version__)
2078
2130
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2079
- model = models.DescribeNotebooksRequest()
2131
+ model = models.DescribeTrainingTaskRequest()
2080
2132
  model.from_json_string(json.dumps(args))
2081
2133
  start_time = time.time()
2082
2134
  while True:
2083
- rsp = client.DescribeNotebooks(model)
2135
+ rsp = client.DescribeTrainingTask(model)
2084
2136
  result = rsp.to_json_string()
2085
2137
  try:
2086
2138
  json_obj = json.loads(result)
@@ -3154,18 +3206,21 @@ MODELS_MAP = {
3154
3206
  ACTION_MAP = {
3155
3207
  "DescribeTrainingModelVersion": doDescribeTrainingModelVersion,
3156
3208
  "DescribeModelService": doDescribeModelService,
3209
+ "DescribeBillingSpecs": doDescribeBillingSpecs,
3157
3210
  "DeleteDataset": doDeleteDataset,
3211
+ "DescribeBillingSpecsPrice": doDescribeBillingSpecsPrice,
3158
3212
  "DescribeModelServiceCallInfo": doDescribeModelServiceCallInfo,
3213
+ "CreateTrainingModel": doCreateTrainingModel,
3159
3214
  "UpdateNotebookInstance": doUpdateNotebookInstance,
3160
3215
  "DescribeTrainingTasks": doDescribeTrainingTasks,
3161
3216
  "DescribeBuildInImages": doDescribeBuildInImages,
3162
3217
  "DescribeNotebookLifecycleScripts": doDescribeNotebookLifecycleScripts,
3163
3218
  "StopTrainingJob": doStopTrainingJob,
3164
3219
  "StartNotebook": doStartNotebook,
3165
- "CreateTrainingModel": doCreateTrainingModel,
3220
+ "DescribeNotebooks": doDescribeNotebooks,
3166
3221
  "StartNotebookInstance": doStartNotebookInstance,
3167
3222
  "DeleteNotebook": doDeleteNotebook,
3168
- "DescribeTrainingTask": doDescribeTrainingTask,
3223
+ "DeleteNotebookInstance": doDeleteNotebookInstance,
3169
3224
  "DescribeTrainingTaskPods": doDescribeTrainingTaskPods,
3170
3225
  "DescribeModelServiceHotUpdated": doDescribeModelServiceHotUpdated,
3171
3226
  "DescribeModelAccelerateTask": doDescribeModelAccelerateTask,
@@ -3175,7 +3230,6 @@ ACTION_MAP = {
3175
3230
  "CreateNotebook": doCreateNotebook,
3176
3231
  "DescribeModelServiceGroup": doDescribeModelServiceGroup,
3177
3232
  "CreatePresignedNotebookInstanceUrl": doCreatePresignedNotebookInstanceUrl,
3178
- "DeleteNotebookInstance": doDeleteNotebookInstance,
3179
3233
  "DeleteModelServiceGroup": doDeleteModelServiceGroup,
3180
3234
  "DescribeNotebookLifecycleScript": doDescribeNotebookLifecycleScript,
3181
3235
  "PushTrainingMetrics": doPushTrainingMetrics,
@@ -3189,9 +3243,8 @@ ACTION_MAP = {
3189
3243
  "DeleteModelService": doDeleteModelService,
3190
3244
  "DescribeDatasets": doDescribeDatasets,
3191
3245
  "DescribeBillingResourceInstanceRunningJobs": doDescribeBillingResourceInstanceRunningJobs,
3192
- "SendChatMessage": doSendChatMessage,
3193
3246
  "ModifyModelService": doModifyModelService,
3194
- "DescribeNotebooks": doDescribeNotebooks,
3247
+ "DescribeTrainingTask": doDescribeTrainingTask,
3195
3248
  "DescribeNotebookInstances": doDescribeNotebookInstances,
3196
3249
  "DeleteTrainingModel": doDeleteTrainingModel,
3197
3250
  "StopModelAccelerateTask": doStopModelAccelerateTask,