alibabacloud-polardb20170801 6.1.9__py3-none-any.whl → 6.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.
@@ -2832,6 +2832,160 @@ class ContinueDBClusterMigrationResponse(TeaModel):
2832
2832
  return self
2833
2833
 
2834
2834
 
2835
+ class CreateAINodesRequestDBNodes(TeaModel):
2836
+ def __init__(
2837
+ self,
2838
+ dbnode_class: str = None,
2839
+ ):
2840
+ self.dbnode_class = dbnode_class
2841
+
2842
+ def validate(self):
2843
+ pass
2844
+
2845
+ def to_map(self):
2846
+ _map = super().to_map()
2847
+ if _map is not None:
2848
+ return _map
2849
+
2850
+ result = dict()
2851
+ if self.dbnode_class is not None:
2852
+ result['DBNodeClass'] = self.dbnode_class
2853
+ return result
2854
+
2855
+ def from_map(self, m: dict = None):
2856
+ m = m or dict()
2857
+ if m.get('DBNodeClass') is not None:
2858
+ self.dbnode_class = m.get('DBNodeClass')
2859
+ return self
2860
+
2861
+
2862
+ class CreateAINodesRequest(TeaModel):
2863
+ def __init__(
2864
+ self,
2865
+ dbcluster_id: str = None,
2866
+ dbnodes: List[CreateAINodesRequestDBNodes] = None,
2867
+ ):
2868
+ self.dbcluster_id = dbcluster_id
2869
+ self.dbnodes = dbnodes
2870
+
2871
+ def validate(self):
2872
+ if self.dbnodes:
2873
+ for k in self.dbnodes:
2874
+ if k:
2875
+ k.validate()
2876
+
2877
+ def to_map(self):
2878
+ _map = super().to_map()
2879
+ if _map is not None:
2880
+ return _map
2881
+
2882
+ result = dict()
2883
+ if self.dbcluster_id is not None:
2884
+ result['DBClusterId'] = self.dbcluster_id
2885
+ result['DBNodes'] = []
2886
+ if self.dbnodes is not None:
2887
+ for k in self.dbnodes:
2888
+ result['DBNodes'].append(k.to_map() if k else None)
2889
+ return result
2890
+
2891
+ def from_map(self, m: dict = None):
2892
+ m = m or dict()
2893
+ if m.get('DBClusterId') is not None:
2894
+ self.dbcluster_id = m.get('DBClusterId')
2895
+ self.dbnodes = []
2896
+ if m.get('DBNodes') is not None:
2897
+ for k in m.get('DBNodes'):
2898
+ temp_model = CreateAINodesRequestDBNodes()
2899
+ self.dbnodes.append(temp_model.from_map(k))
2900
+ return self
2901
+
2902
+
2903
+ class CreateAINodesResponseBody(TeaModel):
2904
+ def __init__(
2905
+ self,
2906
+ dbcluster_id: str = None,
2907
+ dbnode_ids: List[str] = None,
2908
+ order_id: str = None,
2909
+ request_id: str = None,
2910
+ ):
2911
+ self.dbcluster_id = dbcluster_id
2912
+ self.dbnode_ids = dbnode_ids
2913
+ self.order_id = order_id
2914
+ self.request_id = request_id
2915
+
2916
+ def validate(self):
2917
+ pass
2918
+
2919
+ def to_map(self):
2920
+ _map = super().to_map()
2921
+ if _map is not None:
2922
+ return _map
2923
+
2924
+ result = dict()
2925
+ if self.dbcluster_id is not None:
2926
+ result['DBClusterId'] = self.dbcluster_id
2927
+ if self.dbnode_ids is not None:
2928
+ result['DBNodeIds'] = self.dbnode_ids
2929
+ if self.order_id is not None:
2930
+ result['OrderId'] = self.order_id
2931
+ if self.request_id is not None:
2932
+ result['RequestId'] = self.request_id
2933
+ return result
2934
+
2935
+ def from_map(self, m: dict = None):
2936
+ m = m or dict()
2937
+ if m.get('DBClusterId') is not None:
2938
+ self.dbcluster_id = m.get('DBClusterId')
2939
+ if m.get('DBNodeIds') is not None:
2940
+ self.dbnode_ids = m.get('DBNodeIds')
2941
+ if m.get('OrderId') is not None:
2942
+ self.order_id = m.get('OrderId')
2943
+ if m.get('RequestId') is not None:
2944
+ self.request_id = m.get('RequestId')
2945
+ return self
2946
+
2947
+
2948
+ class CreateAINodesResponse(TeaModel):
2949
+ def __init__(
2950
+ self,
2951
+ headers: Dict[str, str] = None,
2952
+ status_code: int = None,
2953
+ body: CreateAINodesResponseBody = None,
2954
+ ):
2955
+ self.headers = headers
2956
+ self.status_code = status_code
2957
+ self.body = body
2958
+
2959
+ def validate(self):
2960
+ if self.body:
2961
+ self.body.validate()
2962
+
2963
+ def to_map(self):
2964
+ _map = super().to_map()
2965
+ if _map is not None:
2966
+ return _map
2967
+
2968
+ result = dict()
2969
+ if self.headers is not None:
2970
+ result['headers'] = self.headers
2971
+ if self.status_code is not None:
2972
+ result['statusCode'] = self.status_code
2973
+ if self.body is not None:
2974
+ result['body'] = self.body.to_map()
2975
+ return result
2976
+
2977
+ def from_map(self, m: dict = None):
2978
+ m = m or dict()
2979
+ if m.get('headers') is not None:
2980
+ self.headers = m.get('headers')
2981
+ if m.get('statusCode') is not None:
2982
+ self.status_code = m.get('statusCode')
2983
+ if m.get('body') is not None:
2984
+ temp_model = CreateAINodesResponseBody()
2985
+ self.body = temp_model.from_map(m['body'])
2986
+ return self
2987
+
2988
+
2835
2989
  class CreateAccountRequest(TeaModel):
