@@ -43,6 +43,8 @@ class AllocateEipAddressRequest(object):
4343 'period' : 'int' ,
4444 'period_unit' : 'int' ,
4545 'project_name' : 'str' ,
46+ 'renew_period_times' : 'int' ,
47+ 'renew_type' : 'int' ,
4648 'security_protection_types' : 'list[str]' ,
4749 'tags' : 'list[TagForAllocateEipAddressInput]'
4850 }
@@ -58,11 +60,13 @@ class AllocateEipAddressRequest(object):
5860 'period' : 'Period' ,
5961 'period_unit' : 'PeriodUnit' ,
6062 'project_name' : 'ProjectName' ,
63+ 'renew_period_times' : 'RenewPeriodTimes' ,
64+ 'renew_type' : 'RenewType' ,
6165 'security_protection_types' : 'SecurityProtectionTypes' ,
6266 'tags' : 'Tags'
6367 }
6468
65- def __init__ (self , bandwidth = None , bandwidth_package_id = None , billing_type = None , client_token = None , description = None , isp = None , name = None , period = None , period_unit = None , project_name = None , security_protection_types = None , tags = None , _configuration = None ): # noqa: E501
69+ def __init__ (self , bandwidth = None , bandwidth_package_id = None , billing_type = None , client_token = None , description = None , isp = None , name = None , period = None , period_unit = None , project_name = None , renew_period_times = None , renew_type = None , security_protection_types = None , tags = None , _configuration = None ): # noqa: E501
6670 """AllocateEipAddressRequest - a model defined in Swagger""" # noqa: E501
6771 if _configuration is None :
6872 _configuration = Configuration ()
@@ -78,6 +82,8 @@ def __init__(self, bandwidth=None, bandwidth_package_id=None, billing_type=None,
7882 self ._period = None
7983 self ._period_unit = None
8084 self ._project_name = None
85+ self ._renew_period_times = None
86+ self ._renew_type = None
8187 self ._security_protection_types = None
8288 self ._tags = None
8389 self .discriminator = None
@@ -102,6 +108,10 @@ def __init__(self, bandwidth=None, bandwidth_package_id=None, billing_type=None,
102108 self .period_unit = period_unit
103109 if project_name is not None :
104110 self .project_name = project_name
111+ if renew_period_times is not None :
112+ self .renew_period_times = renew_period_times
113+ if renew_type is not None :
114+ self .renew_type = renew_type
105115 if security_protection_types is not None :
106116 self .security_protection_types = security_protection_types
107117 if tags is not None :
@@ -354,6 +364,54 @@ def project_name(self, project_name):
354364
355365 self ._project_name = project_name
356366
367+ @property
368+ def renew_period_times (self ):
369+ """Gets the renew_period_times of this AllocateEipAddressRequest. # noqa: E501
370+
371+
372+ :return: The renew_period_times of this AllocateEipAddressRequest. # noqa: E501
373+ :rtype: int
374+ """
375+ return self ._renew_period_times
376+
377+ @renew_period_times .setter
378+ def renew_period_times (self , renew_period_times ):
379+ """Sets the renew_period_times of this AllocateEipAddressRequest.
380+
381+
382+ :param renew_period_times: The renew_period_times of this AllocateEipAddressRequest. # noqa: E501
383+ :type: int
384+ """
385+
386+ self ._renew_period_times = renew_period_times
387+
388+ @property
389+ def renew_type (self ):
390+ """Gets the renew_type of this AllocateEipAddressRequest. # noqa: E501
391+
392+
393+ :return: The renew_type of this AllocateEipAddressRequest. # noqa: E501
394+ :rtype: int
395+ """
396+ return self ._renew_type
397+
398+ @renew_type .setter
399+ def renew_type (self , renew_type ):
400+ """Sets the renew_type of this AllocateEipAddressRequest.
401+
402+
403+ :param renew_type: The renew_type of this AllocateEipAddressRequest. # noqa: E501
404+ :type: int
405+ """
406+ if (self ._configuration .client_side_validation and
407+ renew_type is not None and renew_type > 3 ): # noqa: E501
408+ raise ValueError ("Invalid value for `renew_type`, must be a value less than or equal to `3`" ) # noqa: E501
409+ if (self ._configuration .client_side_validation and
410+ renew_type is not None and renew_type < 1 ): # noqa: E501
411+ raise ValueError ("Invalid value for `renew_type`, must be a value greater than or equal to `1`" ) # noqa: E501
412+
413+ self ._renew_type = renew_type
414+
357415 @property
358416 def security_protection_types (self ):
359417 """Gets the security_protection_types of this AllocateEipAddressRequest. # noqa: E501
0 commit comments