alibabacloud-rdsai20250507 1.1.2__py3-none-any.whl → 1.2.0__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.
- alibabacloud_rdsai20250507/__init__.py +1 -1
- alibabacloud_rdsai20250507/client.py +732 -0
- alibabacloud_rdsai20250507/models.py +1021 -28
- {alibabacloud_rdsai20250507-1.1.2.dist-info → alibabacloud_rdsai20250507-1.2.0.dist-info}/METADATA +1 -1
- alibabacloud_rdsai20250507-1.2.0.dist-info/RECORD +8 -0
- alibabacloud_rdsai20250507-1.1.2.dist-info/RECORD +0 -8
- {alibabacloud_rdsai20250507-1.1.2.dist-info → alibabacloud_rdsai20250507-1.2.0.dist-info}/LICENSE +0 -0
- {alibabacloud_rdsai20250507-1.1.2.dist-info → alibabacloud_rdsai20250507-1.2.0.dist-info}/WHEEL +0 -0
- {alibabacloud_rdsai20250507-1.1.2.dist-info → alibabacloud_rdsai20250507-1.2.0.dist-info}/top_level.txt +0 -0
|
@@ -809,6 +809,218 @@ class Client(OpenApiClient):
|
|
|
809
809
|
runtime = util_models.RuntimeOptions()
|
|
810
810
|
return await self.describe_instance_ip_whitelist_with_options_async(request, runtime)
|
|
811
811
|
|
|
812
|
+
def describe_instance_storage_config_with_options(
|
|
813
|
+
self,
|
|
814
|
+
request: rds_ai_20250507_models.DescribeInstanceStorageConfigRequest,
|
|
815
|
+
runtime: util_models.RuntimeOptions,
|
|
816
|
+
) -> rds_ai_20250507_models.DescribeInstanceStorageConfigResponse:
|
|
817
|
+
"""
|
|
818
|
+
@summary 查看实例存储配置
|
|
819
|
+
|
|
820
|
+
@param request: DescribeInstanceStorageConfigRequest
|
|
821
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
822
|
+
@return: DescribeInstanceStorageConfigResponse
|
|
823
|
+
"""
|
|
824
|
+
UtilClient.validate_model(request)
|
|
825
|
+
query = {}
|
|
826
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
827
|
+
query['InstanceName'] = request.instance_name
|
|
828
|
+
if not UtilClient.is_unset(request.region_id):
|
|
829
|
+
query['RegionId'] = request.region_id
|
|
830
|
+
req = open_api_models.OpenApiRequest(
|
|
831
|
+
query=OpenApiUtilClient.query(query)
|
|
832
|
+
)
|
|
833
|
+
params = open_api_models.Params(
|
|
834
|
+
action='DescribeInstanceStorageConfig',
|
|
835
|
+
version='2025-05-07',
|
|
836
|
+
protocol='HTTPS',
|
|
837
|
+
pathname='/',
|
|
838
|
+
method='POST',
|
|
839
|
+
auth_type='AK',
|
|
840
|
+
style='RPC',
|
|
841
|
+
req_body_type='formData',
|
|
842
|
+
body_type='json'
|
|
843
|
+
)
|
|
844
|
+
return TeaCore.from_map(
|
|
845
|
+
rds_ai_20250507_models.DescribeInstanceStorageConfigResponse(),
|
|
846
|
+
self.call_api(params, req, runtime)
|
|
847
|
+
)
|
|
848
|
+
|
|
849
|
+
async def describe_instance_storage_config_with_options_async(
|
|
850
|
+
self,
|
|
851
|
+
request: rds_ai_20250507_models.DescribeInstanceStorageConfigRequest,
|
|
852
|
+
runtime: util_models.RuntimeOptions,
|
|
853
|
+
) -> rds_ai_20250507_models.DescribeInstanceStorageConfigResponse:
|
|
854
|
+
"""
|
|
855
|
+
@summary 查看实例存储配置
|
|
856
|
+
|
|
857
|
+
@param request: DescribeInstanceStorageConfigRequest
|
|
858
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
859
|
+
@return: DescribeInstanceStorageConfigResponse
|
|
860
|
+
"""
|
|
861
|
+
UtilClient.validate_model(request)
|
|
862
|
+
query = {}
|
|
863
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
864
|
+
query['InstanceName'] = request.instance_name
|
|
865
|
+
if not UtilClient.is_unset(request.region_id):
|
|
866
|
+
query['RegionId'] = request.region_id
|
|
867
|
+
req = open_api_models.OpenApiRequest(
|
|
868
|
+
query=OpenApiUtilClient.query(query)
|
|
869
|
+
)
|
|
870
|
+
params = open_api_models.Params(
|
|
871
|
+
action='DescribeInstanceStorageConfig',
|
|
872
|
+
version='2025-05-07',
|
|
873
|
+
protocol='HTTPS',
|
|
874
|
+
pathname='/',
|
|
875
|
+
method='POST',
|
|
876
|
+
auth_type='AK',
|
|
877
|
+
style='RPC',
|
|
878
|
+
req_body_type='formData',
|
|
879
|
+
body_type='json'
|
|
880
|
+
)
|
|
881
|
+
return TeaCore.from_map(
|
|
882
|
+
rds_ai_20250507_models.DescribeInstanceStorageConfigResponse(),
|
|
883
|
+
await self.call_api_async(params, req, runtime)
|
|
884
|
+
)
|
|
885
|
+
|
|
886
|
+
def describe_instance_storage_config(
|
|
887
|
+
self,
|
|
888
|
+
request: rds_ai_20250507_models.DescribeInstanceStorageConfigRequest,
|
|
889
|
+
) -> rds_ai_20250507_models.DescribeInstanceStorageConfigResponse:
|
|
890
|
+
"""
|
|
891
|
+
@summary 查看实例存储配置
|
|
892
|
+
|
|
893
|
+
@param request: DescribeInstanceStorageConfigRequest
|
|
894
|
+
@return: DescribeInstanceStorageConfigResponse
|
|
895
|
+
"""
|
|
896
|
+
runtime = util_models.RuntimeOptions()
|
|
897
|
+
return self.describe_instance_storage_config_with_options(request, runtime)
|
|
898
|
+
|
|
899
|
+
async def describe_instance_storage_config_async(
|
|
900
|
+
self,
|
|
901
|
+
request: rds_ai_20250507_models.DescribeInstanceStorageConfigRequest,
|
|
902
|
+
) -> rds_ai_20250507_models.DescribeInstanceStorageConfigResponse:
|
|
903
|
+
"""
|
|
904
|
+
@summary 查看实例存储配置
|
|
905
|
+
|
|
906
|
+
@param request: DescribeInstanceStorageConfigRequest
|
|
907
|
+
@return: DescribeInstanceStorageConfigResponse
|
|
908
|
+
"""
|
|
909
|
+
runtime = util_models.RuntimeOptions()
|
|
910
|
+
return await self.describe_instance_storage_config_with_options_async(request, runtime)
|
|
911
|
+
|
|
912
|
+
def modify_instance_auth_config_with_options(
|
|
913
|
+
self,
|
|
914
|
+
tmp_req: rds_ai_20250507_models.ModifyInstanceAuthConfigRequest,
|
|
915
|
+
runtime: util_models.RuntimeOptions,
|
|
916
|
+
) -> rds_ai_20250507_models.ModifyInstanceAuthConfigResponse:
|
|
917
|
+
"""
|
|
918
|
+
@summary 修改Supabase Auth相关配置
|
|
919
|
+
|
|
920
|
+
@param tmp_req: ModifyInstanceAuthConfigRequest
|
|
921
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
922
|
+
@return: ModifyInstanceAuthConfigResponse
|
|
923
|
+
"""
|
|
924
|
+
UtilClient.validate_model(tmp_req)
|
|
925
|
+
request = rds_ai_20250507_models.ModifyInstanceAuthConfigShrinkRequest()
|
|
926
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
927
|
+
if not UtilClient.is_unset(tmp_req.config_list):
|
|
928
|
+
request.config_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.config_list, 'ConfigList', 'json')
|
|
929
|
+
query = {}
|
|
930
|
+
if not UtilClient.is_unset(request.config_list_shrink):
|
|
931
|
+
query['ConfigList'] = request.config_list_shrink
|
|
932
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
933
|
+
query['InstanceName'] = request.instance_name
|
|
934
|
+
if not UtilClient.is_unset(request.region_id):
|
|
935
|
+
query['RegionId'] = request.region_id
|
|
936
|
+
req = open_api_models.OpenApiRequest(
|
|
937
|
+
query=OpenApiUtilClient.query(query)
|
|
938
|
+
)
|
|
939
|
+
params = open_api_models.Params(
|
|
940
|
+
action='ModifyInstanceAuthConfig',
|
|
941
|
+
version='2025-05-07',
|
|
942
|
+
protocol='HTTPS',
|
|
943
|
+
pathname='/',
|
|
944
|
+
method='POST',
|
|
945
|
+
auth_type='AK',
|
|
946
|
+
style='RPC',
|
|
947
|
+
req_body_type='formData',
|
|
948
|
+
body_type='json'
|
|
949
|
+
)
|
|
950
|
+
return TeaCore.from_map(
|
|
951
|
+
rds_ai_20250507_models.ModifyInstanceAuthConfigResponse(),
|
|
952
|
+
self.call_api(params, req, runtime)
|
|
953
|
+
)
|
|
954
|
+
|
|
955
|
+
async def modify_instance_auth_config_with_options_async(
|
|
956
|
+
self,
|
|
957
|
+
tmp_req: rds_ai_20250507_models.ModifyInstanceAuthConfigRequest,
|
|
958
|
+
runtime: util_models.RuntimeOptions,
|
|
959
|
+
) -> rds_ai_20250507_models.ModifyInstanceAuthConfigResponse:
|
|
960
|
+
"""
|
|
961
|
+
@summary 修改Supabase Auth相关配置
|
|
962
|
+
|
|
963
|
+
@param tmp_req: ModifyInstanceAuthConfigRequest
|
|
964
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
965
|
+
@return: ModifyInstanceAuthConfigResponse
|
|
966
|
+
"""
|
|
967
|
+
UtilClient.validate_model(tmp_req)
|
|
968
|
+
request = rds_ai_20250507_models.ModifyInstanceAuthConfigShrinkRequest()
|
|
969
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
970
|
+
if not UtilClient.is_unset(tmp_req.config_list):
|
|
971
|
+
request.config_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.config_list, 'ConfigList', 'json')
|
|
972
|
+
query = {}
|
|
973
|
+
if not UtilClient.is_unset(request.config_list_shrink):
|
|
974
|
+
query['ConfigList'] = request.config_list_shrink
|
|
975
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
976
|
+
query['InstanceName'] = request.instance_name
|
|
977
|
+
if not UtilClient.is_unset(request.region_id):
|
|
978
|
+
query['RegionId'] = request.region_id
|
|
979
|
+
req = open_api_models.OpenApiRequest(
|
|
980
|
+
query=OpenApiUtilClient.query(query)
|
|
981
|
+
)
|
|
982
|
+
params = open_api_models.Params(
|
|
983
|
+
action='ModifyInstanceAuthConfig',
|
|
984
|
+
version='2025-05-07',
|
|
985
|
+
protocol='HTTPS',
|
|
986
|
+
pathname='/',
|
|
987
|
+
method='POST',
|
|
988
|
+
auth_type='AK',
|
|
989
|
+
style='RPC',
|
|
990
|
+
req_body_type='formData',
|
|
991
|
+
body_type='json'
|
|
992
|
+
)
|
|
993
|
+
return TeaCore.from_map(
|
|
994
|
+
rds_ai_20250507_models.ModifyInstanceAuthConfigResponse(),
|
|
995
|
+
await self.call_api_async(params, req, runtime)
|
|
996
|
+
)
|
|
997
|
+
|
|
998
|
+
def modify_instance_auth_config(
|
|
999
|
+
self,
|
|
1000
|
+
request: rds_ai_20250507_models.ModifyInstanceAuthConfigRequest,
|
|
1001
|
+
) -> rds_ai_20250507_models.ModifyInstanceAuthConfigResponse:
|
|
1002
|
+
"""
|
|
1003
|
+
@summary 修改Supabase Auth相关配置
|
|
1004
|
+
|
|
1005
|
+
@param request: ModifyInstanceAuthConfigRequest
|
|
1006
|
+
@return: ModifyInstanceAuthConfigResponse
|
|
1007
|
+
"""
|
|
1008
|
+
runtime = util_models.RuntimeOptions()
|
|
1009
|
+
return self.modify_instance_auth_config_with_options(request, runtime)
|
|
1010
|
+
|
|
1011
|
+
async def modify_instance_auth_config_async(
|
|
1012
|
+
self,
|
|
1013
|
+
request: rds_ai_20250507_models.ModifyInstanceAuthConfigRequest,
|
|
1014
|
+
) -> rds_ai_20250507_models.ModifyInstanceAuthConfigResponse:
|
|
1015
|
+
"""
|
|
1016
|
+
@summary 修改Supabase Auth相关配置
|
|
1017
|
+
|
|
1018
|
+
@param request: ModifyInstanceAuthConfigRequest
|
|
1019
|
+
@return: ModifyInstanceAuthConfigResponse
|
|
1020
|
+
"""
|
|
1021
|
+
runtime = util_models.RuntimeOptions()
|
|
1022
|
+
return await self.modify_instance_auth_config_with_options_async(request, runtime)
|
|
1023
|
+
|
|
812
1024
|
def modify_instance_ip_whitelist_with_options(
|
|
813
1025
|
self,
|
|
814
1026
|
request: rds_ai_20250507_models.ModifyInstanceIpWhitelistRequest,
|
|
@@ -924,3 +1136,523 @@ class Client(OpenApiClient):
|
|
|
924
1136
|
"""
|
|
925
1137
|
runtime = util_models.RuntimeOptions()
|
|
926
1138
|
return await self.modify_instance_ip_whitelist_with_options_async(request, runtime)
|
|
1139
|
+
|
|
1140
|
+
def modify_instance_storage_config_with_options(
|
|
1141
|
+
self,
|
|
1142
|
+
tmp_req: rds_ai_20250507_models.ModifyInstanceStorageConfigRequest,
|
|
1143
|
+
runtime: util_models.RuntimeOptions,
|
|
1144
|
+
) -> rds_ai_20250507_models.ModifyInstanceStorageConfigResponse:
|
|
1145
|
+
"""
|
|
1146
|
+
@summary 修改实例存储配置
|
|
1147
|
+
|
|
1148
|
+
@param tmp_req: ModifyInstanceStorageConfigRequest
|
|
1149
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1150
|
+
@return: ModifyInstanceStorageConfigResponse
|
|
1151
|
+
"""
|
|
1152
|
+
UtilClient.validate_model(tmp_req)
|
|
1153
|
+
request = rds_ai_20250507_models.ModifyInstanceStorageConfigShrinkRequest()
|
|
1154
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
1155
|
+
if not UtilClient.is_unset(tmp_req.config_list):
|
|
1156
|
+
request.config_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.config_list, 'ConfigList', 'json')
|
|
1157
|
+
query = {}
|
|
1158
|
+
if not UtilClient.is_unset(request.client_token):
|
|
1159
|
+
query['ClientToken'] = request.client_token
|
|
1160
|
+
if not UtilClient.is_unset(request.config_list_shrink):
|
|
1161
|
+
query['ConfigList'] = request.config_list_shrink
|
|
1162
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
1163
|
+
query['InstanceName'] = request.instance_name
|
|
1164
|
+
if not UtilClient.is_unset(request.region_id):
|
|
1165
|
+
query['RegionId'] = request.region_id
|
|
1166
|
+
req = open_api_models.OpenApiRequest(
|
|
1167
|
+
query=OpenApiUtilClient.query(query)
|
|
1168
|
+
)
|
|
1169
|
+
params = open_api_models.Params(
|
|
1170
|
+
action='ModifyInstanceStorageConfig',
|
|
1171
|
+
version='2025-05-07',
|
|
1172
|
+
protocol='HTTPS',
|
|
1173
|
+
pathname='/',
|
|
1174
|
+
method='POST',
|
|
1175
|
+
auth_type='AK',
|
|
1176
|
+
style='RPC',
|
|
1177
|
+
req_body_type='formData',
|
|
1178
|
+
body_type='json'
|
|
1179
|
+
)
|
|
1180
|
+
return TeaCore.from_map(
|
|
1181
|
+
rds_ai_20250507_models.ModifyInstanceStorageConfigResponse(),
|
|
1182
|
+
self.call_api(params, req, runtime)
|
|
1183
|
+
)
|
|
1184
|
+
|
|
1185
|
+
async def modify_instance_storage_config_with_options_async(
|
|
1186
|
+
self,
|
|
1187
|
+
tmp_req: rds_ai_20250507_models.ModifyInstanceStorageConfigRequest,
|
|
1188
|
+
runtime: util_models.RuntimeOptions,
|
|
1189
|
+
) -> rds_ai_20250507_models.ModifyInstanceStorageConfigResponse:
|
|
1190
|
+
"""
|
|
1191
|
+
@summary 修改实例存储配置
|
|
1192
|
+
|
|
1193
|
+
@param tmp_req: ModifyInstanceStorageConfigRequest
|
|
1194
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1195
|
+
@return: ModifyInstanceStorageConfigResponse
|
|
1196
|
+
"""
|
|
1197
|
+
UtilClient.validate_model(tmp_req)
|
|
1198
|
+
request = rds_ai_20250507_models.ModifyInstanceStorageConfigShrinkRequest()
|
|
1199
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
1200
|
+
if not UtilClient.is_unset(tmp_req.config_list):
|
|
1201
|
+
request.config_list_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.config_list, 'ConfigList', 'json')
|
|
1202
|
+
query = {}
|
|
1203
|
+
if not UtilClient.is_unset(request.client_token):
|
|
1204
|
+
query['ClientToken'] = request.client_token
|
|
1205
|
+
if not UtilClient.is_unset(request.config_list_shrink):
|
|
1206
|
+
query['ConfigList'] = request.config_list_shrink
|
|
1207
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
1208
|
+
query['InstanceName'] = request.instance_name
|
|
1209
|
+
if not UtilClient.is_unset(request.region_id):
|
|
1210
|
+
query['RegionId'] = request.region_id
|
|
1211
|
+
req = open_api_models.OpenApiRequest(
|
|
1212
|
+
query=OpenApiUtilClient.query(query)
|
|
1213
|
+
)
|
|
1214
|
+
params = open_api_models.Params(
|
|
1215
|
+
action='ModifyInstanceStorageConfig',
|
|
1216
|
+
version='2025-05-07',
|
|
1217
|
+
protocol='HTTPS',
|
|
1218
|
+
pathname='/',
|
|
1219
|
+
method='POST',
|
|
1220
|
+
auth_type='AK',
|
|
1221
|
+
style='RPC',
|
|
1222
|
+
req_body_type='formData',
|
|
1223
|
+
body_type='json'
|
|
1224
|
+
)
|
|
1225
|
+
return TeaCore.from_map(
|
|
1226
|
+
rds_ai_20250507_models.ModifyInstanceStorageConfigResponse(),
|
|
1227
|
+
await self.call_api_async(params, req, runtime)
|
|
1228
|
+
)
|
|
1229
|
+
|
|
1230
|
+
def modify_instance_storage_config(
|
|
1231
|
+
self,
|
|
1232
|
+
request: rds_ai_20250507_models.ModifyInstanceStorageConfigRequest,
|
|
1233
|
+
) -> rds_ai_20250507_models.ModifyInstanceStorageConfigResponse:
|
|
1234
|
+
"""
|
|
1235
|
+
@summary 修改实例存储配置
|
|
1236
|
+
|
|
1237
|
+
@param request: ModifyInstanceStorageConfigRequest
|
|
1238
|
+
@return: ModifyInstanceStorageConfigResponse
|
|
1239
|
+
"""
|
|
1240
|
+
runtime = util_models.RuntimeOptions()
|
|
1241
|
+
return self.modify_instance_storage_config_with_options(request, runtime)
|
|
1242
|
+
|
|
1243
|
+
async def modify_instance_storage_config_async(
|
|
1244
|
+
self,
|
|
1245
|
+
request: rds_ai_20250507_models.ModifyInstanceStorageConfigRequest,
|
|
1246
|
+
) -> rds_ai_20250507_models.ModifyInstanceStorageConfigResponse:
|
|
1247
|
+
"""
|
|
1248
|
+
@summary 修改实例存储配置
|
|
1249
|
+
|
|
1250
|
+
@param request: ModifyInstanceStorageConfigRequest
|
|
1251
|
+
@return: ModifyInstanceStorageConfigResponse
|
|
1252
|
+
"""
|
|
1253
|
+
runtime = util_models.RuntimeOptions()
|
|
1254
|
+
return await self.modify_instance_storage_config_with_options_async(request, runtime)
|
|
1255
|
+
|
|
1256
|
+
def reset_instance_password_with_options(
|
|
1257
|
+
self,
|
|
1258
|
+
request: rds_ai_20250507_models.ResetInstancePasswordRequest,
|
|
1259
|
+
runtime: util_models.RuntimeOptions,
|
|
1260
|
+
) -> rds_ai_20250507_models.ResetInstancePasswordResponse:
|
|
1261
|
+
"""
|
|
1262
|
+
@summary 重置实例密码
|
|
1263
|
+
|
|
1264
|
+
@param request: ResetInstancePasswordRequest
|
|
1265
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1266
|
+
@return: ResetInstancePasswordResponse
|
|
1267
|
+
"""
|
|
1268
|
+
UtilClient.validate_model(request)
|
|
1269
|
+
query = {}
|
|
1270
|
+
if not UtilClient.is_unset(request.dashboard_password):
|
|
1271
|
+
query['DashboardPassword'] = request.dashboard_password
|
|
1272
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
1273
|
+
query['InstanceName'] = request.instance_name
|
|
1274
|
+
if not UtilClient.is_unset(request.region_id):
|
|
1275
|
+
query['RegionId'] = request.region_id
|
|
1276
|
+
req = open_api_models.OpenApiRequest(
|
|
1277
|
+
query=OpenApiUtilClient.query(query)
|
|
1278
|
+
)
|
|
1279
|
+
params = open_api_models.Params(
|
|
1280
|
+
action='ResetInstancePassword',
|
|
1281
|
+
version='2025-05-07',
|
|
1282
|
+
protocol='HTTPS',
|
|
1283
|
+
pathname='/',
|
|
1284
|
+
method='POST',
|
|
1285
|
+
auth_type='AK',
|
|
1286
|
+
style='RPC',
|
|
1287
|
+
req_body_type='formData',
|
|
1288
|
+
body_type='json'
|
|
1289
|
+
)
|
|
1290
|
+
return TeaCore.from_map(
|
|
1291
|
+
rds_ai_20250507_models.ResetInstancePasswordResponse(),
|
|
1292
|
+
self.call_api(params, req, runtime)
|
|
1293
|
+
)
|
|
1294
|
+
|
|
1295
|
+
async def reset_instance_password_with_options_async(
|
|
1296
|
+
self,
|
|
1297
|
+
request: rds_ai_20250507_models.ResetInstancePasswordRequest,
|
|
1298
|
+
runtime: util_models.RuntimeOptions,
|
|
1299
|
+
) -> rds_ai_20250507_models.ResetInstancePasswordResponse:
|
|
1300
|
+
"""
|
|
1301
|
+
@summary 重置实例密码
|
|
1302
|
+
|
|
1303
|
+
@param request: ResetInstancePasswordRequest
|
|
1304
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1305
|
+
@return: ResetInstancePasswordResponse
|
|
1306
|
+
"""
|
|
1307
|
+
UtilClient.validate_model(request)
|
|
1308
|
+
query = {}
|
|
1309
|
+
if not UtilClient.is_unset(request.dashboard_password):
|
|
1310
|
+
query['DashboardPassword'] = request.dashboard_password
|
|
1311
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
1312
|
+
query['InstanceName'] = request.instance_name
|
|
1313
|
+
if not UtilClient.is_unset(request.region_id):
|
|
1314
|
+
query['RegionId'] = request.region_id
|
|
1315
|
+
req = open_api_models.OpenApiRequest(
|
|
1316
|
+
query=OpenApiUtilClient.query(query)
|
|
1317
|
+
)
|
|
1318
|
+
params = open_api_models.Params(
|
|
1319
|
+
action='ResetInstancePassword',
|
|
1320
|
+
version='2025-05-07',
|
|
1321
|
+
protocol='HTTPS',
|
|
1322
|
+
pathname='/',
|
|
1323
|
+
method='POST',
|
|
1324
|
+
auth_type='AK',
|
|
1325
|
+
style='RPC',
|
|
1326
|
+
req_body_type='formData',
|
|
1327
|
+
body_type='json'
|
|
1328
|
+
)
|
|
1329
|
+
return TeaCore.from_map(
|
|
1330
|
+
rds_ai_20250507_models.ResetInstancePasswordResponse(),
|
|
1331
|
+
await self.call_api_async(params, req, runtime)
|
|
1332
|
+
)
|
|
1333
|
+
|
|
1334
|
+
def reset_instance_password(
|
|
1335
|
+
self,
|
|
1336
|
+
request: rds_ai_20250507_models.ResetInstancePasswordRequest,
|
|
1337
|
+
) -> rds_ai_20250507_models.ResetInstancePasswordResponse:
|
|
1338
|
+
"""
|
|
1339
|
+
@summary 重置实例密码
|
|
1340
|
+
|
|
1341
|
+
@param request: ResetInstancePasswordRequest
|
|
1342
|
+
@return: ResetInstancePasswordResponse
|
|
1343
|
+
"""
|
|
1344
|
+
runtime = util_models.RuntimeOptions()
|
|
1345
|
+
return self.reset_instance_password_with_options(request, runtime)
|
|
1346
|
+
|
|
1347
|
+
async def reset_instance_password_async(
|
|
1348
|
+
self,
|
|
1349
|
+
request: rds_ai_20250507_models.ResetInstancePasswordRequest,
|
|
1350
|
+
) -> rds_ai_20250507_models.ResetInstancePasswordResponse:
|
|
1351
|
+
"""
|
|
1352
|
+
@summary 重置实例密码
|
|
1353
|
+
|
|
1354
|
+
@param request: ResetInstancePasswordRequest
|
|
1355
|
+
@return: ResetInstancePasswordResponse
|
|
1356
|
+
"""
|
|
1357
|
+
runtime = util_models.RuntimeOptions()
|
|
1358
|
+
return await self.reset_instance_password_with_options_async(request, runtime)
|
|
1359
|
+
|
|
1360
|
+
def restart_instance_with_options(
|
|
1361
|
+
self,
|
|
1362
|
+
request: rds_ai_20250507_models.RestartInstanceRequest,
|
|
1363
|
+
runtime: util_models.RuntimeOptions,
|
|
1364
|
+
) -> rds_ai_20250507_models.RestartInstanceResponse:
|
|
1365
|
+
"""
|
|
1366
|
+
@summary 重启实例
|
|
1367
|
+
|
|
1368
|
+
@param request: RestartInstanceRequest
|
|
1369
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1370
|
+
@return: RestartInstanceResponse
|
|
1371
|
+
"""
|
|
1372
|
+
UtilClient.validate_model(request)
|
|
1373
|
+
query = {}
|
|
1374
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
1375
|
+
query['InstanceName'] = request.instance_name
|
|
1376
|
+
if not UtilClient.is_unset(request.region_id):
|
|
1377
|
+
query['RegionId'] = request.region_id
|
|
1378
|
+
req = open_api_models.OpenApiRequest(
|
|
1379
|
+
query=OpenApiUtilClient.query(query)
|
|
1380
|
+
)
|
|
1381
|
+
params = open_api_models.Params(
|
|
1382
|
+
action='RestartInstance',
|
|
1383
|
+
version='2025-05-07',
|
|
1384
|
+
protocol='HTTPS',
|
|
1385
|
+
pathname='/',
|
|
1386
|
+
method='POST',
|
|
1387
|
+
auth_type='AK',
|
|
1388
|
+
style='RPC',
|
|
1389
|
+
req_body_type='formData',
|
|
1390
|
+
body_type='json'
|
|
1391
|
+
)
|
|
1392
|
+
return TeaCore.from_map(
|
|
1393
|
+
rds_ai_20250507_models.RestartInstanceResponse(),
|
|
1394
|
+
self.call_api(params, req, runtime)
|
|
1395
|
+
)
|
|
1396
|
+
|
|
1397
|
+
async def restart_instance_with_options_async(
|
|
1398
|
+
self,
|
|
1399
|
+
request: rds_ai_20250507_models.RestartInstanceRequest,
|
|
1400
|
+
runtime: util_models.RuntimeOptions,
|
|
1401
|
+
) -> rds_ai_20250507_models.RestartInstanceResponse:
|
|
1402
|
+
"""
|
|
1403
|
+
@summary 重启实例
|
|
1404
|
+
|
|
1405
|
+
@param request: RestartInstanceRequest
|
|
1406
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1407
|
+
@return: RestartInstanceResponse
|
|
1408
|
+
"""
|
|
1409
|
+
UtilClient.validate_model(request)
|
|
1410
|
+
query = {}
|
|
1411
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
1412
|
+
query['InstanceName'] = request.instance_name
|
|
1413
|
+
if not UtilClient.is_unset(request.region_id):
|
|
1414
|
+
query['RegionId'] = request.region_id
|
|
1415
|
+
req = open_api_models.OpenApiRequest(
|
|
1416
|
+
query=OpenApiUtilClient.query(query)
|
|
1417
|
+
)
|
|
1418
|
+
params = open_api_models.Params(
|
|
1419
|
+
action='RestartInstance',
|
|
1420
|
+
version='2025-05-07',
|
|
1421
|
+
protocol='HTTPS',
|
|
1422
|
+
pathname='/',
|
|
1423
|
+
method='POST',
|
|
1424
|
+
auth_type='AK',
|
|
1425
|
+
style='RPC',
|
|
1426
|
+
req_body_type='formData',
|
|
1427
|
+
body_type='json'
|
|
1428
|
+
)
|
|
1429
|
+
return TeaCore.from_map(
|
|
1430
|
+
rds_ai_20250507_models.RestartInstanceResponse(),
|
|
1431
|
+
await self.call_api_async(params, req, runtime)
|
|
1432
|
+
)
|
|
1433
|
+
|
|
1434
|
+
def restart_instance(
|
|
1435
|
+
self,
|
|
1436
|
+
request: rds_ai_20250507_models.RestartInstanceRequest,
|
|
1437
|
+
) -> rds_ai_20250507_models.RestartInstanceResponse:
|
|
1438
|
+
"""
|
|
1439
|
+
@summary 重启实例
|
|
1440
|
+
|
|
1441
|
+
@param request: RestartInstanceRequest
|
|
1442
|
+
@return: RestartInstanceResponse
|
|
1443
|
+
"""
|
|
1444
|
+
runtime = util_models.RuntimeOptions()
|
|
1445
|
+
return self.restart_instance_with_options(request, runtime)
|
|
1446
|
+
|
|
1447
|
+
async def restart_instance_async(
|
|
1448
|
+
self,
|
|
1449
|
+
request: rds_ai_20250507_models.RestartInstanceRequest,
|
|
1450
|
+
) -> rds_ai_20250507_models.RestartInstanceResponse:
|
|
1451
|
+
"""
|
|
1452
|
+
@summary 重启实例
|
|
1453
|
+
|
|
1454
|
+
@param request: RestartInstanceRequest
|
|
1455
|
+
@return: RestartInstanceResponse
|
|
1456
|
+
"""
|
|
1457
|
+
runtime = util_models.RuntimeOptions()
|
|
1458
|
+
return await self.restart_instance_with_options_async(request, runtime)
|
|
1459
|
+
|
|
1460
|
+
def start_instance_with_options(
|
|
1461
|
+
self,
|
|
1462
|
+
request: rds_ai_20250507_models.StartInstanceRequest,
|
|
1463
|
+
runtime: util_models.RuntimeOptions,
|
|
1464
|
+
) -> rds_ai_20250507_models.StartInstanceResponse:
|
|
1465
|
+
"""
|
|
1466
|
+
@summary 启动实例
|
|
1467
|
+
|
|
1468
|
+
@param request: StartInstanceRequest
|
|
1469
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1470
|
+
@return: StartInstanceResponse
|
|
1471
|
+
"""
|
|
1472
|
+
UtilClient.validate_model(request)
|
|
1473
|
+
query = {}
|
|
1474
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
1475
|
+
query['InstanceName'] = request.instance_name
|
|
1476
|
+
if not UtilClient.is_unset(request.region_id):
|
|
1477
|
+
query['RegionId'] = request.region_id
|
|
1478
|
+
req = open_api_models.OpenApiRequest(
|
|
1479
|
+
query=OpenApiUtilClient.query(query)
|
|
1480
|
+
)
|
|
1481
|
+
params = open_api_models.Params(
|
|
1482
|
+
action='StartInstance',
|
|
1483
|
+
version='2025-05-07',
|
|
1484
|
+
protocol='HTTPS',
|
|
1485
|
+
pathname='/',
|
|
1486
|
+
method='POST',
|
|
1487
|
+
auth_type='AK',
|
|
1488
|
+
style='RPC',
|
|
1489
|
+
req_body_type='formData',
|
|
1490
|
+
body_type='json'
|
|
1491
|
+
)
|
|
1492
|
+
return TeaCore.from_map(
|
|
1493
|
+
rds_ai_20250507_models.StartInstanceResponse(),
|
|
1494
|
+
self.call_api(params, req, runtime)
|
|
1495
|
+
)
|
|
1496
|
+
|
|
1497
|
+
async def start_instance_with_options_async(
|
|
1498
|
+
self,
|
|
1499
|
+
request: rds_ai_20250507_models.StartInstanceRequest,
|
|
1500
|
+
runtime: util_models.RuntimeOptions,
|
|
1501
|
+
) -> rds_ai_20250507_models.StartInstanceResponse:
|
|
1502
|
+
"""
|
|
1503
|
+
@summary 启动实例
|
|
1504
|
+
|
|
1505
|
+
@param request: StartInstanceRequest
|
|
1506
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1507
|
+
@return: StartInstanceResponse
|
|
1508
|
+
"""
|
|
1509
|
+
UtilClient.validate_model(request)
|
|
1510
|
+
query = {}
|
|
1511
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
1512
|
+
query['InstanceName'] = request.instance_name
|
|
1513
|
+
if not UtilClient.is_unset(request.region_id):
|
|
1514
|
+
query['RegionId'] = request.region_id
|
|
1515
|
+
req = open_api_models.OpenApiRequest(
|
|
1516
|
+
query=OpenApiUtilClient.query(query)
|
|
1517
|
+
)
|
|
1518
|
+
params = open_api_models.Params(
|
|
1519
|
+
action='StartInstance',
|
|
1520
|
+
version='2025-05-07',
|
|
1521
|
+
protocol='HTTPS',
|
|
1522
|
+
pathname='/',
|
|
1523
|
+
method='POST',
|
|
1524
|
+
auth_type='AK',
|
|
1525
|
+
style='RPC',
|
|
1526
|
+
req_body_type='formData',
|
|
1527
|
+
body_type='json'
|
|
1528
|
+
)
|
|
1529
|
+
return TeaCore.from_map(
|
|
1530
|
+
rds_ai_20250507_models.StartInstanceResponse(),
|
|
1531
|
+
await self.call_api_async(params, req, runtime)
|
|
1532
|
+
)
|
|
1533
|
+
|
|
1534
|
+
def start_instance(
|
|
1535
|
+
self,
|
|
1536
|
+
request: rds_ai_20250507_models.StartInstanceRequest,
|
|
1537
|
+
) -> rds_ai_20250507_models.StartInstanceResponse:
|
|
1538
|
+
"""
|
|
1539
|
+
@summary 启动实例
|
|
1540
|
+
|
|
1541
|
+
@param request: StartInstanceRequest
|
|
1542
|
+
@return: StartInstanceResponse
|
|
1543
|
+
"""
|
|
1544
|
+
runtime = util_models.RuntimeOptions()
|
|
1545
|
+
return self.start_instance_with_options(request, runtime)
|
|
1546
|
+
|
|
1547
|
+
async def start_instance_async(
|
|
1548
|
+
self,
|
|
1549
|
+
request: rds_ai_20250507_models.StartInstanceRequest,
|
|
1550
|
+
) -> rds_ai_20250507_models.StartInstanceResponse:
|
|
1551
|
+
"""
|
|
1552
|
+
@summary 启动实例
|
|
1553
|
+
|
|
1554
|
+
@param request: StartInstanceRequest
|
|
1555
|
+
@return: StartInstanceResponse
|
|
1556
|
+
"""
|
|
1557
|
+
runtime = util_models.RuntimeOptions()
|
|
1558
|
+
return await self.start_instance_with_options_async(request, runtime)
|
|
1559
|
+
|
|
1560
|
+
def stop_instance_with_options(
|
|
1561
|
+
self,
|
|
1562
|
+
request: rds_ai_20250507_models.StopInstanceRequest,
|
|
1563
|
+
runtime: util_models.RuntimeOptions,
|
|
1564
|
+
) -> rds_ai_20250507_models.StopInstanceResponse:
|
|
1565
|
+
"""
|
|
1566
|
+
@summary 暂停实例
|
|
1567
|
+
|
|
1568
|
+
@param request: StopInstanceRequest
|
|
1569
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1570
|
+
@return: StopInstanceResponse
|
|
1571
|
+
"""
|
|
1572
|
+
UtilClient.validate_model(request)
|
|
1573
|
+
query = {}
|
|
1574
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
1575
|
+
query['InstanceName'] = request.instance_name
|
|
1576
|
+
if not UtilClient.is_unset(request.region_id):
|
|
1577
|
+
query['RegionId'] = request.region_id
|
|
1578
|
+
req = open_api_models.OpenApiRequest(
|
|
1579
|
+
query=OpenApiUtilClient.query(query)
|
|
1580
|
+
)
|
|
1581
|
+
params = open_api_models.Params(
|
|
1582
|
+
action='StopInstance',
|
|
1583
|
+
version='2025-05-07',
|
|
1584
|
+
protocol='HTTPS',
|
|
1585
|
+
pathname='/',
|
|
1586
|
+
method='POST',
|
|
1587
|
+
auth_type='AK',
|
|
1588
|
+
style='RPC',
|
|
1589
|
+
req_body_type='formData',
|
|
1590
|
+
body_type='json'
|
|
1591
|
+
)
|
|
1592
|
+
return TeaCore.from_map(
|
|
1593
|
+
rds_ai_20250507_models.StopInstanceResponse(),
|
|
1594
|
+
self.call_api(params, req, runtime)
|
|
1595
|
+
)
|
|
1596
|
+
|
|
1597
|
+
async def stop_instance_with_options_async(
|
|
1598
|
+
self,
|
|
1599
|
+
request: rds_ai_20250507_models.StopInstanceRequest,
|
|
1600
|
+
runtime: util_models.RuntimeOptions,
|
|
1601
|
+
) -> rds_ai_20250507_models.StopInstanceResponse:
|
|
1602
|
+
"""
|
|
1603
|
+
@summary 暂停实例
|
|
1604
|
+
|
|
1605
|
+
@param request: StopInstanceRequest
|
|
1606
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1607
|
+
@return: StopInstanceResponse
|
|
1608
|
+
"""
|
|
1609
|
+
UtilClient.validate_model(request)
|
|
1610
|
+
query = {}
|
|
1611
|
+
if not UtilClient.is_unset(request.instance_name):
|
|
1612
|
+
query['InstanceName'] = request.instance_name
|
|
1613
|
+
if not UtilClient.is_unset(request.region_id):
|
|
1614
|
+
query['RegionId'] = request.region_id
|
|
1615
|
+
req = open_api_models.OpenApiRequest(
|
|
1616
|
+
query=OpenApiUtilClient.query(query)
|
|
1617
|
+
)
|
|
1618
|
+
params = open_api_models.Params(
|
|
1619
|
+
action='StopInstance',
|
|
1620
|
+
version='2025-05-07',
|
|
1621
|
+
protocol='HTTPS',
|
|
1622
|
+
pathname='/',
|
|
1623
|
+
method='POST',
|
|
1624
|
+
auth_type='AK',
|
|
1625
|
+
style='RPC',
|
|
1626
|
+
req_body_type='formData',
|
|
1627
|
+
body_type='json'
|
|
1628
|
+
)
|
|
1629
|
+
return TeaCore.from_map(
|
|
1630
|
+
rds_ai_20250507_models.StopInstanceResponse(),
|
|
1631
|
+
await self.call_api_async(params, req, runtime)
|
|
1632
|
+
)
|
|
1633
|
+
|
|
1634
|
+
def stop_instance(
|
|
1635
|
+
self,
|
|
1636
|
+
request: rds_ai_20250507_models.StopInstanceRequest,
|
|
1637
|
+
) -> rds_ai_20250507_models.StopInstanceResponse:
|
|
1638
|
+
"""
|
|
1639
|
+
@summary 暂停实例
|
|
1640
|
+
|
|
1641
|
+
@param request: StopInstanceRequest
|
|
1642
|
+
@return: StopInstanceResponse
|
|
1643
|
+
"""
|
|
1644
|
+
runtime = util_models.RuntimeOptions()
|
|
1645
|
+
return self.stop_instance_with_options(request, runtime)
|
|
1646
|
+
|
|
1647
|
+
async def stop_instance_async(
|
|
1648
|
+
self,
|
|
1649
|
+
request: rds_ai_20250507_models.StopInstanceRequest,
|
|
1650
|
+
) -> rds_ai_20250507_models.StopInstanceResponse:
|
|
1651
|
+
"""
|
|
1652
|
+
@summary 暂停实例
|
|
1653
|
+
|
|
1654
|
+
@param request: StopInstanceRequest
|
|
1655
|
+
@return: StopInstanceResponse
|
|
1656
|
+
"""
|
|
1657
|
+
runtime = util_models.RuntimeOptions()
|
|
1658
|
+
return await self.stop_instance_with_options_async(request, runtime)
|