2836
2990
  def __init__(
2837
2991
  self,
@@ -3580,6 +3734,7 @@ class CreateApplicationRequest(TeaModel):
3580
3734
  application_type: str = None,
3581
3735
  architecture: str = None,
3582
3736
  auto_renew: bool = None,
3737
+ auto_use_coupon: bool = None,
3583
3738
  components: List[CreateApplicationRequestComponents] = None,
3584
3739
  dbcluster_id: str = None,
3585
3740
  description: str = None,
@@ -3588,6 +3743,7 @@ class CreateApplicationRequest(TeaModel):
3588
3743
  pay_type: str = None,
3589
3744
  period: str = None,
3590
3745
  polar_fsinstance_id: str = None,
3746
+ promotion_code: str = None,
3591
3747
  region_id: str = None,
3592
3748
  resource_group_id: str = None,
3593
3749
  used_time: str = None,
@@ -3600,6 +3756,7 @@ class CreateApplicationRequest(TeaModel):
3600
3756
  # This parameter is required.
3601
3757
  self.architecture = architecture
3602
3758
  self.auto_renew = auto_renew
3759
+ self.auto_use_coupon = auto_use_coupon
3603
3760
  self.components = components
3604
3761
  self.dbcluster_id = dbcluster_id
3605
3762
  self.description = description
@@ -3608,6 +3765,7 @@ class CreateApplicationRequest(TeaModel):
3608
3765
  self.pay_type = pay_type
3609
3766
  self.period = period
3610
3767
  self.polar_fsinstance_id = polar_fsinstance_id
3768
+ self.promotion_code = promotion_code
3611
3769
  self.region_id = region_id
3612
3770
  self.resource_group_id = resource_group_id
3613
3771
  self.used_time = used_time
@@ -3637,6 +3795,8 @@ class CreateApplicationRequest(TeaModel):
3637
3795
  result['Architecture'] = self.architecture
3638
3796
  if self.auto_renew is not None:
3639
3797
  result['AutoRenew'] = self.auto_renew
3798
+ if self.auto_use_coupon is not None:
3799
+ result['AutoUseCoupon'] = self.auto_use_coupon
3640
3800
  result['Components'] = []
3641
3801
  if self.components is not None:
3642
3802
  for k in self.components:
@@ -3657,6 +3817,8 @@ class CreateApplicationRequest(TeaModel):
3657
3817
  result['Period'] = self.period
3658
3818
  if self.polar_fsinstance_id is not None:
3659
3819
  result['PolarFSInstanceId'] = self.polar_fsinstance_id
3820
+ if self.promotion_code is not None:
3821
+ result['PromotionCode'] = self.promotion_code
3660
3822
  if self.region_id is not None:
3661
3823
  result['RegionId'] = self.region_id
3662
3824
  if self.resource_group_id is not None:
@@ -3679,6 +3841,8 @@ class CreateApplicationRequest(TeaModel):
3679
3841
  self.architecture = m.get('Architecture')
3680
3842
  if m.get('AutoRenew') is not None:
3681
3843
  self.auto_renew = m.get('AutoRenew')
3844
+ if m.get('AutoUseCoupon') is not None:
3845
+ self.auto_use_coupon = m.get('AutoUseCoupon')
3682
3846
  self.components = []
3683
3847
  if m.get('Components') is not None:
3684
3848
  for k in m.get('Components'):
@@ -3701,6 +3865,8 @@ class CreateApplicationRequest(TeaModel):
3701
3865
  self.period = m.get('Period')
3702
3866
  if m.get('PolarFSInstanceId') is not None:
3703
3867
  self.polar_fsinstance_id = m.get('PolarFSInstanceId')
3868
+ if m.get('PromotionCode') is not None:
3869
+ self.promotion_code = m.get('PromotionCode')
3704
3870
  if m.get('RegionId') is not None:
3705
3871
  self.region_id = m.get('RegionId')
3706
3872
  if m.get('ResourceGroupId') is not None:
@@ -3722,6 +3888,7 @@ class CreateApplicationShrinkRequest(TeaModel):
3722
3888
  application_type: str = None,
3723
3889
  architecture: str = None,
3724
3890
  auto_renew: bool = None,
3891
+ auto_use_coupon: bool = None,
3725
3892
  components_shrink: str = None,
3726
3893
  dbcluster_id: str = None,
3727
3894
  description: str = None,
@@ -3730,6 +3897,7 @@ class CreateApplicationShrinkRequest(TeaModel):
3730
3897
  pay_type: str = None,
3731
3898
  period: str = None,
3732
3899
  polar_fsinstance_id: str = None,
3900
+ promotion_code: str = None,
3733
3901
  region_id: str = None,
3734
3902
  resource_group_id: str = None,
3735
3903
  used_time: str = None,
@@ -3742,6 +3910,7 @@ class CreateApplicationShrinkRequest(TeaModel):
3742
3910
  # This parameter is required.
3743
3911
  self.architecture = architecture
3744
3912
  self.auto_renew = auto_renew
3913
+ self.auto_use_coupon = auto_use_coupon
3745
3914
  self.components_shrink = components_shrink
3746
3915
  self.dbcluster_id = dbcluster_id
3747
3916
  self.description = description
@@ -3750,6 +3919,7 @@ class CreateApplicationShrinkRequest(TeaModel):
3750
3919
  self.pay_type = pay_type
3751
3920
  self.period = period
3752
3921
  self.polar_fsinstance_id = polar_fsinstance_id
3922
+ self.promotion_code = promotion_code
3753
3923
  self.region_id = region_id
3754
3924
  self.resource_group_id = resource_group_id
3755
3925
  self.used_time = used_time
@@ -3772,6 +3942,8 @@ class CreateApplicationShrinkRequest(TeaModel):
3772
3942
  result['Architecture'] = self.architecture
3773
3943
  if self.auto_renew is not None:
3774
3944
  result['AutoRenew'] = self.auto_renew
3945
+ if self.auto_use_coupon is not None:
3946
+ result['AutoUseCoupon'] = self.auto_use_coupon
3775
3947
  if self.components_shrink is not None:
3776
3948
  result['Components'] = self.components_shrink
3777
3949
  if self.dbcluster_id is not None:
@@ -3788,6 +3960,8 @@ class CreateApplicationShrinkRequest(TeaModel):
3788
3960
  result['Period'] = self.period
3789
3961
  if self.polar_fsinstance_id is not None:
3790
3962
  result['PolarFSInstanceId'] = self.polar_fsinstance_id
3963
+ if self.promotion_code is not None:
3964
+ result['PromotionCode'] = self.promotion_code
3791
3965
  if self.region_id is not None:
3792
3966
  result['RegionId'] = self.region_id
3793
3967
  if self.resource_group_id is not None:
@@ -3810,6 +3984,8 @@ class CreateApplicationShrinkRequest(TeaModel):
3810
3984
  self.architecture = m.get('Architecture')
3811
3985
  if m.get('AutoRenew') is not None:
3812
3986
  self.auto_renew = m.get('AutoRenew')
3987
+ if m.get('AutoUseCoupon') is not None:
3988
+ self.auto_use_coupon = m.get('AutoUseCoupon')
3813
3989
  if m.get('Components') is not None:
3814
3990
  self.components_shrink = m.get('Components')
3815
3991
  if m.get('DBClusterId') is not None:
@@ -3826,6 +4002,8 @@ class CreateApplicationShrinkRequest(TeaModel):
3826
4002
  self.period = m.get('Period')
3827
4003
  if m.get('PolarFSInstanceId') is not None:
3828
4004
  self.polar_fsinstance_id = m.get('PolarFSInstanceId')
4005
+ if m.get('PromotionCode') is not None:
4006
+ self.promotion_code = m.get('PromotionCode')
3829
4007
  if m.get('RegionId') is not None:
3830
4008
  self.region_id = m.get('RegionId')
3831
4009
  if m.get('ResourceGroupId') is not None:
@@ -4697,6 +4875,7 @@ class CreateDBClusterRequest(TeaModel):
4697
4875
  allow_shut_down: str = None,
4698
4876
  architecture: str = None,
4699
4877
  auto_renew: bool = None,
4878
+ auto_use_coupon: bool = None,
4700
4879
  backup_retention_policy_on_cluster_deletion: str = None,
4701
4880
  bursting_enabled: str = None,
4702
4881
  client_token: str = None,
@@ -4724,6 +4903,7 @@ class CreateDBClusterRequest(TeaModel):
4724
4903
  parameter_group_id: str = None,
4725
4904
  pay_type: str = None,
4726
4905
  period: str = None,
4906
+ promotion_code: str = None,
4727
4907
  provisioned_iops: int = None,
4728
4908
  proxy_class: str = None,
4729
4909
  proxy_type: str = None,
@@ -4777,6 +4957,7 @@ class CreateDBClusterRequest(TeaModel):
4777
4957
  #
4778
4958
  # > This parameter takes effect only when **PayType** is set to **Prepaid**.
4779
4959
  self.auto_renew = auto_renew
4960
+ self.auto_use_coupon = auto_use_coupon
4780
4961
  # Backup retention policy upon cluster deletion, with valid values as follows:
4781
4962
  # * **ALL**: Permanently retain all backups.
4782
4963
  # * **LATEST**: Permanently retain the latest backup (automatically backed up before deletion).
@@ -4956,6 +5137,7 @@ class CreateDBClusterRequest(TeaModel):
4956
5137
  # - **Year**: Yearly subscription.
4957
5138
  # - **Month**: Monthly subscription.
4958
5139
  self.period = period
5140
+ self.promotion_code = promotion_code
4959
5141
  # <p id="p_wyg_t4a_glm">The provisioned read and write IOPS for ESSD AutoPL cloud disks. Possible values: 0 to min{50,000, 1000*capacity-Baseline Performance}.</p>
4960
5142
  # <p id="p_6de_jxy_k2g">Baseline Performance = min{1,800+50*capacity, 50000}.</p>
4961
5143
  # <note id="note_7kj_j0o_rgs">This parameter is supported only when StorageType is ESSDAUTOPL.</note>
@@ -5122,6 +5304,8 @@ class CreateDBClusterRequest(TeaModel):
5122
5304
  result['Architecture'] = self.architecture
5123
5305
  if self.auto_renew is not None:
5124
5306
  result['AutoRenew'] = self.auto_renew
5307
+ if self.auto_use_coupon is not None:
5308
+ result['AutoUseCoupon'] = self.auto_use_coupon
5125
5309
  if self.backup_retention_policy_on_cluster_deletion is not None:
5126
5310
  result['BackupRetentionPolicyOnClusterDeletion'] = self.backup_retention_policy_on_cluster_deletion
5127
5311
  if self.bursting_enabled is not None:
@@ -5176,6 +5360,8 @@ class CreateDBClusterRequest(TeaModel):
5176
5360
  result['PayType'] = self.pay_type
5177
5361
  if self.period is not None:
5178
5362
  result['Period'] = self.period
5363
+ if self.promotion_code is not None:
5364
+ result['PromotionCode'] = self.promotion_code
5179
5365
  if self.provisioned_iops is not None:
5180
5366
  result['ProvisionedIops'] = self.provisioned_iops
5181
5367
  if self.proxy_class is not None:
@@ -5250,6 +5436,8 @@ class CreateDBClusterRequest(TeaModel):
5250
5436
  self.architecture = m.get('Architecture')
5251
5437
  if m.get('AutoRenew') is not None:
5252
5438
  self.auto_renew = m.get('AutoRenew')
5439
+ if m.get('AutoUseCoupon') is not None:
5440
+ self.auto_use_coupon = m.get('AutoUseCoupon')
5253
5441
  if m.get('BackupRetentionPolicyOnClusterDeletion') is not None:
5254
5442
  self.backup_retention_policy_on_cluster_deletion = m.get('BackupRetentionPolicyOnClusterDeletion')
5255
5443
  if m.get('BurstingEnabled') is not None:
@@ -5304,6 +5492,8 @@ class CreateDBClusterRequest(TeaModel):
5304
5492
  self.pay_type = m.get('PayType')
5305
5493
  if m.get('Period') is not None:
5306
5494
  self.period = m.get('Period')
5495
+ if m.get('PromotionCode') is not None:
5496
+ self.promotion_code = m.get('PromotionCode')
5307
5497
  if m.get('ProvisionedIops') is not None:
5308
5498
  self.provisioned_iops = m.get('ProvisionedIops')
5309
5499
  if m.get('ProxyClass') is not None:
@@ -6396,6 +6586,7 @@ class CreateDBNodesRequestDBNode(TeaModel):
6396
6586
  class CreateDBNodesRequest(TeaModel):
6397
6587
  def __init__(
6398
6588
  self,
6589
+ auto_use_coupon: bool = None,
6399
6590
  client_token: str = None,
6400
6591
  cloud_provider: str = None,
6401
6592
  dbcluster_id: str = None,
@@ -6407,10 +6598,12 @@ class CreateDBNodesRequest(TeaModel):
6407
6598
  owner_id: int = None,
6408
6599
  planned_end_time: str = None,
6409
6600
  planned_start_time: str = None,
6601
+ promotion_code: str = None,
6410
6602
  resource_group_id: str = None,
6411
6603
  resource_owner_account: str = None,
6412
6604
  resource_owner_id: int = None,
6413
6605
  ):
6606
+ self.auto_use_coupon = auto_use_coupon
6414
6607
  # The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. The token is case-sensitive.
6415
6608
  self.client_token = client_token
6416
6609
  self.cloud_provider = cloud_provider
@@ -6458,6 +6651,7 @@ class CreateDBNodesRequest(TeaModel):
6458
6651
  # >- The earliest start time of the scheduled task can be a point in time within the next 24 hours. For example, if the current time is `2021-01-14T09:00:00Z`, you can specify a point in time between `2021-01-14T09:00:00Z` and `2021-01-15T09:00:00Z`.
6459
6652
  # >- If you leave this parameter empty, the task for adding the read-only node is immediately run by default.
6460
6653
  self.planned_start_time = planned_start_time
6654
+ self.promotion_code = promotion_code
6461
6655
  # The ID of the resource group.
6462
6656
  self.resource_group_id = resource_group_id
6463
6657
  self.resource_owner_account = resource_owner_account
@@ -6475,6 +6669,8 @@ class CreateDBNodesRequest(TeaModel):
6475
6669
  return _map
6476
6670
 
6477
6671
  result = dict()
6672
+ if self.auto_use_coupon is not None:
6673
+ result['AutoUseCoupon'] = self.auto_use_coupon
6478
6674
  if self.client_token is not None:
6479
6675
  result['ClientToken'] = self.client_token
6480
6676
  if self.cloud_provider is not None:
@@ -6499,6 +6695,8 @@ class CreateDBNodesRequest(TeaModel):
6499
6695
  result['PlannedEndTime'] = self.planned_end_time
6500
6696
  if self.planned_start_time is not None:
6501
6697
  result['PlannedStartTime'] = self.planned_start_time
6698
+ if self.promotion_code is not None:
6699
+ result['PromotionCode'] = self.promotion_code
6502
6700
  if self.resource_group_id is not None:
6503
6701
  result['ResourceGroupId'] = self.resource_group_id
6504
6702
  if self.resource_owner_account is not None:
@@ -6509,6 +6707,8 @@ class CreateDBNodesRequest(TeaModel):
6509
6707
 
6510
6708
  def from_map(self, m: dict = None):
6511
6709
  m = m or dict()
6710
+ if m.get('AutoUseCoupon') is not None:
6711
+ self.auto_use_coupon = m.get('AutoUseCoupon')
6512
6712
  if m.get('ClientToken') is not None:
6513
6713
  self.client_token = m.get('ClientToken')
6514
6714
  if m.get('CloudProvider') is not None:
@@ -6534,6 +6734,8 @@ class CreateDBNodesRequest(TeaModel):
6534
6734
  self.planned_end_time = m.get('PlannedEndTime')
6535
6735
  if m.get('PlannedStartTime') is not None:
6536
6736
  self.planned_start_time = m.get('PlannedStartTime')
6737
+ if m.get('PromotionCode') is not None:
6738
+ self.promotion_code = m.get('PromotionCode')
6537
6739
  if m.get('ResourceGroupId') is not None:
6538
6740
  self.resource_group_id = m.get('ResourceGroupId')
6539
6741
  if m.get('ResourceOwnerAccount') is not None:
@@ -8478,16 +8680,19 @@ class CreateServiceLinkedRoleResponse(TeaModel):
8478
8680
  class CreateStoragePlanRequest(TeaModel):
8479
8681
  def __init__(
8480
8682
  self,
8683
+ auto_use_coupon: bool = None,
8481
8684
  client_token: str = None,
8482
8685
  owner_account: str = None,
8483
8686
  owner_id: int = None,
8484
8687
  period: str = None,
8688
+ promotion_code: str = None,
8485
8689
  resource_owner_account: str = None,
8486
8690
  resource_owner_id: int = None,
8487
8691
  storage_class: str = None,
8488
8692
  storage_type: str = None,
8489
8693
  used_time: str = None,
8490
8694
  ):
8695
+ self.auto_use_coupon = auto_use_coupon
8491
8696
  # The client token that is used to ensure the idempotence of the request. You can use the client to generate the value. Make sure that the value is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length.
8492
8697
  self.client_token = client_token
8493
8698
  self.owner_account = owner_account
@@ -8499,6 +8704,7 @@ class CreateStoragePlanRequest(TeaModel):
8499
8704
  #
8500
8705
  # This parameter is required.
8501
8706
  self.period = period
8707
+ self.promotion_code = promotion_code
8502
8708
  self.resource_owner_account = resource_owner_account
8503
8709
  self.resource_owner_id = resource_owner_id
8504
8710
  # The capacity of the storage plan. Unit: GB. Valid values: 50, 100, 200, 300, 500, 1000, 2000, 3000, 5000, 10000, 15000, 20000, 25000, 30000, 50000, 100000, and 200000
@@ -8529,6 +8735,8 @@ class CreateStoragePlanRequest(TeaModel):
8529
8735
  return _map
8530
8736
 
8531
8737
  result = dict()
8738
+ if self.auto_use_coupon is not None:
8739
+ result['AutoUseCoupon'] = self.auto_use_coupon
8532
8740
  if self.client_token is not None:
8533
8741
  result['ClientToken'] = self.client_token
8534
8742
  if self.owner_account is not None:
@@ -8537,6 +8745,8 @@ class CreateStoragePlanRequest(TeaModel):
8537
8745
  result['OwnerId'] = self.owner_id
8538
8746
  if self.period is not None:
8539
8747
  result['Period'] = self.period
8748
+ if self.promotion_code is not None:
8749
+ result['PromotionCode'] = self.promotion_code
8540
8750
  if self.resource_owner_account is not None:
8541
8751
  result['ResourceOwnerAccount'] = self.resource_owner_account
8542
8752
  if self.resource_owner_id is not None:
@@ -8551,6 +8761,8 @@ class CreateStoragePlanRequest(TeaModel):
8551
8761
 
8552
8762
  def from_map(self, m: dict = None):
8553
8763
  m = m or dict()
8764
+ if m.get('AutoUseCoupon') is not None:
8765
+ self.auto_use_coupon = m.get('AutoUseCoupon')
8554
8766
  if m.get('ClientToken') is not None:
8555
8767
  self.client_token = m.get('ClientToken')
8556
8768
  if m.get('OwnerAccount') is not None:
@@ -8559,6 +8771,8 @@ class CreateStoragePlanRequest(TeaModel):
8559
8771
  self.owner_id = m.get('OwnerId')
8560
8772
  if m.get('Period') is not None:
8561
8773
  self.period = m.get('Period')
8774
+ if m.get('PromotionCode') is not None:
8775
+ self.promotion_code = m.get('PromotionCode')
8562
8776
  if m.get('ResourceOwnerAccount') is not None:
8563
8777
  self.resource_owner_account = m.get('ResourceOwnerAccount')
8564
8778
  if m.get('ResourceOwnerId') is not None:
@@ -8758,6 +8972,119 @@ class DeleteAIDBClusterResponse(TeaModel):
8758
8972
  return self
8759
8973
 
8760
8974
 
8975
+ class DeleteAINodesRequest(TeaModel):
8976
+ def __init__(
8977
+ self,
8978
+ dbcluster_id: str = None,
8979
+ dbnode_id: List[str] = None,
8980
+ ):
8981
+ self.dbcluster_id = dbcluster_id
8982
+ self.dbnode_id = dbnode_id
8983
+
8984
+ def validate(self):
8985
+ pass
8986
+
8987
+ def to_map(self):
8988
+ _map = super().to_map()
8989
+ if _map is not None:
8990
+ return _map
8991
+
8992
+ result = dict()
8993
+ if self.dbcluster_id is not None:
8994
+ result['DBClusterId'] = self.dbcluster_id
8995
+ if self.dbnode_id is not None:
8996
+ result['DBNodeId'] = self.dbnode_id
8997
+ return result
8998
+
8999
+ def from_map(self, m: dict = None):
9000
+ m = m or dict()
9001
+ if m.get('DBClusterId') is not None:
9002
+ self.dbcluster_id = m.get('DBClusterId')
9003
+ if m.get('DBNodeId') is not None:
9004
+ self.dbnode_id = m.get('DBNodeId')
9005
+ return self
9006
+
9007
+
9008
+ class DeleteAINodesResponseBody(TeaModel):
9009
+ def __init__(
9010
+ self,
9011
+ dbcluster_id: str = None,
9012
+ order_id: str = None,
9013
+ request_id: str = None,
9014
+ ):
9015
+ self.dbcluster_id = dbcluster_id
9016
+ self.order_id = order_id
9017
+ self.request_id = request_id
9018
+
9019
+ def validate(self):
9020
+ pass
9021
+
9022
+ def to_map(self):
9023
+ _map = super().to_map()
9024
+ if _map is not None:
9025
+ return _map
9026
+
9027
+ result = dict()
9028
+ if self.dbcluster_id is not None:
9029
+ result['DBClusterId'] = self.dbcluster_id
9030
+ if self.order_id is not None:
9031
+ result['OrderId'] = self.order_id
9032
+ if self.request_id is not None:
9033
+ result['RequestId'] = self.request_id
9034
+ return result
9035
+
9036
+ def from_map(self, m: dict = None):
9037
+ m = m or dict()
9038
+ if m.get('DBClusterId') is not None:
9039
+ self.dbcluster_id = m.get('DBClusterId')
9040
+ if m.get('OrderId') is not None:
9041
+ self.order_id = m.get('OrderId')
9042
+ if m.get('RequestId') is not None:
9043
+ self.request_id = m.get('RequestId')
9044
+ return self
9045
+
9046
+
9047
+ class DeleteAINodesResponse(TeaModel):
9048
+ def __init__(
9049
+ self,
9050
+ headers: Dict[str, str] = None,
9051
+ status_code: int = None,
9052
+ body: DeleteAINodesResponseBody = None,
9053
+ ):
9054
+ self.headers = headers
9055
+ self.status_code = status_code
9056
+ self.body = body
9057
+
9058
+ def validate(self):
9059
+ if self.body:
9060
+ self.body.validate()
9061
+
9062
+ def to_map(self):
9063
+ _map = super().to_map()
9064
+ if _map is not None:
9065
+ return _map
9066
+
9067
+ result = dict()
9068
+ if self.headers is not None:
9069
+ result['headers'] = self.headers
9070
+ if self.status_code is not None:
9071
+ result['statusCode'] = self.status_code
9072
+ if self.body is not None:
9073
+ result['body'] = self.body.to_map()
9074
+ return result
9075
+
9076
+ def from_map(self, m: dict = None):
9077
+ m = m or dict()
9078
+ if m.get('headers') is not None:
9079
+ self.headers = m.get('headers')
9080
+ if m.get('statusCode') is not None:
9081
+ self.status_code = m.get('statusCode')
9082
+ if m.get('body') is not None:
9083
+ temp_model = DeleteAINodesResponseBody()
9084
+ self.body = temp_model.from_map(m['body'])
9085
+ return self
9086
+
9087
+
8761
9088
  class DeleteAccountRequest(TeaModel):
8762
9089
  def __init__(
8763
9090
  self,
@@ -12485,6 +12812,7 @@ class DescribeAIDBClusterAttributeResponseBody(TeaModel):
12485
12812
  dbcluster_status: str = None,
12486
12813
  dbnodes: List[DescribeAIDBClusterAttributeResponseBodyDBNodes] = None,
12487
12814
  dbversion: str = None,
12815
+ ecs_security_group_id: str = None,
12488
12816
  endpoint_list: List[DescribeAIDBClusterAttributeResponseBodyEndpointList] = None,
12489
12817
  expire_time: str = None,
12490
12818
  expired: bool = None,
@@ -12513,6 +12841,7 @@ class DescribeAIDBClusterAttributeResponseBody(TeaModel):
12513
12841
  self.dbcluster_status = dbcluster_status
12514
12842
  self.dbnodes = dbnodes
12515
12843
  self.dbversion = dbversion
12844
+ self.ecs_security_group_id = ecs_security_group_id
12516
12845
  self.endpoint_list = endpoint_list
12517
12846
  self.expire_time = expire_time
12518
12847
  self.expired = expired
@@ -12571,6 +12900,8 @@ class DescribeAIDBClusterAttributeResponseBody(TeaModel):
12571
12900
  result['DBNodes'].append(k.to_map() if k else None)
12572
12901
  if self.dbversion is not None:
12573
12902
  result['DBVersion'] = self.dbversion
12903
+ if self.ecs_security_group_id is not None:
12904
+ result['EcsSecurityGroupId'] = self.ecs_security_group_id
12574
12905
  result['EndpointList'] = []
12575
12906
  if self.endpoint_list is not None:
12576
12907
  for k in self.endpoint_list:
@@ -12636,6 +12967,8 @@ class DescribeAIDBClusterAttributeResponseBody(TeaModel):
12636
12967
  self.dbnodes.append(temp_model.from_map(k))
12637
12968
  if m.get('DBVersion') is not None:
12638
12969
  self.dbversion = m.get('DBVersion')
12970
+ if m.get('EcsSecurityGroupId') is not None:
12971
+ self.ecs_security_group_id = m.get('EcsSecurityGroupId')
12639
12972
  self.endpoint_list = []
12640
12973
  if m.get('EndpointList') is not None:
12641
12974
  for k in m.get('EndpointList'):
@@ -40840,6 +41173,7 @@ class DescribePolarFsAttributeResponseBody(TeaModel):
40840
41173
  category: str = None,
40841
41174
  client_download_path: str = None,
40842
41175
  create_time: str = None,
41176
+ custom_bucket_path: str = None,
40843
41177
  dbtype: str = None,
40844
41178
  expire_time: str = None,
40845
41179
  expired: str = None,
@@ -40874,6 +41208,7 @@ class DescribePolarFsAttributeResponseBody(TeaModel):
40874
41208
  self.category = category
40875
41209
  self.client_download_path = client_download_path
40876
41210
  self.create_time = create_time
41211
+ self.custom_bucket_path = custom_bucket_path
40877
41212
  self.dbtype = dbtype
40878
41213
  self.expire_time = expire_time
40879
41214
  self.expired = expired
@@ -40927,6 +41262,8 @@ class DescribePolarFsAttributeResponseBody(TeaModel):
40927
41262
  result['ClientDownloadPath'] = self.client_download_path
40928
41263
  if self.create_time is not None:
40929
41264
  result['CreateTime'] = self.create_time
41265
+ if self.custom_bucket_path is not None:
41266
+ result['CustomBucketPath'] = self.custom_bucket_path
40930
41267
  if self.dbtype is not None:
40931
41268
  result['DBType'] = self.dbtype
40932
41269
  if self.expire_time is not None:
@@ -40997,6 +41334,8 @@ class DescribePolarFsAttributeResponseBody(TeaModel):
40997
41334
  self.client_download_path = m.get('ClientDownloadPath')
40998
41335
  if m.get('CreateTime') is not None:
40999
41336
  self.create_time = m.get('CreateTime')
41337
+ if m.get('CustomBucketPath') is not None:
41338
+ self.custom_bucket_path = m.get('CustomBucketPath')
41000
41339
  if m.get('DBType') is not None:
41001
41340
  self.dbtype = m.get('DBType')
41002
41341
  if m.get('ExpireTime') is not None:
@@ -52506,11 +52845,14 @@ class ModifyDBClusterAndNodesParametersResponse(TeaModel):
52506
52845
  class ModifyDBClusterArchRequest(TeaModel):
52507
52846
  def __init__(
52508
52847
  self,
52848
+ auto_use_coupon: bool = None,
52509
52849
  dbcluster_id: str = None,
52510
52850
  hot_standby_cluster: str = None,
52851
+ promotion_code: str = None,
52511
52852
  region_id: str = None,
52512
52853
  standby_az: str = None,
52513
52854
  ):
52855
+ self.auto_use_coupon = auto_use_coupon
52514
52856
  # The ID of the cluster.
52515
52857
  self.dbcluster_id = dbcluster_id
52516
52858
  # Specifies whether to enable the hot standby storage cluster feature. Valid values:
@@ -52518,6 +52860,7 @@ class ModifyDBClusterArchRequest(TeaModel):
52518
52860
  # * **on**: enables hot standby storage cluster.
52519
52861
  # * **equal**: Enable a peer-to-peer cluster.
52520
52862
  self.hot_standby_cluster = hot_standby_cluster
52863
+ self.promotion_code = promotion_code
52521
52864
  # The region ID.
52522
52865
  #
52523
52866
  # > You can call the [DescribeRegions](https://help.aliyun.com/document_detail/98041.html) operation to query information about regions.
@@ -52538,10 +52881,14 @@ class ModifyDBClusterArchRequest(TeaModel):
52538
52881
  return _map
52539
52882
 
52540
52883
  result = dict()
52884
+ if self.auto_use_coupon is not None:
52885
+ result['AutoUseCoupon'] = self.auto_use_coupon
52541
52886
  if self.dbcluster_id is not None:
52542
52887
  result['DBClusterId'] = self.dbcluster_id
52543
52888
  if self.hot_standby_cluster is not None:
52544
52889
  result['HotStandbyCluster'] = self.hot_standby_cluster
52890
+ if self.promotion_code is not None:
52891
+ result['PromotionCode'] = self.promotion_code
52545
52892
  if self.region_id is not None:
52546
52893
  result['RegionId'] = self.region_id
52547
52894
  if self.standby_az is not None:
@@ -52550,10 +52897,14 @@ class ModifyDBClusterArchRequest(TeaModel):
52550
52897
 
52551
52898
  def from_map(self, m: dict = None):
52552
52899
  m = m or dict()
52900
+ if m.get('AutoUseCoupon') is not None:
52901
+ self.auto_use_coupon = m.get('AutoUseCoupon')
52553
52902
  if m.get('DBClusterId') is not None:
52554
52903
  self.dbcluster_id = m.get('DBClusterId')
52555
52904
  if m.get('HotStandbyCluster') is not None:
52556
52905
  self.hot_standby_cluster = m.get('HotStandbyCluster')
52906
+ if m.get('PromotionCode') is not None:
52907
+ self.promotion_code = m.get('PromotionCode')
52557
52908
  if m.get('RegionId') is not None:
52558
52909
  self.region_id = m.get('RegionId')
52559
52910
  if m.get('StandbyAZ') is not None:
@@ -55185,14 +55536,17 @@ class ModifyDBClusterServerlessConfResponse(TeaModel):
55185
55536
  class ModifyDBClusterStoragePerformanceRequest(TeaModel):
55186
55537
  def __init__(
55187
55538
  self,
55539
+ auto_use_coupon: bool = None,
55188
55540
  bursting_enabled: str = None,
55189
55541
  client_token: str = None,
55190
55542
  dbcluster_id: str = None,
55191
55543
  modify_type: str = None,
55544
+ promotion_code: str = None,
55192
55545
  provisioned_iops: int = None,
55193
55546
  resource_owner_id: int = None,
55194
55547
  storage_type: str = None,
55195
55548
  ):
55549
+ self.auto_use_coupon = auto_use_coupon
55196
55550
  # Specifies whether to enable the I/O Burst feature for the ESSD AutoPL disk. Valid value:
55197
55551
  #
55198
55552
  # * **true**\
@@ -55204,6 +55558,7 @@ class ModifyDBClusterStoragePerformanceRequest(TeaModel):
55204
55558
  # This parameter is required.
55205
55559
  self.dbcluster_id = dbcluster_id
55206
55560
  self.modify_type = modify_type
55561
+ self.promotion_code = promotion_code
55207
55562
  self.provisioned_iops = provisioned_iops
55208
55563
  self.resource_owner_id = resource_owner_id
55209
55564
  self.storage_type = storage_type
@@ -55217,6 +55572,8 @@ class ModifyDBClusterStoragePerformanceRequest(TeaModel):
55217
55572
  return _map
55218
55573
 
55219
55574
  result = dict()
55575
+ if self.auto_use_coupon is not None:
55576
+ result['AutoUseCoupon'] = self.auto_use_coupon
55220
55577
  if self.bursting_enabled is not None:
55221
55578
  result['BurstingEnabled'] = self.bursting_enabled
55222
55579
  if self.client_token is not None:
@@ -55225,6 +55582,8 @@ class ModifyDBClusterStoragePerformanceRequest(TeaModel):
55225
55582
  result['DBClusterId'] = self.dbcluster_id
55226
55583
  if self.modify_type is not None:
55227
55584
  result['ModifyType'] = self.modify_type
55585
+ if self.promotion_code is not None:
55586
+ result['PromotionCode'] = self.promotion_code
55228
55587
  if self.provisioned_iops is not None:
55229
55588
  result['ProvisionedIops'] = self.provisioned_iops
55230
55589
  if self.resource_owner_id is not None:
@@ -55235,6 +55594,8 @@ class ModifyDBClusterStoragePerformanceRequest(TeaModel):
55235
55594
 
55236
55595
  def from_map(self, m: dict = None):
55237
55596
  m = m or dict()
55597
+ if m.get('AutoUseCoupon') is not None:
55598
+ self.auto_use_coupon = m.get('AutoUseCoupon')
55238
55599
  if m.get('BurstingEnabled') is not None:
55239
55600
  self.bursting_enabled = m.get('BurstingEnabled')
55240
55601
  if m.get('ClientToken') is not None:
@@ -55243,6 +55604,8 @@ class ModifyDBClusterStoragePerformanceRequest(TeaModel):
55243
55604
  self.dbcluster_id = m.get('DBClusterId')
55244
55605
  if m.get('ModifyType') is not None:
55245
55606
  self.modify_type = m.get('ModifyType')
55607
+ if m.get('PromotionCode') is not None:
55608
+ self.promotion_code = m.get('PromotionCode')
55246
55609
  if m.get('ProvisionedIops') is not None:
55247
55610
  self.provisioned_iops = m.get('ProvisionedIops')
55248
55611
  if m.get('ResourceOwnerId') is not None:
@@ -55335,6 +55698,7 @@ class ModifyDBClusterStoragePerformanceResponse(TeaModel):
55335
55698
  class ModifyDBClusterStorageSpaceRequest(TeaModel):
55336
55699
  def __init__(
55337
55700
  self,
55701
+ auto_use_coupon: bool = None,
55338
55702
  client_token: str = None,
55339
55703
  cloud_provider: str = None,
55340
55704
  dbcluster_id: str = None,
@@ -55342,11 +55706,13 @@ class ModifyDBClusterStorageSpaceRequest(TeaModel):
55342
55706
  owner_id: int = None,
55343
55707
  planned_end_time: str = None,
55344
55708
  planned_start_time: str = None,
55709
+ promotion_code: str = None,
55345
55710
  resource_owner_account: str = None,
55346
55711
  resource_owner_id: int = None,
55347
55712
  storage_space: int = None,
55348
55713
  sub_category: str = None,
55349
55714
  ):
55715
+ self.auto_use_coupon = auto_use_coupon
55350
55716
  # The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. The token is case-sensitive.
55351
55717
  self.client_token = client_token
55352
55718
  self.cloud_provider = cloud_provider
@@ -55365,6 +55731,7 @@ class ModifyDBClusterStorageSpaceRequest(TeaModel):
55365
55731
  # >- The earliest start time of the task can be a point in time within the next 24 hours. For example, if the current time is `2021-01-14T09:00:00Z`, you can specify a point in the time that ranges from `2021-01-14T09:00:00Z` to `2021-01-15T09:00:00Z`.
55366
55732
  # >- If this parameter is left empty, the upgrade task is immediately performed.
55367
55733
  self.planned_start_time = planned_start_time
55734
+ self.promotion_code = promotion_code
55368
55735
  self.resource_owner_account = resource_owner_account
55369
55736
  self.resource_owner_id = resource_owner_id
55370
55737
  # The storage capacity that you can select when you change the cluster. Unit: GB.
@@ -55388,6 +55755,8 @@ class ModifyDBClusterStorageSpaceRequest(TeaModel):
55388
55755
  return _map
55389
55756
 
55390
55757
  result = dict()
55758
+ if self.auto_use_coupon is not None:
55759
+ result['AutoUseCoupon'] = self.auto_use_coupon
55391
55760
  if self.client_token is not None:
55392
55761
  result['ClientToken'] = self.client_token
55393
55762
  if self.cloud_provider is not None:
@@ -55402,6 +55771,8 @@ class ModifyDBClusterStorageSpaceRequest(TeaModel):
55402
55771
  result['PlannedEndTime'] = self.planned_end_time
55403
55772
  if self.planned_start_time is not None:
55404
55773
  result['PlannedStartTime'] = self.planned_start_time
55774
+ if self.promotion_code is not None:
55775
+ result['PromotionCode'] = self.promotion_code
55405
55776
  if self.resource_owner_account is not None:
55406
55777
  result['ResourceOwnerAccount'] = self.resource_owner_account
55407
55778
  if self.resource_owner_id is not None:
@@ -55414,6 +55785,8 @@ class ModifyDBClusterStorageSpaceRequest(TeaModel):
55414
55785
 
55415
55786
  def from_map(self, m: dict = None):
55416
55787
  m = m or dict()
55788
+ if m.get('AutoUseCoupon') is not None:
55789
+ self.auto_use_coupon = m.get('AutoUseCoupon')
55417
55790
  if m.get('ClientToken') is not None:
55418
55791
  self.client_token = m.get('ClientToken')
55419
55792
  if m.get('CloudProvider') is not None:
@@ -55428,6 +55801,8 @@ class ModifyDBClusterStorageSpaceRequest(TeaModel):
55428
55801
  self.planned_end_time = m.get('PlannedEndTime')
55429
55802
  if m.get('PlannedStartTime') is not None:
55430
55803
  self.planned_start_time = m.get('PlannedStartTime')
55804
+ if m.get('PromotionCode') is not None:
55805
+ self.promotion_code = m.get('PromotionCode')
55431
55806
  if m.get('ResourceOwnerAccount') is not None:
55432
55807
  self.resource_owner_account = m.get('ResourceOwnerAccount')
55433
55808
  if m.get('ResourceOwnerId') is not None:
@@ -56310,6 +56685,7 @@ class ModifyDBEndpointAddressResponse(TeaModel):
56310
56685
  class ModifyDBNodeClassRequest(TeaModel):
56311
56686
  def __init__(
56312
56687
  self,
56688
+ auto_use_coupon: bool = None,
56313
56689
  client_token: str = None,
56314
56690
  cloud_provider: str = None,
56315
56691
  dbcluster_id: str = None,
@@ -56321,10 +56697,12 @@ class ModifyDBNodeClassRequest(TeaModel):
56321
56697
  planned_end_time: str = None,
56322
56698
  planned_flashing_off_time: str = None,
56323
56699
  planned_start_time: str = None,
56700
+ promotion_code: str = None,
56324
56701
  resource_owner_account: str = None,
56325
56702
  resource_owner_id: int = None,
56326
56703
  sub_category: str = None,
56327
56704
  ):
56705
+ self.auto_use_coupon = auto_use_coupon
56328
56706
  # The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. The token is case-sensitive.
56329
56707
  self.client_token = client_token
56330
56708
  self.cloud_provider = cloud_provider
@@ -56363,6 +56741,7 @@ class ModifyDBNodeClassRequest(TeaModel):
56363
56741
  # >* The earliest start time of the task can be a point in time within the next 24 hours. For example, if the current time is `2021-01-14T09:00:00Z`, you can specify a point in the time that ranges from `2021-01-14T09:00:00Z` to `2021-01-15T09:00:00Z`.
56364
56742
  # >* If this parameter is left empty, the upgrade task is immediately performed.
56365
56743
  self.planned_start_time = planned_start_time
56744
+ self.promotion_code = promotion_code
56366
56745
  self.resource_owner_account = resource_owner_account
56367
56746
  self.resource_owner_id = resource_owner_id
56368
56747
  # The category of the cluster. Valid values:
@@ -56380,6 +56759,8 @@ class ModifyDBNodeClassRequest(TeaModel):
56380
56759
  return _map
56381
56760
 
56382
56761
  result = dict()
56762
+ if self.auto_use_coupon is not None:
56763
+ result['AutoUseCoupon'] = self.auto_use_coupon
56383
56764
  if self.client_token is not None:
56384
56765
  result['ClientToken'] = self.client_token
56385
56766
  if self.cloud_provider is not None:
@@ -56402,6 +56783,8 @@ class ModifyDBNodeClassRequest(TeaModel):
56402
56783
  result['PlannedFlashingOffTime'] = self.planned_flashing_off_time
56403
56784
  if self.planned_start_time is not None:
56404
56785
  result['PlannedStartTime'] = self.planned_start_time
56786
+ if self.promotion_code is not None:
56787
+ result['PromotionCode'] = self.promotion_code
56405
56788
  if self.resource_owner_account is not None:
56406
56789
  result['ResourceOwnerAccount'] = self.resource_owner_account
56407
56790
  if self.resource_owner_id is not None:
@@ -56412,6 +56795,8 @@ class ModifyDBNodeClassRequest(TeaModel):
56412
56795
 
56413
56796
  def from_map(self, m: dict = None):
56414
56797
  m = m or dict()
56798
+ if m.get('AutoUseCoupon') is not None:
56799
+ self.auto_use_coupon = m.get('AutoUseCoupon')
56415
56800
  if m.get('ClientToken') is not None:
56416
56801
  self.client_token = m.get('ClientToken')
56417
56802
  if m.get('CloudProvider') is not None:
@@ -56434,6 +56819,8 @@ class ModifyDBNodeClassRequest(TeaModel):
56434
56819
  self.planned_flashing_off_time = m.get('PlannedFlashingOffTime')
56435
56820
  if m.get('PlannedStartTime') is not None:
56436
56821
  self.planned_start_time = m.get('PlannedStartTime')
56822
+ if m.get('PromotionCode') is not None:
56823
+ self.promotion_code = m.get('PromotionCode')
56437
56824
  if m.get('ResourceOwnerAccount') is not None:
56438
56825
  self.resource_owner_account = m.get('ResourceOwnerAccount')
56439
56826
  if m.get('ResourceOwnerId') is not None:
@@ -57147,6 +57534,7 @@ class ModifyDBNodesClassRequestDBNode(TeaModel):
57147
57534
  class ModifyDBNodesClassRequest(TeaModel):
57148
57535
  def __init__(
57149
57536
  self,
57537
+ auto_use_coupon: bool = None,
57150
57538
  client_token: str = None,
57151
57539
  cloud_provider: str = None,
57152
57540
  dbcluster_id: str = None,
@@ -57157,10 +57545,12 @@ class ModifyDBNodesClassRequest(TeaModel):
57157
57545
  planned_end_time: str = None,
57158
57546
  planned_flashing_off_time: str = None,
57159
57547
  planned_start_time: str = None,
57548
+ promotion_code: str = None,
57160
57549
  resource_owner_account: str = None,
57161
57550
  resource_owner_id: int = None,
57162
57551
  sub_category: str = None,
57163
57552
  ):
57553
+ self.auto_use_coupon = auto_use_coupon
57164
57554
  # The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. The token is case-sensitive.
57165
57555
  self.client_token = client_token
57166
57556
  self.cloud_provider = cloud_provider
@@ -57193,6 +57583,7 @@ class ModifyDBNodesClassRequest(TeaModel):
57193
57583
  # >* The earliest start time of the task can be a point in time within the next 24 hours. For example, if the current time is `2021-01-14T09:00:00Z`, you can specify a point in the time that ranges from `2021-01-14T09:00:00Z` to `2021-01-15T09:00:00Z`.
57194
57584
  # >* If this parameter is left empty, the upgrade task is immediately performed.
57195
57585
  self.planned_start_time = planned_start_time
57586
+ self.promotion_code = promotion_code
57196
57587
  self.resource_owner_account = resource_owner_account
57197
57588
  self.resource_owner_id = resource_owner_id
57198
57589
  # The category of the cluster. Valid values:
@@ -57213,6 +57604,8 @@ class ModifyDBNodesClassRequest(TeaModel):
57213
57604
  return _map
57214
57605
 
57215
57606
  result = dict()
57607
+ if self.auto_use_coupon is not None:
57608
+ result['AutoUseCoupon'] = self.auto_use_coupon
57216
57609
  if self.client_token is not None:
57217
57610
  result['ClientToken'] = self.client_token
57218
57611
  if self.cloud_provider is not None:
@@ -57235,6 +57628,8 @@ class ModifyDBNodesClassRequest(TeaModel):
57235
57628
  result['PlannedFlashingOffTime'] = self.planned_flashing_off_time
57236
57629
  if self.planned_start_time is not None:
57237
57630
  result['PlannedStartTime'] = self.planned_start_time
57631
+ if self.promotion_code is not None:
57632
+ result['PromotionCode'] = self.promotion_code
57238
57633
  if self.resource_owner_account is not None:
57239
57634
  result['ResourceOwnerAccount'] = self.resource_owner_account
57240
57635
  if self.resource_owner_id is not None:
@@ -57245,6 +57640,8 @@ class ModifyDBNodesClassRequest(TeaModel):
57245
57640
 
57246
57641
  def from_map(self, m: dict = None):
57247
57642
  m = m or dict()
57643
+ if m.get('AutoUseCoupon') is not None:
57644
+ self.auto_use_coupon = m.get('AutoUseCoupon')
57248
57645
  if m.get('ClientToken') is not None:
57249
57646
  self.client_token = m.get('ClientToken')
57250
57647
  if m.get('CloudProvider') is not None:
@@ -57268,6 +57665,8 @@ class ModifyDBNodesClassRequest(TeaModel):
57268
57665
  self.planned_flashing_off_time = m.get('PlannedFlashingOffTime')
57269
57666
  if m.get('PlannedStartTime') is not None:
57270
57667
  self.planned_start_time = m.get('PlannedStartTime')
57668
+ if m.get('PromotionCode') is not None:
57669
+ self.promotion_code = m.get('PromotionCode')
57271
57670
  if m.get('ResourceOwnerAccount') is not None:
57272
57671
  self.resource_owner_account = m.get('ResourceOwnerAccount')
57273
57672
  if m.get('ResourceOwnerId') is not None:
@@ -62499,6 +62898,7 @@ class TempModifyDBNodeRequestDBNode(TeaModel):
62499
62898
  class TempModifyDBNodeRequest(TeaModel):
62500
62899
  def __init__(
62501
62900
  self,
62901
+ auto_use_coupon: bool = None,
62502
62902
  client_token: str = None,
62503
62903
  dbcluster_id: str = None,
62504
62904
  dbnode: List[TempModifyDBNodeRequestDBNode] = None,
@@ -62506,10 +62906,12 @@ class TempModifyDBNodeRequest(TeaModel):
62506
62906
  operation_type: str = None,
62507
62907
  owner_account: str = None,
62508
62908
  owner_id: int = None,
62909
+ promotion_code: str = None,
62509
62910
  resource_owner_account: str = None,
62510
62911
  resource_owner_id: int = None,
62511
62912
  restore_time: str = None,
62512
62913
  ):
62914
+ self.auto_use_coupon = auto_use_coupon
62513
62915
  # The client token that is used to ensure the idempotence of the request. You can use the client to generate the value. Make sure that the value is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length.
62514
62916
  self.client_token = client_token
62515
62917
  # The cluster ID.
@@ -62532,6 +62934,7 @@ class TempModifyDBNodeRequest(TeaModel):
62532
62934
  self.operation_type = operation_type
62533
62935
  self.owner_account = owner_account
62534
62936
  self.owner_id = owner_id
62937
+ self.promotion_code = promotion_code
62535
62938
  self.resource_owner_account = resource_owner_account
62536
62939
  self.resource_owner_id = resource_owner_id
62537
62940
  # The rollback time of the configuration for the temporary upgrade. Specify the time in the ISO 8601 standard in the YYYY-MM-DD hh:mm:ss format.
@@ -62553,6 +62956,8 @@ class TempModifyDBNodeRequest(TeaModel):
62553
62956
  return _map
62554
62957
 
62555
62958
  result = dict()
62959
+ if self.auto_use_coupon is not None:
62960
+ result['AutoUseCoupon'] = self.auto_use_coupon
62556
62961
  if self.client_token is not None:
62557
62962
  result['ClientToken'] = self.client_token
62558
62963
  if self.dbcluster_id is not None:
@@ -62569,6 +62974,8 @@ class TempModifyDBNodeRequest(TeaModel):
62569
62974
  result['OwnerAccount'] = self.owner_account
62570
62975
  if self.owner_id is not None:
62571
62976
  result['OwnerId'] = self.owner_id
62977
+ if self.promotion_code is not None:
62978
+ result['PromotionCode'] = self.promotion_code
62572
62979
  if self.resource_owner_account is not None:
62573
62980
  result['ResourceOwnerAccount'] = self.resource_owner_account
62574
62981
  if self.resource_owner_id is not None:
@@ -62579,6 +62986,8 @@ class TempModifyDBNodeRequest(TeaModel):
62579
62986
 
62580
62987
  def from_map(self, m: dict = None):
62581
62988
  m = m or dict()
62989
+ if m.get('AutoUseCoupon') is not None:
62990
+ self.auto_use_coupon = m.get('AutoUseCoupon')
62582
62991
  if m.get('ClientToken') is not None:
62583
62992
  self.client_token = m.get('ClientToken')
62584
62993
  if m.get('DBClusterId') is not None:
@@ -62596,6 +63005,8 @@ class TempModifyDBNodeRequest(TeaModel):
62596
63005
  self.owner_account = m.get('OwnerAccount')
62597
63006
  if m.get('OwnerId') is not None:
62598
63007
  self.owner_id = m.get('OwnerId')
63008
+ if m.get('PromotionCode') is not None:
63009
+ self.promotion_code = m.get('PromotionCode')
62599
63010
  if m.get('ResourceOwnerAccount') is not None:
62600
63011
  self.resource_owner_account = m.get('ResourceOwnerAccount')
62601
63012
  if m.get('ResourceOwnerId') is not None:
@@ -62698,18 +63109,21 @@ class TempModifyDBNodeResponse(TeaModel):
62698
63109
  class TransformDBClusterPayTypeRequest(TeaModel):
62699
63110
  def __init__(
62700
63111
  self,
63112
+ auto_use_coupon: bool = None,
62701
63113
  client_token: str = None,
62702
63114
  dbcluster_id: str = None,
62703
63115
  owner_account: str = None,
62704
63116
  owner_id: int = None,
62705
63117
  pay_type: str = None,
62706
63118
  period: str = None,
63119
+ promotion_code: str = None,
62707
63120
  region_id: str = None,
62708
63121
  resource_group_id: str = None,
62709
63122
  resource_owner_account: str = None,
62710
63123
  resource_owner_id: int = None,
62711
63124
  used_time: str = None,
62712
63125
  ):
63126
+ self.auto_use_coupon = auto_use_coupon
62713
63127
  # The client token that is used to ensure the idempotence of the request. You can use the client to generate the value. Make sure that the value is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.
62714
63128
  self.client_token = client_token
62715
63129
  # The cluster ID.
@@ -62732,6 +63146,7 @@ class TransformDBClusterPayTypeRequest(TeaModel):
62732
63146
  #
62733
63147
  # > This parameter is required if you set the **PayType** parameter to **Prepaid**.
62734
63148
  self.period = period
63149
+ self.promotion_code = promotion_code
62735
63150
  # The ID of the region.
62736
63151
  #
62737
63152
  # This parameter is required.
@@ -62757,6 +63172,8 @@ class TransformDBClusterPayTypeRequest(TeaModel):
62757
63172
  return _map
62758
63173
 
62759
63174
  result = dict()
63175
+ if self.auto_use_coupon is not None:
63176
+ result['AutoUseCoupon'] = self.auto_use_coupon
62760
63177
  if self.client_token is not None:
62761
63178
  result['ClientToken'] = self.client_token
62762
63179
  if self.dbcluster_id is not None:
@@ -62769,6 +63186,8 @@ class TransformDBClusterPayTypeRequest(TeaModel):
62769
63186
  result['PayType'] = self.pay_type
62770
63187
  if self.period is not None:
62771
63188
  result['Period'] = self.period
63189
+ if self.promotion_code is not None:
63190
+ result['PromotionCode'] = self.promotion_code
62772
63191
  if self.region_id is not None:
62773
63192
  result['RegionId'] = self.region_id
62774
63193
  if self.resource_group_id is not None:
@@ -62783,6 +63202,8 @@ class TransformDBClusterPayTypeRequest(TeaModel):
62783
63202
 
62784
63203
  def from_map(self, m: dict = None):
62785
63204
  m = m or dict()
63205
+ if m.get('AutoUseCoupon') is not None:
63206
+ self.auto_use_coupon = m.get('AutoUseCoupon')
62786
63207
  if m.get('ClientToken') is not None:
62787
63208
  self.client_token = m.get('ClientToken')
62788
63209
  if m.get('DBClusterId') is not None:
@@ -62795,6 +63216,8 @@ class TransformDBClusterPayTypeRequest(TeaModel):
62795
63216
  self.pay_type = m.get('PayType')
62796
63217
  if m.get('Period') is not None:
62797
63218
  self.period = m.get('Period')
63219
+ if m.get('PromotionCode') is not None:
63220
+ self.promotion_code = m.get('PromotionCode')
62798
63221
  if m.get('RegionId') is not None:
62799
63222
  self.region_id = m.get('RegionId')
62800
63223
  if m.get('ResourceGroupId') is not None: