tccli 3.0.832.1__py2.py3-none-any.whl → 3.0.834.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +0 -3
  3. tccli/services/autoscaling/v20180419/api.json +1 -27
  4. tccli/services/autoscaling/v20180419/examples.json +5 -5
  5. tccli/services/bpaas/v20181217/api.json +9 -20
  6. tccli/services/ccc/v20200210/api.json +8 -11
  7. tccli/services/ccc/v20200210/examples.json +4 -4
  8. tccli/services/clb/v20180317/api.json +19 -91
  9. tccli/services/cls/v20201016/api.json +11 -24
  10. tccli/services/cls/v20201016/examples.json +1 -1
  11. tccli/services/cvm/cvm_client.py +53 -0
  12. tccli/services/cvm/v20170312/api.json +368 -0
  13. tccli/services/cvm/v20170312/examples.json +8 -0
  14. tccli/services/cwp/v20180228/api.json +9 -0
  15. tccli/services/cwp/v20180228/examples.json +1 -1
  16. tccli/services/essbasic/essbasic_client.py +106 -0
  17. tccli/services/essbasic/v20210526/api.json +434 -0
  18. tccli/services/essbasic/v20210526/examples.json +16 -0
  19. tccli/services/gaap/v20180529/api.json +0 -5
  20. tccli/services/gaap/v20180529/examples.json +4 -4
  21. tccli/services/monitor/v20180724/api.json +49 -2
  22. tccli/services/monitor/v20180724/examples.json +9 -9
  23. tccli/services/mps/mps_client.py +53 -0
  24. tccli/services/mps/v20190612/api.json +307 -18
  25. tccli/services/mps/v20190612/examples.json +8 -0
  26. tccli/services/oceanus/v20190422/api.json +119 -49
  27. tccli/services/tcbr/v20220217/api.json +9 -12
  28. tccli/services/tcbr/v20220217/examples.json +8 -2
  29. tccli/services/tdmq/v20200217/api.json +38 -38
  30. tccli/services/tke/v20180525/api.json +17 -48
  31. tccli/services/tke/v20180525/examples.json +10 -10
  32. tccli/services/trtc/v20190722/api.json +88 -3
  33. tccli/services/vod/v20180717/api.json +0 -14
  34. tccli/services/vod/v20180717/examples.json +4 -4
  35. tccli/services/vpc/v20170312/api.json +1 -1
  36. tccli/services/vpc/v20170312/examples.json +1 -1
  37. tccli/services/wedata/v20210820/api.json +186 -40
  38. {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/METADATA +2 -2
  39. {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/RECORD +43 -45
  40. tccli/services/intlpartnersmgt/v20220928/api.json +0 -1054
  41. tccli/services/intlpartnersmgt/v20220928/examples.json +0 -93
  42. {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/LICENSE +0 -0
  43. {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/WHEEL +0 -0
  44. {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/entry_points.txt +0 -0
  45. {tccli-3.0.832.1.dist-info → tccli-3.0.834.1.dist-info}/top_level.txt +0 -0
@@ -5226,7 +5226,6 @@
5226
5226
  "document": "日志集相关信息",
5227
5227
  "members": [
5228
5228
  {
5229
- "default": "",
5230
5229
  "document": "日志集ID",
5231
5230
  "example": "4463e7b0-3ec8-41a1-ae48-5d24b22167c2",
5232
5231
  "member": "string",
@@ -5236,7 +5235,6 @@
5236
5235
  "value_allowed_null": false
5237
5236
  },
5238
5237
  {
5239
- "default": "",
5240
5238
  "document": "日志集名称",
5241
5239
  "example": "test",
5242
5240
  "member": "string",
@@ -5246,7 +5244,6 @@
5246
5244
  "value_allowed_null": false
5247
5245
  },
5248
5246
  {
5249
- "default": "",
5250
5247
  "document": "创建时间",
5251
5248
  "example": "2021-04-01 08:00:00",
5252
5249
  "member": "string",
@@ -5256,7 +5253,6 @@
5256
5253
  "value_allowed_null": false
5257
5254
  },
5258
5255
  {
5259
- "default": "",
5260
5256
  "document": "云产品标识,日志集由其它云产品创建时,该字段会显示云产品名称,例如CDN、TKE\n注意:此字段可能返回 null,表示取不到有效值。",
5261
5257
  "example": "TCB",
5262
5258
  "member": "string",
@@ -5266,7 +5262,6 @@
5266
5262
  "value_allowed_null": true
5267
5263
  },
5268
5264
  {
5269
- "default": "",
5270
5265
  "document": "日志集绑定的标签\n注意:此字段可能返回 null,表示取不到有效值。",
5271
5266
  "example": "无",
5272
5267
  "member": "Tag",
@@ -5276,7 +5271,6 @@
5276
5271
  "value_allowed_null": true
5277
5272
  },
5278
5273
  {
5279
- "default": "",
5280
5274
  "document": "日志集下日志主题的数目",
5281
5275
  "example": "10",
5282
5276
  "member": "int64",
@@ -5286,7 +5280,6 @@
5286
5280
  "value_allowed_null": false
5287
5281
  },
5288
5282
  {
5289
- "default": "",
5290
5283
  "document": "若AssumerName非空,则表示创建该日志集的服务方角色",
5291
5284
  "example": "TCB_QcsRole",
5292
5285
  "member": "string",
@@ -7315,8 +7308,8 @@
7315
7308
  "document": "创建资源实例时同时绑定的标签对说明",
7316
7309
  "members": [
7317
7310
  {
7318
- "default": "",
7319
7311
  "document": "标签键",
7312
+ "example": "无",
7320
7313
  "member": "string",
7321
7314
  "name": "Key",
7322
7315
  "required": true,
@@ -7324,8 +7317,8 @@
7324
7317
  "value_allowed_null": false
7325
7318
  },
7326
7319
  {
7327
- "default": "",
7328
7320
  "document": "标签值",
7321
+ "example": "无",
7329
7322
  "member": "string",
7330
7323
  "name": "Value",
7331
7324
  "required": true,
@@ -7339,7 +7332,6 @@
7339
7332
  "document": "日志主题信息",
7340
7333
  "members": [
7341
7334
  {
7342
- "default": "",
7343
7335
  "document": "日志集ID",
7344
7336
  "example": "57f5808c-4a55-11eb-b378-0242ac130002",
7345
7337
  "member": "string",
@@ -7349,7 +7341,6 @@
7349
7341
  "value_allowed_null": false
7350
7342
  },
7351
7343
  {
7352
- "default": "",
7353
7344
  "document": "日志主题ID",
7354
7345
  "example": "57f5808c-4a55-11eb-b378-0242ac130002",
7355
7346
  "member": "string",
@@ -7359,7 +7350,6 @@
7359
7350
  "value_allowed_null": false
7360
7351
  },
7361
7352
  {
7362
- "default": "",
7363
7353
  "document": "日志主题名称",
7364
7354
  "example": "test",
7365
7355
  "member": "string",
@@ -7369,7 +7359,6 @@
7369
7359
  "value_allowed_null": false
7370
7360
  },
7371
7361
  {
7372
- "default": "",
7373
7362
  "document": "主题分区个数",
7374
7363
  "example": "1",
7375
7364
  "member": "int64",
@@ -7379,7 +7368,6 @@
7379
7368
  "value_allowed_null": false
7380
7369
  },
7381
7370
  {
7382
- "default": "",
7383
7371
  "document": "是否开启索引",
7384
7372
  "example": "true",
7385
7373
  "member": "bool",
@@ -7389,7 +7377,6 @@
7389
7377
  "value_allowed_null": false
7390
7378
  },
7391
7379
  {
7392
- "default": "",
7393
7380
  "document": "云产品标识,日志主题由其它云产品创建时,该字段会显示云产品名称,例如CDN、TKE\n注意:此字段可能返回 null,表示取不到有效值。",
7394
7381
  "example": "test",
7395
7382
  "member": "string",
@@ -7399,7 +7386,6 @@
7399
7386
  "value_allowed_null": true
7400
7387
  },
7401
7388
  {
7402
- "default": "",
7403
7389
  "document": "创建时间",
7404
7390
  "example": "无",
7405
7391
  "member": "string",
@@ -7409,7 +7395,6 @@
7409
7395
  "value_allowed_null": false
7410
7396
  },
7411
7397
  {
7412
- "default": "",
7413
7398
  "document": "日主主题是否开启采集",
7414
7399
  "example": "true",
7415
7400
  "member": "bool",
@@ -7419,7 +7404,6 @@
7419
7404
  "value_allowed_null": false
7420
7405
  },
7421
7406
  {
7422
- "default": "",
7423
7407
  "document": "日志主题绑定的标签信息\n注意:此字段可能返回 null,表示取不到有效值。",
7424
7408
  "example": "无",
7425
7409
  "member": "Tag",
@@ -7429,7 +7413,6 @@
7429
7413
  "value_allowed_null": true
7430
7414
  },
7431
7415
  {
7432
- "default": "",
7433
7416
  "document": "该主题是否开启自动分裂\n注意:此字段可能返回 null,表示取不到有效值。",
7434
7417
  "example": "true",
7435
7418
  "member": "bool",
@@ -7439,7 +7422,6 @@
7439
7422
  "value_allowed_null": true
7440
7423
  },
7441
7424
  {
7442
- "default": "",
7443
7425
  "document": "若开启自动分裂的话,该主题能够允许的最大分区数\n注意:此字段可能返回 null,表示取不到有效值。",
7444
7426
  "example": "50",
7445
7427
  "member": "int64",
@@ -7449,7 +7431,6 @@
7449
7431
  "value_allowed_null": true
7450
7432
  },
7451
7433
  {
7452
- "default": "",
7453
7434
  "document": "日主题的存储类型\n注意:此字段可能返回 null,表示取不到有效值。",
7454
7435
  "example": "hot",
7455
7436
  "member": "string",
@@ -7459,7 +7440,6 @@
7459
7440
  "value_allowed_null": true
7460
7441
  },
7461
7442
  {
7462
- "default": "",
7463
7443
  "document": "生命周期,单位天,可取值范围1~3600。取值为3640时代表永久保存\n注意:此字段可能返回 null,表示取不到有效值。",
7464
7444
  "example": "30",
7465
7445
  "member": "int64",
@@ -7469,7 +7449,6 @@
7469
7449
  "value_allowed_null": true
7470
7450
  },
7471
7451
  {
7472
- "default": "",
7473
7452
  "document": "云产品二级标识,日志主题由其它云产品创建时,该字段会显示云产品名称及其日志类型的二级分类,例如TKE-Audit、TKE-Event。部分云产品仅有云产品标识(AssumerName),无该字段。\n注意:此字段可能返回 null,表示取不到有效值。",
7474
7453
  "example": "TKE-Audio",
7475
7454
  "member": "string",
@@ -7479,7 +7458,6 @@
7479
7458
  "value_allowed_null": true
7480
7459
  },
7481
7460
  {
7482
- "default": "",
7483
7461
  "document": "日志主题描述\n注意:此字段可能返回 null,表示取不到有效值。",
7484
7462
  "example": "xx部门xx业务topic",
7485
7463
  "member": "string",
@@ -7487,6 +7465,15 @@
7487
7465
  "required": true,
7488
7466
  "type": "string",
7489
7467
  "value_allowed_null": true
7468
+ },
7469
+ {
7470
+ "document": "开启日志沉降,热存储的生命周期, hotPeriod < Period。\n热存储为 hotPeriod, 冷存储则为 Period-hotPeriod。\n注意:此字段可能返回 null,表示取不到有效值。",
7471
+ "example": "0",
7472
+ "member": "uint64",
7473
+ "name": "HotPeriod",
7474
+ "required": true,
7475
+ "type": "int",
7476
+ "value_allowed_null": true
7490
7477
  }
7491
7478
  ],
7492
7479
  "usage": "out"
@@ -356,7 +356,7 @@
356
356
  {
357
357
  "document": "获取日志主题列表",
358
358
  "input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTopics\n<公共请求参数>\n\n{\n \"Filters\": [],\n \"Offset\": 10,\n \"Limit\": 30\n}",
359
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Topics\": [\n {\n \"Index\": true,\n \"PartitionCount\": 1,\n \"Describes\": \"x1\",\n \"Status\": true,\n \"Tags\": [\n {\n \"Value\": \"x10\",\n \"Key\": \"x11\"\n }\n ],\n \"AssumerName\": \"x12\",\n \"SubAssumerName\": \"x13\",\n \"MaxSplitPartitions\": 0,\n \"LogsetId\": \"x15\",\n \"TopicId\": \"x16\",\n \"StorageType\": \"x17\",\n \"Period\": 0,\n \"AutoSplit\": true,\n \"CreateTime\": \"x18\",\n \"TopicName\": \"x19\"\n }\n ],\n \"RequestId\": \"x20\"\n }\n}",
359
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Topics\": [\n {\n \"Index\": true,\n \"PartitionCount\": 1,\n \"Describes\": \"x1\",\n \"Status\": true,\n \"Tags\": [\n {\n \"Value\": \"x10\",\n \"Key\": \"x11\"\n }\n ],\n \"AssumerName\": \"x12\",\n \"SubAssumerName\": \"x13\",\n \"MaxSplitPartitions\": 0,\n \"LogsetId\": \"x15\",\n \"TopicId\": \"x16\",\n \"HotPeriod\": 1,\n \"StorageType\": \"x17\",\n \"Period\": 0,\n \"AutoSplit\": true,\n \"CreateTime\": \"x18\",\n \"TopicName\": \"x19\"\n }\n ],\n \"RequestId\": \"x20\"\n }\n}",
360
360
  "title": "获取日志主题列表"
361
361
  }
362
362
  ],
@@ -3085,6 +3085,58 @@ def doDescribeKeyPairs(args, parsed_globals):
3085
3085
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3086
3086
 
3087
3087
 
3088
+ def doDescribeTaskInfo(args, parsed_globals):
3089
+ g_param = parse_global_arg(parsed_globals)
3090
+
3091
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3092
+ cred = credential.CVMRoleCredential()
3093
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3094
+ cred = credential.STSAssumeRoleCredential(
3095
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3096
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3097
+ )
3098
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3099
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3100
+ else:
3101
+ cred = credential.Credential(
3102
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3103
+ )
3104
+ http_profile = HttpProfile(
3105
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3106
+ reqMethod="POST",
3107
+ endpoint=g_param[OptionsDefine.Endpoint],
3108
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3109
+ )
3110
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3111
+ if g_param[OptionsDefine.Language]:
3112
+ profile.language = g_param[OptionsDefine.Language]
3113
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3114
+ client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
3115
+ client._sdkVersion += ("_CLI_" + __version__)
3116
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3117
+ model = models.DescribeTaskInfoRequest()
3118
+ model.from_json_string(json.dumps(args))
3119
+ start_time = time.time()
3120
+ while True:
3121
+ rsp = client.DescribeTaskInfo(model)
3122
+ result = rsp.to_json_string()
3123
+ try:
3124
+ json_obj = json.loads(result)
3125
+ except TypeError as e:
3126
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3127
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3128
+ break
3129
+ cur_time = time.time()
3130
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3131
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3132
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3133
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3134
+ else:
3135
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3136
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3137
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3138
+
3139
+
3088
3140
  def doDescribeReservedInstancesOfferings(args, parsed_globals):
3089
3141
  g_param = parse_global_arg(parsed_globals)
3090
3142
 
@@ -4871,6 +4923,7 @@ ACTION_MAP = {
4871
4923
  "DescribeInstanceVncUrl": doDescribeInstanceVncUrl,
4872
4924
  "ModifyInstancesProject": doModifyInstancesProject,
4873
4925
  "DescribeKeyPairs": doDescribeKeyPairs,
4926
+ "DescribeTaskInfo": doDescribeTaskInfo,
4874
4927
  "DescribeReservedInstancesOfferings": doDescribeReservedInstancesOfferings,
4875
4928
  "InquiryPriceModifyInstancesChargeType": doInquiryPriceModifyInstancesChargeType,
4876
4929
  "DescribeInternetChargeTypeConfigs": doDescribeInternetChargeTypeConfigs,