@@ -42,6 +42,7 @@ class CreateKeyRequest(object):
4242 'multi_region' : 'bool' ,
4343 'origin' : 'str' ,
4444 'protection_level' : 'str' ,
45+ 'rotate_interval' : 'int' ,
4546 'rotate_state' : 'str' ,
4647 'tags' : 'list[TagForCreateKeyInput]' ,
4748 'xks_key_id' : 'str'
@@ -57,12 +58,13 @@ class CreateKeyRequest(object):
5758 'multi_region' : 'MultiRegion' ,
5859 'origin' : 'Origin' ,
5960 'protection_level' : 'ProtectionLevel' ,
61+ 'rotate_interval' : 'RotateInterval' ,
6062 'rotate_state' : 'RotateState' ,
6163 'tags' : 'Tags' ,
6264 'xks_key_id' : 'XksKeyID'
6365 }
6466
65- def __init__ (self , custom_key_store_id = None , description = None , key_name = None , key_spec = None , key_usage = None , keyring_name = None , multi_region = None , origin = None , protection_level = None , rotate_state = None , tags = None , xks_key_id = None , _configuration = None ): # noqa: E501
67+ def __init__ (self , custom_key_store_id = None , description = None , key_name = None , key_spec = None , key_usage = None , keyring_name = None , multi_region = None , origin = None , protection_level = None , rotate_interval = None , rotate_state = None , tags = None , xks_key_id = None , _configuration = None ): # noqa: E501
6668 """CreateKeyRequest - a model defined in Swagger""" # noqa: E501
6769 if _configuration is None :
6870 _configuration = Configuration ()
@@ -77,6 +79,7 @@ def __init__(self, custom_key_store_id=None, description=None, key_name=None, ke
7779 self ._multi_region = None
7880 self ._origin = None
7981 self ._protection_level = None
82+ self ._rotate_interval = None
8083 self ._rotate_state = None
8184 self ._tags = None
8285 self ._xks_key_id = None
@@ -98,6 +101,8 @@ def __init__(self, custom_key_store_id=None, description=None, key_name=None, ke
98101 self .origin = origin
99102 if protection_level is not None :
100103 self .protection_level = protection_level
104+ if rotate_interval is not None :
105+ self .rotate_interval = rotate_interval
101106 if rotate_state is not None :
102107 self .rotate_state = rotate_state
103108 if tags is not None :
@@ -319,6 +324,33 @@ def protection_level(self, protection_level):
319324
320325 self ._protection_level = protection_level
321326
327+ @property
328+ def rotate_interval (self ):
329+ """Gets the rotate_interval of this CreateKeyRequest. # noqa: E501
330+
331+
332+ :return: The rotate_interval of this CreateKeyRequest. # noqa: E501
333+ :rtype: int
334+ """
335+ return self ._rotate_interval
336+
337+ @rotate_interval .setter
338+ def rotate_interval (self , rotate_interval ):
339+ """Sets the rotate_interval of this CreateKeyRequest.
340+
341+
342+ :param rotate_interval: The rotate_interval of this CreateKeyRequest. # noqa: E501
343+ :type: int
344+ """
345+ if (self ._configuration .client_side_validation and
346+ rotate_interval is not None and rotate_interval > 2560 ): # noqa: E501
347+ raise ValueError ("Invalid value for `rotate_interval`, must be a value less than or equal to `2560`" ) # noqa: E501
348+ if (self ._configuration .client_side_validation and
349+ rotate_interval is not None and rotate_interval < 90 ): # noqa: E501
350+ raise ValueError ("Invalid value for `rotate_interval`, must be a value greater than or equal to `90`" ) # noqa: E501
351+
352+ self ._rotate_interval = rotate_interval
353+
322354 @property
323355 def rotate_state (self ):
324356 """Gets the rotate_state of this CreateKeyRequest. # noqa: E501
0 commit comments