tccli 3.0.1275.1__py2.py3-none-any.whl → 3.0.1276.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 (32) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ams/v20201229/api.json +82 -0
  3. tccli/services/batch/v20170312/api.json +24 -24
  4. tccli/services/cfw/v20190904/api.json +6 -6
  5. tccli/services/cvm/v20170312/api.json +48 -37
  6. tccli/services/cynosdb/v20190107/api.json +14 -4
  7. tccli/services/emr/v20190103/api.json +23 -23
  8. tccli/services/ess/ess_client.py +53 -0
  9. tccli/services/ess/v20201111/api.json +403 -322
  10. tccli/services/ess/v20201111/examples.json +16 -2
  11. tccli/services/essbasic/essbasic_client.py +53 -0
  12. tccli/services/essbasic/v20210526/api.json +310 -238
  13. tccli/services/essbasic/v20210526/examples.json +14 -0
  14. tccli/services/lcic/v20220817/api.json +3 -3
  15. tccli/services/lighthouse/v20200324/api.json +6 -6
  16. tccli/services/live/v20180801/api.json +138 -138
  17. tccli/services/lke/lke_client.py +53 -0
  18. tccli/services/lke/v20231130/api.json +72 -2
  19. tccli/services/lke/v20231130/examples.json +8 -0
  20. tccli/services/rce/v20201103/api.json +13 -13
  21. tccli/services/taf/v20200210/api.json +9 -9
  22. tccli/services/teo/v20220901/api.json +2 -2
  23. tccli/services/teo/v20220901/examples.json +1 -1
  24. tccli/services/tke/v20180525/api.json +176 -176
  25. tccli/services/tse/v20201207/api.json +84 -4
  26. tccli/services/vm/v20201229/api.json +428 -78
  27. tccli/services/vm/v20210922/api.json +482 -82
  28. {tccli-3.0.1275.1.dist-info → tccli-3.0.1276.1.dist-info}/METADATA +2 -2
  29. {tccli-3.0.1275.1.dist-info → tccli-3.0.1276.1.dist-info}/RECORD +32 -32
  30. {tccli-3.0.1275.1.dist-info → tccli-3.0.1276.1.dist-info}/WHEEL +0 -0
  31. {tccli-3.0.1275.1.dist-info → tccli-3.0.1276.1.dist-info}/entry_points.txt +0 -0
  32. {tccli-3.0.1275.1.dist-info → tccli-3.0.1276.1.dist-info}/license_files/LICENSE +0 -0
@@ -8297,7 +8297,7 @@
8297
8297
  "example": "[\"\"]",
8298
8298
  "member": "string",
8299
8299
  "name": "SoftInfo",
8300
- "required": true,
8300
+ "output_required": true,
8301
8301
  "type": "list",
8302
8302
  "value_allowed_null": true
8303
8303
  },
@@ -8307,7 +8307,7 @@
8307
8307
  "example": "2",
8308
8308
  "member": "int64",
8309
8309
  "name": "MasterNodeSize",
8310
- "required": true,
8310
+ "output_required": true,
8311
8311
  "type": "int",
8312
8312
  "value_allowed_null": true
8313
8313
  },
@@ -8317,7 +8317,7 @@
8317
8317
  "example": "3",
8318
8318
  "member": "int64",
8319
8319
  "name": "CoreNodeSize",
8320
- "required": true,
8320
+ "output_required": true,
8321
8321
  "type": "int",
8322
8322
  "value_allowed_null": true
8323
8323
  },
@@ -8327,7 +8327,7 @@
8327
8327
  "example": "4",
8328
8328
  "member": "int64",
8329
8329
  "name": "TaskNodeSize",
8330
- "required": true,
8330
+ "output_required": true,
8331
8331
  "type": "int",
8332
8332
  "value_allowed_null": true
8333
8333
  },
@@ -8337,7 +8337,7 @@
8337
8337
  "example": "5",
8338
8338
  "member": "int64",
8339
8339
  "name": "ComNodeSize",
