tccli 3.0.1297.1__py2.py3-none-any.whl → 3.0.1299.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.
- tccli/__init__.py +1 -1
- tccli/services/batch/batch_client.py +4 -110
- tccli/services/batch/v20170312/api.json +0 -527
- tccli/services/batch/v20170312/examples.json +0 -16
- tccli/services/bi/v20220105/api.json +87 -1
- tccli/services/bi/v20220105/examples.json +7 -7
- tccli/services/cam/v20190116/api.json +84 -84
- tccli/services/cbs/v20170312/api.json +24 -24
- tccli/services/cdn/v20180606/api.json +240 -179
- tccli/services/cdn/v20180606/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +5 -3
- tccli/services/cfg/v20210820/examples.json +1 -1
- tccli/services/chdfs/v20201112/api.json +7 -1
- tccli/services/cls/cls_client.py +235 -23
- tccli/services/cls/v20201016/api.json +457 -3
- tccli/services/cls/v20201016/examples.json +32 -0
- tccli/services/controlcenter/v20230110/api.json +63 -58
- tccli/services/cvm/v20170312/api.json +2 -2
- tccli/services/dbbrain/dbbrain_client.py +106 -0
- tccli/services/dbbrain/v20191016/api.json +365 -6
- tccli/services/dbbrain/v20191016/examples.json +8 -0
- tccli/services/dbbrain/v20210527/api.json +550 -21
- tccli/services/dbbrain/v20210527/examples.json +16 -0
- tccli/services/dcdb/v20180411/api.json +102 -6
- tccli/services/dcdb/v20180411/examples.json +4 -4
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +162 -0
- tccli/services/dlc/v20210125/examples.json +8 -0
- tccli/services/dnspod/v20210323/api.json +128 -127
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +5 -5
- tccli/services/facefusion/v20220927/api.json +2 -2
- tccli/services/facefusion/v20220927/examples.json +1 -1
- tccli/services/gs/v20191118/api.json +22 -3
- tccli/services/gs/v20191118/examples.json +1 -1
- tccli/services/hai/v20230812/api.json +16 -16
- tccli/services/iotcloud/v20210408/api.json +2 -2
- tccli/services/iotcloud/v20210408/examples.json +3 -3
- tccli/services/iotexplorer/v20190423/api.json +947 -857
- tccli/services/iotexplorer/v20190423/examples.json +83 -83
- tccli/services/live/v20180801/api.json +2 -2
- tccli/services/lkeap/v20240522/api.json +3 -3
- tccli/services/mariadb/v20170312/api.json +84 -8
- tccli/services/mariadb/v20170312/examples.json +3 -3
- tccli/services/mps/v20190612/api.json +63 -61
- tccli/services/mps/v20190612/examples.json +48 -48
- tccli/services/mqtt/v20240516/api.json +62 -12
- tccli/services/mqtt/v20240516/examples.json +6 -6
- tccli/services/ocr/ocr_client.py +307 -360
- tccli/services/ocr/v20181119/api.json +73 -289
- tccli/services/ocr/v20181119/examples.json +0 -8
- tccli/services/organization/v20210331/api.json +9 -0
- tccli/services/partners/v20180321/api.json +10 -0
- tccli/services/sqlserver/v20180328/api.json +9 -0
- tccli/services/sqlserver/v20180328/examples.json +1 -1
- tccli/services/tcb/v20180608/api.json +11 -1
- tccli/services/tdmq/v20200217/api.json +30 -0
- tccli/services/teo/v20220106/api.json +4 -4
- tccli/services/teo/v20220901/api.json +48 -7
- tccli/services/teo/v20220901/examples.json +51 -15
- tccli/services/tione/v20211111/api.json +25 -5
- tccli/services/tke/v20180525/api.json +2 -2
- tccli/services/trro/trro_client.py +269 -4
- tccli/services/trro/v20220325/api.json +504 -0
- tccli/services/trro/v20220325/examples.json +40 -0
- tccli/services/tse/v20201207/api.json +34 -34
- tccli/services/vdb/v20230616/api.json +738 -15
- tccli/services/vdb/v20230616/examples.json +64 -0
- tccli/services/vdb/vdb_client.py +428 -4
- tccli/services/vod/v20180717/api.json +9 -0
- tccli/services/vod/v20240718/api.json +985 -0
- tccli/services/vod/v20240718/examples.json +66 -0
- tccli/services/vod/vod_client.py +330 -12
- tccli/services/vpc/v20170312/api.json +175 -0
- tccli/services/vpc/v20170312/examples.json +8 -0
- tccli/services/vpc/vpc_client.py +53 -0
- tccli/services/wedata/v20210820/api.json +464 -1
- tccli/services/wedata/v20210820/examples.json +22 -0
- tccli/services/wedata/wedata_client.py +114 -8
- tccli/services/weilingwith/v20230427/api.json +10 -10
- {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/RECORD +85 -85
- {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/license_files/LICENSE +0 -0
@@ -1316,6 +1316,13 @@
|
|
1316
1316
|
"output": "DescribeNatGatewayDirectConnectGatewayRouteResponse",
|
1317
1317
|
"status": "online"
|
1318
1318
|
},
|
1319
|
+
"DescribeNatGatewayFlowMonitorDetail": {
|
1320
|
+
"document": "本接口(DescribeNatGatewayFlowMonitorDetail)用于查询NAT网关流量监控明细。\n\n- 只支持单个网关实例查询。即入参 `NatGatewayId` 最多只支持传一个,且必须传一个。\n- 如果网关有流量,但调用本接口没有返回数据,请在控制台对应网关详情页确认是否开启网关流量监控。",
|
1321
|
+
"input": "DescribeNatGatewayFlowMonitorDetailRequest",
|
1322
|
+
"name": "查询nat网关流控明细",
|
1323
|
+
"output": "DescribeNatGatewayFlowMonitorDetailResponse",
|
1324
|
+
"status": "online"
|
1325
|
+
},
|
1319
1326
|
"DescribeNatGatewaySourceIpTranslationNatRules": {
|
1320
1327
|
"document": "本接口(DescribeNatGatewaySourceIpTranslationNatRules)用于查询NAT网关SNAT转发规则对象数组。",
|
1321
1328
|
"input": "DescribeNatGatewaySourceIpTranslationNatRulesRequest",
|
@@ -17066,6 +17073,98 @@
|
|
17066
17073
|
],
|
17067
17074
|
"type": "object"
|
17068
17075
|
},
|
17076
|
+
"DescribeNatGatewayFlowMonitorDetailRequest": {
|
17077
|
+
"document": "DescribeNatGatewayFlowMonitorDetail请求参数结构体",
|
17078
|
+
"members": [
|
17079
|
+
{
|
17080
|
+
"disabled": false,
|
17081
|
+
"document": "时间点。表示要查询的时刻。聚合粒度为60、300时,会查询最近一个整分钟开始的聚合周期;聚合粒度为3600时,会查询最近一个整点开始的聚合周期;聚合粒度为86400时,会查询最近一个整天开始的聚合周期。形如:`2019-03-24T10:51:23+08:00`。",
|
17082
|
+
"example": "2019-03-24T10:51:23+08:00",
|
17083
|
+
"member": "datetime_iso",
|
17084
|
+
"name": "TimePoint",
|
17085
|
+
"required": true,
|
17086
|
+
"type": "string"
|
17087
|
+
},
|
17088
|
+
{
|
17089
|
+
"disabled": false,
|
17090
|
+
"document": "NAT网关的ID,形如:`nat-ig8xpno8`。",
|
17091
|
+
"example": "nat-ig8xpno8",
|
17092
|
+
"member": "string",
|
17093
|
+
"name": "NatGatewayId",
|
17094
|
+
"required": true,
|
17095
|
+
"type": "string"
|
17096
|
+
},
|
17097
|
+
{
|
17098
|
+
"disabled": false,
|
17099
|
+
"document": "展示排序靠前的数据。默认值:10,表示默认展示排序前 10 的数据。最大值:100。",
|
17100
|
+
"example": "10",
|
17101
|
+
"member": "int64",
|
17102
|
+
"name": "TopN",
|
17103
|
+
"required": false,
|
17104
|
+
"type": "int"
|
17105
|
+
},
|
17106
|
+
{
|
17107
|
+
"disabled": false,
|
17108
|
+
"document": "排序字段。支持:入包量`InPkg`、出包量`OutPkg`、入流量`InTraffic`、出流量`OutTraffic`,标准型nat额外支持 并发连接数`ConcurrentConnectionCount` 、新建连接速率`NewConnectionRate`。默认值`OutTraffic`。",
|
17109
|
+
"example": "InTraffic",
|
17110
|
+
"member": "string",
|
17111
|
+
"name": "OrderField",
|
17112
|
+
"required": false,
|
17113
|
+
"type": "string"
|
17114
|
+
},
|
17115
|
+
{
|
17116
|
+
"disabled": false,
|
17117
|
+
"document": "聚合时间粒度。支持:60、300、3600、86400,即按照1分钟、5分钟、1小时、1天进行聚合查询。",
|
17118
|
+
"example": "60",
|
17119
|
+
"member": "int64",
|
17120
|
+
"name": "AggregationTimeRange",
|
17121
|
+
"required": false,
|
17122
|
+
"type": "int"
|
17123
|
+
},
|
17124
|
+
{
|
17125
|
+
"disabled": false,
|
17126
|
+
"document": "是否查询全部指标。默认值:True,表示查询全部指标。",
|
17127
|
+
"example": "True",
|
17128
|
+
"member": "bool",
|
17129
|
+
"name": "AllMetricMode",
|
17130
|
+
"required": false,
|
17131
|
+
"type": "bool"
|
17132
|
+
}
|
17133
|
+
],
|
17134
|
+
"type": "object"
|
17135
|
+
},
|
17136
|
+
"DescribeNatGatewayFlowMonitorDetailResponse": {
|
17137
|
+
"document": "DescribeNatGatewayFlowMonitorDetail返回参数结构体",
|
17138
|
+
"members": [
|
17139
|
+
{
|
17140
|
+
"disabled": false,
|
17141
|
+
"document": "符合条件的对象数。",
|
17142
|
+
"example": "1",
|
17143
|
+
"member": "uint64",
|
17144
|
+
"name": "TotalCount",
|
17145
|
+
"output_required": true,
|
17146
|
+
"type": "int",
|
17147
|
+
"value_allowed_null": false
|
17148
|
+
},
|
17149
|
+
{
|
17150
|
+
"disabled": false,
|
17151
|
+
"document": "网关流量监控明细。",
|
17152
|
+
"example": "无",
|
17153
|
+
"member": "NatGatewayFlowMonitorDetail",
|
17154
|
+
"name": "NatGatewayFlowMonitorDetailSet",
|
17155
|
+
"output_required": true,
|
17156
|
+
"type": "list",
|
17157
|
+
"value_allowed_null": false
|
17158
|
+
},
|
17159
|
+
{
|
17160
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
17161
|
+
"member": "string",
|
17162
|
+
"name": "RequestId",
|
17163
|
+
"type": "string"
|
17164
|
+
}
|
17165
|
+
],
|
17166
|
+
"type": "object"
|
17167
|
+
},
|
17069
17168
|
"DescribeNatGatewaySourceIpTranslationNatRulesRequest": {
|
17070
17169
|
"document": "DescribeNatGatewaySourceIpTranslationNatRules请求参数结构体",
|
17071
17170
|
"members": [
|
@@ -29769,6 +29868,82 @@
|
|
29769
29868
|
],
|
29770
29869
|
"usage": "out"
|
29771
29870
|
},
|
29871
|
+
"NatGatewayFlowMonitorDetail": {
|
29872
|
+
"document": "nat网关流量监控明细。",
|
29873
|
+
"members": [
|
29874
|
+
{
|
29875
|
+
"disabled": false,
|
29876
|
+
"document": "来源`IP`。",
|
29877
|
+
"example": "192.168.1.21",
|
29878
|
+
"member": "string",
|
29879
|
+
"name": "PrivateIpAddress",
|
29880
|
+
"output_required": true,
|
29881
|
+
"type": "string",
|
29882
|
+
"value_allowed_null": false
|
29883
|
+
},
|
29884
|
+
{
|
29885
|
+
"disabled": false,
|
29886
|
+
"document": "入包量。",
|
29887
|
+
"example": "1400",
|
29888
|
+
"member": "uint64",
|
29889
|
+
"name": "InPkg",
|
29890
|
+
"output_required": true,
|
29891
|
+
"type": "int",
|
29892
|
+
"value_allowed_null": false
|
29893
|
+
},
|
29894
|
+
{
|
29895
|
+
"disabled": false,
|
29896
|
+
"document": "出包量。",
|
29897
|
+
"example": "1527",
|
29898
|
+
"member": "uint64",
|
29899
|
+
"name": "OutPkg",
|
29900
|
+
"output_required": true,
|
29901
|
+
"type": "int",
|
29902
|
+
"value_allowed_null": false
|
29903
|
+
},
|
29904
|
+
{
|
29905
|
+
"disabled": false,
|
29906
|
+
"document": "入流量,单位:`Byte`。",
|
29907
|
+
"example": "32876",
|
29908
|
+
"member": "uint64",
|
29909
|
+
"name": "InTraffic",
|
29910
|
+
"output_required": true,
|
29911
|
+
"type": "int",
|
29912
|
+
"value_allowed_null": false
|
29913
|
+
},
|
29914
|
+
{
|
29915
|
+
"disabled": false,
|
29916
|
+
"document": "出流量,单位:`Byte`。",
|
29917
|
+
"example": "65428",
|
29918
|
+
"member": "uint64",
|
29919
|
+
"name": "OutTraffic",
|
29920
|
+
"output_required": true,
|
29921
|
+
"type": "int",
|
29922
|
+
"value_allowed_null": false
|
29923
|
+
},
|
29924
|
+
{
|
29925
|
+
"disabled": false,
|
29926
|
+
"document": "并发连接数。仅标准型nat支持此参数。",
|
29927
|
+
"example": "1000",
|
29928
|
+
"member": "uint64",
|
29929
|
+
"name": "ConcurrentConnectionCount",
|
29930
|
+
"output_required": true,
|
29931
|
+
"type": "int",
|
29932
|
+
"value_allowed_null": false
|
29933
|
+
},
|
29934
|
+
{
|
29935
|
+
"disabled": false,
|
29936
|
+
"document": "新建连接速率。仅标准型nat支持此参数。",
|
29937
|
+
"example": "100",
|
29938
|
+
"member": "uint64",
|
29939
|
+
"name": "NewConnectionRate",
|
29940
|
+
"output_required": true,
|
29941
|
+
"type": "int",
|
29942
|
+
"value_allowed_null": false
|
29943
|
+
}
|
29944
|
+
],
|
29945
|
+
"usage": "out"
|
29946
|
+
},
|
29772
29947
|
"NatRegionInfoWithArea": {
|
29773
29948
|
"document": "NAT地域地区对象",
|
29774
29949
|
"members": [],
|
@@ -1732,6 +1732,14 @@
|
|
1732
1732
|
"title": "查NAT网关路由信息"
|
1733
1733
|
}
|
1734
1734
|
],
|
1735
|
+
"DescribeNatGatewayFlowMonitorDetail": [
|
1736
|
+
{
|
1737
|
+
"document": "查询一个标准型NAT网关流量监控明细",
|
1738
|
+
"input": "https://vpc.tencentcloudapi.com/?Action=DescribeNatGatewayFlowMonitorDetail\n&TimePoint=2021-12-10T09:02:01+08:00\n&NatGatewayId=nat-lz6rjk7n\n&OrderField=OutTraffic\n&<公共请求参数>",
|
1739
|
+
"output": "{\n \"Response\": {\n \"NatGatewayFlowMonitorDetailSet\": [\n {\n \"OutTraffic\": 15925824,\n \"PrivateIpAddress\": \"2.2.2.188\",\n \"InPkg\": 71466,\n \"OutPkg\": 57276,\n \"InTraffic\": 13526553,\n \"ConcurrentConnectionCount\": 999,\n \"NewConnectionRate\": 888\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"d9b0cd80-3b86-4e03-8fc9-bc7de311bc73\"\n }\n}",
|
1740
|
+
"title": "查询一个标准型NAT网关流量监控明细"
|
1741
|
+
}
|
1742
|
+
],
|
1735
1743
|
"DescribeNatGatewaySourceIpTranslationNatRules": [
|
1736
1744
|
{
|
1737
1745
|
"document": "用Filter数组拉取NAT网关的SNAT转发规则",
|
tccli/services/vpc/vpc_client.py
CHANGED
@@ -16813,6 +16813,58 @@ def doDescribeIp6Translators(args, parsed_globals):
|
|
16813
16813
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
16814
16814
|
|
16815
16815
|
|
16816
|
+
def doDescribeNatGatewayFlowMonitorDetail(args, parsed_globals):
|
16817
|
+
g_param = parse_global_arg(parsed_globals)
|
16818
|
+
|
16819
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
16820
|
+
cred = credential.CVMRoleCredential()
|
16821
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
16822
|
+
cred = credential.STSAssumeRoleCredential(
|
16823
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
16824
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
16825
|
+
)
|
16826
|
+
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):
|
16827
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
16828
|
+
else:
|
16829
|
+
cred = credential.Credential(
|
16830
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
16831
|
+
)
|
16832
|
+
http_profile = HttpProfile(
|
16833
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
16834
|
+
reqMethod="POST",
|
16835
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
16836
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
16837
|
+
)
|
16838
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
16839
|
+
if g_param[OptionsDefine.Language]:
|
16840
|
+
profile.language = g_param[OptionsDefine.Language]
|
16841
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
16842
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
16843
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
16844
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
16845
|
+
model = models.DescribeNatGatewayFlowMonitorDetailRequest()
|
16846
|
+
model.from_json_string(json.dumps(args))
|
16847
|
+
start_time = time.time()
|
16848
|
+
while True:
|
16849
|
+
rsp = client.DescribeNatGatewayFlowMonitorDetail(model)
|
16850
|
+
result = rsp.to_json_string()
|
16851
|
+
try:
|
16852
|
+
json_obj = json.loads(result)
|
16853
|
+
except TypeError as e:
|
16854
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
16855
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
16856
|
+
break
|
16857
|
+
cur_time = time.time()
|
16858
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
16859
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
16860
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
16861
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
16862
|
+
else:
|
16863
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
16864
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
16865
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
16866
|
+
|
16867
|
+
|
16816
16868
|
def doDisableGatewayFlowMonitor(args, parsed_globals):
|
16817
16869
|
g_param = parse_global_arg(parsed_globals)
|
16818
16870
|
|
@@ -21307,6 +21359,7 @@ ACTION_MAP = {
|
|
21307
21359
|
"AcceptAttachCcnInstances": doAcceptAttachCcnInstances,
|
21308
21360
|
"DescribeGatewayFlowQos": doDescribeGatewayFlowQos,
|
21309
21361
|
"DescribeIp6Translators": doDescribeIp6Translators,
|
21362
|
+
"DescribeNatGatewayFlowMonitorDetail": doDescribeNatGatewayFlowMonitorDetail,
|
21310
21363
|
"DisableGatewayFlowMonitor": doDisableGatewayFlowMonitor,
|
21311
21364
|
"CreateVpc": doCreateVpc,
|
21312
21365
|
"CheckAssistantCidr": doCheckAssistantCidr,
|