alibabacloud-rds20140815 7.1.4__py3-none-any.whl → 7.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.
@@ -1 +1 @@
1
- __version__ = '7.1.4'
1
+ __version__ = '7.2.0'
@@ -2528,14 +2528,22 @@ class Client(OpenApiClient):
2528
2528
  """
2529
2529
  UtilClient.validate_model(request)
2530
2530
  query = {}
2531
+ if not UtilClient.is_unset(request.dbinstance_name):
2532
+ query['DBInstanceName'] = request.dbinstance_name
2533
+ if not UtilClient.is_unset(request.dst_dbname):
2534
+ query['DstDBName'] = request.dst_dbname
2531
2535
  if not UtilClient.is_unset(request.owner_id):
2532
2536
  query['OwnerId'] = request.owner_id
2537
+ if not UtilClient.is_unset(request.reserve_account):
2538
+ query['ReserveAccount'] = request.reserve_account
2533
2539
  if not UtilClient.is_unset(request.resource_group_id):
2534
2540
  query['ResourceGroupId'] = request.resource_group_id
2535
2541
  if not UtilClient.is_unset(request.resource_owner_account):
2536
2542
  query['ResourceOwnerAccount'] = request.resource_owner_account
2537
2543
  if not UtilClient.is_unset(request.resource_owner_id):
2538
2544
  query['ResourceOwnerId'] = request.resource_owner_id
2545
+ if not UtilClient.is_unset(request.src_dbname):
2546
+ query['SrcDBName'] = request.src_dbname
2539
2547
  req = open_api_models.OpenApiRequest(
2540
2548
  query=OpenApiUtilClient.query(query)
2541
2549
  )
@@ -2571,14 +2579,22 @@ class Client(OpenApiClient):
2571
2579
  """
2572
2580
  UtilClient.validate_model(request)
2573
2581
  query = {}
2582
+ if not UtilClient.is_unset(request.dbinstance_name):
2583
+ query['DBInstanceName'] = request.dbinstance_name
2584
+ if not UtilClient.is_unset(request.dst_dbname):
2585
+ query['DstDBName'] = request.dst_dbname
2574
2586
  if not UtilClient.is_unset(request.owner_id):
2575
2587
  query['OwnerId'] = request.owner_id
2588
+ if not UtilClient.is_unset(request.reserve_account):
2589
+ query['ReserveAccount'] = request.reserve_account
2576
2590
  if not UtilClient.is_unset(request.resource_group_id):
2577
2591
  query['ResourceGroupId'] = request.resource_group_id
2578
2592
  if not UtilClient.is_unset(request.resource_owner_account):
2579
2593
  query['ResourceOwnerAccount'] = request.resource_owner_account
2580
2594
  if not UtilClient.is_unset(request.resource_owner_id):
2581
2595
  query['ResourceOwnerId'] = request.resource_owner_id
2596
+ if not UtilClient.is_unset(request.src_dbname):
2597
+ query['SrcDBName'] = request.src_dbname
2582
2598
  req = open_api_models.OpenApiRequest(
2583
2599
  query=OpenApiUtilClient.query(query)
2584
2600
  )
@@ -20722,7 +20738,7 @@ class Client(OpenApiClient):
20722
20738
  runtime: util_models.RuntimeOptions,
20723
20739
  ) -> rds_20140815_models.DescribeHistoryEventsResponse:
20724
20740
  """
20725
- @summary 事件中心事件列表
20741
+ @summary Queries historical events in the event center.
20726
20742
 
20727
20743
  @param request: DescribeHistoryEventsRequest
20728
20744
  @param runtime: runtime options for this request RuntimeOptions
@@ -20787,7 +20803,7 @@ class Client(OpenApiClient):
20787
20803
  runtime: util_models.RuntimeOptions,
20788
20804
  ) -> rds_20140815_models.DescribeHistoryEventsResponse:
20789
20805
  """
20790
- @summary 事件中心事件列表
20806
+ @summary Queries historical events in the event center.
20791
20807
 
20792
20808
  @param request: DescribeHistoryEventsRequest
20793
20809
  @param runtime: runtime options for this request RuntimeOptions
@@ -20851,7 +20867,7 @@ class Client(OpenApiClient):
20851
20867
  request: rds_20140815_models.DescribeHistoryEventsRequest,
20852
20868
  ) -> rds_20140815_models.DescribeHistoryEventsResponse:
20853
20869
  """
20854
- @summary 事件中心事件列表
20870
+ @summary Queries historical events in the event center.
20855
20871
 
20856
20872
  @param request: DescribeHistoryEventsRequest
20857
20873
  @return: DescribeHistoryEventsResponse
@@ -20864,7 +20880,7 @@ class Client(OpenApiClient):
20864
20880
  request: rds_20140815_models.DescribeHistoryEventsRequest,
20865
20881
  ) -> rds_20140815_models.DescribeHistoryEventsResponse:
20866
20882
  """
20867
- @summary 事件中心事件列表
20883
+ @summary Queries historical events in the event center.
20868
20884
 
20869
20885
  @param request: DescribeHistoryEventsRequest
20870
20886
  @return: DescribeHistoryEventsResponse
@@ -20878,7 +20894,7 @@ class Client(OpenApiClient):
20878
20894
  runtime: util_models.RuntimeOptions,
20879
20895
  ) -> rds_20140815_models.DescribeHistoryEventsStatResponse:
20880
20896
  """
20881
- @summary Queries event statistics in the event center.
20897
+ @summary Queries the statistics of historical events in the event center.
20882
20898
 
20883
20899
  @param request: DescribeHistoryEventsStatRequest
20884
20900
  @param runtime: runtime options for this request RuntimeOptions
@@ -20921,7 +20937,7 @@ class Client(OpenApiClient):
20921
20937
  runtime: util_models.RuntimeOptions,
20922
20938
  ) -> rds_20140815_models.DescribeHistoryEventsStatResponse:
20923
20939
  """
20924
- @summary Queries event statistics in the event center.
20940
+ @summary Queries the statistics of historical events in the event center.
20925
20941
 
20926
20942
  @param request: DescribeHistoryEventsStatRequest
20927
20943
  @param runtime: runtime options for this request RuntimeOptions
@@ -20963,7 +20979,7 @@ class Client(OpenApiClient):
20963
20979
  request: rds_20140815_models.DescribeHistoryEventsStatRequest,
20964
20980
  ) -> rds_20140815_models.DescribeHistoryEventsStatResponse:
20965
20981
  """
20966
- @summary Queries event statistics in the event center.
20982
+ @summary Queries the statistics of historical events in the event center.
20967
20983
 
20968
20984
  @param request: DescribeHistoryEventsStatRequest
20969
20985
  @return: DescribeHistoryEventsStatResponse
@@ -20976,7 +20992,7 @@ class Client(OpenApiClient):
20976
20992
  request: rds_20140815_models.DescribeHistoryEventsStatRequest,
20977
20993
  ) -> rds_20140815_models.DescribeHistoryEventsStatResponse:
20978
20994
  """
20979
- @summary Queries event statistics in the event center.
20995
+ @summary Queries the statistics of historical events in the event center.
20980
20996
 
20981
20997
  @param request: DescribeHistoryEventsStatRequest
20982
20998
  @return: DescribeHistoryEventsStatResponse
@@ -27914,14 +27930,16 @@ class Client(OpenApiClient):
27914
27930
 
27915
27931
  @description ### [](#)Supported database engines
27916
27932
  MySQL
27917
- > This operation is not supported for RDS instances that run MySQL 5.7 on RDS Basic Edition.
27933
+ *\
27934
+ *Note** This operation is not supported for RDS instances that run MySQL 5.7 on RDS Basic Edition.
27918
27935
  SQL Server
27919
- > This operation is supported only for RDS instances that run SQL Server 2008 R2.
27936
+ *\
27937
+ *Note** This operation is supported only for RDS instances that run SQL Server 2008 R2.
27920
27938
  MariaDB
27921
- ### [](#)Precautions
27939
+ ### [](#)Prerequisites
27922
27940
  Slow query logs are not collected in real time and may show a latency of 6 to 8 hours.
27923
27941
  If the return result is empty, check whether the StartTime and EndTime parameters are in UTC. If yes, no slow logs are generated within the specified time range.
27924
- Starting from December 13, 2023, the optimized template algorithm is used for slow queries. As a result, different **SQLHash** values are generated for the same SQLText before and after optimization. For more information, see [[Notice\\] Optimization of the template algorithm for slow queries](~~2637024~~).
27942
+ Starting from September 01, 2024, the template algorithm for slow queries is optimized. When you call the operation, you must change the value of the **SQLHASH** parameter. For more information, see [[Notice\\] Optimization of the template algorithm for slow queries](~~2845725~~).
27925
27943
 
27926
27944
  @param request: DescribeSlowLogsRequest
27927
27945
  @param runtime: runtime options for this request RuntimeOptions
@@ -27980,14 +27998,16 @@ class Client(OpenApiClient):
27980
27998
 
27981
27999
  @description ### [](#)Supported database engines
27982
28000
  MySQL
27983
- > This operation is not supported for RDS instances that run MySQL 5.7 on RDS Basic Edition.
28001
+ *\
28002
+ *Note** This operation is not supported for RDS instances that run MySQL 5.7 on RDS Basic Edition.
27984
28003
  SQL Server
27985
- > This operation is supported only for RDS instances that run SQL Server 2008 R2.
28004
+ *\
28005
+ *Note** This operation is supported only for RDS instances that run SQL Server 2008 R2.
27986
28006
  MariaDB
27987
- ### [](#)Precautions
28007
+ ### [](#)Prerequisites
27988
28008
  Slow query logs are not collected in real time and may show a latency of 6 to 8 hours.
27989
28009
  If the return result is empty, check whether the StartTime and EndTime parameters are in UTC. If yes, no slow logs are generated within the specified time range.
27990
- Starting from December 13, 2023, the optimized template algorithm is used for slow queries. As a result, different **SQLHash** values are generated for the same SQLText before and after optimization. For more information, see [[Notice\\] Optimization of the template algorithm for slow queries](~~2637024~~).
28010
+ Starting from September 01, 2024, the template algorithm for slow queries is optimized. When you call the operation, you must change the value of the **SQLHASH** parameter. For more information, see [[Notice\\] Optimization of the template algorithm for slow queries](~~2845725~~).
27991
28011
 
27992
28012
  @param request: DescribeSlowLogsRequest
27993
28013
  @param runtime: runtime options for this request RuntimeOptions
@@ -28045,14 +28065,16 @@ class Client(OpenApiClient):
28045
28065
 
28046
28066
  @description ### [](#)Supported database engines
28047
28067
  MySQL
28048
- > This operation is not supported for RDS instances that run MySQL 5.7 on RDS Basic Edition.
28068
+ *\
28069
+ *Note** This operation is not supported for RDS instances that run MySQL 5.7 on RDS Basic Edition.
28049
28070
  SQL Server
28050
- > This operation is supported only for RDS instances that run SQL Server 2008 R2.
28071
+ *\
28072
+ *Note** This operation is supported only for RDS instances that run SQL Server 2008 R2.
28051
28073
  MariaDB
28052
- ### [](#)Precautions
28074
+ ### [](#)Prerequisites
28053
28075
  Slow query logs are not collected in real time and may show a latency of 6 to 8 hours.
28054
28076
  If the return result is empty, check whether the StartTime and EndTime parameters are in UTC. If yes, no slow logs are generated within the specified time range.
28055
- Starting from December 13, 2023, the optimized template algorithm is used for slow queries. As a result, different **SQLHash** values are generated for the same SQLText before and after optimization. For more information, see [[Notice\\] Optimization of the template algorithm for slow queries](~~2637024~~).
28077
+ Starting from September 01, 2024, the template algorithm for slow queries is optimized. When you call the operation, you must change the value of the **SQLHASH** parameter. For more information, see [[Notice\\] Optimization of the template algorithm for slow queries](~~2845725~~).
28056
28078
 
28057
28079
  @param request: DescribeSlowLogsRequest
28058
28080
  @return: DescribeSlowLogsResponse
@@ -28069,14 +28091,16 @@ class Client(OpenApiClient):
28069
28091
 
28070
28092
  @description ### [](#)Supported database engines
28071
28093
  MySQL
28072
- > This operation is not supported for RDS instances that run MySQL 5.7 on RDS Basic Edition.
28094
+ *\
28095
+ *Note** This operation is not supported for RDS instances that run MySQL 5.7 on RDS Basic Edition.
28073
28096
  SQL Server
28074
- > This operation is supported only for RDS instances that run SQL Server 2008 R2.
28097
+ *\
28098
+ *Note** This operation is supported only for RDS instances that run SQL Server 2008 R2.
28075
28099
  MariaDB
28076
- ### [](#)Precautions
28100
+ ### [](#)Prerequisites
28077
28101
  Slow query logs are not collected in real time and may show a latency of 6 to 8 hours.
28078
28102
  If the return result is empty, check whether the StartTime and EndTime parameters are in UTC. If yes, no slow logs are generated within the specified time range.
28079
- Starting from December 13, 2023, the optimized template algorithm is used for slow queries. As a result, different **SQLHash** values are generated for the same SQLText before and after optimization. For more information, see [[Notice\\] Optimization of the template algorithm for slow queries](~~2637024~~).
28103
+ Starting from September 01, 2024, the template algorithm for slow queries is optimized. When you call the operation, you must change the value of the **SQLHASH** parameter. For more information, see [[Notice\\] Optimization of the template algorithm for slow queries](~~2845725~~).
28080
28104
 
28081
28105
  @param request: DescribeSlowLogsRequest
28082
28106
  @return: DescribeSlowLogsResponse
@@ -31844,6 +31868,134 @@ class Client(OpenApiClient):
31844
31868
  runtime = util_models.RuntimeOptions()
31845
31869
  return await self.modify_adinfo_with_options_async(request, runtime)
31846
31870
 
