tccli 3.0.1048.1__py2.py3-none-any.whl → 3.0.1049.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 (47) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/antiddos/v20200309/DescribeBGPIPL7Rules.md +87 -0
  3. tccli/examples/ckafka/v20190819/DescribeGroup.md +6 -5
  4. tccli/examples/csip/v20221121/ModifyOrganizationAccountStatus.md +21 -0
  5. tccli/examples/cynosdb/v20190107/AddInstances.md +2 -2
  6. tccli/examples/cynosdb/v20190107/DescribeClusterInstanceGrps.md +235 -79
  7. tccli/examples/cynosdb/v20190107/DescribeClusterParams.md +3 -1
  8. tccli/examples/cynosdb/v20190107/DescribeClusterPasswordComplexity.md +18 -6
  9. tccli/examples/cynosdb/v20190107/DescribeInstances.md +63 -55
  10. tccli/examples/cynosdb/v20190107/DescribeParamTemplateDetail.md +3 -1
  11. tccli/examples/cynosdb/v20190107/ModifyVipVport.md +3 -3
  12. tccli/examples/essbasic/v20210526/ChannelCreatePrepareFlow.md +2 -2
  13. tccli/examples/oceanus/v20190422/CopyJobs.md +11 -20
  14. tccli/examples/teo/v20220901/DescribeDefaultCertificates.md +2 -1
  15. tccli/examples/trocket/v20230308/CreateMQTTInstance.md +31 -0
  16. tccli/examples/trocket/v20230308/DescribeMQTTInstanceList.md +176 -0
  17. tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +94 -0
  18. tccli/services/antiddos/antiddos_client.py +53 -0
  19. tccli/services/antiddos/v20200309/api.json +439 -0
  20. tccli/services/antiddos/v20200309/examples.json +8 -0
  21. tccli/services/cfg/v20210820/api.json +21 -10
  22. tccli/services/ckafka/v20190819/api.json +6 -5
  23. tccli/services/ckafka/v20190819/examples.json +1 -1
  24. tccli/services/cls/v20201016/api.json +48 -19
  25. tccli/services/csip/csip_client.py +53 -0
  26. tccli/services/csip/v20221121/api.json +43 -0
  27. tccli/services/csip/v20221121/examples.json +8 -0
  28. tccli/services/cynosdb/v20190107/api.json +415 -87
  29. tccli/services/cynosdb/v20190107/examples.json +12 -12
  30. tccli/services/essbasic/v20210526/examples.json +2 -2
  31. tccli/services/live/v20180801/api.json +1 -1
  32. tccli/services/oceanus/v20190422/api.json +32 -3
  33. tccli/services/oceanus/v20190422/examples.json +1 -1
  34. tccli/services/privatedns/v20201028/api.json +29 -19
  35. tccli/services/ssl/ssl_client.py +0 -53
  36. tccli/services/ssl/v20191205/api.json +0 -99
  37. tccli/services/ssl/v20191205/examples.json +0 -8
  38. tccli/services/teo/v20220901/api.json +14 -3
  39. tccli/services/teo/v20220901/examples.json +1 -1
  40. tccli/services/trocket/trocket_client.py +171 -12
  41. tccli/services/trocket/v20230308/api.json +492 -0
  42. tccli/services/trocket/v20230308/examples.json +30 -0
  43. {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/METADATA +2 -2
  44. {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/RECORD +47 -42
  45. {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/WHEEL +0 -0
  46. {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/entry_points.txt +0 -0
  47. {tccli-3.0.1048.1.dist-info → tccli-3.0.1049.1.dist-info}/license_files/LICENSE +0 -0
@@ -4199,6 +4199,15 @@
4199
4199
  "name": "EndTime",
4200
4200
  "required": false,
4201
4201
  "type": "int"
4202
+ },
4203
+ {
4204
+ "disabled": false,
4205
+ "document": "cos桶存储类型",
4206
+ "example": "STANDARD",
4207
+ "member": "string",
4208
+ "name": "StorageType",
4209
+ "required": false,
4210
+ "type": "string"
4202
4211
  }
4203
4212
  ],
4204
4213
  "type": "object"
@@ -4212,6 +4221,7 @@
4212
4221
  "example": "57f5808c-4a55-11eb-b378-0242ac130002",
4213
4222
  "member": "string",
4214
4223
  "name": "ShipperId",
4224
+ "output_required": true,
4215
4225
  "type": "string",
4216
4226
  "value_allowed_null": false
4217
4227
  },
@@ -10284,6 +10294,15 @@
10284
10294
  "name": "FilenameMode",
10285
10295
  "required": false,
10286
10296
  "type": "int"
10297
+ },
10298
+ {
10299
+ "disabled": false,
10300
+ "document": "cos桶类型",
10301
+ "example": "STANDARD",
10302
+ "member": "string",
10303
+ "name": "StorageType",
10304
+ "required": false,
10305
+ "type": "string"
10287
10306
  }
10288
10307
  ],
10289
10308
  "type": "object"
@@ -11987,7 +12006,7 @@
11987
12006
  "example": "57f5808c-4a55-11eb-b378-0242ac130002",
11988
12007
  "member": "string",
11989
12008
  "name": "ShipperId",
11990
- "required": true,
12009
+ "output_required": true,
11991
12010
  "type": "string",
11992
12011
  "value_allowed_null": false
11993
12012
  },
@@ -11997,7 +12016,7 @@
11997
12016
  "example": "57f5808c-4a55-11eb-b378-0242ac130002",
11998
12017
  "member": "string",
11999
12018
  "name": "TopicId",
12000
- "required": true,
12019
+ "output_required": true,
12001
12020
  "type": "string",
12002
12021
  "value_allowed_null": false
12003
12022
  },
@@ -12007,7 +12026,7 @@
12007
12026
  "example": "无",
12008
12027
  "member": "string",
12009
12028
  "name": "Bucket",
12010
- "required": true,
12029
+ "output_required": true,
12011
12030
  "type": "string",
12012
12031
  "value_allowed_null": false
12013
12032
  },
@@ -12017,7 +12036,7 @@
12017
12036
  "example": "无",
12018
12037
  "member": "string",
12019
12038
  "name": "Prefix",
12020
- "required": true,
12039
+ "output_required": true,
12021
12040
  "type": "string",
12022
12041
  "value_allowed_null": false
12023
12042
  },
@@ -12027,7 +12046,7 @@
12027
12046
  "example": "testShipper",
12028
12047
  "member": "string",
12029
12048
  "name": "ShipperName",
12030
- "required": true,
12049
+ "output_required": true,
12031
12050
  "type": "string",
12032
12051
  "value_allowed_null": false
12033
12052
  },
@@ -12037,7 +12056,7 @@
12037
12056
  "example": "300",
12038
12057
  "member": "uint64",
12039
12058
  "name": "Interval",
12040
- "required": true,
12059
+ "output_required": true,
12041
12060
  "type": "int",
12042
12061
  "value_allowed_null": false
12043
12062
  },
@@ -12047,7 +12066,7 @@
12047
12066
  "example": "256",
12048
12067
  "member": "uint64",
12049
12068
  "name": "MaxSize",
12050
- "required": true,
12069
+ "output_required": true,
12051
12070
  "type": "int",
12052
12071
  "value_allowed_null": false
12053
12072
  },
@@ -12057,7 +12076,7 @@
12057
12076
  "example": "true",
12058
12077
  "member": "bool",
12059
12078
  "name": "Status",
12060
- "required": true,
12079
+ "output_required": true,
12061
12080
  "type": "bool",
12062
12081
  "value_allowed_null": false
12063
12082
  },
@@ -12067,7 +12086,7 @@
12067
12086
  "example": "无",
12068
12087
  "member": "FilterRuleInfo",
12069
12088
  "name": "FilterRules",
12070
- "required": true,
12089
+ "output_required": true,
12071
12090
  "type": "list",
12072
12091
  "value_allowed_null": true
12073
12092
  },
@@ -12077,7 +12096,7 @@
12077
12096
  "example": "无",
12078
12097
  "member": "string",
12079
12098
  "name": "Partition",
12080
- "required": true,
12099
+ "output_required": true,
12081
12100
  "type": "string",
12082
12101
  "value_allowed_null": false
12083
12102
  },
@@ -12087,7 +12106,7 @@
12087
12106
  "example": "无",
12088
12107
  "member": "CompressInfo",
12089
12108
  "name": "Compress",
12090
- "required": true,
12109
+ "output_required": true,
12091
12110
  "type": "object",
12092
12111
  "value_allowed_null": true
12093
12112
  },
@@ -12097,7 +12116,7 @@
12097
12116
  "example": "无",
12098
12117
  "member": "ContentInfo",
12099
12118
  "name": "Content",
12100
- "required": true,
12119
+ "output_required": true,
12101
12120
  "type": "object",
12102
12121
  "value_allowed_null": true
12103
12122
  },
@@ -12107,7 +12126,7 @@
12107
12126
  "example": "无",
12108
12127
  "member": "string",
12109
12128
  "name": "CreateTime",
12110
- "required": true,
12129
+ "output_required": true,
12111
12130
  "type": "string",
12112
12131
  "value_allowed_null": false
12113
12132
  },
@@ -12117,7 +12136,7 @@
12117
12136
  "example": "无",
12118
12137
  "member": "uint64",
12119
12138
  "name": "FilenameMode",
12120
- "required": true,
12139
+ "output_required": true,
12121
12140
  "type": "int",
12122
12141
  "value_allowed_null": true
12123
12142
  },
@@ -12127,7 +12146,7 @@
12127
12146
  "example": "1670642281",
12128
12147
  "member": "int64",
12129
12148
  "name": "StartTime",
12130
- "required": true,
12149
+ "output_required": true,
12131
12150
  "type": "int",
12132
12151
  "value_allowed_null": true
12133
12152
  },
@@ -12137,7 +12156,7 @@
12137
12156
  "example": "0",
12138
12157
  "member": "int64",
12139
12158
  "name": "EndTime",
12140
- "required": true,
12159
+ "output_required": true,
12141
12160
  "type": "int",
12142
12161
  "value_allowed_null": true
12143
12162
  },
@@ -12147,7 +12166,7 @@
12147
12166
  "example": "5.6",
12148
12167
  "member": "float",
12149
12168
  "name": "Progress",
12150
- "required": true,
12169
+ "output_required": true,
12151
12170
  "type": "float",
12152
12171
  "value_allowed_null": true
12153
12172
  },
@@ -12157,7 +12176,7 @@
12157
12176
  "example": "23",
12158
12177
  "member": "int64",
12159
12178
  "name": "RemainTime",
12160
- "required": true,
12179
+ "output_required": true,
12161
12180
  "type": "int",
12162
12181
  "value_allowed_null": true
12163
12182
  },
@@ -12167,9 +12186,19 @@
12167
12186
  "example": "1",
12168
12187
  "member": "int64",
12169
12188
  "name": "HistoryStatus",
12170
- "required": true,
12189
+ "output_required": true,
12171
12190
  "type": "int",
12172
12191
  "value_allowed_null": true
12192
+ },
12193
+ {
12194
+ "disabled": false,
12195
+ "document": "cos桶类型\n注意:此字段可能返回 null,表示取不到有效值。",
12196
+ "example": "无",
12197
+ "member": "string",
12198
+ "name": "StorageType",
12199
+ "output_required": false,
12200
+ "type": "string",
12201
+ "value_allowed_null": true
12173
12202
  }
12174
12203
  ],
12175
12204
  "usage": "out"
@@ -1629,6 +1629,58 @@ def doModifyRiskCenterRiskStatus(args, parsed_globals):
1629
1629
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
1630
 
1631
1631
 
1632
+ def doModifyOrganizationAccountStatus(args, parsed_globals):
1633
+ g_param = parse_global_arg(parsed_globals)
1634
+
1635
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1636
+ cred = credential.CVMRoleCredential()
1637
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1638
+ cred = credential.STSAssumeRoleCredential(
1639
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1640
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1641
+ )
1642
+ 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):
1643
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1644
+ else:
1645
+ cred = credential.Credential(
1646
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1647
+ )
1648
+ http_profile = HttpProfile(
1649
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1650
+ reqMethod="POST",
1651
+ endpoint=g_param[OptionsDefine.Endpoint],
1652
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1653
+ )
1654
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1655
+ if g_param[OptionsDefine.Language]:
1656
+ profile.language = g_param[OptionsDefine.Language]
1657
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1658
+ client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
1659
+ client._sdkVersion += ("_CLI_" + __version__)
1660
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1661
+ model = models.ModifyOrganizationAccountStatusRequest()
1662
+ model.from_json_string(json.dumps(args))
1663
+ start_time = time.time()
1664
+ while True:
1665
+ rsp = client.ModifyOrganizationAccountStatus(model)
1666
+ result = rsp.to_json_string()
1667
+ try:
1668
+ json_obj = json.loads(result)
1669
+ except TypeError as e:
1670
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1671
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1672
+ break
1673
+ cur_time = time.time()
1674
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1675
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1676
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1677
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1678
+ else:
1679
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1680
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1681
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
+
1683
+
1632
1684
  def doDescribeOrganizationUserInfo(args, parsed_globals):