8340
- "required": true,
8340
+ "output_required": true,
8341
8341
  "type": "int",
8342
8342
  "value_allowed_null": true
8343
8343
  },
@@ -8347,7 +8347,7 @@
8347
8347
  "example": "null",
8348
8348
  "member": "OutterResource",
8349
8349
  "name": "MasterResource",
8350
- "required": true,
8350
+ "output_required": true,
8351
8351
  "type": "object",
8352
8352
  "value_allowed_null": true
8353
8353
  },
@@ -8357,7 +8357,7 @@
8357
8357
  "example": "null",
8358
8358
  "member": "OutterResource",
8359
8359
  "name": "CoreResource",
8360
- "required": true,
8360
+ "output_required": true,
8361
8361
  "type": "object",
8362
8362
  "value_allowed_null": true
8363
8363
  },
@@ -8367,7 +8367,7 @@
8367
8367
  "example": "null",
8368
8368
  "member": "OutterResource",
8369
8369
  "name": "TaskResource",
8370
- "required": true,
8370
+ "output_required": true,
8371
8371
  "type": "object",
8372
8372
  "value_allowed_null": true
8373
8373
  },
@@ -8377,7 +8377,7 @@
8377
8377
  "example": "null",
8378
8378
  "member": "OutterResource",
8379
8379
  "name": "ComResource",
8380
- "required": true,
8380
+ "output_required": true,
8381
8381
  "type": "object",
8382
8382
  "value_allowed_null": true
8383
8383
  },
@@ -8387,7 +8387,7 @@
8387
8387
  "example": "true",
8388
8388
  "member": "bool",
8389
8389
  "name": "OnCos",
8390
- "required": true,
8390
+ "output_required": true,
8391
8391
  "type": "bool",
8392
8392
  "value_allowed_null": true
8393
8393
  },
@@ -8397,7 +8397,7 @@
8397
8397
  "example": "2",
8398
8398
  "member": "int64",
8399
8399
  "name": "ChargeType",
8400
- "required": true,
8400
+ "output_required": true,
8401
8401
  "type": "int",
8402
8402
  "value_allowed_null": true
8403
8403
  },
@@ -8407,7 +8407,7 @@
8407
8407
  "example": "3",
8408
8408
  "member": "int64",
8409
8409
  "name": "RouterNodeSize",
8410
- "required": true,
8410
+ "output_required": true,
8411
8411
  "type": "int",
8412
8412
  "value_allowed_null": true
8413
8413
  },
@@ -8417,7 +8417,7 @@
8417
8417
  "example": "true",
8418
8418
  "member": "bool",
8419
8419
  "name": "SupportHA",
8420
- "required": true,
8420
+ "output_required": true,
8421
8421
  "type": "bool",
8422
8422
  "value_allowed_null": true
8423
8423
  },
@@ -8427,17 +8427,17 @@
8427
8427
  "example": "true",
8428
8428
  "member": "bool",
8429
8429
  "name": "SecurityOn",
8430
- "required": true,
8430
+ "output_required": true,
8431
8431
  "type": "bool",
8432
8432
  "value_allowed_null": true
8433
8433
  },
8434
8434
  {
8435
8435
  "disabled": false,
8436
- "document": "安全组名称\n注意:此字段可能返回 null,表示取不到有效值。",
8437
- "example": "\"111\"",
8436
+ "document": "集群初始安全组id\n注意:此字段可能返回 null,表示取不到有效值。",
8437
+ "example": "\"sg-3xxx\"",
8438
8438
  "member": "string",
8439
8439
  "name": "SecurityGroup",
8440
- "required": true,
8440
+ "output_required": true,
8441
8441
  "type": "string",
8442
8442
  "value_allowed_null": true
8443
8443
  },
@@ -8447,27 +8447,27 @@
8447
8447
  "example": "2",
8448
8448
  "member": "int64",
8449
8449
  "name": "CbsEncrypt",
8450
- "required": true,
8450
+ "output_required": true,
8451
8451
  "type": "int",
8452
8452
  "value_allowed_null": true