31871
+ def modify_account_check_policy_with_options(
31872
+ self,
31873
+ request: rds_20140815_models.ModifyAccountCheckPolicyRequest,
31874
+ runtime: util_models.RuntimeOptions,
31875
+ ) -> rds_20140815_models.ModifyAccountCheckPolicyResponse:
31876
+ """
31877
+ @summary 修改账号检查策略
31878
+
31879
+ @param request: ModifyAccountCheckPolicyRequest
31880
+ @param runtime: runtime options for this request RuntimeOptions
31881
+ @return: ModifyAccountCheckPolicyResponse
31882
+ """
31883
+ UtilClient.validate_model(request)
31884
+ query = {}
31885
+ if not UtilClient.is_unset(request.account_name):
31886
+ query['AccountName'] = request.account_name
31887
+ if not UtilClient.is_unset(request.check_policy):
31888
+ query['CheckPolicy'] = request.check_policy
31889
+ if not UtilClient.is_unset(request.client_token):
31890
+ query['ClientToken'] = request.client_token
31891
+ if not UtilClient.is_unset(request.dbinstance_id):
31892
+ query['DBInstanceId'] = request.dbinstance_id
31893
+ if not UtilClient.is_unset(request.owner_account):
31894
+ query['OwnerAccount'] = request.owner_account
31895
+ if not UtilClient.is_unset(request.owner_id):
31896
+ query['OwnerId'] = request.owner_id
31897
+ if not UtilClient.is_unset(request.resource_group_id):
31898
+ query['ResourceGroupId'] = request.resource_group_id
31899
+ if not UtilClient.is_unset(request.resource_owner_account):
31900
+ query['ResourceOwnerAccount'] = request.resource_owner_account
31901
+ if not UtilClient.is_unset(request.resource_owner_id):
31902
+ query['ResourceOwnerId'] = request.resource_owner_id
31903
+ req = open_api_models.OpenApiRequest(
31904
+ query=OpenApiUtilClient.query(query)
31905
+ )
31906
+ params = open_api_models.Params(
31907
+ action='ModifyAccountCheckPolicy',
31908
+ version='2014-08-15',
31909
+ protocol='HTTPS',
31910
+ pathname='/',
31911
+ method='POST',
31912
+ auth_type='AK',
31913
+ style='RPC',
31914
+ req_body_type='formData',
31915
+ body_type='json'
31916
+ )
31917
+ return TeaCore.from_map(
31918
+ rds_20140815_models.ModifyAccountCheckPolicyResponse(),
31919
+ self.call_api(params, req, runtime)
31920
+ )
31921
+
31922
+ async def modify_account_check_policy_with_options_async(
31923
+ self,
31924
+ request: rds_20140815_models.ModifyAccountCheckPolicyRequest,
31925
+ runtime: util_models.RuntimeOptions,
31926
+ ) -> rds_20140815_models.ModifyAccountCheckPolicyResponse:
31927
+ """
31928
+ @summary 修改账号检查策略
31929
+
31930
+ @param request: ModifyAccountCheckPolicyRequest
31931
+ @param runtime: runtime options for this request RuntimeOptions
31932
+ @return: ModifyAccountCheckPolicyResponse
31933
+ """
31934
+ UtilClient.validate_model(request)
31935
+ query = {}
31936
+ if not UtilClient.is_unset(request.account_name):
31937
+ query['AccountName'] = request.account_name
31938
+ if not UtilClient.is_unset(request.check_policy):
31939
+ query['CheckPolicy'] = request.check_policy
31940
+ if not UtilClient.is_unset(request.client_token):
31941
+ query['ClientToken'] = request.client_token
31942
+ if not UtilClient.is_unset(request.dbinstance_id):
31943
+ query['DBInstanceId'] = request.dbinstance_id
31944
+ if not UtilClient.is_unset(request.owner_account):
31945
+ query['OwnerAccount'] = request.owner_account
31946
+ if not UtilClient.is_unset(request.owner_id):
31947
+ query['OwnerId'] = request.owner_id
31948
+ if not UtilClient.is_unset(request.resource_group_id):
31949
+ query['ResourceGroupId'] = request.resource_group_id
31950
+ if not UtilClient.is_unset(request.resource_owner_account):
31951
+ query['ResourceOwnerAccount'] = request.resource_owner_account
31952
+ if not UtilClient.is_unset(request.resource_owner_id):
31953
+ query['ResourceOwnerId'] = request.resource_owner_id
31954
+ req = open_api_models.OpenApiRequest(
31955
+ query=OpenApiUtilClient.query(query)
31956
+ )
31957
+ params = open_api_models.Params(
31958
+ action='ModifyAccountCheckPolicy',
31959
+ version='2014-08-15',
31960
+ protocol='HTTPS',
31961
+ pathname='/',
31962
+ method='POST',
31963
+ auth_type='AK',
31964
+ style='RPC',
31965
+ req_body_type='formData',
31966
+ body_type='json'
31967
+ )
31968
+ return TeaCore.from_map(
31969
+ rds_20140815_models.ModifyAccountCheckPolicyResponse(),
31970
+ await self.call_api_async(params, req, runtime)
31971
+ )
31972
+
31973
+ def modify_account_check_policy(
31974
+ self,
31975
+ request: rds_20140815_models.ModifyAccountCheckPolicyRequest,
31976
+ ) -> rds_20140815_models.ModifyAccountCheckPolicyResponse:
31977
+ """
31978
+ @summary 修改账号检查策略
31979
+
31980
+ @param request: ModifyAccountCheckPolicyRequest
31981
+ @return: ModifyAccountCheckPolicyResponse
31982
+ """
31983
+ runtime = util_models.RuntimeOptions()
31984
+ return self.modify_account_check_policy_with_options(request, runtime)
31985
+
31986
+ async def modify_account_check_policy_async(
31987
+ self,
31988
+ request: rds_20140815_models.ModifyAccountCheckPolicyRequest,
31989
+ ) -> rds_20140815_models.ModifyAccountCheckPolicyResponse:
31990
+ """
31991
+ @summary 修改账号检查策略
31992
+
31993
+ @param request: ModifyAccountCheckPolicyRequest
31994
+ @return: ModifyAccountCheckPolicyResponse
31995
+ """
31996
+ runtime = util_models.RuntimeOptions()
31997
+ return await self.modify_account_check_policy_with_options_async(request, runtime)
31998
+
31847
31999
  def modify_account_description_with_options(
31848
32000
  self,
31849
32001
  request: rds_20140815_models.ModifyAccountDescriptionRequest,
@@ -32108,6 +32260,130 @@ class Client(OpenApiClient):
32108
32260
  runtime = util_models.RuntimeOptions()
32109
32261
  return await self.modify_account_masking_privilege_with_options_async(request, runtime)
32110
32262
 
32263
+ def modify_account_security_policy_with_options(
32264
+ self,
32265
+ request: rds_20140815_models.ModifyAccountSecurityPolicyRequest,
32266
+ runtime: util_models.RuntimeOptions,
32267
+ ) -> rds_20140815_models.ModifyAccountSecurityPolicyResponse:
32268
+ """
32269
+ @summary 修改密码策略
32270
+
32271
+ @param request: ModifyAccountSecurityPolicyRequest
32272
+ @param runtime: runtime options for this request RuntimeOptions
32273
+ @return: ModifyAccountSecurityPolicyResponse
32274
+ """
32275
+ UtilClient.validate_model(request)
32276
+ query = {}
32277
+ if not UtilClient.is_unset(request.client_token):
32278
+ query['ClientToken'] = request.client_token
32279
+ if not UtilClient.is_unset(request.dbinstance_id):
32280
+ query['DBInstanceId'] = request.dbinstance_id
32281
+ if not UtilClient.is_unset(request.group_policy):
32282
+ query['GroupPolicy'] = request.group_policy
32283
+ if not UtilClient.is_unset(request.owner_account):
32284
+ query['OwnerAccount'] = request.owner_account
32285
+ if not UtilClient.is_unset(request.owner_id):
32286
+ query['OwnerId'] = request.owner_id
32287
+ if not UtilClient.is_unset(request.resource_group_id):
32288
+ query['ResourceGroupId'] = request.resource_group_id
32289
+ if not UtilClient.is_unset(request.resource_owner_account):
32290
+ query['ResourceOwnerAccount'] = request.resource_owner_account
32291
+ if not UtilClient.is_unset(request.resource_owner_id):
32292
+ query['ResourceOwnerId'] = request.resource_owner_id
32293
+ req = open_api_models.OpenApiRequest(
32294
+ query=OpenApiUtilClient.query(query)
32295
+ )
32296
+ params = open_api_models.Params(
32297
+ action='ModifyAccountSecurityPolicy',
32298
+ version='2014-08-15',
32299
+ protocol='HTTPS',
32300
+ pathname='/',
32301
+ method='POST',
32302
+ auth_type='AK',
32303
+ style='RPC',
32304
+ req_body_type='formData',
32305
+ body_type='json'
32306
+ )
32307
+ return TeaCore.from_map(
32308
+ rds_20140815_models.ModifyAccountSecurityPolicyResponse(),
32309
+ self.call_api(params, req, runtime)
32310
+ )
32311
+
32312
+ async def modify_account_security_policy_with_options_async(
32313
+ self,
32314
+ request: rds_20140815_models.ModifyAccountSecurityPolicyRequest,
32315
+ runtime: util_models.RuntimeOptions,
32316
+ ) -> rds_20140815_models.ModifyAccountSecurityPolicyResponse:
32317
+ """
32318
+ @summary 修改密码策略
32319
+
32320
+ @param request: ModifyAccountSecurityPolicyRequest
32321
+ @param runtime: runtime options for this request RuntimeOptions
32322
+ @return: ModifyAccountSecurityPolicyResponse
32323
+ """
32324
+ UtilClient.validate_model(request)
32325
+ query = {}
32326
+ if not UtilClient.is_unset(request.client_token):
32327
+ query['ClientToken'] = request.client_token
32328
+ if not UtilClient.is_unset(request.dbinstance_id):
32329
+ query['DBInstanceId'] = request.dbinstance_id
32330
+ if not UtilClient.is_unset(request.group_policy):
32331
+ query['GroupPolicy'] = request.group_policy
32332
+ if not UtilClient.is_unset(request.owner_account):
32333
+ query['OwnerAccount'] = request.owner_account
32334
+ if not UtilClient.is_unset(request.owner_id):
32335
+ query['OwnerId'] = request.owner_id
32336
+ if not UtilClient.is_unset(request.resource_group_id):
32337
+ query['ResourceGroupId'] = request.resource_group_id
32338
+ if not UtilClient.is_unset(request.resource_owner_account):
32339
+ query['ResourceOwnerAccount'] = request.resource_owner_account
32340
+ if not UtilClient.is_unset(request.resource_owner_id):
32341
+ query['ResourceOwnerId'] = request.resource_owner_id
32342
+ req = open_api_models.OpenApiRequest(
32343
+ query=OpenApiUtilClient.query(query)
32344
+ )
32345
+ params = open_api_models.Params(
32346
+ action='ModifyAccountSecurityPolicy',
32347
+ version='2014-08-15',
32348
+ protocol='HTTPS',
32349
+ pathname='/',
32350
+ method='POST',
32351
+ auth_type='AK',
32352
+ style='RPC',
32353
+ req_body_type='formData',
32354
+ body_type='json'
32355
+ )
32356
+ return TeaCore.from_map(
32357
+ rds_20140815_models.ModifyAccountSecurityPolicyResponse(),
32358
+ await self.call_api_async(params, req, runtime)
32359
+ )
32360
+
32361
+ def modify_account_security_policy(
32362
+ self,
32363
+ request: rds_20140815_models.ModifyAccountSecurityPolicyRequest,
32364
+ ) -> rds_20140815_models.ModifyAccountSecurityPolicyResponse:
32365
+ """
32366
+ @summary 修改密码策略
32367
+
32368
+ @param request: ModifyAccountSecurityPolicyRequest
32369
+ @return: ModifyAccountSecurityPolicyResponse
32370
+ """
32371
+ runtime = util_models.RuntimeOptions()
32372
+ return self.modify_account_security_policy_with_options(request, runtime)
32373
+
32374
+ async def modify_account_security_policy_async(
32375
+ self,
32376
+ request: rds_20140815_models.ModifyAccountSecurityPolicyRequest,
32377
+ ) -> rds_20140815_models.ModifyAccountSecurityPolicyResponse:
32378
+ """
32379
+ @summary 修改密码策略
32380
+
32381
+ @param request: ModifyAccountSecurityPolicyRequest
32382
+ @return: ModifyAccountSecurityPolicyResponse
32383
+ """
32384
+ runtime = util_models.RuntimeOptions()
32385
+ return await self.modify_account_security_policy_with_options_async(request, runtime)
32386
+
32111
32387
  def modify_action_event_policy_with_options(
32112
32388
  self,
32113
32389
  request: rds_20140815_models.ModifyActionEventPolicyRequest,
@@ -37646,7 +37922,7 @@ class Client(OpenApiClient):
37646
37922
  runtime: util_models.RuntimeOptions,
37647
37923
  ) -> rds_20140815_models.ModifyEventInfoResponse:
37648
37924
  """
37649
- @summary 事件中心修改事件信息
37925
+ @summary Modifies information about the events in the event center.
37650
37926
 
37651
37927
  @param request: ModifyEventInfoRequest
37652
37928
  @param runtime: runtime options for this request RuntimeOptions
@@ -37689,7 +37965,7 @@ class Client(OpenApiClient):
37689
37965
  runtime: util_models.RuntimeOptions,
37690
37966
  ) -> rds_20140815_models.ModifyEventInfoResponse:
37691
37967
  """
37692
- @summary 事件中心修改事件信息
37968
+ @summary Modifies information about the events in the event center.
37693
37969
 
37694
37970
  @param request: ModifyEventInfoRequest
37695
37971
  @param runtime: runtime options for this request RuntimeOptions
@@ -37731,7 +38007,7 @@ class Client(OpenApiClient):
37731
38007
  request: rds_20140815_models.ModifyEventInfoRequest,
37732
38008
  ) -> rds_20140815_models.ModifyEventInfoResponse:
37733
38009
  """
37734
- @summary 事件中心修改事件信息
38010
+ @summary Modifies information about the events in the event center.
37735
38011
 
37736
38012
  @param request: ModifyEventInfoRequest
37737
38013
  @return: ModifyEventInfoResponse
@@ -37744,7 +38020,7 @@ class Client(OpenApiClient):
37744
38020
  request: rds_20140815_models.ModifyEventInfoRequest,
37745
38021
  ) -> rds_20140815_models.ModifyEventInfoResponse:
37746
38022
  """
37747
- @summary 事件中心修改事件信息
38023
+ @summary Modifies information about the events in the event center.
37748
38024
 
37749
38025
  @param request: ModifyEventInfoRequest
37750
38026
  @return: ModifyEventInfoResponse
@@ -40422,7 +40698,7 @@ class Client(OpenApiClient):
40422
40698
  runtime: util_models.RuntimeOptions,
40423
40699
  ) -> rds_20140815_models.ModifyTaskInfoResponse:
40424
40700
  """
40425
- @summary Modifies the task information in the task center.
40701
+ @summary Modifies information about the historical tasks in the task center.
40426
40702
 
40427
40703
  @param request: ModifyTaskInfoRequest
40428
40704
  @param runtime: runtime options for this request RuntimeOptions
@@ -40471,7 +40747,7 @@ class Client(OpenApiClient):
40471
40747
  runtime: util_models.RuntimeOptions,
40472
40748
  ) -> rds_20140815_models.ModifyTaskInfoResponse:
40473
40749
  """
40474
- @summary Modifies the task information in the task center.
40750
+ @summary Modifies information about the historical tasks in the task center.
40475
40751
 
40476
40752
  @param request: ModifyTaskInfoRequest
40477
40753
  @param runtime: runtime options for this request RuntimeOptions
@@ -40519,7 +40795,7 @@ class Client(OpenApiClient):
40519
40795
  request: rds_20140815_models.ModifyTaskInfoRequest,
40520
40796
  ) -> rds_20140815_models.ModifyTaskInfoResponse:
40521
40797
  """
40522
- @summary Modifies the task information in the task center.
40798
+ @summary Modifies information about the historical tasks in the task center.
40523
40799
 
40524
40800
  @param request: ModifyTaskInfoRequest
40525
40801
  @return: ModifyTaskInfoResponse
@@ -40532,7 +40808,7 @@ class Client(OpenApiClient):
40532
40808
  request: rds_20140815_models.ModifyTaskInfoRequest,
40533
40809
  ) -> rds_20140815_models.ModifyTaskInfoResponse:
40534
40810
  """
40535
- @summary Modifies the task information in the task center.
40811
+ @summary Modifies information about the historical tasks in the task center.
40536
40812
 
40537
40813
  @param request: ModifyTaskInfoRequest
40538
40814
  @return: ModifyTaskInfoResponse
