tccli 3.0.1222.1__py2.py3-none-any.whl → 3.0.1223.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/billing/v20180709/api.json +356 -356
- tccli/services/billing/v20180709/examples.json +7 -7
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/dcdb/v20180411/api.json +136 -136
- tccli/services/dnspod/dnspod_client.py +139 -33
- tccli/services/dnspod/v20210323/api.json +104 -0
- tccli/services/dnspod/v20210323/examples.json +16 -0
- tccli/services/ess/v20201111/api.json +4 -4
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/goosefs/v20220519/api.json +9 -0
- tccli/services/hunyuan/v20230901/api.json +11 -0
- tccli/services/lcic/v20220817/api.json +10 -1
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/live/live_client.py +322 -4
- tccli/services/live/v20180801/api.json +331 -0
- tccli/services/live/v20180801/examples.json +48 -0
- tccli/services/lke/v20231130/api.json +29 -9
- tccli/services/mariadb/v20170312/api.json +142 -142
- tccli/services/mps/v20190612/api.json +11 -1
- tccli/services/oceanus/v20190422/api.json +10 -0
- tccli/services/ocr/v20181119/api.json +30 -0
- tccli/services/ocr/v20181119/examples.json +4 -10
- tccli/services/privatedns/privatedns_client.py +4 -534
- tccli/services/privatedns/v20201028/api.json +4 -943
- tccli/services/privatedns/v20201028/examples.json +0 -80
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/teo/v20220901/api.json +5 -0
- tccli/services/tke/v20220501/api.json +3 -1
- tccli/services/vod/v20180717/api.json +19 -0
- tccli/services/vpc/v20170312/api.json +29 -0
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1223.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1223.1.dist-info}/RECORD +36 -36
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1223.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1223.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1222.1.dist-info → tccli-3.0.1223.1.dist-info}/license_files/LICENSE +0 -0
@@ -17,6 +17,58 @@ from tencentcloud.dnspod.v20210323 import models as models_v20210323
|
|
17
17
|
from jmespath import search
|
18
18
|
import time
|
19
19
|
|
20
|
+
def doCreateSubdomainValidateTXTValue(args, parsed_globals):
|
21
|
+
g_param = parse_global_arg(parsed_globals)
|
22
|
+
|
23
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
24
|
+
cred = credential.CVMRoleCredential()
|
25
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
26
|
+
cred = credential.STSAssumeRoleCredential(
|
27
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
28
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
29
|
+
)
|
30
|
+
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):
|
31
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
32
|
+
else:
|
33
|
+
cred = credential.Credential(
|
34
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
35
|
+
)
|
36
|
+
http_profile = HttpProfile(
|
37
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
38
|
+
reqMethod="POST",
|
39
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
40
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
41
|
+
)
|
42
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
43
|
+
if g_param[OptionsDefine.Language]:
|
44
|
+
profile.language = g_param[OptionsDefine.Language]
|
45
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
46
|
+
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
47
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
48
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
+
model = models.CreateSubdomainValidateTXTValueRequest()
|
50
|
+
model.from_json_string(json.dumps(args))
|
51
|
+
start_time = time.time()
|
52
|
+
while True:
|
53
|
+
rsp = client.CreateSubdomainValidateTXTValue(model)
|
54
|
+
result = rsp.to_json_string()
|
55
|
+
try:
|
56
|
+
json_obj = json.loads(result)
|
57
|
+
except TypeError as e:
|
58
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
59
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
60
|
+
break
|
61
|
+
cur_time = time.time()
|
62
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
63
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
64
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
65
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
66
|
+
else:
|
67
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
68
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
69
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
|
+
|
71
|
+
|
20
72
|
def doDescribeRecordList(args, parsed_globals):
|
21
73
|
g_param = parse_global_arg(parsed_globals)
|
22
74
|
|
@@ -1785,7 +1837,7 @@ def doDeleteShareDomain(args, parsed_globals):
|
|
1785
1837
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
1838
|
|
1787
1839
|
|
1788
|
-
def
|
1840
|
+
def doDeleteLineGroup(args, parsed_globals):
|
1789
1841
|
g_param = parse_global_arg(parsed_globals)
|
1790
1842
|
|
1791
1843
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1814,11 +1866,11 @@ def doDescribeDomain(args, parsed_globals):
|
|
1814
1866
|
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
1815
1867
|
client._sdkVersion += ("_CLI_" + __version__)
|
1816
1868
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1817
|
-
model = models.
|
1869
|
+
model = models.DeleteLineGroupRequest()
|
1818
1870
|
model.from_json_string(json.dumps(args))
|
1819
1871
|
start_time = time.time()
|
1820
1872
|
while True:
|
1821
|
-
rsp = client.
|
1873
|
+
rsp = client.DeleteLineGroup(model)
|
1822
1874
|
result = rsp.to_json_string()
|
1823
1875
|
try:
|
1824
1876
|
json_obj = json.loads(result)
|
@@ -1837,7 +1889,7 @@ def doDescribeDomain(args, parsed_globals):
|
|
1837
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
1890
|
|
1839
1891
|
|
1840
|
-
def
|
1892
|
+
def doModifyRecordStatus(args, parsed_globals):
|
1841
1893
|
g_param = parse_global_arg(parsed_globals)
|
1842
1894
|
|
1843
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1866,11 +1918,11 @@ def doDeleteLineGroup(args, parsed_globals):
|
|
1866
1918
|
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
1867
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
1868
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1869
|
-
model = models.
|
1921
|
+
model = models.ModifyRecordStatusRequest()
|
1870
1922
|
model.from_json_string(json.dumps(args))
|
1871
1923
|
start_time = time.time()
|
1872
1924
|
while True:
|
1873
|
-
rsp = client.
|
1925
|
+
rsp = client.ModifyRecordStatus(model)
|
1874
1926
|
result = rsp.to_json_string()
|
1875
1927
|
try:
|
1876
1928
|
json_obj = json.loads(result)
|
@@ -1889,7 +1941,7 @@ def doDeleteLineGroup(args, parsed_globals):
|
|
1889
1941
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1890
1942
|
|
1891
1943
|
|
1892
|
-
def
|
1944
|
+
def doDescribeDomain(args, parsed_globals):
|
1893
1945
|
g_param = parse_global_arg(parsed_globals)
|
1894
1946
|
|
1895
1947
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1918,11 +1970,11 @@ def doModifyRecordStatus(args, parsed_globals):
|
|
1918
1970
|
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
1919
1971
|
client._sdkVersion += ("_CLI_" + __version__)
|
1920
1972
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1921
|
-
model = models.
|
1973
|
+
model = models.DescribeDomainRequest()
|
1922
1974
|
model.from_json_string(json.dumps(args))
|
1923
1975
|
start_time = time.time()
|
1924
1976
|
while True:
|
1925
|
-
rsp = client.
|
1977
|
+
rsp = client.DescribeDomain(model)
|
1926
1978
|
result = rsp.to_json_string()
|
1927
1979
|
try:
|
1928
1980
|
json_obj = json.loads(result)
|
@@ -1941,7 +1993,7 @@ def doModifyRecordStatus(args, parsed_globals):
|
|
1941
1993
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1942
1994
|
|
1943
1995
|
|
1944
|
-
def
|
1996
|
+
def doModifyDynamicDNS(args, parsed_globals):
|
1945
1997
|
g_param = parse_global_arg(parsed_globals)
|
1946
1998
|
|
1947
1999
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1970,11 +2022,11 @@ def doModifyDomainToGroup(args, parsed_globals):
|
|
1970
2022
|
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
1971
2023
|
client._sdkVersion += ("_CLI_" + __version__)
|
1972
2024
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1973
|
-
model = models.
|
2025
|
+
model = models.ModifyDynamicDNSRequest()
|
1974
2026
|
model.from_json_string(json.dumps(args))
|
1975
2027
|
start_time = time.time()
|
1976
2028
|
while True:
|
1977
|
-
rsp = client.
|
2029
|
+
rsp = client.ModifyDynamicDNS(model)
|
1978
2030
|
result = rsp.to_json_string()
|
1979
2031
|
try:
|
1980
2032
|
json_obj = json.loads(result)
|
@@ -1993,7 +2045,7 @@ def doModifyDomainToGroup(args, parsed_globals):
|
|
1993
2045
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1994
2046
|
|
1995
2047
|
|
1996
|
-
def
|
2048
|
+
def doCreateRecordBatch(args, parsed_globals):
|
1997
2049
|
g_param = parse_global_arg(parsed_globals)
|
1998
2050
|
|
1999
2051
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2022,11 +2074,11 @@ def doModifyDynamicDNS(args, parsed_globals):
|
|
2022
2074
|
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
2023
2075
|
client._sdkVersion += ("_CLI_" + __version__)
|
2024
2076
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2025
|
-
model = models.
|
2077
|
+
model = models.CreateRecordBatchRequest()
|
2026
2078
|
model.from_json_string(json.dumps(args))
|
2027
2079
|
start_time = time.time()
|
2028
2080
|
while True:
|
2029
|
-
rsp = client.
|
2081
|
+
rsp = client.CreateRecordBatch(model)
|
2030
2082
|
result = rsp.to_json_string()
|
2031
2083
|
try:
|
2032
2084
|
json_obj = json.loads(result)
|
@@ -2045,7 +2097,7 @@ def doModifyDynamicDNS(args, parsed_globals):
|
|
2045
2097
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2046
2098
|
|
2047
2099
|
|
2048
|
-
def
|
2100
|
+
def doCreateDomainCustomLine(args, parsed_globals):
|
2049
2101
|
g_param = parse_global_arg(parsed_globals)
|
2050
2102
|
|
2051
2103
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2074,11 +2126,11 @@ def doCreateRecordBatch(args, parsed_globals):
|
|
2074
2126
|
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
2075
2127
|
client._sdkVersion += ("_CLI_" + __version__)
|
2076
2128
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2077
|
-
model = models.
|
2129
|
+
model = models.CreateDomainCustomLineRequest()
|
2078
2130
|
model.from_json_string(json.dumps(args))
|
2079
2131
|
start_time = time.time()
|
2080
2132
|
while True:
|
2081
|
-
rsp = client.
|
2133
|
+
rsp = client.CreateDomainCustomLine(model)
|
2082
2134
|
result = rsp.to_json_string()
|
2083
2135
|
try:
|
2084
2136
|
json_obj = json.loads(result)
|
@@ -2097,7 +2149,7 @@ def doCreateRecordBatch(args, parsed_globals):
|
|
2097
2149
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2098
2150
|
|
2099
2151
|
|
2100
|
-
def
|
2152
|
+
def doModifyDomainLock(args, parsed_globals):
|
2101
2153
|
g_param = parse_global_arg(parsed_globals)
|
2102
2154
|
|
2103
2155
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2126,11 +2178,11 @@ def doCreateDomainCustomLine(args, parsed_globals):
|
|
2126
2178
|
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
2127
2179
|
client._sdkVersion += ("_CLI_" + __version__)
|
2128
2180
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2129
|
-
model = models.
|
2181
|
+
model = models.ModifyDomainLockRequest()
|
2130
2182
|
model.from_json_string(json.dumps(args))
|
2131
2183
|
start_time = time.time()
|
2132
2184
|
while True:
|
2133
|
-
rsp = client.
|
2185
|
+
rsp = client.ModifyDomainLock(model)
|
2134
2186
|
result = rsp.to_json_string()
|
2135
2187
|
try:
|
2136
2188
|
json_obj = json.loads(result)
|
@@ -2149,7 +2201,7 @@ def doCreateDomainCustomLine(args, parsed_globals):
|
|
2149
2201
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2150
2202
|
|
2151
2203
|
|
2152
|
-
def
|
2204
|
+
def doRollbackSnapshot(args, parsed_globals):
|
2153
2205
|
g_param = parse_global_arg(parsed_globals)
|
2154
2206
|
|
2155
2207
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2178,11 +2230,11 @@ def doModifyDomainLock(args, parsed_globals):
|
|
2178
2230
|
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
2179
2231
|
client._sdkVersion += ("_CLI_" + __version__)
|
2180
2232
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2181
|
-
model = models.
|
2233
|
+
model = models.RollbackSnapshotRequest()
|
2182
2234
|
model.from_json_string(json.dumps(args))
|
2183
2235
|
start_time = time.time()
|
2184
2236
|
while True:
|
2185
|
-
rsp = client.
|
2237
|
+
rsp = client.RollbackSnapshot(model)
|
2186
2238
|
result = rsp.to_json_string()
|
2187
2239
|
try:
|
2188
2240
|
json_obj = json.loads(result)
|
@@ -2201,7 +2253,7 @@ def doModifyDomainLock(args, parsed_globals):
|
|
2201
2253
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
2254
|
|
2203
2255
|
|
2204
|
-
def
|
2256
|
+
def doCreateDomainGroup(args, parsed_globals):
|
2205
2257
|
g_param = parse_global_arg(parsed_globals)
|
2206
2258
|
|
2207
2259
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2230,11 +2282,11 @@ def doRollbackSnapshot(args, parsed_globals):
|
|
2230
2282
|
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
2231
2283
|
client._sdkVersion += ("_CLI_" + __version__)
|
2232
2284
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2233
|
-
model = models.
|
2285
|
+
model = models.CreateDomainGroupRequest()
|
2234
2286
|
model.from_json_string(json.dumps(args))
|
2235
2287
|
start_time = time.time()
|
2236
2288
|
while True:
|
2237
|
-
rsp = client.
|
2289
|
+
rsp = client.CreateDomainGroup(model)
|
2238
2290
|
result = rsp.to_json_string()
|
2239
2291
|
try:
|
2240
2292
|
json_obj = json.loads(result)
|
@@ -3189,7 +3241,7 @@ def doModifyDomainOwner(args, parsed_globals):
|
|
3189
3241
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3190
3242
|
|
3191
3243
|
|
3192
|
-
def
|
3244
|
+
def doDescribeSubdomainValidateStatus(args, parsed_globals):
|
3193
3245
|
g_param = parse_global_arg(parsed_globals)
|
3194
3246
|
|
3195
3247
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3218,11 +3270,11 @@ def doCreateDomainGroup(args, parsed_globals):
|
|
3218
3270
|
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
3219
3271
|
client._sdkVersion += ("_CLI_" + __version__)
|
3220
3272
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3221
|
-
model = models.
|
3273
|
+
model = models.DescribeSubdomainValidateStatusRequest()
|
3222
3274
|
model.from_json_string(json.dumps(args))
|
3223
3275
|
start_time = time.time()
|
3224
3276
|
while True:
|
3225
|
-
rsp = client.
|
3277
|
+
rsp = client.DescribeSubdomainValidateStatus(model)
|
3226
3278
|
result = rsp.to_json_string()
|
3227
3279
|
try:
|
3228
3280
|
json_obj = json.loads(result)
|
@@ -3917,6 +3969,58 @@ def doModifyRecordRemark(args, parsed_globals):
|
|
3917
3969
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3918
3970
|
|
3919
3971
|
|
3972
|
+
def doModifyDomainToGroup(args, parsed_globals):
|
3973
|
+
g_param = parse_global_arg(parsed_globals)
|
3974
|
+
|
3975
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3976
|
+
cred = credential.CVMRoleCredential()
|
3977
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3978
|
+
cred = credential.STSAssumeRoleCredential(
|
3979
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3980
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3981
|
+
)
|
3982
|
+
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):
|
3983
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3984
|
+
else:
|
3985
|
+
cred = credential.Credential(
|
3986
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3987
|
+
)
|
3988
|
+
http_profile = HttpProfile(
|
3989
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3990
|
+
reqMethod="POST",
|
3991
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3992
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3993
|
+
)
|
3994
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3995
|
+
if g_param[OptionsDefine.Language]:
|
3996
|
+
profile.language = g_param[OptionsDefine.Language]
|
3997
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3998
|
+
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
3999
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4000
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4001
|
+
model = models.ModifyDomainToGroupRequest()
|
4002
|
+
model.from_json_string(json.dumps(args))
|
4003
|
+
start_time = time.time()
|
4004
|
+
while True:
|
4005
|
+
rsp = client.ModifyDomainToGroup(model)
|
4006
|
+
result = rsp.to_json_string()
|
4007
|
+
try:
|
4008
|
+
json_obj = json.loads(result)
|
4009
|
+
except TypeError as e:
|
4010
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4011
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4012
|
+
break
|
4013
|
+
cur_time = time.time()
|
4014
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4015
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4016
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4017
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4018
|
+
else:
|
4019
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4020
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4021
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4022
|
+
|
4023
|
+
|
3920
4024
|
def doCreateSnapshot(args, parsed_globals):
|
3921
4025
|
g_param = parse_global_arg(parsed_globals)
|
3922
4026
|
|
@@ -4292,6 +4396,7 @@ MODELS_MAP = {
|
|
4292
4396
|
}
|
4293
4397
|
|
4294
4398
|
ACTION_MAP = {
|
4399
|
+
"CreateSubdomainValidateTXTValue": doCreateSubdomainValidateTXTValue,
|
4295
4400
|
"DescribeRecordList": doDescribeRecordList,
|
4296
4401
|
"DescribeDomainGroupList": doDescribeDomainGroupList,
|
4297
4402
|
"DescribeSnapshotRollbackTask": doDescribeSnapshotRollbackTask,
|
@@ -4326,15 +4431,15 @@ ACTION_MAP = {
|
|
4326
4431
|
"DescribeRecordLineCategoryList": doDescribeRecordLineCategoryList,
|
4327
4432
|
"DeleteDomainAlias": doDeleteDomainAlias,
|
4328
4433
|
"DeleteShareDomain": doDeleteShareDomain,
|
4329
|
-
"DescribeDomain": doDescribeDomain,
|
4330
4434
|
"DeleteLineGroup": doDeleteLineGroup,
|
4331
4435
|
"ModifyRecordStatus": doModifyRecordStatus,
|
4332
|
-
"
|
4436
|
+
"DescribeDomain": doDescribeDomain,
|
4333
4437
|
"ModifyDynamicDNS": doModifyDynamicDNS,
|
4334
4438
|
"CreateRecordBatch": doCreateRecordBatch,
|
4335
4439
|
"CreateDomainCustomLine": doCreateDomainCustomLine,
|
4336
4440
|
"ModifyDomainLock": doModifyDomainLock,
|
4337
4441
|
"RollbackSnapshot": doRollbackSnapshot,
|
4442
|
+
"CreateDomainGroup": doCreateDomainGroup,
|
4338
4443
|
"DescribeRecordType": doDescribeRecordType,
|
4339
4444
|
"DescribeRecordSnapshotRollbackResult": doDescribeRecordSnapshotRollbackResult,
|
4340
4445
|
"DescribeRecordGroupList": doDescribeRecordGroupList,
|
@@ -4353,7 +4458,7 @@ ACTION_MAP = {
|
|
4353
4458
|
"ModifyDomainRemark": doModifyDomainRemark,
|
4354
4459
|
"DescribeRecordExistExceptDefaultNS": doDescribeRecordExistExceptDefaultNS,
|
4355
4460
|
"ModifyDomainOwner": doModifyDomainOwner,
|
4356
|
-
"
|
4461
|
+
"DescribeSubdomainValidateStatus": doDescribeSubdomainValidateStatus,
|
4357
4462
|
"CreateRecordGroup": doCreateRecordGroup,
|
4358
4463
|
"ModifyLineGroup": doModifyLineGroup,
|
4359
4464
|
"DescribeBatchTask": doDescribeBatchTask,
|
@@ -4367,6 +4472,7 @@ ACTION_MAP = {
|
|
4367
4472
|
"CreateRecord": doCreateRecord,
|
4368
4473
|
"DescribeDomainPreview": doDescribeDomainPreview,
|
4369
4474
|
"ModifyRecordRemark": doModifyRecordRemark,
|
4475
|
+
"ModifyDomainToGroup": doModifyDomainToGroup,
|
4370
4476
|
"CreateSnapshot": doCreateSnapshot,
|
4371
4477
|
"DescribePackageDetail": doDescribePackageDetail,
|
4372
4478
|
"ModifyRecordFields": doModifyRecordFields,
|
@@ -98,6 +98,13 @@
|
|
98
98
|
"output": "CreateSnapshotResponse",
|
99
99
|
"status": "online"
|
100
100
|
},
|
101
|
+
"CreateSubdomainValidateTXTValue": {
|
102
|
+
"document": "创建添加子域名 Zone 域解析时所需要的 TXT 记录值",
|
103
|
+
"input": "CreateSubdomainValidateTXTValueRequest",
|
104
|
+
"name": "创建添加子域名 Zone 域解析时所需要的 TXT 记录值",
|
105
|
+
"output": "CreateSubdomainValidateTXTValueResponse",
|
106
|
+
"status": "online"
|
107
|
+
},
|
101
108
|
"CreateTXTRecord": {
|
102
109
|
"document": "添加TXT记录\n备注:新添加的解析记录存在短暂的索引延迟,如果查询不到新增记录,请在 30 秒后重试",
|
103
110
|
"input": "CreateTXTRecordRequest",
|
@@ -385,6 +392,13 @@
|
|
385
392
|
"output": "DescribeSubdomainAnalyticsResponse",
|
386
393
|
"status": "online"
|
387
394
|
},
|
395
|
+
"DescribeSubdomainValidateStatus": {
|
396
|
+
"document": "查看添加子域名 Zone 域解析 TXT 记录值验证状态",
|
397
|
+
"input": "DescribeSubdomainValidateStatusRequest",
|
398
|
+
"name": "查看添加子域名 Zone 域解析 TXT 记录值验证状态",
|
399
|
+
"output": "DescribeSubdomainValidateStatusResponse",
|
400
|
+
"status": "online"
|
401
|
+
},
|
388
402
|
"DescribeUserDetail": {
|
389
403
|
"document": "获取账户信息",
|
390
404
|
"input": "DescribeUserDetailRequest",
|
@@ -2166,6 +2180,69 @@
|
|
2166
2180
|
],
|
2167
2181
|
"type": "object"
|
2168
2182
|
},
|
2183
|
+
"CreateSubdomainValidateTXTValueRequest": {
|
2184
|
+
"document": "CreateSubdomainValidateTXTValue请求参数结构体",
|
2185
|
+
"members": [
|
2186
|
+
{
|
2187
|
+
"disabled": false,
|
2188
|
+
"document": "要添加的子域名 Zone 域。",
|
2189
|
+
"example": "sub.dnspod.cn",
|
2190
|
+
"member": "string",
|
2191
|
+
"name": "DomainZone",
|
2192
|
+
"required": true,
|
2193
|
+
"type": "string"
|
2194
|
+
}
|
2195
|
+
],
|
2196
|
+
"type": "object"
|
2197
|
+
},
|
2198
|
+
"CreateSubdomainValidateTXTValueResponse": {
|
2199
|
+
"document": "CreateSubdomainValidateTXTValue返回参数结构体",
|
2200
|
+
"members": [
|
2201
|
+
{
|
2202
|
+
"disabled": false,
|
2203
|
+
"document": "需要添加 TXT 记录的域名。",
|
2204
|
+
"example": "dnspod.cn",
|
2205
|
+
"member": "string",
|
2206
|
+
"name": "Domain",
|
2207
|
+
"type": "string",
|
2208
|
+
"value_allowed_null": false
|
2209
|
+
},
|
2210
|
+
{
|
2211
|
+
"disabled": false,
|
2212
|
+
"document": "需要添加 TXT 记录的主机记录。",
|
2213
|
+
"example": "dnspodcheck",
|
2214
|
+
"member": "string",
|
2215
|
+
"name": "Subdomain",
|
2216
|
+
"type": "string",
|
2217
|
+
"value_allowed_null": false
|
2218
|
+
},
|
2219
|
+
{
|
2220
|
+
"disabled": false,
|
2221
|
+
"document": "需要添加记录类型。",
|
2222
|
+
"example": "TXT",
|
2223
|
+
"member": "string",
|
2224
|
+
"name": "RecordType",
|
2225
|
+
"type": "string",
|
2226
|
+
"value_allowed_null": false
|
2227
|
+
},
|
2228
|
+
{
|
2229
|
+
"disabled": false,
|
2230
|
+
"document": "需要添加 TXT 记录的记录值。",
|
2231
|
+
"example": "无",
|
2232
|
+
"member": "string",
|
2233
|
+
"name": "Value",
|
2234
|
+
"type": "string",
|
2235
|
+
"value_allowed_null": false
|
2236
|
+
},
|
2237
|
+
{
|
2238
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2239
|
+
"member": "string",
|
2240
|
+
"name": "RequestId",
|
2241
|
+
"type": "string"
|
2242
|
+
}
|
2243
|
+
],
|
2244
|
+
"type": "object"
|
2245
|
+
},
|
2169
2246
|
"CreateTXTRecordRequest": {
|
2170
2247
|
"document": "CreateTXTRecord请求参数结构体",
|
2171
2248
|
"members": [
|
@@ -5332,6 +5409,33 @@
|
|
5332
5409
|
],
|
5333
5410
|
"type": "object"
|
5334
5411
|
},
|
5412
|
+
"DescribeSubdomainValidateStatusRequest": {
|
5413
|
+
"document": "DescribeSubdomainValidateStatus请求参数结构体",
|
5414
|
+
"members": [
|
5415
|
+
{
|
5416
|
+
"disabled": false,
|
5417
|
+
"document": "要查看 TXT 记录校验状态的子域名 Zone 域。",
|
5418
|
+
"example": "sub.dnspod.cn",
|
5419
|
+
"member": "string",
|
5420
|
+
"name": "DomainZone",
|
5421
|
+
"required": true,
|
5422
|
+
"type": "string"
|
5423
|
+
}
|
5424
|
+
],
|
5425
|
+
"type": "object"
|
5426
|
+
},
|
5427
|
+
"DescribeSubdomainValidateStatusResponse": {
|
5428
|
+
"document": "DescribeSubdomainValidateStatus返回参数结构体",
|
5429
|
+
"members": [
|
5430
|
+
{
|
5431
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5432
|
+
"member": "string",
|
5433
|
+
"name": "RequestId",
|
5434
|
+
"type": "string"
|
5435
|
+
}
|
5436
|
+
],
|
5437
|
+
"type": "object"
|
5438
|
+
},
|
5335
5439
|
"DescribeUserDetailRequest": {
|
5336
5440
|
"document": "DescribeUserDetail请求参数结构体",
|
5337
5441
|
"members": [],
|
@@ -118,6 +118,14 @@
|
|
118
118
|
"title": "创建快照"
|
119
119
|
}
|
120
120
|
],
|
121
|
+
"CreateSubdomainValidateTXTValue": [
|
122
|
+
{
|
123
|
+
"document": "创建添加子域名 Zone 域解析时所需要的 TXT 记录值",
|
124
|
+
"input": "POST / HTTP/1.1\nHost: dnspod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSubdomainValidateTXTValue\n<公共请求参数>\n\n{\n \"DomainZone\": \"sub.dnspod.cn\"\n}",
|
125
|
+
"output": "{\n \"Response\": {\n \"Domain\": \"dnspod.cn\",\n \"Subdomain\": \"dnspodcheck\",\n \"RecordType\": \"TXT\",\n \"Value\": \"xxxxxxxxxxxx\",\n \"RequestId\": \"xx\"\n }\n}",
|
126
|
+
"title": "创建添加子域名 Zone 域解析时所需要的 TXT 记录值参数示例"
|
127
|
+
}
|
128
|
+
],
|
121
129
|
"CreateTXTRecord": [
|
122
130
|
{
|
123
131
|
"document": "添加TXT记录",
|
@@ -458,6 +466,14 @@
|
|
458
466
|
"title": "子域名解析量统计"
|
459
467
|
}
|
460
468
|
],
|
469
|
+
"DescribeSubdomainValidateStatus": [
|
470
|
+
{
|
471
|
+
"document": "查看添加子域名 Zone 域解析 TXT 记录值验证状态",
|
472
|
+
"input": "POST / HTTP/1.1\nHost: dnspod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSubdomainValidateStatus\n<公共请求参数>\n\n{\n \"DomainZone\": \"sub.dnspod.cn\"\n}",
|
473
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
|
474
|
+
"title": "查看添加子域名 Zone 域解析 TXT 记录值验证状态参数示例"
|
475
|
+
}
|
476
|
+
],
|
461
477
|
"DescribeUserDetail": [
|
462
478
|
{
|
463
479
|
"document": "获取账户信息",
|
@@ -281,7 +281,7 @@
|
|
281
281
|
"status": "online"
|
282
282
|
},
|
283
283
|
"CreatePersonAuthCertificateImage": {
|
284
|
-
"document": "获取个人用户认证证书图片下载URL\n\n个人用户认证证书图片样式如下图\n\n![image](https://dyn.ess.tencent.cn/guide/capi/CreatePersonAuthCertificateImage.png)\n\n注: \n<ul>\n<li>只能获取个人用户证明图片, 企业员工的暂不支持</li>\n<li
|
284
|
+
"document": "获取个人用户认证证书图片下载URL\n\n个人用户认证证书图片样式如下图\n\n![image](https://dyn.ess.tencent.cn/guide/capi/CreatePersonAuthCertificateImage.png)\n\n注: \n<ul>\n<li>只能获取个人用户证明图片, 企业员工的暂不支持</li>\n<li>专为电子处方单(医疗自动签)特定场景使用。在使用前,请务必与您的客户经理联系以确认已经开通电子处方单功能 </li>\n</ul>",
|
285
285
|
"input": "CreatePersonAuthCertificateImageRequest",
|
286
286
|
"name": "获取个人用户认证证书图片",
|
287
287
|
"output": "CreatePersonAuthCertificateImageResponse",
|
@@ -925,7 +925,7 @@
|
|
925
925
|
},
|
926
926
|
{
|
927
927
|
"disabled": false,
|
928
|
-
"document": "
|
928
|
+
"document": "此签署人(员工或者个人)签署前,是否需要发起方企业审批,取值如下:\n<ul><li>**false**:(默认)不需要审批,直接签署。</li>\n<li>**true**:需要走审批流程。当到对应参与人签署时,会阻塞其签署操作,等待企业内部审批完成。</li></ul>\n企业可以通过CreateFlowSignReview审批接口通知腾讯电子签平台企业内部审批结果\n<ul><li>如果企业通知腾讯电子签平台审核通过,签署方可继续签署动作。</li>\n<li>如果企业通知腾讯电子签平台审核未通过,平台将继续阻塞签署方的签署动作,直到企业通知平台审核通过。</li></ul>\n\n注:`此功能可用于与发起方企业内部的审批流程进行关联,支持手动、静默签署合同`\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/b14d5188ed0229d1401e74a9a49cab6d.png)",
|
929
929
|
"example": "无",
|
930
930
|
"member": "bool",
|
931
931
|
"name": "ApproverNeedSignReview",
|
@@ -961,7 +961,7 @@
|
|
961
961
|
},
|
962
962
|
{
|
963
963
|
"disabled": false,
|
964
|
-
"document": "签署人在合同中的填写控件列表,列表中可支持下列多种填写控件,控件的详细定义参考开发者中心的Component结构体\n<ul><li>单行文本控件</li>\n<li>多行文本控件</li>\n<li>勾选框控件</li>\n<li>数字控件</li>\n<li>图片控件</li>\n
|
964
|
+
"document": "签署人在合同中的填写控件列表,列表中可支持下列多种填写控件,控件的详细定义参考开发者中心的Component结构体\n<ul><li>单行文本控件</li>\n<li>多行文本控件</li>\n<li>勾选框控件</li>\n<li>数字控件</li>\n<li>图片控件</li>\n</ul>\n\n具体使用说明可参考[为签署方指定填写控件](https://qian.tencent.cn/developers/company/createFlowByFiles/#指定签署方填写控件)\n\n注:`此参数仅在通过文件发起合同或者合同组时生效`",
|
965
965
|
"example": "无",
|
966
966
|
"member": "Component",
|
967
967
|
"name": "Components",
|
@@ -11208,7 +11208,7 @@
|
|
11208
11208
|
},
|
11209
11209
|
{
|
11210
11210
|
"disabled": false,
|
11211
|
-
"document": "
|
11211
|
+
"document": "此签署人(员工或者个人)签署时,是否需要发起方企业审批,取值如下:\n<ul><li>**false**:(默认)不需要审批,直接签署。</li>\n<li>**true**:需要走审批流程。当到对应参与人签署时,会阻塞其签署操作,等待企业内部审批完成。</li></ul>\n企业可以通过CreateFlowSignReview审批接口通知腾讯电子签平台企业内部审批结果\n<ul><li>如果企业通知腾讯电子签平台审核通过,签署方可继续签署动作。</li>\n<li>如果企业通知腾讯电子签平台审核未通过,平台将继续阻塞签署方的签署动作,直到企业通知平台审核通过。</li></ul>\n\n注:`此功能可用于与发起方企业内部的审批流程进行关联,支持手动、静默签署合同`\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/b14d5188ed0229d1401e74a9a49cab6d.png)",
|
11212
11212
|
"example": "无",
|
11213
11213
|
"member": "bool",
|
11214
11214
|
"name": "ApproverNeedSignReview",
|
@@ -414,7 +414,7 @@
|
|
414
414
|
"status": "online"
|
415
415
|
},
|
416
416
|
"CreatePersonAuthCertificateImage": {
|
417
|
-
"document": "获取个人用户认证证书图片下载URL\n\n个人用户认证证书图片样式如下图\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/d568bc0f101bef582f7af2cb5ab7a715.png)\n\n注: \n<ul>\n<li>只能获取个人用户证明图片, 企业员工的暂不支持</li>\n<li
|
417
|
+
"document": "获取个人用户认证证书图片下载URL\n\n个人用户认证证书图片样式如下图\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/d568bc0f101bef582f7af2cb5ab7a715.png)\n\n注: \n<ul>\n<li>只能获取个人用户证明图片, 企业员工的暂不支持</li>\n<li>专为电子处方单(医疗自动签)特定场景使用。在使用前,请务必与您的客户经理联系以确认已经开通电子处方单功能 </li>\n</ul>",
|
418
418
|
"input": "CreatePersonAuthCertificateImageRequest",
|
419
419
|
"name": "获取个人用户认证证书图片",
|
420
420
|
"output": "CreatePersonAuthCertificateImageResponse",
|
@@ -9367,7 +9367,7 @@
|
|
9367
9367
|
},
|
9368
9368
|
{
|
9369
9369
|
"disabled": false,
|
9370
|
-
"document": "
|
9370
|
+
"document": "此签署人(员工或者个人)签署前,是否需要发起方企业进行审批,取值如下:\n<ul><li>**false**:(默认)不需要审批,直接签署。</li>\n<li>**true**:需要走审批流程。当到对应参与人签署时,会阻塞其签署操作,等待发起方企业内部审批完成。</li></ul>\n企业可以通过ChannelCreateFlowSignReview审批接口通知腾讯电子签平台企业内部审批结果\n<ul><li>如果企业通知腾讯电子签平台审核通过,签署方可继续签署动作。</li>\n<li>如果企业通知腾讯电子签平台审核未通过,平台将继续阻塞签署方的签署动作,直到企业通知平台审核通过。</li></ul>\n\n注:`此功能可用于与发起方企业内部的审批流程进行关联,支持手动、静默签署合同`\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/b14d5188ed0229d1401e74a9a49cab6d.png)",
|
9371
9371
|
"example": "false",
|
9372
9372
|
"member": "bool",
|
9373
9373
|
"name": "ApproverNeedSignReview",
|
@@ -738,6 +738,15 @@
|
|
738
738
|
"name": "SecurityGroupId",
|
739
739
|
"required": false,
|
740
740
|
"type": "string"
|
741
|
+
},
|
742
|
+
{
|
743
|
+
"disabled": false,
|
744
|
+
"document": "集群ssh通信端口,默认是22",
|
745
|
+
"example": "22",
|
746
|
+
"member": "uint64",
|
747
|
+
"name": "ClusterPort",
|
748
|
+
"required": false,
|
749
|
+
"type": "int"
|
741
750
|
}
|
742
751
|
],
|
743
752
|
"type": "object"
|
@@ -1610,6 +1610,17 @@
|
|
1610
1610
|
"required": false,
|
1611
1611
|
"type": "list",
|
1612
1612
|
"value_allowed_null": true
|
1613
|
+
},
|
1614
|
+
{
|
1615
|
+
"disabled": false,
|
1616
|
+
"document": "文件标识符。单次最大 50 个文件。\n注意:此字段可能返回 null,表示取不到有效值。",
|
1617
|
+
"example": "[\"file-YbhlphnNEsjRoKTEXukAqNZZ\"]",
|
1618
|
+
"member": "string",
|
1619
|
+
"name": "FileIDs",
|
1620
|
+
"output_required": false,
|
1621
|
+
"required": false,
|
1622
|
+
"type": "list",
|
1623
|
+
"value_allowed_null": true
|
1613
1624
|
}
|
1614
1625
|
],
|
1615
1626
|
"usage": "both"
|