@@ -22853,8 +22853,10 @@ class PublicCertificatePrototype(SecretPrototype):
22853
22853
:attr bool bundle_certs: (optional) This field indicates whether your issued
22854
22854
certificate is bundled with intermediate certificates. Set to `false` for the
22855
22855
certificate file to contain only the issued certificate.
22856
- :attr RotationPolicy rotation: (optional) This field indicates whether Secrets
22857
- Manager rotates your secrets automatically.
22856
+ :attr PublicCertificateRotationPolicy rotation: (optional) This field indicates
22857
+ whether Secrets Manager rotates your secrets automatically.
22858
+ For public certificates, if `auto_rotate` is set to `true`, the service reorders
22859
+ your certificate for 31 days, before it expires.
22858
22860
:attr dict custom_metadata: (optional) The secret metadata that a user can
22859
22861
customize.
22860
22862
:attr dict version_custom_metadata: (optional) The secret version metadata that
@@ -22874,7 +22876,7 @@ def __init__(self,
22874
22876
alt_names: List[str] = None,
22875
22877
key_algorithm: str = None,
22876
22878
bundle_certs: bool = None,
22877
- rotation: 'RotationPolicy ' = None,
22879
+ rotation: 'PublicCertificateRotationPolicy ' = None,
22878
22880
custom_metadata: dict = None,
22879
22881
version_custom_metadata: dict = None) -> None:
22880
22882
"""
@@ -22920,8 +22922,10 @@ def __init__(self,
22920
22922
:param bool bundle_certs: (optional) This field indicates whether your
22921
22923
issued certificate is bundled with intermediate certificates. Set to
22922
22924
`false` for the certificate file to contain only the issued certificate.
22923
- :param RotationPolicy rotation: (optional) This field indicates whether
22924
- Secrets Manager rotates your secrets automatically.
22925
+ :param PublicCertificateRotationPolicy rotation: (optional) This field
22926
+ indicates whether Secrets Manager rotates your secrets automatically.
22927
+ For public certificates, if `auto_rotate` is set to `true`, the service
22928
+ reorders your certificate for 31 days, before it expires.
22925
22929
:param dict custom_metadata: (optional) The secret metadata that a user can
22926
22930
customize.
22927
22931
:param dict version_custom_metadata: (optional) The secret version metadata
@@ -22980,7 +22984,7 @@ def from_dict(cls, _dict: Dict) -> 'PublicCertificatePrototype':
22980
22984
if 'bundle_certs' in _dict:
22981
22985
args['bundle_certs'] = _dict.get('bundle_certs')
22982
22986
if 'rotation' in _dict:
22983
- args['rotation'] = _dict.get('rotation')
22987
+ args['rotation'] = PublicCertificateRotationPolicy.from_dict( _dict.get('rotation') )
22984
22988
if 'custom_metadata' in _dict:
22985
22989
args['custom_metadata'] = _dict.get('custom_metadata')
22986
22990
if 'version_custom_metadata' in _dict:
@@ -23070,8 +23074,6 @@ class PublicCertificateRotationPolicy(RotationPolicy):
23070
23074
your secret automatically.
23071
23075
The default is `false`. If `auto_rotate` is set to `true` the service rotates
23072
23076
your secret based on the defined interval.
23073
- :attr int interval: (optional) The length of the secret rotation time interval.
23074
- :attr str unit: (optional) The units for the secret rotation time interval.
23075
23077
:attr bool rotate_keys: (optional) This field indicates whether Secrets Manager
23076
23078
rotates the private key for your public certificate automatically.
23077
23079
The default is `false`. If it is set to `true`, the service generates and stores
@@ -23081,8 +23083,6 @@ class PublicCertificateRotationPolicy(RotationPolicy):
23081
23083
def __init__(self,
23082
23084
auto_rotate: bool,
23083
23085
*,
23084
- interval: int = None,
23085
- unit: str = None,
23086
23086
rotate_keys: bool = None) -> None:
23087
23087
"""
23088
23088
Initialize a PublicCertificateRotationPolicy object.
@@ -23091,19 +23091,13 @@ def __init__(self,
23091
23091
rotates your secret automatically.
23092
23092
The default is `false`. If `auto_rotate` is set to `true` the service
23093
23093
rotates your secret based on the defined interval.
23094
- :param int interval: (optional) The length of the secret rotation time
23095
- interval.
23096
- :param str unit: (optional) The units for the secret rotation time
23097
- interval.
23098
23094
:param bool rotate_keys: (optional) This field indicates whether Secrets
23099
23095
Manager rotates the private key for your public certificate automatically.
23100
23096
The default is `false`. If it is set to `true`, the service generates and
23101
23097
stores a new private key for your rotated certificate.
23102
23098
"""
23103
23099
# pylint: disable=super-init-not-called
23104
23100
self.auto_rotate = auto_rotate
23105
- self.interval = interval
23106
- self.unit = unit
23107
23101
self.rotate_keys = rotate_keys
23108
23102
23109
23103
@classmethod
@@ -23114,10 +23108,6 @@ def from_dict(cls, _dict: Dict) -> 'PublicCertificateRotationPolicy':
23114
23108
args['auto_rotate'] = _dict.get('auto_rotate')
23115
23109
else:
23116
23110
raise ValueError('Required property \'auto_rotate\' not present in PublicCertificateRotationPolicy JSON')
23117
- if 'interval' in _dict:
23118
- args['interval'] = _dict.get('interval')
23119
- if 'unit' in _dict:
23120
- args['unit'] = _dict.get('unit')
23121
23111
if 'rotate_keys' in _dict:
23122
23112
args['rotate_keys'] = _dict.get('rotate_keys')
23123
23113
return cls(**args)
@@ -23132,10 +23122,6 @@ def to_dict(self) -> Dict:
23132
23122
_dict = {}
23133
23123
if hasattr(self, 'auto_rotate') and self.auto_rotate is not None:
23134
23124
_dict['auto_rotate'] = self.auto_rotate
23135
- if hasattr(self, 'interval') and self.interval is not None:
23136
- _dict['interval'] = self.interval
23137
- if hasattr(self, 'unit') and self.unit is not None:
23138
- _dict['unit'] = self.unit
23139
23125
if hasattr(self, 'rotate_keys') and self.rotate_keys is not None:
23140
23126
_dict['rotate_keys'] = self.rotate_keys
23141
23127
return _dict
@@ -23158,14 +23144,6 @@ def __ne__(self, other: 'PublicCertificateRotationPolicy') -> bool:
23158
23144
"""Return `true` when self and other are not equal, false otherwise."""
23159
23145
return not self == other
23160
23146
23161
- class UnitEnum(str, Enum):
23162
- """
23163
- The units for the secret rotation time interval.
23164
- """
23165
- DAY = 'day'
23166
- MONTH = 'month'
23167
-
23168
-
23169
23147
class PublicCertificateVersion(SecretVersion):
23170
23148
"""
23171
23149
Versions of your public certificate.
0 commit comments