tccli 3.0.1133.1__py2.py3-none-any.whl → 3.0.1134.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/asr/v20190614/api.json +2 -2
- tccli/services/billing/v20180709/api.json +10 -0
- tccli/services/cam/v20190116/api.json +41 -12
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/cls/v20201016/examples.json +1 -1
- tccli/services/cmq/v20190304/api.json +53 -49
- tccli/services/cmq/v20190304/examples.json +2 -2
- tccli/services/cynosdb/cynosdb_client.py +57 -4
- tccli/services/cynosdb/v20190107/api.json +111 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +149 -2
- tccli/services/dlc/v20210125/examples.json +9 -1
- tccli/services/dsgc/v20190723/api.json +45 -40
- tccli/services/dts/dts_client.py +0 -53
- tccli/services/dts/v20180330/api.json +0 -98
- tccli/services/dts/v20180330/examples.json +0 -8
- tccli/services/emr/v20190103/api.json +4 -4
- tccli/services/ess/ess_client.py +411 -305
- tccli/services/ess/v20201111/api.json +144 -0
- tccli/services/ess/v20201111/examples.json +16 -0
- tccli/services/essbasic/essbasic_client.py +110 -4
- tccli/services/essbasic/v20210526/api.json +137 -2
- tccli/services/essbasic/v20210526/examples.json +16 -0
- tccli/services/mongodb/mongodb_client.py +57 -4
- tccli/services/mongodb/v20190725/api.json +96 -0
- tccli/services/mongodb/v20190725/examples.json +8 -0
- tccli/services/mps/v20190612/api.json +57 -7
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +373 -3
- tccli/services/organization/organization_client.py +118 -12
- tccli/services/organization/v20210331/api.json +68 -0
- tccli/services/organization/v20210331/examples.json +16 -0
- tccli/services/tdmq/tdmq_client.py +443 -19
- tccli/services/tdmq/v20200217/api.json +570 -0
- tccli/services/tdmq/v20200217/examples.json +64 -0
- tccli/services/trro/v20220325/api.json +6 -6
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/tsf/v20180326/api.json +37 -27
- tccli/services/tsf/v20180326/examples.json +1 -1
- {tccli-3.0.1133.1.dist-info → tccli-3.0.1134.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1133.1.dist-info → tccli-3.0.1134.1.dist-info}/RECORD +46 -46
- {tccli-3.0.1133.1.dist-info → tccli-3.0.1134.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1133.1.dist-info → tccli-3.0.1134.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1133.1.dist-info → tccli-3.0.1134.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/dts/dts_client.py
CHANGED
@@ -1943,58 +1943,6 @@ def doStopMigrateJob(args, parsed_globals):
|
|
1943
1943
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1944
1944
|
|
1945
1945
|
|
1946
|
-
def doDescribeRegionConf(args, parsed_globals):
|
1947
|
-
g_param = parse_global_arg(parsed_globals)
|
1948
|
-
|
1949
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1950
|
-
cred = credential.CVMRoleCredential()
|
1951
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1952
|
-
cred = credential.STSAssumeRoleCredential(
|
1953
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1954
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1955
|
-
)
|
1956
|
-
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):
|
1957
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1958
|
-
else:
|
1959
|
-
cred = credential.Credential(
|
1960
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1961
|
-
)
|
1962
|
-
http_profile = HttpProfile(
|
1963
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1964
|
-
reqMethod="POST",
|
1965
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
1966
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1967
|
-
)
|
1968
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1969
|
-
if g_param[OptionsDefine.Language]:
|
1970
|
-
profile.language = g_param[OptionsDefine.Language]
|
1971
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1972
|
-
client = mod.DtsClient(cred, g_param[OptionsDefine.Region], profile)
|
1973
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
1974
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1975
|
-
model = models.DescribeRegionConfRequest()
|
1976
|
-
model.from_json_string(json.dumps(args))
|
1977
|
-
start_time = time.time()
|
1978
|
-
while True:
|
1979
|
-
rsp = client.DescribeRegionConf(model)
|
1980
|
-
result = rsp.to_json_string()
|
1981
|
-
try:
|
1982
|
-
json_obj = json.loads(result)
|
1983
|
-
except TypeError as e:
|
1984
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1985
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1986
|
-
break
|
1987
|
-
cur_time = time.time()
|
1988
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1989
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1990
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1991
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1992
|
-
else:
|
1993
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1994
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1995
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1996
|
-
|
1997
|
-
|
1998
1946
|
def doPauseSyncJob(args, parsed_globals):
|
1999
1947
|
g_param = parse_global_arg(parsed_globals)
|
2000
1948
|
|
@@ -4437,7 +4385,6 @@ ACTION_MAP = {
|
|
4437
4385
|
"ModifySyncJobConfig": doModifySyncJobConfig,
|
4438
4386
|
"ResumeMigrateJob": doResumeMigrateJob,
|
4439
4387
|
"StopMigrateJob": doStopMigrateJob,
|
4440
|
-
"DescribeRegionConf": doDescribeRegionConf,
|
4441
4388
|
"PauseSyncJob": doPauseSyncJob,
|
4442
4389
|
"StartModifySyncJob": doStartModifySyncJob,
|
4443
4390
|
"DescribeSubscribes": doDescribeSubscribes,
|
@@ -63,13 +63,6 @@
|
|
63
63
|
"output": "DescribeMigrateJobsResponse",
|
64
64
|
"status": "online"
|
65
65
|
},
|
66
|
-
"DescribeRegionConf": {
|
67
|
-
"document": "接口不再使用\n\n本接口(DescribeRegionConf)用于查询可售卖订阅实例的地域",
|
68
|
-
"input": "DescribeRegionConfRequest",
|
69
|
-
"name": "查询可售卖订阅地域",
|
70
|
-
"output": "DescribeRegionConfResponse",
|
71
|
-
"status": "deprecated"
|
72
|
-
},
|
73
66
|
"DescribeSubscribeConf": {
|
74
67
|
"document": "本接口(DescribeSubscribeConf)用于查询订阅实例配置",
|
75
68
|
"input": "DescribeSubscribeConfRequest",
|
@@ -827,41 +820,6 @@
|
|
827
820
|
],
|
828
821
|
"type": "object"
|
829
822
|
},
|
830
|
-
"DescribeRegionConfRequest": {
|
831
|
-
"document": "DescribeRegionConf请求参数结构体",
|
832
|
-
"members": [],
|
833
|
-
"type": "object"
|
834
|
-
},
|
835
|
-
"DescribeRegionConfResponse": {
|
836
|
-
"document": "DescribeRegionConf返回参数结构体",
|
837
|
-
"members": [
|
838
|
-
{
|
839
|
-
"disabled": false,
|
840
|
-
"document": "可售卖地域的数量",
|
841
|
-
"example": "",
|
842
|
-
"member": "int64",
|
843
|
-
"name": "TotalCount",
|
844
|
-
"type": "int",
|
845
|
-
"value_allowed_null": false
|
846
|
-
},
|
847
|
-
{
|
848
|
-
"disabled": false,
|
849
|
-
"document": "可售卖地域详情",
|
850
|
-
"example": "",
|
851
|
-
"member": "SubscribeRegionConf",
|
852
|
-
"name": "Items",
|
853
|
-
"type": "list",
|
854
|
-
"value_allowed_null": false
|
855
|
-
},
|
856
|
-
{
|
857
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
858
|
-
"member": "string",
|
859
|
-
"name": "RequestId",
|
860
|
-
"type": "string"
|
861
|
-
}
|
862
|
-
],
|
863
|
-
"type": "object"
|
864
|
-
},
|
865
823
|
"DescribeSubscribeConfRequest": {
|
866
824
|
"document": "DescribeSubscribeConf请求参数结构体",
|
867
825
|
"members": [
|
@@ -2779,62 +2737,6 @@
|
|
2779
2737
|
],
|
2780
2738
|
"usage": "both"
|
2781
2739
|
},
|
2782
|
-
"SubscribeRegionConf": {
|
2783
|
-
"document": "数据订阅地域售卖信息",
|
2784
|
-
"members": [
|
2785
|
-
{
|
2786
|
-
"disabled": false,
|
2787
|
-
"document": "地域名称,如广州\n注意:此字段可能返回 null,表示取不到有效值。",
|
2788
|
-
"example": "",
|
2789
|
-
"member": "string",
|
2790
|
-
"name": "RegionName",
|
2791
|
-
"required": true,
|
2792
|
-
"type": "string",
|
2793
|
-
"value_allowed_null": true
|
2794
|
-
},
|
2795
|
-
{
|
2796
|
-
"disabled": false,
|
2797
|
-
"document": "地区标识,如ap-guangzhou\n注意:此字段可能返回 null,表示取不到有效值。",
|
2798
|
-
"example": "",
|
2799
|
-
"member": "string",
|
2800
|
-
"name": "Region",
|
2801
|
-
"required": true,
|
2802
|
-
"type": "string",
|
2803
|
-
"value_allowed_null": true
|
2804
|
-
},
|
2805
|
-
{
|
2806
|
-
"disabled": false,
|
2807
|
-
"document": "地域名称,如华南地区\n注意:此字段可能返回 null,表示取不到有效值。",
|
2808
|
-
"example": "",
|
2809
|
-
"member": "string",
|
2810
|
-
"name": "Area",
|
2811
|
-
"required": true,
|
2812
|
-
"type": "string",
|
2813
|
-
"value_allowed_null": true
|
2814
|
-
},
|
2815
|
-
{
|
2816
|
-
"disabled": false,
|
2817
|
-
"document": "是否为默认地域,0 - 不是,1 - 是的\n注意:此字段可能返回 null,表示取不到有效值。",
|
2818
|
-
"example": "",
|
2819
|
-
"member": "int64",
|
2820
|
-
"name": "IsDefaultRegion",
|
2821
|
-
"required": true,
|
2822
|
-
"type": "int",
|
2823
|
-
"value_allowed_null": true
|
2824
|
-
},
|
2825
|
-
{
|
2826
|
-
"disabled": false,
|
2827
|
-
"document": "当前地域的售卖情况,1 - 正常, 2-灰度,3 - 停售\n注意:此字段可能返回 null,表示取不到有效值。",
|
2828
|
-
"example": "",
|
2829
|
-
"member": "int64",
|
2830
|
-
"name": "Status",
|
2831
|
-
"required": true,
|
2832
|
-
"type": "int",
|
2833
|
-
"value_allowed_null": true
|
2834
|
-
}
|
2835
|
-
],
|
2836
|
-
"usage": "out"
|
2837
|
-
},
|
2838
2740
|
"TagFilter": {
|
2839
2741
|
"document": "标签过滤",
|
2840
2742
|
"members": [
|
@@ -90,14 +90,6 @@
|
|
90
90
|
"title": "查询数据迁移任务"
|
91
91
|
}
|
92
92
|
],
|
93
|
-
"DescribeRegionConf": [
|
94
|
-
{
|
95
|
-
"document": "",
|
96
|
-
"input": "https://dts.tencentcloudapi.com/?Action=DescribeRegionConf\r\n&<公共请求参数>",
|
97
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Items\": [\n {\n \"RegionName\": \"广州\",\n \"Region\": \"ap-guangzhou\",\n \"Area\": \"华南地区\",\n \"IsDefaultRegion\": 1,\n \"Status\": 1\n }\n ]\n }\n}",
|
98
|
-
"title": "查询可售卖订阅的地域"
|
99
|
-
}
|
100
|
-
],
|
101
93
|
"DescribeSubscribeConf": [
|
102
94
|
{
|
103
95
|
"document": "",
|
@@ -4420,8 +4420,8 @@
|
|
4420
4420
|
},
|
4421
4421
|
{
|
4422
4422
|
"disabled": false,
|
4423
|
-
"document": "
|
4424
|
-
"example": "
|
4423
|
+
"document": "常见状态描述:集群生产中,集群运行中,集群创建中,集群已关闭,集群已删除\n注意:此字段可能返回 null,表示取不到有效值。",
|
4424
|
+
"example": "集群运行中",
|
4425
4425
|
"member": "string",
|
4426
4426
|
"name": "StatusDesc",
|
4427
4427
|
"output_required": true,
|
@@ -4580,8 +4580,8 @@
|
|
4580
4580
|
},
|
4581
4581
|
{
|
4582
4582
|
"disabled": false,
|
4583
|
-
"document": "
|
4584
|
-
"example": "
|
4583
|
+
"document": "状态码, 取值为-2(集群已删除), -1(集群已关闭), 0(集群生产中), 2(集群运行中), 3(集群创建中)\n注意:此字段可能返回 null,表示取不到有效值。",
|
4584
|
+
"example": "2",
|
4585
4585
|
"member": "uint64",
|
4586
4586
|
"name": "Status",
|
4587
4587
|
"output_required": true,
|