@@ -43352,12 +43628,12 @@ class Client(OpenApiClient):
43352
43628
  """
43353
43629
  @summary Restores data to an existing instance across regions.
43354
43630
 
43355
- @description > Before restoration, you can call the [CheckCreateDdrDBInstance](https://help.aliyun.com/document_detail/121721.html) operation to check whether a cross-region backup set can be used for cross-region restoration.
43356
- ### [](#)Supported database engine
43631
+ @description > Before restoration, you can call the CheckCreateDdrDBInstance operation to check whether a cross-region backup set can be used for cross-region restoration.
43632
+ ### [](#)Supported database engines
43357
43633
  MySQL
43358
43634
  ### [](#)References
43359
- > Before you call this operation, carefully read the following documentation. Make sure that you fully understand the prerequisites and impacts for calling this operation.
43360
- [Back up an ApsaraDB RDS for MySQL instance across regions](https://help.aliyun.com/document_detail/120824.html)
43635
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
43636
+ [Use the cross-region backup feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/120824.html)
43361
43637
  [Restore the data of an ApsaraDB RDS for MySQL instance across regions](https://help.aliyun.com/document_detail/120875.html)
43362
43638
 
43363
43639
  @param request: RestoreDdrTableRequest
@@ -43419,12 +43695,12 @@ class Client(OpenApiClient):
43419
43695
  """
43420
43696
  @summary Restores data to an existing instance across regions.
43421
43697
 