8453
8453
  },
8454
8454
  {
8455
8455
  "disabled": false,
8456
8456
  "document": "自定义应用角色。\n注意:此字段可能返回 null,表示取不到有效值。",
8457
- "example": "\"123\"",
8457
+ "example": "\"role_test\"",
8458
8458
  "member": "string",
8459
8459
  "name": "ApplicationRole",
8460
- "required": true,
8460
+ "output_required": true,
8461
8461
  "type": "string",
8462
8462
  "value_allowed_null": true
8463
8463
  },
8464
8464
  {
8465
8465
  "disabled": false,
8466
- "document": "安全组\n注意:此字段可能返回 null,表示取不到有效值。",
8466
+ "document": "安全组id\n注意:此字段可能返回 null,表示取不到有效值。",
8467
8467
  "example": "[\"sg-3xxx\"]",
8468
8468
  "member": "string",
8469
8469
  "name": "SecurityGroups",
8470
- "required": true,
8470
+ "output_required": true,
8471
8471
  "type": "list",
8472
8472
  "value_allowed_null": true
8473
8473
  },
@@ -8477,7 +8477,7 @@
8477
8477
  "example": "skey-xxxxxxxx",
8478
8478
  "member": "string",
8479
8479
  "name": "PublicKeyId",
8480
- "required": true,
8480
+ "output_required": true,
8481
8481
  "type": "string",
8482
8482
  "value_allowed_null": true
8483
8483
  }
@@ -2929,6 +2929,58 @@ def doModifyExtendedService(args, parsed_globals):
2929
2929
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2930
2930
 
2931
2931
 
2932
+ def doCreateEmployeeChangeUrl(args, parsed_globals):
2933
+ g_param = parse_global_arg(parsed_globals)
2934
+
2935
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2936
+ cred = credential.CVMRoleCredential()
2937
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2938
+ cred = credential.STSAssumeRoleCredential(
2939
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2940
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2941
+ )
2942
+ 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):
2943
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2944
+ else:
2945
+ cred = credential.Credential(
2946
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2947
+ )
2948
+ http_profile = HttpProfile(
2949
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2950
+ reqMethod="POST",
2951
+ endpoint=g_param[OptionsDefine.Endpoint],
2952
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2953
+ )
2954
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2955
+ if g_param[OptionsDefine.Language]:
2956
+ profile.language = g_param[OptionsDefine.Language]
2957
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2958
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
2959
+ client._sdkVersion += ("_CLI_" + __version__)
2960
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2961
+ model = models.CreateEmployeeChangeUrlRequest()
2962
+ model.from_json_string(json.dumps(args))
2963
+ start_time = time.time()
2964
+ while True:
2965
+ rsp = client.CreateEmployeeChangeUrl(model)
2966
+ result = rsp.to_json_string()
2967
+ try:
2968
+ json_obj = json.loads(result)
2969
+ except TypeError as e:
2970
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2971
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2972
+ break
2973
+ cur_time = time.time()
2974
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2975
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2976
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2977
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2978
+ else:
2979
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2980
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2981
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2982
+
2983
+
2932
2984
  def doCreateFlowBlockchainEvidenceUrl(args, parsed_globals):
2933
2985
  g_param = parse_global_arg(parsed_globals)
2934
2986
 
@@ -5232,6 +5284,7 @@ ACTION_MAP = {
5232
5284
  "DescribeFileUrls": doDescribeFileUrls,
5233
5285
  "CreateIntegrationRole": doCreateIntegrationRole,
5234
5286
  "ModifyExtendedService": doModifyExtendedService,
5287
+ "CreateEmployeeChangeUrl": doCreateEmployeeChangeUrl,
5235
5288
  "CreateFlowBlockchainEvidenceUrl": doCreateFlowBlockchainEvidenceUrl,
5236
5289
  "CreateBatchOrganizationAuthorizationUrl": doCreateBatchOrganizationAuthorizationUrl,
5237
5290
  "DescribeUserVerifyStatus": doDescribeUserVerifyStatus,