tccli-intl-en 3.0.1259.1__py2.py3-none-any.whl → 3.0.1261.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/cvm/cvm_client.py +156 -50
- tccli/services/cvm/v20170312/api.json +132 -0
- tccli/services/cvm/v20170312/examples.json +22 -0
- tccli/services/dnspod/dnspod_client.py +106 -0
- tccli/services/dnspod/v20210323/api.json +153 -0
- tccli/services/dnspod/v20210323/examples.json +16 -0
- tccli/services/teo/v20220901/api.json +4 -4
- {tccli_intl_en-3.0.1259.1.dist-info → tccli_intl_en-3.0.1261.1.dist-info}/METADATA +2 -2
- {tccli_intl_en-3.0.1259.1.dist-info → tccli_intl_en-3.0.1261.1.dist-info}/RECORD +14 -14
- {tccli_intl_en-3.0.1259.1.dist-info → tccli_intl_en-3.0.1261.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1259.1.dist-info → tccli_intl_en-3.0.1261.1.dist-info}/WHEEL +0 -0
- {tccli_intl_en-3.0.1259.1.dist-info → tccli_intl_en-3.0.1261.1.dist-info}/entry_points.txt +0 -0
- {tccli_intl_en-3.0.1259.1.dist-info → tccli_intl_en-3.0.1261.1.dist-info}/top_level.txt +0 -0
tccli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.0.
|
|
1
|
+
__version__ = '3.0.1261.1'
|
tccli/services/cvm/cvm_client.py
CHANGED
|
@@ -485,7 +485,7 @@ def doImportImage(args, parsed_globals):
|
|
|
485
485
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
486
486
|
|
|
487
487
|
|
|
488
|
-
def
|
|
488
|
+
def doModifyKeyPairAttribute(args, parsed_globals):
|
|
489
489
|
g_param = parse_global_arg(parsed_globals)
|
|
490
490
|
|
|
491
491
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -514,11 +514,11 @@ def doInquiryPriceRunInstances(args, parsed_globals):
|
|
|
514
514
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
515
515
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
516
516
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
517
|
-
model = models.
|
|
517
|
+
model = models.ModifyKeyPairAttributeRequest()
|
|
518
518
|
model.from_json_string(json.dumps(args))
|
|
519
519
|
start_time = time.time()
|
|
520
520
|
while True:
|
|
521
|
-
rsp = client.
|
|
521
|
+
rsp = client.ModifyKeyPairAttribute(model)
|
|
522
522
|
result = rsp.to_json_string()
|
|
523
523
|
try:
|
|
524
524
|
json_obj = json.loads(result)
|
|
@@ -641,7 +641,7 @@ def doConfigureChcAssistVpc(args, parsed_globals):
|
|
|
641
641
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
642
642
|
|
|
643
643
|
|
|
644
|
-
def
|
|
644
|
+
def doDeleteLaunchTemplate(args, parsed_globals):
|
|
645
645
|
g_param = parse_global_arg(parsed_globals)
|
|
646
646
|
|
|
647
647
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -670,11 +670,11 @@ def doModifyKeyPairAttribute(args, parsed_globals):
|
|
|
670
670
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
671
671
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
672
672
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
673
|
-
model = models.
|
|
673
|
+
model = models.DeleteLaunchTemplateRequest()
|
|
674
674
|
model.from_json_string(json.dumps(args))
|
|
675
675
|
start_time = time.time()
|
|
676
676
|
while True:
|
|
677
|
-
rsp = client.
|
|
677
|
+
rsp = client.DeleteLaunchTemplate(model)
|
|
678
678
|
result = rsp.to_json_string()
|
|
679
679
|
try:
|
|
680
680
|
json_obj = json.loads(result)
|
|
@@ -693,7 +693,7 @@ def doModifyKeyPairAttribute(args, parsed_globals):
|
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
694
694
|
|
|
695
695
|
|
|
696
|
-
def
|
|
696
|
+
def doModifyInstancesAttribute(args, parsed_globals):
|
|
697
697
|
g_param = parse_global_arg(parsed_globals)
|
|
698
698
|
|
|
699
699
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -722,11 +722,11 @@ def doDeleteLaunchTemplate(args, parsed_globals):
|
|
|
722
722
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
723
723
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
724
724
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
725
|
-
model = models.
|
|
725
|
+
model = models.ModifyInstancesAttributeRequest()
|
|
726
726
|
model.from_json_string(json.dumps(args))
|
|
727
727
|
start_time = time.time()
|
|
728
728
|
while True:
|
|
729
|
-
rsp = client.
|
|
729
|
+
rsp = client.ModifyInstancesAttribute(model)
|
|
730
730
|
result = rsp.to_json_string()
|
|
731
731
|
try:
|
|
732
732
|
json_obj = json.loads(result)
|
|
@@ -745,7 +745,7 @@ def doDeleteLaunchTemplate(args, parsed_globals):
|
|
|
745
745
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
746
746
|
|
|
747
747
|
|
|
748
|
-
def
|
|
748
|
+
def doModifyInstancesDisasterRecoverGroup(args, parsed_globals):
|
|
749
749
|
g_param = parse_global_arg(parsed_globals)
|
|
750
750
|
|
|
751
751
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -774,11 +774,11 @@ def doModifyInstancesAttribute(args, parsed_globals):
|
|
|
774
774
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
775
775
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
776
776
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
777
|
-
model = models.
|
|
777
|
+
model = models.ModifyInstancesDisasterRecoverGroupRequest()
|
|
778
778
|
model.from_json_string(json.dumps(args))
|
|
779
779
|
start_time = time.time()
|
|
780
780
|
while True:
|
|
781
|
-
rsp = client.
|
|
781
|
+
rsp = client.ModifyInstancesDisasterRecoverGroup(model)
|
|
782
782
|
result = rsp.to_json_string()
|
|
783
783
|
try:
|
|
784
784
|
json_obj = json.loads(result)
|
|
@@ -797,7 +797,7 @@ def doModifyInstancesAttribute(args, parsed_globals):
|
|
|
797
797
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
798
798
|
|
|
799
799
|
|
|
800
|
-
def
|
|
800
|
+
def doInquiryPriceResetInstancesInternetMaxBandwidth(args, parsed_globals):
|
|
801
801
|
g_param = parse_global_arg(parsed_globals)
|
|
802
802
|
|
|
803
803
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -826,11 +826,11 @@ def doModifyInstancesDisasterRecoverGroup(args, parsed_globals):
|
|
|
826
826
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
827
827
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
828
828
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
829
|
-
model = models.
|
|
829
|
+
model = models.InquiryPriceResetInstancesInternetMaxBandwidthRequest()
|
|
830
830
|
model.from_json_string(json.dumps(args))
|
|
831
831
|
start_time = time.time()
|
|
832
832
|
while True:
|
|
833
|
-
rsp = client.
|
|
833
|
+
rsp = client.InquiryPriceResetInstancesInternetMaxBandwidth(model)
|
|
834
834
|
result = rsp.to_json_string()
|
|
835
835
|
try:
|
|
836
836
|
json_obj = json.loads(result)
|
|
@@ -849,7 +849,7 @@ def doModifyInstancesDisasterRecoverGroup(args, parsed_globals):
|
|
|
849
849
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
850
850
|
|
|
851
851
|
|
|
852
|
-
def
|
|
852
|
+
def doDeleteImages(args, parsed_globals):
|
|
853
853
|
g_param = parse_global_arg(parsed_globals)
|
|
854
854
|
|
|
855
855
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -878,11 +878,11 @@ def doInquiryPriceResetInstancesInternetMaxBandwidth(args, parsed_globals):
|
|
|
878
878
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
879
879
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
880
880
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
881
|
-
model = models.
|
|
881
|
+
model = models.DeleteImagesRequest()
|
|
882
882
|
model.from_json_string(json.dumps(args))
|
|
883
883
|
start_time = time.time()
|
|
884
884
|
while True:
|
|
885
|
-
rsp = client.
|
|
885
|
+
rsp = client.DeleteImages(model)
|
|
886
886
|
result = rsp.to_json_string()
|
|
887
887
|
try:
|
|
888
888
|
json_obj = json.loads(result)
|
|
@@ -901,7 +901,7 @@ def doInquiryPriceResetInstancesInternetMaxBandwidth(args, parsed_globals):
|
|
|
901
901
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
902
902
|
|
|
903
903
|
|
|
904
|
-
def
|
|
904
|
+
def doCreateKeyPair(args, parsed_globals):
|
|
905
905
|
g_param = parse_global_arg(parsed_globals)
|
|
906
906
|
|
|
907
907
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -930,11 +930,11 @@ def doDeleteImages(args, parsed_globals):
|
|
|
930
930
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
931
931
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
932
932
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
933
|
-
model = models.
|
|
933
|
+
model = models.CreateKeyPairRequest()
|
|
934
934
|
model.from_json_string(json.dumps(args))
|
|
935
935
|
start_time = time.time()
|
|
936
936
|
while True:
|
|
937
|
-
rsp = client.
|
|
937
|
+
rsp = client.CreateKeyPair(model)
|
|
938
938
|
result = rsp.to_json_string()
|
|
939
939
|
try:
|
|
940
940
|
json_obj = json.loads(result)
|
|
@@ -953,7 +953,7 @@ def doDeleteImages(args, parsed_globals):
|
|
|
953
953
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
954
954
|
|
|
955
955
|
|
|
956
|
-
def
|
|
956
|
+
def doDescribeInstanceFamilyConfigs(args, parsed_globals):
|
|
957
957
|
g_param = parse_global_arg(parsed_globals)
|
|
958
958
|
|
|
959
959
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -982,11 +982,11 @@ def doCreateKeyPair(args, parsed_globals):
|
|
|
982
982
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
983
983
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
984
984
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
985
|
-
model = models.
|
|
985
|
+
model = models.DescribeInstanceFamilyConfigsRequest()
|
|
986
986
|
model.from_json_string(json.dumps(args))
|
|
987
987
|
start_time = time.time()
|
|
988
988
|
while True:
|
|
989
|
-
rsp = client.
|
|
989
|
+
rsp = client.DescribeInstanceFamilyConfigs(model)
|
|
990
990
|
result = rsp.to_json_string()
|
|
991
991
|
try:
|
|
992
992
|
json_obj = json.loads(result)
|
|
@@ -1005,7 +1005,7 @@ def doCreateKeyPair(args, parsed_globals):
|
|
|
1005
1005
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1006
1006
|
|
|
1007
1007
|
|
|
1008
|
-
def
|
|
1008
|
+
def doDeleteKeyPairs(args, parsed_globals):
|
|
1009
1009
|
g_param = parse_global_arg(parsed_globals)
|
|
1010
1010
|
|
|
1011
1011
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1034,11 +1034,11 @@ def doDescribeInstanceFamilyConfigs(args, parsed_globals):
|
|
|
1034
1034
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1035
1035
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1036
1036
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1037
|
-
model = models.
|
|
1037
|
+
model = models.DeleteKeyPairsRequest()
|
|
1038
1038
|
model.from_json_string(json.dumps(args))
|
|
1039
1039
|
start_time = time.time()
|
|
1040
1040
|
while True:
|
|
1041
|
-
rsp = client.
|
|
1041
|
+
rsp = client.DeleteKeyPairs(model)
|
|
1042
1042
|
result = rsp.to_json_string()
|
|
1043
1043
|
try:
|
|
1044
1044
|
json_obj = json.loads(result)
|
|
@@ -1057,7 +1057,7 @@ def doDescribeInstanceFamilyConfigs(args, parsed_globals):
|
|
|
1057
1057
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1058
1058
|
|
|
1059
1059
|
|
|
1060
|
-
def
|
|
1060
|
+
def doDescribeInternetChargeTypeConfigs(args, parsed_globals):
|
|
1061
1061
|
g_param = parse_global_arg(parsed_globals)
|
|
1062
1062
|
|
|
1063
1063
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1086,11 +1086,11 @@ def doDeleteKeyPairs(args, parsed_globals):
|
|
|
1086
1086
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1087
1087
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1088
1088
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1089
|
-
model = models.
|
|
1089
|
+
model = models.DescribeInternetChargeTypeConfigsRequest()
|
|
1090
1090
|
model.from_json_string(json.dumps(args))
|
|
1091
1091
|
start_time = time.time()
|
|
1092
1092
|
while True:
|
|
1093
|
-
rsp = client.
|
|
1093
|
+
rsp = client.DescribeInternetChargeTypeConfigs(model)
|
|
1094
1094
|
result = rsp.to_json_string()
|
|
1095
1095
|
try:
|
|
1096
1096
|
json_obj = json.loads(result)
|
|
@@ -1109,7 +1109,7 @@ def doDeleteKeyPairs(args, parsed_globals):
|
|
|
1109
1109
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1110
1110
|
|
|
1111
1111
|
|
|
1112
|
-
def
|
|
1112
|
+
def doCreateDisasterRecoverGroup(args, parsed_globals):
|
|
1113
1113
|
g_param = parse_global_arg(parsed_globals)
|
|
1114
1114
|
|
|
1115
1115
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1138,11 +1138,11 @@ def doDescribeInternetChargeTypeConfigs(args, parsed_globals):
|
|
|
1138
1138
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1139
1139
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1140
1140
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1141
|
-
model = models.
|
|
1141
|
+
model = models.CreateDisasterRecoverGroupRequest()
|
|
1142
1142
|
model.from_json_string(json.dumps(args))
|
|
1143
1143
|
start_time = time.time()
|
|
1144
1144
|
while True:
|
|
1145
|
-
rsp = client.
|
|
1145
|
+
rsp = client.CreateDisasterRecoverGroup(model)
|
|
1146
1146
|
result = rsp.to_json_string()
|
|
1147
1147
|
try:
|
|
1148
1148
|
json_obj = json.loads(result)
|
|
@@ -1161,7 +1161,7 @@ def doDescribeInternetChargeTypeConfigs(args, parsed_globals):
|
|
|
1161
1161
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1162
1162
|
|
|
1163
1163
|
|
|
1164
|
-
def
|
|
1164
|
+
def doInquiryPriceRunInstances(args, parsed_globals):
|
|
1165
1165
|
g_param = parse_global_arg(parsed_globals)
|
|
1166
1166
|
|
|
1167
1167
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1190,11 +1190,11 @@ def doCreateDisasterRecoverGroup(args, parsed_globals):
|
|
|
1190
1190
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1191
1191
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1192
1192
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1193
|
-
model = models.
|
|
1193
|
+
model = models.InquiryPriceRunInstancesRequest()
|
|
1194
1194
|
model.from_json_string(json.dumps(args))
|
|
1195
1195
|
start_time = time.time()
|
|
1196
1196
|
while True:
|
|
1197
|
-
rsp = client.
|
|
1197
|
+
rsp = client.InquiryPriceRunInstances(model)
|
|
1198
1198
|
result = rsp.to_json_string()
|
|
1199
1199
|
try:
|
|
1200
1200
|
json_obj = json.loads(result)
|
|
@@ -3449,7 +3449,7 @@ def doDescribeZoneInstanceConfigInfos(args, parsed_globals):
|
|
|
3449
3449
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3450
3450
|
|
|
3451
3451
|
|
|
3452
|
-
def
|
|
3452
|
+
def doModifyInstancesChargeType(args, parsed_globals):
|
|
3453
3453
|
g_param = parse_global_arg(parsed_globals)
|
|
3454
3454
|
|
|
3455
3455
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3478,11 +3478,11 @@ def doModifyInstancesProject(args, parsed_globals):
|
|
|
3478
3478
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3479
3479
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3480
3480
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3481
|
-
model = models.
|
|
3481
|
+
model = models.ModifyInstancesChargeTypeRequest()
|
|
3482
3482
|
model.from_json_string(json.dumps(args))
|
|
3483
3483
|
start_time = time.time()
|
|
3484
3484
|
while True:
|
|
3485
|
-
rsp = client.
|
|
3485
|
+
rsp = client.ModifyInstancesChargeType(model)
|
|
3486
3486
|
result = rsp.to_json_string()
|
|
3487
3487
|
try:
|
|
3488
3488
|
json_obj = json.loads(result)
|
|
@@ -3761,7 +3761,7 @@ def doDescribeReservedInstancesOfferings(args, parsed_globals):
|
|
|
3761
3761
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3762
3762
|
|
|
3763
3763
|
|
|
3764
|
-
def
|
|
3764
|
+
def doInquiryPriceModifyInstancesChargeType(args, parsed_globals):
|
|
3765
3765
|
g_param = parse_global_arg(parsed_globals)
|
|
3766
3766
|
|
|
3767
3767
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3790,11 +3790,11 @@ def doDescribeHosts(args, parsed_globals):
|
|
|
3790
3790
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3791
3791
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3792
3792
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3793
|
-
model = models.
|
|
3793
|
+
model = models.InquiryPriceModifyInstancesChargeTypeRequest()
|
|
3794
3794
|
model.from_json_string(json.dumps(args))
|
|
3795
3795
|
start_time = time.time()
|
|
3796
3796
|
while True:
|
|
3797
|
-
rsp = client.
|
|
3797
|
+
rsp = client.InquiryPriceModifyInstancesChargeType(model)
|
|
3798
3798
|
result = rsp.to_json_string()
|
|
3799
3799
|
try:
|
|
3800
3800
|
json_obj = json.loads(result)
|
|
@@ -4021,6 +4021,58 @@ def doDescribeImages(args, parsed_globals):
|
|
|
4021
4021
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4022
4022
|
|
|
4023
4023
|
|
|
4024
|
+
def doDescribeChcHosts(args, parsed_globals):
|
|
4025
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4026
|
+
|
|
4027
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4028
|
+
cred = credential.CVMRoleCredential()
|
|
4029
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4030
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4031
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4032
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4033
|
+
)
|
|
4034
|
+
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):
|
|
4035
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4036
|
+
else:
|
|
4037
|
+
cred = credential.Credential(
|
|
4038
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4039
|
+
)
|
|
4040
|
+
http_profile = HttpProfile(
|
|
4041
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4042
|
+
reqMethod="POST",
|
|
4043
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4044
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4045
|
+
)
|
|
4046
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
4047
|
+
if g_param[OptionsDefine.Language]:
|
|
4048
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4049
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4050
|
+
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4051
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4052
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4053
|
+
model = models.DescribeChcHostsRequest()
|
|
4054
|
+
model.from_json_string(json.dumps(args))
|
|
4055
|
+
start_time = time.time()
|
|
4056
|
+
while True:
|
|
4057
|
+
rsp = client.DescribeChcHosts(model)
|
|
4058
|
+
result = rsp.to_json_string()
|
|
4059
|
+
try:
|
|
4060
|
+
json_obj = json.loads(result)
|
|
4061
|
+
except TypeError as e:
|
|
4062
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4063
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4064
|
+
break
|
|
4065
|
+
cur_time = time.time()
|
|
4066
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4067
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4068
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4069
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4070
|
+
else:
|
|
4071
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4072
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4073
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4074
|
+
|
|
4075
|
+
|
|
4024
4076
|
def doPurchaseReservedInstancesOffering(args, parsed_globals):
|
|
4025
4077
|
g_param = parse_global_arg(parsed_globals)
|
|
4026
4078
|
|
|
@@ -4073,6 +4125,58 @@ def doPurchaseReservedInstancesOffering(args, parsed_globals):
|
|
|
4073
4125
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4074
4126
|
|
|
4075
4127
|
|
|
4128
|
+
def doModifyInstancesProject(args, parsed_globals):
|
|
4129
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4130
|
+
|
|
4131
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4132
|
+
cred = credential.CVMRoleCredential()
|
|
4133
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4134
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4135
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4136
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4137
|
+
)
|
|
4138
|
+
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):
|
|
4139
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4140
|
+
else:
|
|
4141
|
+
cred = credential.Credential(
|
|
4142
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4143
|
+
)
|
|
4144
|
+
http_profile = HttpProfile(
|
|
4145
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4146
|
+
reqMethod="POST",
|
|
4147
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4148
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4149
|
+
)
|
|
4150
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
4151
|
+
if g_param[OptionsDefine.Language]:
|
|
4152
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4153
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4154
|
+
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4155
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4156
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4157
|
+
model = models.ModifyInstancesProjectRequest()
|
|
4158
|
+
model.from_json_string(json.dumps(args))
|
|
4159
|
+
start_time = time.time()
|
|
4160
|
+
while True:
|
|
4161
|
+
rsp = client.ModifyInstancesProject(model)
|
|
4162
|
+
result = rsp.to_json_string()
|
|
4163
|
+
try:
|
|
4164
|
+
json_obj = json.loads(result)
|
|
4165
|
+
except TypeError as e:
|
|
4166
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4167
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
4168
|
+
break
|
|
4169
|
+
cur_time = time.time()
|
|
4170
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
4171
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
4172
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
4173
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
4174
|
+
else:
|
|
4175
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
4176
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
4177
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4178
|
+
|
|
4179
|
+
|
|
4076
4180
|
def doDisassociateSecurityGroups(args, parsed_globals):
|
|
4077
4181
|
g_param = parse_global_arg(parsed_globals)
|
|
4078
4182
|
|
|
@@ -4229,7 +4333,7 @@ def doDescribeImageFromFamily(args, parsed_globals):
|
|
|
4229
4333
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4230
4334
|
|
|
4231
4335
|
|
|
4232
|
-
def
|
|
4336
|
+
def doDescribeHosts(args, parsed_globals):
|
|
4233
4337
|
g_param = parse_global_arg(parsed_globals)
|
|
4234
4338
|
|
|
4235
4339
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -4258,11 +4362,11 @@ def doDescribeChcHosts(args, parsed_globals):
|
|
|
4258
4362
|
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4259
4363
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
4260
4364
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4261
|
-
model = models.
|
|
4365
|
+
model = models.DescribeHostsRequest()
|
|
4262
4366
|
model.from_json_string(json.dumps(args))
|
|
4263
4367
|
start_time = time.time()
|
|
4264
4368
|
while True:
|
|
4265
|
-
rsp = client.
|
|
4369
|
+
rsp = client.DescribeHosts(model)
|
|
4266
4370
|
result = rsp.to_json_string()
|
|
4267
4371
|
try:
|
|
4268
4372
|
json_obj = json.loads(result)
|
|
@@ -4301,10 +4405,9 @@ ACTION_MAP = {
|
|
|
4301
4405
|
"DescribeImageSharePermission": doDescribeImageSharePermission,
|
|
4302
4406
|
"DescribeInstancesAttributes": doDescribeInstancesAttributes,
|
|
4303
4407
|
"ImportImage": doImportImage,
|
|
4304
|
-
"
|
|
4408
|
+
"ModifyKeyPairAttribute": doModifyKeyPairAttribute,
|
|
4305
4409
|
"InquiryPriceRenewInstances": doInquiryPriceRenewInstances,
|
|
4306
4410
|
"ConfigureChcAssistVpc": doConfigureChcAssistVpc,
|
|
4307
|
-
"ModifyKeyPairAttribute": doModifyKeyPairAttribute,
|
|
4308
4411
|
"DeleteLaunchTemplate": doDeleteLaunchTemplate,
|
|
4309
4412
|
"ModifyInstancesAttribute": doModifyInstancesAttribute,
|
|
4310
4413
|
"ModifyInstancesDisasterRecoverGroup": doModifyInstancesDisasterRecoverGroup,
|
|
@@ -4315,6 +4418,7 @@ ACTION_MAP = {
|
|
|
4315
4418
|
"DeleteKeyPairs": doDeleteKeyPairs,
|
|
4316
4419
|
"DescribeInternetChargeTypeConfigs": doDescribeInternetChargeTypeConfigs,
|
|
4317
4420
|
"CreateDisasterRecoverGroup": doCreateDisasterRecoverGroup,
|
|
4421
|
+
"InquiryPriceRunInstances": doInquiryPriceRunInstances,
|
|
4318
4422
|
"DescribeInstances": doDescribeInstances,
|
|
4319
4423
|
"DescribeLaunchTemplateVersions": doDescribeLaunchTemplateVersions,
|
|
4320
4424
|
"StopInstances": doStopInstances,
|
|
@@ -4358,22 +4462,24 @@ ACTION_MAP = {
|
|
|
4358
4462
|
"DescribeLaunchTemplates": doDescribeLaunchTemplates,
|
|
4359
4463
|
"RemoveChcAssistVpc": doRemoveChcAssistVpc,
|
|
4360
4464
|
"DescribeZoneInstanceConfigInfos": doDescribeZoneInstanceConfigInfos,
|
|
4361
|
-
"
|
|
4465
|
+
"ModifyInstancesChargeType": doModifyInstancesChargeType,
|
|
4362
4466
|
"RenewInstances": doRenewInstances,
|
|
4363
4467
|
"DescribeDisasterRecoverGroups": doDescribeDisasterRecoverGroups,
|
|
4364
4468
|
"StartInstances": doStartInstances,
|
|
4365
4469
|
"DescribeKeyPairs": doDescribeKeyPairs,
|
|
4366
4470
|
"DescribeReservedInstancesOfferings": doDescribeReservedInstancesOfferings,
|
|
4367
|
-
"
|
|
4471
|
+
"InquiryPriceModifyInstancesChargeType": doInquiryPriceModifyInstancesChargeType,
|
|
4368
4472
|
"ModifyDisasterRecoverGroupAttribute": doModifyDisasterRecoverGroupAttribute,
|
|
4369
4473
|
"ModifyChcAttribute": doModifyChcAttribute,
|
|
4370
4474
|
"RebootInstances": doRebootInstances,
|
|
4371
4475
|
"DescribeImages": doDescribeImages,
|
|
4476
|
+
"DescribeChcHosts": doDescribeChcHosts,
|
|
4372
4477
|
"PurchaseReservedInstancesOffering": doPurchaseReservedInstancesOffering,
|
|
4478
|
+
"ModifyInstancesProject": doModifyInstancesProject,
|
|
4373
4479
|
"DisassociateSecurityGroups": doDisassociateSecurityGroups,
|
|
4374
4480
|
"AllocateHosts": doAllocateHosts,
|
|
4375
4481
|
"DescribeImageFromFamily": doDescribeImageFromFamily,
|
|
4376
|
-
"
|
|
4482
|
+
"DescribeHosts": doDescribeHosts,
|
|
4377
4483
|
|
|
4378
4484
|
}
|
|
4379
4485
|
|
|
@@ -343,6 +343,13 @@
|
|
|
343
343
|
"output": "InquirePricePurchaseReservedInstancesOfferingResponse",
|
|
344
344
|
"status": "online"
|
|
345
345
|
},
|
|
346
|
+
"InquiryPriceModifyInstancesChargeType": {
|
|
347
|
+
"document": "This API is used to inquire about the price for switching billing modes of instance.\n\n\nThis API is used to indicate that instances with no charge when shut down, instances of the model families Batch Computing BC1 and Batch Computing BS1, instances of scheduled termination, and spot instances do not support this operation.",
|
|
348
|
+
"input": "InquiryPriceModifyInstancesChargeTypeRequest",
|
|
349
|
+
"name": "Modify the instance billing mode price inquiry",
|
|
350
|
+
"output": "InquiryPriceModifyInstancesChargeTypeResponse",
|
|
351
|
+
"status": "online"
|
|
352
|
+
},
|
|
346
353
|
"InquiryPriceRenewInstances": {
|
|
347
354
|
"document": "This API is used to inquire about the price for renewing a monthly subscription instance.\n\nThis API is used to query the renewal price of monthly subscription instances.",
|
|
348
355
|
"input": "InquiryPriceRenewInstancesRequest",
|
|
@@ -427,6 +434,13 @@
|
|
|
427
434
|
"output": "ModifyInstancesAttributeResponse",
|
|
428
435
|
"status": "online"
|
|
429
436
|
},
|
|
437
|
+
"ModifyInstancesChargeType": {
|
|
438
|
+
"document": "This API is used to switch the billing mode of an instance.\n\nThis API is used to perform operations that do not support instances with no charge when shut down, instances of the model families Batch Compute BC1 and Batch Compute BS1, or instances of scheduled termination.\n* You can query the result of the instance operation by calling the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5). If the latest operation status (LatestOperationState) of the instance is **SUCCESS**, the operation is successful.",
|
|
439
|
+
"input": "ModifyInstancesChargeTypeRequest",
|
|
440
|
+
"name": "Modify the instance billing mode",
|
|
441
|
+
"output": "ModifyInstancesChargeTypeResponse",
|
|
442
|
+
"status": "online"
|
|
443
|
+
},
|
|
430
444
|
"ModifyInstancesDisasterRecoverGroup": {
|
|
431
445
|
"document": "This API is used to adjust the placement group of an instance.\n* Currently only basic networks or Virtual Private Cloud (VPC) instances are supported.",
|
|
432
446
|
"input": "ModifyInstancesDisasterRecoverGroupRequest",
|
|
@@ -5164,6 +5178,70 @@
|
|
|
5164
5178
|
],
|
|
5165
5179
|
"type": "object"
|
|
5166
5180
|
},
|
|
5181
|
+
"InquiryPriceModifyInstancesChargeTypeRequest": {
|
|
5182
|
+
"document": "InquiryPriceModifyInstancesChargeType request structure.",
|
|
5183
|
+
"members": [
|
|
5184
|
+
{
|
|
5185
|
+
"disabled": false,
|
|
5186
|
+
"document": "One or more instance IDs to be operated. You can obtain the instance ID through the `InstanceId` in the return value from the API [DescribeInstances](https://www.tencentcloud.com/document/api/213/15728?from_cn_redirect=1). The maximum number of instances per request is 100.",
|
|
5187
|
+
"example": "[\"ins-r8hr2upy\"]",
|
|
5188
|
+
"member": "string",
|
|
5189
|
+
"name": "InstanceIds",
|
|
5190
|
+
"required": true,
|
|
5191
|
+
"type": "list"
|
|
5192
|
+
},
|
|
5193
|
+
{
|
|
5194
|
+
"disabled": false,
|
|
5195
|
+
"document": "Modified instance [billing type](https://www.tencentcloud.com/document/product/213/2180?from_cn_redirect=1). <br><li>`PREPAID`: monthly subscription.</li>\n\n**Note:** Only supports converting pay-as-you-go instances to annual and monthly subscription instances.\n\ndefault value: `PREPAID`",
|
|
5196
|
+
"example": "PREPAID",
|
|
5197
|
+
"member": "string",
|
|
5198
|
+
"name": "InstanceChargeType",
|
|
5199
|
+
"required": true,
|
|
5200
|
+
"type": "string"
|
|
5201
|
+
},
|
|
5202
|
+
{
|
|
5203
|
+
"disabled": false,
|
|
5204
|
+
"document": "Prepaid mode, parameter settings related to monthly/annual subscription. through this parameter, specify the purchase duration of annual and monthly subscription instances, whether to enable auto-renewal, and other attributes. ",
|
|
5205
|
+
"example": "无",
|
|
5206
|
+
"member": "InstanceChargePrepaid",
|
|
5207
|
+
"name": "InstanceChargePrepaid",
|
|
5208
|
+
"required": false,
|
|
5209
|
+
"type": "object"
|
|
5210
|
+
},
|
|
5211
|
+
{
|
|
5212
|
+
"disabled": false,
|
|
5213
|
+
"document": "Whether to switch the billing mode of elastic data cloud disks simultaneously. valid values: <br><li>true: means switching the billing mode of elastic data cloud disks</li><li>false: means not switching the billing mode of elastic data cloud disks</li><br>default value: false.",
|
|
5214
|
+
"example": "false",
|
|
5215
|
+
"member": "bool",
|
|
5216
|
+
"name": "ModifyPortableDataDisk",
|
|
5217
|
+
"required": false,
|
|
5218
|
+
"type": "bool"
|
|
5219
|
+
}
|
|
5220
|
+
],
|
|
5221
|
+
"type": "object"
|
|
5222
|
+
},
|
|
5223
|
+
"InquiryPriceModifyInstancesChargeTypeResponse": {
|
|
5224
|
+
"document": "InquiryPriceModifyInstancesChargeType response structure.",
|
|
5225
|
+
"members": [
|
|
5226
|
+
{
|
|
5227
|
+
"disabled": false,
|
|
5228
|
+
"document": "This parameter indicates the price for switching the billing mode of the corresponding configuration instance.",
|
|
5229
|
+
"example": "无",
|
|
5230
|
+
"member": "Price",
|
|
5231
|
+
"name": "Price",
|
|
5232
|
+
"output_required": true,
|
|
5233
|
+
"type": "object",
|
|
5234
|
+
"value_allowed_null": false
|
|
5235
|
+
},
|
|
5236
|
+
{
|
|
5237
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
5238
|
+
"member": "string",
|
|
5239
|
+
"name": "RequestId",
|
|
5240
|
+
"type": "string"
|
|
5241
|
+
}
|
|
5242
|
+
],
|
|
5243
|
+
"type": "object"
|
|
5244
|
+
},
|
|
5167
5245
|
"InquiryPriceRenewInstancesRequest": {
|
|
5168
5246
|
"document": "InquiryPriceRenewInstances request structure.",
|
|
5169
5247
|
"members": [
|
|
@@ -7822,6 +7900,60 @@
|
|
|
7822
7900
|
],
|
|
7823
7901
|
"type": "object"
|
|
7824
7902
|
},
|
|
7903
|
+
"ModifyInstancesChargeTypeRequest": {
|
|
7904
|
+
"document": "ModifyInstancesChargeType request structure.",
|
|
7905
|
+
"members": [
|
|
7906
|
+
{
|
|
7907
|
+
"disabled": false,
|
|
7908
|
+
"document": "One or more instance ids to be operated. you can obtain the instance ID through the `InstanceId` in the return value from the api [DescribeInstances](https://www.tencentcloud.com/document/api/213/15728?from_cn_redirect=1). the maximum number of instances per request is 30.",
|
|
7909
|
+
"example": "[\"ins-r8hr2upy\"]",
|
|
7910
|
+
"member": "string",
|
|
7911
|
+
"name": "InstanceIds",
|
|
7912
|
+
"required": true,
|
|
7913
|
+
"type": "list"
|
|
7914
|
+
},
|
|
7915
|
+
{
|
|
7916
|
+
"disabled": false,
|
|
7917
|
+
"document": "Modified instance [billing type](https://www.tencentcloud.com/document/product/213/2180?from_cn_redirect=1). <li>`PREPAID`: monthly subscription.</li> \n**Note:** Only supports converting pay-as-you-go instances to annual and monthly subscription instances.\n\ndefault value: `PREPAID`",
|
|
7918
|
+
"example": "PREPAID",
|
|
7919
|
+
"member": "string",
|
|
7920
|
+
"name": "InstanceChargeType",
|
|
7921
|
+
"required": true,
|
|
7922
|
+
"type": "string"
|
|
7923
|
+
},
|
|
7924
|
+
{
|
|
7925
|
+
"disabled": false,
|
|
7926
|
+
"document": "Modified prepaid mode, parameter settings related to monthly/annual subscription. by specifying this parameter, you can specify the purchase duration of annual and monthly subscription instances, whether to enable auto-renewal, and other attributes. ",
|
|
7927
|
+
"example": "无",
|
|
7928
|
+
"member": "InstanceChargePrepaid",
|
|
7929
|
+
"name": "InstanceChargePrepaid",
|
|
7930
|
+
"required": false,
|
|
7931
|
+
"type": "object"
|
|
7932
|
+
},
|
|
7933
|
+
{
|
|
7934
|
+
"disabled": false,
|
|
7935
|
+
"document": "Whether to switch the billing mode of elastic data cloud disks simultaneously. valid values: <li> true: means switching the billing mode of elastic data cloud disks</li><li> false: means not switching the billing mode of elastic data cloud disks</li>default value: false.",
|
|
7936
|
+
"example": "false",
|
|
7937
|
+
"member": "bool",
|
|
7938
|
+
"name": "ModifyPortableDataDisk",
|
|
7939
|
+
"required": false,
|
|
7940
|
+
"type": "bool"
|
|
7941
|
+
}
|
|
7942
|
+
],
|
|
7943
|
+
"type": "object"
|
|
7944
|
+
},
|
|
7945
|
+
"ModifyInstancesChargeTypeResponse": {
|
|
7946
|
+
"document": "ModifyInstancesChargeType response structure.",
|
|
7947
|
+
"members": [
|
|
7948
|
+
{
|
|
7949
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
7950
|
+
"member": "string",
|
|
7951
|
+
"name": "RequestId",
|
|
7952
|
+
"type": "string"
|
|
7953
|
+
}
|
|
7954
|
+
],
|
|
7955
|
+
"type": "object"
|
|
7956
|
+
},
|
|
7825
7957
|
"ModifyInstancesDisasterRecoverGroupRequest": {
|
|
7826
7958
|
"document": "ModifyInstancesDisasterRecoverGroup request structure.",
|
|
7827
7959
|
"members": [
|
|
@@ -422,6 +422,14 @@
|
|
|
422
422
|
"title": "Querying the Price of a Reserved Instance"
|
|
423
423
|
}
|
|
424
424
|
],
|
|
425
|
+
"InquiryPriceModifyInstancesChargeType": [
|
|
426
|
+
{
|
|
427
|
+
"document": "This example shows you how to perform a switchover for the billing mode of an instance to check the price.",
|
|
428
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceModifyInstancesChargeType\n<Common request parameters>\n\n{\n \"InstanceChargeType\": \"PREPAID\",\n \"InstanceIds\": [\n \"ins-r8hr2upy\"\n ],\n \"InstanceChargePrepaid\": {\n \"Period\": 1\n }\n}",
|
|
429
|
+
"output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"OriginalPrice\": 720,\n \"DiscountPrice\": 720\n }\n },\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
430
|
+
"title": "Switching the Billing Mode of an Instance for Price Inquiry"
|
|
431
|
+
}
|
|
432
|
+
],
|
|
425
433
|
"InquiryPriceRenewInstances": [
|
|
426
434
|
{
|
|
427
435
|
"document": "This example shows you how to perform a renewal instance inquiry with a duration of one month.",
|
|
@@ -530,6 +538,20 @@
|
|
|
530
538
|
"title": "Renaming instances"
|
|
531
539
|
}
|
|
532
540
|
],
|
|
541
|
+
"ModifyInstancesChargeType": [
|
|
542
|
+
{
|
|
543
|
+
"document": "This example shows you how to switch the billing mode of an instance.",
|
|
544
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstancesChargeType\n<Common request parameters>\n\n{\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"InstanceIds\": [\n \"ins-r8hr2upy\"\n ]\n}",
|
|
545
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
546
|
+
"title": "Switching Instance Billing Mode to Hourly Postpaid in This Example"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"document": "This example shows you how to switch the billing mode of an instance.",
|
|
550
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstancesChargeType\n<Common request parameters>\n\n{\n \"InstanceChargeType\": \"PREPAID\",\n \"InstanceIds\": [\n \"ins-r8hr2upy\"\n ],\n \"InstanceChargePrepaid\": {\n \"Period\": \"1\"\n }\n}",
|
|
551
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d39d6c09-44e9-4e80-8661-77b5ff3cbc15\"\n }\n}",
|
|
552
|
+
"title": "This Example Switches Instance Billing Mode to Prepaid Mode with a Duration of 1 Month"
|
|
553
|
+
}
|
|
554
|
+
],
|
|
533
555
|
"ModifyInstancesDisasterRecoverGroup": [
|
|
534
556
|
{
|
|
535
557
|
"document": "This example shows you how to adjust the instance location in an instance placement group.",
|
|
@@ -121,6 +121,58 @@ def doDescribeDomainGroupList(args, parsed_globals):
|
|
|
121
121
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
122
122
|
|
|
123
123
|
|
|
124
|
+
def doDescribeRecordLineCategoryList(args, parsed_globals):
|
|
125
|
+
g_param = parse_global_arg(parsed_globals)
|
|
126
|
+
|
|
127
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
128
|
+
cred = credential.CVMRoleCredential()
|
|
129
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
130
|
+
cred = credential.STSAssumeRoleCredential(
|
|
131
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
132
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
133
|
+
)
|
|
134
|
+
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):
|
|
135
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
136
|
+
else:
|
|
137
|
+
cred = credential.Credential(
|
|
138
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
139
|
+
)
|
|
140
|
+
http_profile = HttpProfile(
|
|
141
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
142
|
+
reqMethod="POST",
|
|
143
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
144
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
145
|
+
)
|
|
146
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
147
|
+
if g_param[OptionsDefine.Language]:
|
|
148
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
149
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
150
|
+
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
151
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
152
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
153
|
+
model = models.DescribeRecordLineCategoryListRequest()
|
|
154
|
+
model.from_json_string(json.dumps(args))
|
|
155
|
+
start_time = time.time()
|
|
156
|
+
while True:
|
|
157
|
+
rsp = client.DescribeRecordLineCategoryList(model)
|
|
158
|
+
result = rsp.to_json_string()
|
|
159
|
+
try:
|
|
160
|
+
json_obj = json.loads(result)
|
|
161
|
+
except TypeError as e:
|
|
162
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
163
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
164
|
+
break
|
|
165
|
+
cur_time = time.time()
|
|
166
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
167
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
168
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
169
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
170
|
+
else:
|
|
171
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
172
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
173
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
174
|
+
|
|
175
|
+
|
|
124
176
|
def doDescribeDomainPurview(args, parsed_globals):
|
|
125
177
|
g_param = parse_global_arg(parsed_globals)
|
|
126
178
|
|
|
@@ -849,6 +901,58 @@ def doDescribeDomain(args, parsed_globals):
|
|
|
849
901
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
850
902
|
|
|
851
903
|
|
|
904
|
+
def doDeletePackageOrder(args, parsed_globals):
|
|
905
|
+
g_param = parse_global_arg(parsed_globals)
|
|
906
|
+
|
|
907
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
908
|
+
cred = credential.CVMRoleCredential()
|
|
909
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
910
|
+
cred = credential.STSAssumeRoleCredential(
|
|
911
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
912
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
913
|
+
)
|
|
914
|
+
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):
|
|
915
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
916
|
+
else:
|
|
917
|
+
cred = credential.Credential(
|
|
918
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
919
|
+
)
|
|
920
|
+
http_profile = HttpProfile(
|
|
921
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
922
|
+
reqMethod="POST",
|
|
923
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
924
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
925
|
+
)
|
|
926
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
927
|
+
if g_param[OptionsDefine.Language]:
|
|
928
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
929
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
930
|
+
client = mod.DnspodClient(cred, g_param[OptionsDefine.Region], profile)
|
|
931
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
932
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
933
|
+
model = models.DeletePackageOrderRequest()
|
|
934
|
+
model.from_json_string(json.dumps(args))
|
|
935
|
+
start_time = time.time()
|
|
936
|
+
while True:
|
|
937
|
+
rsp = client.DeletePackageOrder(model)
|
|
938
|
+
result = rsp.to_json_string()
|
|
939
|
+
try:
|
|
940
|
+
json_obj = json.loads(result)
|
|
941
|
+
except TypeError as e:
|
|
942
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
943
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
944
|
+
break
|
|
945
|
+
cur_time = time.time()
|
|
946
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
947
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
948
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
949
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
950
|
+
else:
|
|
951
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
952
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
953
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
954
|
+
|
|
955
|
+
|
|
852
956
|
def doCreateRecordBatch(args, parsed_globals):
|
|
853
957
|
g_param = parse_global_arg(parsed_globals)
|
|
854
958
|
|
|
@@ -2006,6 +2110,7 @@ MODELS_MAP = {
|
|
|
2006
2110
|
ACTION_MAP = {
|
|
2007
2111
|
"DescribeRecordList": doDescribeRecordList,
|
|
2008
2112
|
"DescribeDomainGroupList": doDescribeDomainGroupList,
|
|
2113
|
+
"DescribeRecordLineCategoryList": doDescribeRecordLineCategoryList,
|
|
2009
2114
|
"DescribeDomainPurview": doDescribeDomainPurview,
|
|
2010
2115
|
"DescribeRecordType": doDescribeRecordType,
|
|
2011
2116
|
"DeleteRecordGroup": doDeleteRecordGroup,
|
|
@@ -2020,6 +2125,7 @@ ACTION_MAP = {
|
|
|
2020
2125
|
"DeleteShareDomain": doDeleteShareDomain,
|
|
2021
2126
|
"ModifyRecordGroup": doModifyRecordGroup,
|
|
2022
2127
|
"DescribeDomain": doDescribeDomain,
|
|
2128
|
+
"DeletePackageOrder": doDeletePackageOrder,
|
|
2023
2129
|
"CreateRecordBatch": doCreateRecordBatch,
|
|
2024
2130
|
"ModifyDomainLock": doModifyDomainLock,
|
|
2025
2131
|
"DeleteRecord": doDeleteRecord,
|
|
@@ -77,6 +77,13 @@
|
|
|
77
77
|
"output": "DeleteDomainBatchResponse",
|
|
78
78
|
"status": "online"
|
|
79
79
|
},
|
|
80
|
+
"DeletePackageOrder": {
|
|
81
|
+
"document": "This API is used to disable the paid plan on the international website.",
|
|
82
|
+
"input": "DeletePackageOrderRequest",
|
|
83
|
+
"name": "Close an international site package order",
|
|
84
|
+
"output": "DeletePackageOrderResponse",
|
|
85
|
+
"status": "online"
|
|
86
|
+
},
|
|
80
87
|
"DeleteRecord": {
|
|
81
88
|
"document": "This API is used to delete a record.",
|
|
82
89
|
"input": "DeleteRecordRequest",
|
|
@@ -161,6 +168,13 @@
|
|
|
161
168
|
"output": "DescribeRecordGroupListResponse",
|
|
162
169
|
"status": "online"
|
|
163
170
|
},
|
|
171
|
+
"DescribeRecordLineCategoryList": {
|
|
172
|
+
"document": "This API is used to return a line list by category.",
|
|
173
|
+
"input": "DescribeRecordLineCategoryListRequest",
|
|
174
|
+
"name": "Returns a line list by category",
|
|
175
|
+
"output": "DescribeRecordLineCategoryListResponse",
|
|
176
|
+
"status": "online"
|
|
177
|
+
},
|
|
164
178
|
"DescribeRecordLineList": {
|
|
165
179
|
"document": "This API is used to get the split zones allowed by the domain level.",
|
|
166
180
|
"input": "DescribeRecordLineListRequest",
|
|
@@ -1440,6 +1454,33 @@
|
|
|
1440
1454
|
],
|
|
1441
1455
|
"type": "object"
|
|
1442
1456
|
},
|
|
1457
|
+
"DeletePackageOrderRequest": {
|
|
1458
|
+
"document": "DeletePackageOrder request structure.",
|
|
1459
|
+
"members": [
|
|
1460
|
+
{
|
|
1461
|
+
"disabled": false,
|
|
1462
|
+
"document": "Specifies the domain name of the package to be terminated.",
|
|
1463
|
+
"example": "dnspod.com",
|
|
1464
|
+
"member": "string",
|
|
1465
|
+
"name": "Domain",
|
|
1466
|
+
"required": true,
|
|
1467
|
+
"type": "string"
|
|
1468
|
+
}
|
|
1469
|
+
],
|
|
1470
|
+
"type": "object"
|
|
1471
|
+
},
|
|
1472
|
+
"DeletePackageOrderResponse": {
|
|
1473
|
+
"document": "DeletePackageOrder response structure.",
|
|
1474
|
+
"members": [
|
|
1475
|
+
{
|
|
1476
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
1477
|
+
"member": "string",
|
|
1478
|
+
"name": "RequestId",
|
|
1479
|
+
"type": "string"
|
|
1480
|
+
}
|
|
1481
|
+
],
|
|
1482
|
+
"type": "object"
|
|
1483
|
+
},
|
|
1443
1484
|
"DeleteRecordGroupRequest": {
|
|
1444
1485
|
"document": "DeleteRecordGroup request structure.",
|
|
1445
1486
|
"members": [
|
|
@@ -1974,6 +2015,52 @@
|
|
|
1974
2015
|
],
|
|
1975
2016
|
"type": "object"
|
|
1976
2017
|
},
|
|
2018
|
+
"DescribeRecordLineCategoryListRequest": {
|
|
2019
|
+
"document": "DescribeRecordLineCategoryList request structure.",
|
|
2020
|
+
"members": [
|
|
2021
|
+
{
|
|
2022
|
+
"disabled": false,
|
|
2023
|
+
"document": "Specifies the domain name to query the line list.",
|
|
2024
|
+
"example": "dnspod.cn",
|
|
2025
|
+
"member": "string",
|
|
2026
|
+
"name": "Domain",
|
|
2027
|
+
"required": true,
|
|
2028
|
+
"type": "string"
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
"disabled": false,
|
|
2032
|
+
"document": "Domain ID for querying the route list. parameter DomainId has higher priority than parameter Domain. if you pass parameter DomainId, it will ignore parameter Domain.",
|
|
2033
|
+
"example": "97213027",
|
|
2034
|
+
"member": "uint64",
|
|
2035
|
+
"name": "DomainId",
|
|
2036
|
+
"required": false,
|
|
2037
|
+
"type": "int"
|
|
2038
|
+
}
|
|
2039
|
+
],
|
|
2040
|
+
"type": "object"
|
|
2041
|
+
},
|
|
2042
|
+
"DescribeRecordLineCategoryListResponse": {
|
|
2043
|
+
"document": "DescribeRecordLineCategoryList response structure.",
|
|
2044
|
+
"members": [
|
|
2045
|
+
{
|
|
2046
|
+
"disabled": false,
|
|
2047
|
+
"document": "Lists lines by category.",
|
|
2048
|
+
"example": "无",
|
|
2049
|
+
"member": "LineItem",
|
|
2050
|
+
"name": "LineList",
|
|
2051
|
+
"output_required": true,
|
|
2052
|
+
"type": "list",
|
|
2053
|
+
"value_allowed_null": false
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
"document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
|
|
2057
|
+
"member": "string",
|
|
2058
|
+
"name": "RequestId",
|
|
2059
|
+
"type": "string"
|
|
2060
|
+
}
|
|
2061
|
+
],
|
|
2062
|
+
"type": "object"
|
|
2063
|
+
},
|
|
1977
2064
|
"DescribeRecordLineListRequest": {
|
|
1978
2065
|
"document": "DescribeRecordLineList request structure.",
|
|
1979
2066
|
"members": [
|
|
@@ -3114,6 +3201,72 @@
|
|
|
3114
3201
|
],
|
|
3115
3202
|
"usage": "out"
|
|
3116
3203
|
},
|
|
3204
|
+
"LineItem": {
|
|
3205
|
+
"document": "Describes the line information of dns records.",
|
|
3206
|
+
"members": [
|
|
3207
|
+
{
|
|
3208
|
+
"disabled": false,
|
|
3209
|
+
"document": "Parses the line name.",
|
|
3210
|
+
"example": "电信",
|
|
3211
|
+
"member": "string",
|
|
3212
|
+
"name": "LineName",
|
|
3213
|
+
"output_required": true,
|
|
3214
|
+
"type": "string",
|
|
3215
|
+
"value_allowed_null": false
|
|
3216
|
+
},
|
|
3217
|
+
{
|
|
3218
|
+
"disabled": false,
|
|
3219
|
+
"document": "Resolution route ID.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
3220
|
+
"example": "10=0",
|
|
3221
|
+
"member": "string",
|
|
3222
|
+
"name": "LineId",
|
|
3223
|
+
"output_required": true,
|
|
3224
|
+
"type": "string",
|
|
3225
|
+
"value_allowed_null": true
|
|
3226
|
+
},
|
|
3227
|
+
{
|
|
3228
|
+
"disabled": false,
|
|
3229
|
+
"document": "Indicates whether the current line is available under the current domain.",
|
|
3230
|
+
"example": "true",
|
|
3231
|
+
"member": "bool",
|
|
3232
|
+
"name": "Useful",
|
|
3233
|
+
"output_required": true,
|
|
3234
|
+
"type": "bool",
|
|
3235
|
+
"value_allowed_null": false
|
|
3236
|
+
},
|
|
3237
|
+
{
|
|
3238
|
+
"disabled": false,
|
|
3239
|
+
"document": "Current line min plan level requirement.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
3240
|
+
"example": "DP_Free",
|
|
3241
|
+
"member": "string",
|
|
3242
|
+
"name": "Grade",
|
|
3243
|
+
"output_required": true,
|
|
3244
|
+
"type": "string",
|
|
3245
|
+
"value_allowed_null": true
|
|
3246
|
+
},
|
|
3247
|
+
{
|
|
3248
|
+
"disabled": false,
|
|
3249
|
+
"document": "Describes the sub-line list under the current line category.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
3250
|
+
"example": "无",
|
|
3251
|
+
"member": "LineItem",
|
|
3252
|
+
"name": "SubGroup",
|
|
3253
|
+
"output_required": true,
|
|
3254
|
+
"type": "list",
|
|
3255
|
+
"value_allowed_null": true
|
|
3256
|
+
},
|
|
3257
|
+
{
|
|
3258
|
+
"disabled": false,
|
|
3259
|
+
"document": "Specifies the lines included in the custom line grouping.\nNote: This field may return null, indicating that no valid values can be obtained.",
|
|
3260
|
+
"example": "[\"电信\",\"安徽电信\",\"北京电信\"]",
|
|
3261
|
+
"member": "string",
|
|
3262
|
+
"name": "Lines",
|
|
3263
|
+
"output_required": true,
|
|
3264
|
+
"type": "list",
|
|
3265
|
+
"value_allowed_null": true
|
|
3266
|
+
}
|
|
3267
|
+
],
|
|
3268
|
+
"usage": "out"
|
|
3269
|
+
},
|
|
3117
3270
|
"LockInfo": {
|
|
3118
3271
|
"document": "Domain lock information",
|
|
3119
3272
|
"members": [
|
|
@@ -100,6 +100,14 @@
|
|
|
100
100
|
"title": "Bulk deleting domains"
|
|
101
101
|
}
|
|
102
102
|
],
|
|
103
|
+
"DeletePackageOrder": [
|
|
104
|
+
{
|
|
105
|
+
"document": "",
|
|
106
|
+
"input": "POST / HTTP/1.1\nHost: dnspod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeletePackageOrder\n<Common request parameters>\n\n{\n \"Domain\": \"dnspod.com\"\n}",
|
|
107
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"37062da4-cdce-43a8-a1a9-6ea6176404d4\"\n }\n}",
|
|
108
|
+
"title": "Close International Site Package Order"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
103
111
|
"DeleteRecord": [
|
|
104
112
|
{
|
|
105
113
|
"document": " ",
|
|
@@ -196,6 +204,14 @@
|
|
|
196
204
|
"title": "Querying the list of DNS record groups"
|
|
197
205
|
}
|
|
198
206
|
],
|
|
207
|
+
"DescribeRecordLineCategoryList": [
|
|
208
|
+
{
|
|
209
|
+
"document": "This example shows you how to return a line list by category",
|
|
210
|
+
"input": "POST / HTTP/1.1\nHost: dnspod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRecordLineCategoryList\n<Common request parameters>\n\n{\n \"Domain\": \"dnspod.cn\",\n \"DomainId\": 1\n}",
|
|
211
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e5246d79-2779-45df-aa6f-fe67001be5d8\",\n \"LineList\": [\n {\n \"Grade\": \"DPG_FREE\",\n \"SubGroup\": null,\n \"LineName\": \"Default\",\n \"LineId\": \"0\",\n \"Useful\": true,\n \"Lines\": null\n },\n {\n \"Grade\": \"DPG_FREE\",\n \"SubGroup\": [\n {\n \"Grade\": \"DPG_FREE\",\n \"SubGroup\": null,\n \"LineName\": \"Baidu\",\n \"LineId\": \"90=0\",\n \"Useful\": true,\n \"Lines\": null\n },\n {\n \"Grade\": \"DPG_FREE\",\n \"SubGroup\": null,\n \"LineName\": \"Google\",\n \"LineId\": \"90=1\",\n \"Useful\": true,\n \"Lines\": null\n },\n {\n \"Grade\": \"DPG_FREE\",\n \"SubGroup\": null,\n \"LineName\": \"Youdao\",\n \"LineId\": \"90=2\",\n \"Useful\": true,\n \"Lines\": null\n },\n {\n \"Grade\": \"DPG_FREE\",\n \"SubGroup\": null,\n \"LineName\": \"Bing\",\n \"LineId\": \"90=3\",\n \"Useful\": true,\n \"Lines\": null\n },\n {\n \"Grade\": \"DPG_FREE\",\n \"SubGroup\": null,\n \"LineName\": \"Sogou\",\n \"LineId\": \"90=5\",\n \"Useful\": true,\n \"Lines\": null\n },\n {\n \"Grade\": \"DPG_FREE\",\n \"SubGroup\": null,\n \"LineName\": \"Qihoo\",\n \"LineId\": \"90=6\",\n \"Useful\": true,\n \"Lines\": null\n },\n {\n \"Grade\": \"DPG_FREE\",\n \"SubGroup\": null,\n \"LineName\": \"Search engine\",\n \"LineId\": \"80=0\",\n \"Useful\": true,\n \"Lines\": null\n }\n ],\n \"LineName\": \"Search engine\",\n \"LineId\": \"80=0\",\n \"Useful\": true,\n \"Lines\": null\n }\n ]\n }\n}",
|
|
212
|
+
"title": "Line List Parameter Example by Category"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
199
215
|
"DescribeRecordLineList": [
|
|
200
216
|
{
|
|
201
217
|
"document": " ",
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
"status": "online"
|
|
366
366
|
},
|
|
367
367
|
"DeleteLoadBalancer": {
|
|
368
|
-
"document": "This API is used to delete a LoadBalancer. If the LoadBalancer is referenced by other services (for example, Layer-4 proxy), the LoadBalancer cannot be deleted until the reference relationship is removed. The load balancing feature is in beta test. If you need to use it, [contact us](https://
|
|
368
|
+
"document": "This API is used to delete a LoadBalancer. If the LoadBalancer is referenced by other services (for example, Layer-4 proxy), the LoadBalancer cannot be deleted until the reference relationship is removed. The load balancing feature is in beta test. If you need to use it, [contact us](https://www.tencentcloud.com/contact-us).",
|
|
369
369
|
"input": "DeleteLoadBalancerRequest",
|
|
370
370
|
"name": "Deletes a LoadBalancer",
|
|
371
371
|
"output": "DeleteLoadBalancerResponse",
|
|
@@ -17751,7 +17751,7 @@
|
|
|
17751
17751
|
},
|
|
17752
17752
|
{
|
|
17753
17753
|
"disabled": false,
|
|
17754
|
-
"document": "Template creation time. uses [ISO date format](https://www.tencentcloud.
|
|
17754
|
+
"document": "Template creation time. uses [ISO date format](https://www.tencentcloud.com/zh/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F).",
|
|
17755
17755
|
"example": "2020-09-07T00:00:00+08:00",
|
|
17756
17756
|
"member": "string",
|
|
17757
17757
|
"name": "CreateTime",
|
|
@@ -17761,7 +17761,7 @@
|
|
|
17761
17761
|
},
|
|
17762
17762
|
{
|
|
17763
17763
|
"disabled": false,
|
|
17764
|
-
"document": "Template last modified time. uses [ISO date format](https://www.tencentcloud.
|
|
17764
|
+
"document": "Template last modified time. uses [ISO date format](https://www.tencentcloud.com/zh/document/product/266/11732#iso-.E6.97.A5.E6.9C.9F.E6.A0.BC.E5.BC.8F).",
|
|
17765
17765
|
"example": "2020-09-07T00:00:00+08:00",
|
|
17766
17766
|
"member": "string",
|
|
17767
17767
|
"name": "UpdateTime",
|
|
@@ -25497,7 +25497,7 @@
|
|
|
25497
25497
|
},
|
|
25498
25498
|
{
|
|
25499
25499
|
"disabled": false,
|
|
25500
|
-
"document": "The parameter value type.\n<Li>`CHOICE`: the parameter value can only be selected from `choicesvalue`.</li
|
|
25500
|
+
"document": "The parameter value type.\n<Li>`CHOICE`: the parameter value can only be selected from `choicesvalue`.</li>\n<Li>TOGGLE: the parameter value is of switch type and can be selected from `choicesvalue`.</li>\n<Li>OBJECT: the parameter value is of object type, and `choiceproperties` are the properties associated with this object type.</li>\n<Li>`CUSTOM_NUM`: (integer) custom value.</li>\n<Li> custom_string: parameter value is user-customized, string type.</li> ",
|
|
25501
25501
|
"example": "CHOICE",
|
|
25502
25502
|
"member": "string",
|
|
25503
25503
|
"name": "Type",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tccli-intl-en
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1261.1
|
|
4
4
|
Summary: Universal Command Line Environment for Tencent Cloud
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-cli-intl-en.git
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -22,7 +22,7 @@ Classifier: Programming Language :: Python :: 3.4
|
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.5
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.6
|
|
24
24
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: tencentcloud-sdk-python-intl-en (>=3.0.
|
|
25
|
+
Requires-Dist: tencentcloud-sdk-python-intl-en (>=3.0.1261)
|
|
26
26
|
Requires-Dist: jmespath (==0.10.0)
|
|
27
27
|
Requires-Dist: six (==1.16.0)
|
|
28
28
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
tccli/__init__.py,sha256=
|
|
1
|
+
tccli/__init__.py,sha256=U8jfTlBM7VDN5rk26rG1kH7yyz3hLeJ_jgi1YE_jB_U,28
|
|
2
2
|
tccli/argparser.py,sha256=WtfpBhj2R6JHSzagy6w6Q4y3YVmyIC_yK80w3tqBPgU,5589
|
|
3
3
|
tccli/argument.py,sha256=ZtVo3AySpzM-Hw6_hPdU27FjUsc8QPB2fIuLy7JSBAk,8091
|
|
4
4
|
tccli/base_command.py,sha256=rFWNAwfS0GA6LLGNOM-iPI0RV81Jag5cZn536ZQN0pw,2859
|
|
@@ -193,9 +193,9 @@ tccli/services/ctsdb/ctsdb_client.py,sha256=Hn7tJWcOCs2_93fKYoBzZ3cjEaRsj_Cyh2Le
|
|
|
193
193
|
tccli/services/ctsdb/v20230202/api.json,sha256=OdVCQn1d5ROlJirmxcGLM2TkLzDH2cunzUuZX_2FmxY,23071
|
|
194
194
|
tccli/services/ctsdb/v20230202/examples.json,sha256=GB60VeEhL_lUbM6kjgL-9fqXGd7dc1C7TUCK6KRrrV4,3720
|
|
195
195
|
tccli/services/cvm/__init__.py,sha256=TlF7VMjJTb_ELng-8ghL1Zvrmu7MJyuNBU5KLiWrFnw,85
|
|
196
|
-
tccli/services/cvm/cvm_client.py,sha256=
|
|
197
|
-
tccli/services/cvm/v20170312/api.json,sha256=
|
|
198
|
-
tccli/services/cvm/v20170312/examples.json,sha256=
|
|
196
|
+
tccli/services/cvm/cvm_client.py,sha256=ZW8BuuBueuowNazUCMxG2fWGythDmGsn7tA-bpoGktM,267439
|
|
197
|
+
tccli/services/cvm/v20170312/api.json,sha256=DTOWKpreNSePb1MQGb03UJmIH4PIfU7cl4uqxjxwAHY,485551
|
|
198
|
+
tccli/services/cvm/v20170312/examples.json,sha256=3Lc99H55nf0MBSPrutqEWMWvFKCppH1anWYgYtPTtnU,115746
|
|
199
199
|
tccli/services/cwp/__init__.py,sha256=VzfiK7QzpNmTiO4zrmILRFSkKMJka8elLwzYLTjUPFw,85
|
|
200
200
|
tccli/services/cwp/cwp_client.py,sha256=UNo7UrxPCchk06Gjnnb-o8Ieh87mppr3HCdnUAHfFiQ,1452506
|
|
201
201
|
tccli/services/cwp/v20180228/api.json,sha256=dl5bSD0_GMwxmOIItlWCGJLcHilwgdV9x096K8Do1Oc,2098126
|
|
@@ -235,9 +235,9 @@ tccli/services/dms/dms_client.py,sha256=mti8mlqbMM8ZE7XcHHYTz_tQFTujRLuf56dw4TOJ
|
|
|
235
235
|
tccli/services/dms/v20200819/api.json,sha256=MJC2K2Fhnml5wKyYMhXOuzaLwgdPF2nlToyn60PX-ZA,4582
|
|
236
236
|
tccli/services/dms/v20200819/examples.json,sha256=00QK3K0BqQRWIqG6GDdwT0c8hwUJ5caj1xUn6Q06d_k,802
|
|
237
237
|
tccli/services/dnspod/__init__.py,sha256=4t9Zk1hkia8MrDbtWW-XP9aCXYNWqafFaB1NKh5Ebfc,91
|
|
238
|
-
tccli/services/dnspod/dnspod_client.py,sha256=
|
|
239
|
-
tccli/services/dnspod/v20210323/api.json,sha256=
|
|
240
|
-
tccli/services/dnspod/v20210323/examples.json,sha256=
|
|
238
|
+
tccli/services/dnspod/dnspod_client.py,sha256=4Gekr8hnM2g25BiCKDG99U-1sUujrc-8jyLCJqslyP8,129737
|
|
239
|
+
tccli/services/dnspod/v20210323/api.json,sha256=jxROG5FzVWpBp76kBeWg-sDAQ4XMOPNEGNVIaahm9tY,144864
|
|
240
|
+
tccli/services/dnspod/v20210323/examples.json,sha256=LTyLgeACDKGnu8s_A5UtmrN4mFKxznUhcAJEjVk88iQ,43574
|
|
241
241
|
tccli/services/domain/__init__.py,sha256=meqFi6gRyH2HwgL3XpXkhrspL-i6f-EMjpdZ6Flbzi4,91
|
|
242
242
|
tccli/services/domain/domain_client.py,sha256=JNelv1CdORTg_bVJ-FiWPc9WsMwYZmk6nT1nDxGI1-c,80922
|
|
243
243
|
tccli/services/domain/v20180808/api.json,sha256=m8PVGnpFNyT4lwTrrz1pad0mCpWpQDWUfnZiyL7mCUA,88704
|
|
@@ -506,7 +506,7 @@ tccli/services/teo/__init__.py,sha256=nvzcUSkSQuTftWEJ399BUZpUk_0jEq-l97539DwbAw
|
|
|
506
506
|
tccli/services/teo/teo_client.py,sha256=aKu9kxw__IqmH8MFfa7JZ2vJ8eyksBiwHL97KqVqPyE,745543
|
|
507
507
|
tccli/services/teo/v20220106/api.json,sha256=pEZJsuPOV4oAO5uxFRxpkBzxdGbhiuDGeDhItZLpBk0,440930
|
|
508
508
|
tccli/services/teo/v20220106/examples.json,sha256=bzXKxeiSSmtv7lL1wbcb7YaTbgbOFBJbD_uCv1fzQuk,87233
|
|
509
|
-
tccli/services/teo/v20220901/api.json,sha256=
|
|
509
|
+
tccli/services/teo/v20220901/api.json,sha256=hfgtBH6Lpd6gft_uaj-Uv6zx7kWY32bNVI49KnI8IGo,1160611
|
|
510
510
|
tccli/services/teo/v20220901/examples.json,sha256=DwEWUpOMKpLjMj5jhbe1OxwyPrrB3vesi887UcfDRag,525409
|
|
511
511
|
tccli/services/tione/__init__.py,sha256=hVHB2cJpskiRtSHmEaJj2ZcjQp28c17sepm54VgFH7I,89
|
|
512
512
|
tccli/services/tione/tione_client.py,sha256=dqxNYR2NRnjyRhfEaHIvCf3KT71PqDvU9JvN5e_Q5Dc,9264
|
|
@@ -578,9 +578,9 @@ tccli/services/yunjing/__init__.py,sha256=8HTKN8_ow1j67tspqAbBMQgeteXAagLvtb9WAf
|
|
|
578
578
|
tccli/services/yunjing/yunjing_client.py,sha256=Vh5vFOLjDJ53q_RX9WADwLT610kGcUxwCmtny95k3js,226485
|
|
579
579
|
tccli/services/yunjing/v20180228/api.json,sha256=zYojacZyPgPCi71CLBjuHsQR9mIxcZjCX5JwA9TYr1s,173428
|
|
580
580
|
tccli/services/yunjing/v20180228/examples.json,sha256=j3GL3TtNTkZpNLlksz0nJNCVDxYGUqfRqOt94Y-P8OE,58723
|
|
581
|
-
tccli_intl_en-3.0.
|
|
582
|
-
tccli_intl_en-3.0.
|
|
583
|
-
tccli_intl_en-3.0.
|
|
584
|
-
tccli_intl_en-3.0.
|
|
585
|
-
tccli_intl_en-3.0.
|
|
586
|
-
tccli_intl_en-3.0.
|
|
581
|
+
tccli_intl_en-3.0.1261.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
582
|
+
tccli_intl_en-3.0.1261.1.dist-info/METADATA,sha256=ou7aRcAQo-1cqqdaJaorgbNHwyrfn1Aplq1BF306RQs,3092
|
|
583
|
+
tccli_intl_en-3.0.1261.1.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
584
|
+
tccli_intl_en-3.0.1261.1.dist-info/entry_points.txt,sha256=68P7ZjqXFm4zPWf5RsAVabzbECUWYFB2VyUnnv8XgMI,86
|
|
585
|
+
tccli_intl_en-3.0.1261.1.dist-info/top_level.txt,sha256=gYFrQRE3IqZ_46Syp-vkVwwvNaYEtKcM4fE_C4Puomk,6
|
|
586
|
+
tccli_intl_en-3.0.1261.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|