1633
1685
  g_param = parse_global_arg(parsed_globals)
1634
1686
 
@@ -1827,6 +1879,7 @@ ACTION_MAP = {
1827
1879
  "DescribeRiskCenterAssetViewPortRiskList": doDescribeRiskCenterAssetViewPortRiskList,
1828
1880
  "DescribeVULRiskAdvanceCFGList": doDescribeVULRiskAdvanceCFGList,
1829
1881
  "ModifyRiskCenterRiskStatus": doModifyRiskCenterRiskStatus,
1882
+ "ModifyOrganizationAccountStatus": doModifyOrganizationAccountStatus,
1830
1883
  "DescribeOrganizationUserInfo": doDescribeOrganizationUserInfo,
1831
1884
  "DescribeTaskLogURL": doDescribeTaskLogURL,
1832
1885
  "DescribeCVMAssetInfo": doDescribeCVMAssetInfo,
@@ -224,6 +224,13 @@
224
224
  "output": "DescribeVpcAssetsResponse",
225
225
  "status": "online"
226
226
  },
227
+ "ModifyOrganizationAccountStatus": {
228
+ "document": "修改集团账号状态",
229
+ "input": "ModifyOrganizationAccountStatusRequest",
230
+ "name": "修改集团账号状态",
231
+ "output": "ModifyOrganizationAccountStatusResponse",
232
+ "status": "online"
233
+ },
227
234
  "ModifyRiskCenterRiskStatus": {
228
235
  "document": "修改风险中心风险状态",
229
236
  "input": "ModifyRiskCenterRiskStatusRequest",
@@ -6866,6 +6873,42 @@
6866
6873
  ],
6867
6874
  "usage": "out"
6868
6875
  },
6876
+ "ModifyOrganizationAccountStatusRequest": {
6877
+ "document": "ModifyOrganizationAccountStatus请求参数结构体",
6878
+ "members": [
6879
+ {
6880
+ "disabled": false,
6881
+ "document": "修改集团账号状态,1 开启, 2关闭",
6882
+ "example": "无",
6883
+ "member": "int64",
6884
+ "name": "Status",
6885
+ "required": true,
6886
+ "type": "int"
6887
+ }
6888
+ ],
6889
+ "type": "object"
6890
+ },
6891
+ "ModifyOrganizationAccountStatusResponse": {
6892
+ "document": "ModifyOrganizationAccountStatus返回参数结构体",
6893
+ "members": [
6894
+ {
6895
+ "disabled": false,
6896
+ "document": "返回值为0,则修改成功",
6897
+ "example": "0",
6898
+ "member": "int64",
6899
+ "name": "Status",
6900
+ "type": "int",
6901
+ "value_allowed_null": false
6902
+ },
6903
+ {
6904
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
6905
+ "member": "string",
6906
+ "name": "RequestId",
6907
+ "type": "string"
6908
+ }
6909
+ ],
6910
+ "type": "object"
6911
+ },
6869
6912
  "ModifyRiskCenterRiskStatusRequest": {
6870
6913
  "document": "ModifyRiskCenterRiskStatus请求参数结构体",
6871
6914
  "members": [
@@ -256,6 +256,14 @@
256
256
  "title": "空示例"
257
257
  }
258
258
  ],
259
+ "ModifyOrganizationAccountStatus": [
260
+ {
261
+ "document": "修改集团账号状态",
262
+ "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyOrganizationAccountStatus\n<公共请求参数>\n\n{\n \"Status\": 0\n}",
263
+ "output": "{\n \"Response\": {\n \"Status\": 0,\n \"RequestId\": \"abc\"\n }\n}",
264
+ "title": "修改集团账号状态"
265
+ }
266
+ ],
259
267
  "ModifyRiskCenterRiskStatus": [
260
268
  {
261
269
  "document": "修改风险中心风险状态",