43422
- @description > Before restoration, you can call the [CheckCreateDdrDBInstance](https://help.aliyun.com/document_detail/121721.html) operation to check whether a cross-region backup set can be used for cross-region restoration.
43423
- ### [](#)Supported database engine
43698
+ @description > Before restoration, you can call the CheckCreateDdrDBInstance operation to check whether a cross-region backup set can be used for cross-region restoration.
43699
+ ### [](#)Supported database engines
43424
43700
  MySQL
43425
43701
  ### [](#)References
43426
- > Before you call this operation, carefully read the following documentation. Make sure that you fully understand the prerequisites and impacts for calling this operation.
43427
- [Back up an ApsaraDB RDS for MySQL instance across regions](https://help.aliyun.com/document_detail/120824.html)
43702
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
43703
+ [Use the cross-region backup feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/120824.html)
43428
43704
  [Restore the data of an ApsaraDB RDS for MySQL instance across regions](https://help.aliyun.com/document_detail/120875.html)
43429
43705
 
43430
43706
  @param request: RestoreDdrTableRequest
@@ -43485,12 +43761,12 @@ class Client(OpenApiClient):
43485
43761
  """
43486
43762
  @summary Restores data to an existing instance across regions.
43487
43763
 
43488
- @description > Before restoration, you can call the [CheckCreateDdrDBInstance](https://help.aliyun.com/document_detail/121721.html) operation to check whether a cross-region backup set can be used for cross-region restoration.
43489
- ### [](#)Supported database engine
43764
+ @description > Before restoration, you can call the CheckCreateDdrDBInstance operation to check whether a cross-region backup set can be used for cross-region restoration.
43765
+ ### [](#)Supported database engines
43490
43766
  MySQL
43491
43767
  ### [](#)References
43492
- > Before you call this operation, carefully read the following documentation. Make sure that you fully understand the prerequisites and impacts for calling this operation.
43493
- [Back up an ApsaraDB RDS for MySQL instance across regions](https://help.aliyun.com/document_detail/120824.html)
43768
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
43769
+ [Use the cross-region backup feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/120824.html)
43494
43770
  [Restore the data of an ApsaraDB RDS for MySQL instance across regions](https://help.aliyun.com/document_detail/120875.html)
43495
43771
 
43496
43772
  @param request: RestoreDdrTableRequest
@@ -43506,12 +43782,12 @@ class Client(OpenApiClient):
43506
43782
  """
43507
43783
  @summary Restores data to an existing instance across regions.
43508
43784
 
43509
- @description > Before restoration, you can call the [CheckCreateDdrDBInstance](https://help.aliyun.com/document_detail/121721.html) operation to check whether a cross-region backup set can be used for cross-region restoration.
43510
- ### [](#)Supported database engine
43785
+ @description > Before restoration, you can call the CheckCreateDdrDBInstance operation to check whether a cross-region backup set can be used for cross-region restoration.
43786
+ ### [](#)Supported database engines
43511
43787
  MySQL
43512
43788
  ### [](#)References
43513
- > Before you call this operation, carefully read the following documentation. Make sure that you fully understand the prerequisites and impacts for calling this operation.
43514
- [Back up an ApsaraDB RDS for MySQL instance across regions](https://help.aliyun.com/document_detail/120824.html)
43789
+ > Before you call this operation, read the following topics and make sure that you fully understand the prerequisites and impacts of this operation.
43790
+ [Use the cross-region backup feature for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/120824.html)
43515
43791
  [Restore the data of an ApsaraDB RDS for MySQL instance across regions](https://help.aliyun.com/document_detail/120875.html)
43516
43792
 
43517
43793
  @param request: RestoreDdrTableRequest
@@ -3202,16 +3202,28 @@ class ConfirmNotifyResponse(TeaModel):
3202
3202
  class CopyDatabaseRequest(TeaModel):
3203
3203
  def __init__(
3204
3204
  self,
3205
+ dbinstance_name: str = None,
3206
+ dst_dbname: str = None,
3205
3207
  owner_id: int = None,
3208
+ reserve_account: int = None,
3206
3209
  resource_group_id: str = None,
3207
3210
  resource_owner_account: str = None,
3208
3211
  resource_owner_id: int = None,
3212
+ src_dbname: str = None,
3209
3213
  ):
3214
+ # The instance name.
3215
+ self.dbinstance_name = dbinstance_name
3216
+ # Destination database name.
3217
+ self.dst_dbname = dst_dbname
3210
3218
  self.owner_id = owner_id
3219
+ # Reserve account.
3220
+ self.reserve_account = reserve_account
3211
3221
  # The ID of the resource group.
3212
3222
  self.resource_group_id = resource_group_id
3213
3223
  self.resource_owner_account = resource_owner_account
3214
3224
  self.resource_owner_id = resource_owner_id
3225
+ # Source database name.
3226
+ self.src_dbname = src_dbname
3215
3227
 
3216
3228
  def validate(self):
3217
3229
  pass
@@ -3222,26 +3234,42 @@ class CopyDatabaseRequest(TeaModel):
3222
3234
  return _map
3223
3235
 
3224
3236
  result = dict()
3237
+ if self.dbinstance_name is not None:
3238
+ result['DBInstanceName'] = self.dbinstance_name
3239
+ if self.dst_dbname is not None:
3240
+ result['DstDBName'] = self.dst_dbname
3225
3241
  if self.owner_id is not None:
3226
3242
  result['OwnerId'] = self.owner_id
3243
+ if self.reserve_account is not None:
3244
+ result['ReserveAccount'] = self.reserve_account
3227
3245
  if self.resource_group_id is not None:
3228
3246
  result['ResourceGroupId'] = self.resource_group_id
3229
3247
  if self.resource_owner_account is not None:
3230
3248
  result['ResourceOwnerAccount'] = self.resource_owner_account
3231
3249
  if self.resource_owner_id is not None:
3232
3250
  result['ResourceOwnerId'] = self.resource_owner_id
3251
+ if self.src_dbname is not None:
3252
+ result['SrcDBName'] = self.src_dbname
3233
3253
  return result
3234
3254
 
3235
3255
  def from_map(self, m: dict = None):
3236
3256
  m = m or dict()
3257
+ if m.get('DBInstanceName') is not None:
3258
+ self.dbinstance_name = m.get('DBInstanceName')
3259
+ if m.get('DstDBName') is not None:
3260
+ self.dst_dbname = m.get('DstDBName')
3237
3261
  if m.get('OwnerId') is not None:
3238
3262
  self.owner_id = m.get('OwnerId')
3263
+ if m.get('ReserveAccount') is not None:
3264
+ self.reserve_account = m.get('ReserveAccount')
3239
3265
  if m.get('ResourceGroupId') is not None:
3240
3266
  self.resource_group_id = m.get('ResourceGroupId')
3241
3267
  if m.get('ResourceOwnerAccount') is not None:
3242
3268
  self.resource_owner_account = m.get('ResourceOwnerAccount')
3243
3269
  if m.get('ResourceOwnerId') is not None:
3244
3270
  self.resource_owner_id = m.get('ResourceOwnerId')
3271
+ if m.get('SrcDBName') is not None:
3272
+ self.src_dbname = m.get('SrcDBName')
3245
3273
  return self
3246
3274
 
3247
3275
 
@@ -7790,10 +7818,15 @@ class CreateDdrInstanceRequest(TeaModel):
7790
7818
  self.dbinstance_storage = dbinstance_storage
7791
7819
  # The storage type of the destination instance. Only the local SSD storage type is supported. Default value: **local_ssd**.
7792
7820
  self.dbinstance_storage_type = dbinstance_storage_type
7793
- # User-defined key ID for cloud disk encryption. Passing this parameter means turning on cloud disk encryption (it cannot be turned off after turning it on), and RoleARN needs to be passed in. You can view the key ID in the key management service console, or create a new key. For more information, see [Creating a Key](https://help.aliyun.com/document_detail/181610.html).
7821
+ # The ID of the customer master key (CMK) for cloud disk encryption. If this parameter is specified, cloud disk encryption is enabled and you must also specify the **RoleARN** parameter. Cloud disk encryption cannot be disabled after it is enabled. You can obtain the ID of the key in the KMS console or create a key. For more information, see [Create a key](https://help.aliyun.com/document_detail/181610.html).
7822
+ #
7823
+ # **\
7824
+ #
7825
+ # **Notes**\
7826
+ #
7827
+ # * This parameter is applicable only to ApsaraDB RDS for SQL Server instances.
7794
7828
  #
7795
- # > - This parameter is only applicable to RDS SQL Server instances.
7796
- # > - You can also not pass this parameter and only need to pass in RoleARN, which means setting the cloud disk encryption type of the instance to the RDS managed service key (Default Service CMK).
7829
+ # * You can leave this parameter empty. If you do not specify this parameter, you only need to specify the **RoleARN** to use the service key that is managed by ApsaraDB RDS to encrypt cloud disks.
7797
7830
  self.encryption_key = encryption_key
7798
7831
  # The database engine of the destination instance. Valid values:
7799
7832
  #
@@ -7857,9 +7890,9 @@ class CreateDdrInstanceRequest(TeaModel):
7857
7890
  #
7858
7891
  # This parameter is required.
7859
7892
  self.restore_type = restore_type
7860
- # The global resource descriptor (ARN) of the RDS cloud service account authorized by the primary account to access the KMS permission. You can view the ARN information through the [CheckCloudResourceAuthorized](https://next.api.aliyun.com/document/Rds/2014-08-15/CheckCloudResourceAuthorized) API.
7893
+ # The Alibaba Cloud Resource Name (ARN) that is provided by your Alibaba Cloud account for Resource Access Management (RAM) users. RAM users can use the ARN to connect to ApsaraDB RDS to Key Management Service (KMS). You can call the [CheckCloudResourceAuthorized](https://help.aliyun.com/document_detail/2628797.html) operation to query the ARN.
7861
7894
  #
7862
- # > This parameter is only available for RDS SQL Server instances.
7895
+ # > This parameter is applicable only to ApsaraDB RDS for SQL Server instances.
7863
7896
  self.role_arn = role_arn
7864
7897
  # The IP address whitelist of the destination instance. If you want to add more than one entry to the IP address whitelist, separate the entries with commas (,). Each entry must be unique. You can add a maximum of 1,000 entries. For more information, see [Configure an IP address whitelist for an ApsaraDB RDS for MySQL instance](https://help.aliyun.com/document_detail/43185.html). The entries in the IP address whitelist must be in one of the following formats:
7865
7898
  #
@@ -11183,13 +11216,13 @@ class CreateReplicationLinkRequest(TeaModel):
11183
11216
  self.source_category = source_category
11184
11217
  # The name of the source instance.
11185
11218
  #
11186
- # > You must specify this parameter if **SourceCategory** is set to **aliyunRDS**.
11219
+ # > This parameter is required when you set the **SourceCategory** parameter to **aliyunRDS**.
11187
11220
  self.source_instance_name = source_instance_name
11188
- # The ID of the region where the source instance is located.
11221
+ # The region ID of the source instance.
11189
11222
  #
11190
- # > You must specify this parameter if **SourceCategory** is set to **aliyunRDS**.
11223
+ # > This parameter is required when you set the **SourceCategory** parameter to **aliyunRDS**.
11191
11224
  self.source_instance_region_id = source_instance_region_id
11192
- # The port number of the source instance.
11225
+ # The port of the source instance.
11193
11226
  self.source_port = source_port
11194
11227
  # The task ID of the successful dry run.
11195
11228
  self.task_id = task_id
@@ -16352,7 +16385,7 @@ class DescribeAccountsResponseBody(TeaModel):
16352
16385
  system_admin_account_status: str = None,
16353
16386
  total_record_count: int = None,
16354
16387
  ):
16355
- # The details about the account.
16388
+ # The details of the account.
16356
16389
  self.accounts = accounts
16357
16390
  # The page number.
16358
16391
  self.page_number = page_number
@@ -19254,9 +19287,10 @@ class DescribeBackupPolicyResponseBody(TeaModel):
19254
19287
  #
19255
19288
  # > This parameter is returned only when the instance runs SQL Server.
19256
19289
  self.support_volume_shadow_copy = support_volume_shadow_copy
19257
- # Whether to support 5-minute log backup of SQL Server.
19258
- # - 0 : Not Support
19259
- # - 1 : Support
19290
+ # Indicates whether log backups for SQL Server are performed verery five minutes.
19291
+ #
19292
+ # * 0: No
19293
+ # * 1: Yes
19260
19294
  self.supports_high_frequency_backup = supports_high_frequency_backup
19261
19295
 
19262
19296
  def validate(self):
@@ -60700,6 +60734,153 @@ class ModifyADInfoResponse(TeaModel):
60700
60734
  return self
60701
60735
 
60702
60736
 
60737
+ class ModifyAccountCheckPolicyRequest(TeaModel):
60738
+ def __init__(
60739
+ self,
60740
+ account_name: str = None,
60741
+ check_policy: bool = None,
60742
+ client_token: str = None,
60743
+ dbinstance_id: str = None,
60744
+ owner_account: str = None,
60745
+ owner_id: int = None,
60746
+ resource_group_id: str = None,
60747
+ resource_owner_account: str = None,
60748
+ resource_owner_id: int = None,
60749
+ ):
60750
+ # This parameter is required.
60751
+ self.account_name = account_name
60752
+ # This parameter is required.
60753
+ self.check_policy = check_policy
60754
+ self.client_token = client_token
60755
+ # This parameter is required.
60756
+ self.dbinstance_id = dbinstance_id
60757
+ self.owner_account = owner_account
60758
+ self.owner_id = owner_id
60759
+ self.resource_group_id = resource_group_id
60760
+ self.resource_owner_account = resource_owner_account
60761
+ self.resource_owner_id = resource_owner_id
60762
+
60763
+ def validate(self):
60764
+ pass
60765
+
60766
+ def to_map(self):
60767
+ _map = super().to_map()
60768
+ if _map is not None:
60769
+ return _map
60770
+
60771
+ result = dict()
60772
+ if self.account_name is not None:
60773
+ result['AccountName'] = self.account_name
60774
+ if self.check_policy is not None:
60775
+ result['CheckPolicy'] = self.check_policy
60776
+ if self.client_token is not None:
60777
+ result['ClientToken'] = self.client_token
60778
+ if self.dbinstance_id is not None:
60779
+ result['DBInstanceId'] = self.dbinstance_id
60780
+ if self.owner_account is not None:
60781
+ result['OwnerAccount'] = self.owner_account
60782
+ if self.owner_id is not None:
60783
+ result['OwnerId'] = self.owner_id
60784
+ if self.resource_group_id is not None:
60785
+ result['ResourceGroupId'] = self.resource_group_id
60786
+ if self.resource_owner_account is not None:
60787
+ result['ResourceOwnerAccount'] = self.resource_owner_account
60788
+ if self.resource_owner_id is not None:
60789
+ result['ResourceOwnerId'] = self.resource_owner_id
60790
+ return result
60791
+
60792
+ def from_map(self, m: dict = None):
60793
+ m = m or dict()
60794
+ if m.get('AccountName') is not None:
60795
+ self.account_name = m.get('AccountName')
60796
+ if m.get('CheckPolicy') is not None:
60797
+ self.check_policy = m.get('CheckPolicy')
60798
+ if m.get('ClientToken') is not None:
60799
+ self.client_token = m.get('ClientToken')
60800
+ if m.get('DBInstanceId') is not None:
60801
+ self.dbinstance_id = m.get('DBInstanceId')
60802
+ if m.get('OwnerAccount') is not None:
60803
+ self.owner_account = m.get('OwnerAccount')
60804
+ if m.get('OwnerId') is not None:
60805
+ self.owner_id = m.get('OwnerId')
60806
+ if m.get('ResourceGroupId') is not None:
60807
+ self.resource_group_id = m.get('ResourceGroupId')
60808
+ if m.get('ResourceOwnerAccount') is not None:
60809
+ self.resource_owner_account = m.get('ResourceOwnerAccount')
60810
+ if m.get('ResourceOwnerId') is not None:
60811
+ self.resource_owner_id = m.get('ResourceOwnerId')
60812
+ return self
60813
+
60814
+
60815
+ class ModifyAccountCheckPolicyResponseBody(TeaModel):
60816
+ def __init__(
60817
+ self,
60818
+ request_id: str = None,
60819
+ ):
60820
+ # Id of the request
60821
+ self.request_id = request_id
60822
+
60823
+ def validate(self):
60824
+ pass
60825
+
60826
+ def to_map(self):
60827
+ _map = super().to_map()
60828
+ if _map is not None:
60829
+ return _map
60830
+
60831
+ result = dict()
60832
+ if self.request_id is not None:
60833
+ result['RequestId'] = self.request_id
60834
+ return result
60835
+
60836
+ def from_map(self, m: dict = None):
60837
+ m = m or dict()
60838
+ if m.get('RequestId') is not None:
60839
+ self.request_id = m.get('RequestId')
60840
+ return self
60841
+
60842
+
60843
+ class ModifyAccountCheckPolicyResponse(TeaModel):
60844
+ def __init__(
60845
+ self,
60846
+ headers: Dict[str, str] = None,
60847
+ status_code: int = None,
60848
+ body: ModifyAccountCheckPolicyResponseBody = None,
60849
+ ):
60850
+ self.headers = headers
60851
+ self.status_code = status_code
60852
+ self.body = body
60853
+
60854
+ def validate(self):
60855
+ if self.body:
60856
+ self.body.validate()
60857
+
60858
+ def to_map(self):
60859
+ _map = super().to_map()
60860
+ if _map is not None:
60861
+ return _map
60862
+
60863
+ result = dict()
60864
+ if self.headers is not None:
60865
+ result['headers'] = self.headers
60866
+ if self.status_code is not None:
60867
+ result['statusCode'] = self.status_code
60868
+ if self.body is not None:
60869
+ result['body'] = self.body.to_map()
60870
+ return result
60871
+
60872
+ def from_map(self, m: dict = None):
60873
+ m = m or dict()
60874
+ if m.get('headers') is not None:
60875
+ self.headers = m.get('headers')
60876
+ if m.get('statusCode') is not None:
60877
+ self.status_code = m.get('statusCode')
60878
+ if m.get('body') is not None:
60879
+ temp_model = ModifyAccountCheckPolicyResponseBody()
60880
+ self.body = temp_model.from_map(m['body'])
60881
+ return self
60882
+
60883
+
60703
60884
  class ModifyAccountDescriptionRequest(TeaModel):
60704
60885
  def __init__(
60705
60886
  self,
@@ -60995,6 +61176,145 @@ class ModifyAccountMaskingPrivilegeResponse(TeaModel):
60995
61176
  return self
60996
61177
 
60997
61178
 
61179
+ class ModifyAccountSecurityPolicyRequest(TeaModel):
61180
+ def __init__(
61181
+ self,
61182
+ client_token: str = None,
61183
+ dbinstance_id: str = None,
61184
+ group_policy: str = None,
61185
+ owner_account: str = None,
61186
+ owner_id: int = None,
61187
+ resource_group_id: str = None,
61188
+ resource_owner_account: str = None,
61189
+ resource_owner_id: int = None,
61190
+ ):
61191
+ self.client_token = client_token
61192
+ # This parameter is required.
61193
+ self.dbinstance_id = dbinstance_id
61194
+ # This parameter is required.
61195
+ self.group_policy = group_policy
61196
+ self.owner_account = owner_account
61197
+ self.owner_id = owner_id
61198
+ self.resource_group_id = resource_group_id
61199
+ self.resource_owner_account = resource_owner_account
61200
+ self.resource_owner_id = resource_owner_id
61201
+
61202
+ def validate(self):
61203
+ pass
61204
+
61205
+ def to_map(self):
61206
+ _map = super().to_map()
61207
+ if _map is not None:
61208
+ return _map
61209
+
61210
+ result = dict()
61211
+ if self.client_token is not None:
61212
+ result['ClientToken'] = self.client_token
61213
+ if self.dbinstance_id is not None:
61214
+ result['DBInstanceId'] = self.dbinstance_id
61215
+ if self.group_policy is not None:
61216
+ result['GroupPolicy'] = self.group_policy
61217
+ if self.owner_account is not None:
61218
+ result['OwnerAccount'] = self.owner_account
61219
+ if self.owner_id is not None:
61220
+ result['OwnerId'] = self.owner_id
61221
+ if self.resource_group_id is not None:
61222
+ result['ResourceGroupId'] = self.resource_group_id
61223
+ if self.resource_owner_account is not None:
61224
+ result['ResourceOwnerAccount'] = self.resource_owner_account
61225
+ if self.resource_owner_id is not None:
61226
+ result['ResourceOwnerId'] = self.resource_owner_id
61227
+ return result
61228
+
61229
+ def from_map(self, m: dict = None):
61230
+ m = m or dict()
61231
+ if m.get('ClientToken') is not None:
61232
+ self.client_token = m.get('ClientToken')
61233
+ if m.get('DBInstanceId') is not None:
61234
+ self.dbinstance_id = m.get('DBInstanceId')
61235
+ if m.get('GroupPolicy') is not None:
61236
+ self.group_policy = m.get('GroupPolicy')
61237
+ if m.get('OwnerAccount') is not None:
61238
+ self.owner_account = m.get('OwnerAccount')
61239
+ if m.get('OwnerId') is not None:
61240
+ self.owner_id = m.get('OwnerId')
61241
+ if m.get('ResourceGroupId') is not None:
61242
+ self.resource_group_id = m.get('ResourceGroupId')
61243
+ if m.get('ResourceOwnerAccount') is not None:
61244
+ self.resource_owner_account = m.get('ResourceOwnerAccount')
61245
+ if m.get('ResourceOwnerId') is not None:
61246
+ self.resource_owner_id = m.get('ResourceOwnerId')
61247
+ return self
61248
+
61249
+
61250
+ class ModifyAccountSecurityPolicyResponseBody(TeaModel):
61251
+ def __init__(
61252
+ self,
61253
+ request_id: str = None,
61254
+ ):
61255
+ self.request_id = request_id
61256
+
61257
+ def validate(self):
61258
+ pass
61259
+
61260
+ def to_map(self):
61261
+ _map = super().to_map()
61262
+ if _map is not None:
61263
+ return _map
61264
+
61265
+ result = dict()
61266
+ if self.request_id is not None:
61267
+ result['RequestId'] = self.request_id
61268
+ return result
61269
+
61270
+ def from_map(self, m: dict = None):
61271
+ m = m or dict()
61272
+ if m.get('RequestId') is not None:
61273
+ self.request_id = m.get('RequestId')
61274
+ return self
61275
+
61276
+
61277
+ class ModifyAccountSecurityPolicyResponse(TeaModel):
61278
+ def __init__(
61279
+ self,
61280
+ headers: Dict[str, str] = None,
61281
+ status_code: int = None,
61282
+ body: ModifyAccountSecurityPolicyResponseBody = None,
61283
+ ):
61284
+ self.headers = headers
61285
+ self.status_code = status_code
61286
+ self.body = body
61287
+
61288
+ def validate(self):
61289
+ if self.body:
61290
+ self.body.validate()
61291
+
61292
+ def to_map(self):
61293
+ _map = super().to_map()
61294
+ if _map is not None:
61295
+ return _map
61296
+
61297
+ result = dict()
61298
+ if self.headers is not None:
61299
+ result['headers'] = self.headers
61300
+ if self.status_code is not None:
61301
+ result['statusCode'] = self.status_code
61302
+ if self.body is not None:
61303
+ result['body'] = self.body.to_map()
61304
+ return result
61305
+
61306
+ def from_map(self, m: dict = None):
61307
+ m = m or dict()
61308
+ if m.get('headers') is not None:
61309
+ self.headers = m.get('headers')
61310
+ if m.get('statusCode') is not None:
61311
+ self.status_code = m.get('statusCode')
61312
+ if m.get('body') is not None:
61313
+ temp_model = ModifyAccountSecurityPolicyResponseBody()
61314
+ self.body = temp_model.from_map(m['body'])
61315
+ return self
61316
+
61317
+
60998
61318
  class ModifyActionEventPolicyRequest(TeaModel):
60999
61319
  def __init__(
61000
61320
  self,
@@ -67974,15 +68294,20 @@ class ModifyEventInfoRequest(TeaModel):
67974
68294
  region_id: str = None,
67975
68295
  security_token: str = None,
67976
68296
  ):
67977
- # The action parameter. Set this value in the JSON string format.
68297
+ # The action-related parameters. You can add action-related parameters based on your business requirements. The parameter value varies with the value of the TaskAction parameter.
67978
68298
  self.action_params = action_params
67979
- # The event handling action. Set this value to archive or undo.
68299
+ # The event handling action. Valid values:
68300
+ #
68301
+ # * **archive**\
68302
+ # * **undo**\
68303
+ #
68304
+ # > This parameter is required.
67980
68305
  self.event_action = event_action
67981
- # The event ID. Separate multiple event IDs with commas (,). You can configure up to 20 event IDs.
68306
+ # The event ID. You can call the DescribeEvents operation to obtain the IDs of the events. Separate multiple event IDs with commas (,). You can specify up to 20 event IDs.
67982
68307
  #
67983
68308
  # This parameter is required.
67984
68309
  self.event_id = event_id
67985
- # The region ID. You can call the DescribeRegions operation to query the most recent region list.
68310
+ # The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/610399.html) operation to query the most recent region list.
67986
68311
  #
67987
68312
  # This parameter is required.
67988
68313
  self.region_id = region_id
@@ -71266,7 +71591,15 @@ class ModifyTaskInfoRequest(TeaModel):
71266
71591
  task_action: str = None,
71267
71592
  task_id: str = None,
71268
71593
  ):
71269
- # The action parameter.
71594
+ # The action-related parameters. You can add action-related parameters based on your business requirements. If you set the TaskAction parameter to modifySwitchTime, you must set this parameter to `{"recoverMode": "xxx", "recoverTime": "xxx"}`.
71595
+ #
71596
+ # The recoverMode field specifies the task restoration mode. valid values:
71597
+ #
71598
+ # * **timePoint**: The task is executed at a specified point in time.
71599
+ # * **Immediate**: The task is executed immediately.
71600
+ # * **maintainTime**: The task is executed based on the O\\&M time.
71601
+ #
71602
+ # The recoverTime field specifies restoration time. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. If you set the recoverMode field to timePoint, you must also specify the recoverTime field.
71270
71603
  self.action_params = action_params
71271
71604
  # The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/26243.html) operation to query the most recent region list.
71272
71605
  #
@@ -71277,14 +71610,9 @@ class ModifyTaskInfoRequest(TeaModel):
71277
71610
  self.security_token = security_token
71278
71611
  # The name of the execution step.
71279
71612
  self.step_name = step_name
71280
- # The name of the operation that you can call to execute the task. Valid values:
71281
- #
71282
- # * ImportImage
71283
- # * ExportImage
71284
- # * RedeployInstance
71285
- # * ModifyDiskSpec
71613
+ # The task action. Set the value to modifySwitchTime. The value specifies that you want to change the switching time or restoration time.
71286
71614
  self.task_action = task_action
71287
- # The task ID.
71615
+ # The task ID. You can call the DescribeTasks operation to query task IDs.
71288
71616
  #
71289
71617
  # This parameter is required.
71290
71618
  self.task_id = task_id
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-rds20140815
3
- Version: 7.1.4
3
+ Version: 7.2.0
4
4
  Summary: Alibaba Cloud rds (20140815) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -0,0 +1,8 @@
1
+ alibabacloud_rds20140815/__init__.py,sha256=W4jn3l3AWvVPQgIIvw_5hXCX8Mo2h8WgLPeZ8ZegCwA,21
2
+ alibabacloud_rds20140815/client.py,sha256=ZodTnGcDxGqaHVs1PoW2SClaqiKs35knyjaSVcncJCs,2237067
3
+ alibabacloud_rds20140815/models.py,sha256=WHMZVP1uYWM6G8C1qMGiSCJnEbwEFd2hVNqd3cSVsPI,3141586
4
+ alibabacloud_rds20140815-7.2.0.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ alibabacloud_rds20140815-7.2.0.dist-info/METADATA,sha256=2s_jP3dmXywZYQNmFZf1Ouw-7d2bcyseDnXRyVdq4_8,2312
6
+ alibabacloud_rds20140815-7.2.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
+ alibabacloud_rds20140815-7.2.0.dist-info/top_level.txt,sha256=JrnffxBPffQ-kwp8_cVNsbxBsxm7QysAdoFB1xAdY70,25
8
+ alibabacloud_rds20140815-7.2.0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- alibabacloud_rds20140815/__init__.py,sha256=Dg39dwdYEjItDdQVhCfTudBR0UDC-pQ4Jd4HgxyFYNs,21
2
- alibabacloud_rds20140815/client.py,sha256=WEsk7uiv7_gwg0tVQBFBsVzHDV8ulzfw9T6cz0KutUo,2225169
3
- alibabacloud_rds20140815/models.py,sha256=yIOeCvtQu2_a9_SGzv3mI5Pj-wRAGbFTnU65JrWtRJU,3129488
4
- alibabacloud_rds20140815-7.1.4.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
- alibabacloud_rds20140815-7.1.4.dist-info/METADATA,sha256=DEvNuMP2Y-M0IsPuZSgEYP6rUS5yb-vhfejcG_vDSYE,2312
6
- alibabacloud_rds20140815-7.1.4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
- alibabacloud_rds20140815-7.1.4.dist-info/top_level.txt,sha256=JrnffxBPffQ-kwp8_cVNsbxBsxm7QysAdoFB1xAdY70,25
8
- alibabacloud_rds20140815-7.1.4.dist-info/RECORD,,