a ýÎòfw8ã@s8ddlmZmZmZddlmZeGdd„deƒƒZdS)é)Úformatted_flat_dictÚ NONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc@s2eZdZdZdZdZdZdZdZdZ dd „Z e d d „ƒZ e j d d „ƒZ e d d„ƒZej dd„ƒZe dd„ƒZej dd„ƒZe dd„ƒZej dd„ƒZe dd„ƒZej dd„ƒZe dd„ƒZej dd„ƒZe dd„ƒZej dd„ƒZe dd „ƒZej d!d „ƒZe d"d#„ƒZej d$d#„ƒZd%d&„Zd'd(„Zd)d*„Zd+S),Ú SecretVersionzR The details of the secret version, excluding the contents of the secret. ÚBASE64ÚCURRENTÚPENDINGÚLATESTÚPREVIOUSÚ DEPRECATEDc Ksnddddddddddœ |_ddd d d d d dddœ |_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ dS)aÚ Initializes a new SecretVersion object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param content_type: The value to assign to the content_type property of this SecretVersion. Allowed values for this property are: "BASE64", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type content_type: str :param name: The value to assign to the name property of this SecretVersion. :type name: str :param secret_id: The value to assign to the secret_id property of this SecretVersion. :type secret_id: str :param stages: The value to assign to the stages property of this SecretVersion. Allowed values for items in this list are: "CURRENT", "PENDING", "LATEST", "PREVIOUS", "DEPRECATED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type stages: list[str] :param time_created: The value to assign to the time_created property of this SecretVersion. :type time_created: datetime :param time_of_deletion: The value to assign to the time_of_deletion property of this SecretVersion. :type time_of_deletion: datetime :param time_of_current_version_expiry: The value to assign to the time_of_current_version_expiry property of this SecretVersion. :type time_of_current_version_expiry: datetime :param version_number: The value to assign to the version_number property of this SecretVersion. :type version_number: int :param is_content_auto_generated: The value to assign to the is_content_auto_generated property of this SecretVersion. :type is_content_auto_generated: bool Ústrz list[str]ZdatetimeÚintÚbool) Ú content_typeÚnameÚ secret_idÚstagesÚ time_createdÚtime_of_deletionÚtime_of_current_version_expiryÚversion_numberÚis_content_auto_generatedZ contentTyperZsecretIdrZ timeCreatedZtimeOfDeletionZtimeOfCurrentVersionExpiryZ versionNumberZisContentAutoGeneratedN) Z swagger_typesZ attribute_mapÚ _content_typeÚ_nameÚ _secret_idÚ_stagesÚ _time_createdÚ_time_of_deletionÚ_time_of_current_version_expiryÚ_version_numberÚ_is_content_auto_generated)ÚselfÚkwargs©r$úC/usr/lib/python3.9/site-packages/oci/vault/models/secret_version.pyÚ__init__*s:/÷ ÷ zSecretVersion.__init__cCs|jS)a| Gets the content_type of this SecretVersion. The content type of the secret version's secret contents. Allowed values for this property are: "BASE64", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The content_type of this SecretVersion. :rtype: str )r©r"r$r$r%rzs zSecretVersion.content_typecCsdg}t||ƒsd}||_dS)zÚ Sets the content_type of this SecretVersion. The content type of the secret version's secret contents. :param content_type: The content_type of this SecretVersion. :type: str rÚUNKNOWN_ENUM_VALUEN)rr)r"rÚallowed_valuesr$r$r%r‰s  cCs|jS)zÓ Gets the name of this SecretVersion. The name of the secret version. A name is unique across versions of a secret. :return: The name of this SecretVersion. :rtype: str ©rr'r$r$r%r˜s zSecretVersion.namecCs ||_dS)zÖ Sets the name of this SecretVersion. The name of the secret version. A name is unique across versions of a secret. :param name: The name of this SecretVersion. :type: str Nr*)r"rr$r$r%r¤s cCs|jS)z§ Gets the secret_id of this SecretVersion. The OCID of the secret. :return: The secret_id of this SecretVersion. :rtype: str ©rr'r$r$r%r°s zSecretVersion.secret_idcCs ||_dS)z¯ Sets the secret_id of this SecretVersion. The OCID of the secret. :param secret_id: The secret_id of this SecretVersion. :type: str Nr+)r"rr$r$r%r¼s cCs|jS)a† Gets the stages of this SecretVersion. A list of possible rotation states for the secret version. A secret version marked `CURRENT` is currently in use. A secret version marked `PENDING` is staged and available for use, but has not been applied on the target system and, therefore, has not been rotated into current, active use. The secret most recently uploaded to a vault is always marked `LATEST`. (The first version of a secret is always marked as both `CURRENT` and `LATEST`.) A secret version marked `PREVIOUS` is the secret version that was most recently marked `CURRENT`, before the last secret version rotation. A secret version marked `DEPRECATED` is neither current, pending, nor the previous one in use. Only secret versions marked `DEPRECATED` can be scheduled for deletion. Allowed values for items in this list are: "CURRENT", "PENDING", "LATEST", "PREVIOUS", "DEPRECATED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The stages of this SecretVersion. :rtype: list[str] ©rr'r$r$r%rÈszSecretVersion.stagescs0gd¢‰|r&‡fdd„|Dƒ|dd…<||_dS)a© Sets the stages of this SecretVersion. A list of possible rotation states for the secret version. A secret version marked `CURRENT` is currently in use. A secret version marked `PENDING` is staged and available for use, but has not been applied on the target system and, therefore, has not been rotated into current, active use. The secret most recently uploaded to a vault is always marked `LATEST`. (The first version of a secret is always marked as both `CURRENT` and `LATEST`.) A secret version marked `PREVIOUS` is the secret version that was most recently marked `CURRENT`, before the last secret version rotation. A secret version marked `DEPRECATED` is neither current, pending, nor the previous one in use. Only secret versions marked `DEPRECATED` can be scheduled for deletion. :param stages: The stages of this SecretVersion. :type: list[str] )rr r r r csg|]}t|ˆƒsdn|‘qS)r()r)Ú.0Úx©r)r$r%Ú íóz(SecretVersion.stages..Nr,)r"rr$r/r%rÜscCs|jS)af Gets the time_created of this SecretVersion. A optional property indicating when the secret version was created, expressed in `RFC 3339`__ timestamp format. Example: `2019-04-03T21:10:29.600Z` __ https://tools.ietf.org/html/rfc3339 :return: The time_created of this SecretVersion. :rtype: datetime ©rr'r$r$r%rðs zSecretVersion.time_createdcCs ||_dS)aq Sets the time_created of this SecretVersion. A optional property indicating when the secret version was created, expressed in `RFC 3339`__ timestamp format. Example: `2019-04-03T21:10:29.600Z` __ https://tools.ietf.org/html/rfc3339 :param time_created: The time_created of this SecretVersion. :type: datetime Nr2)r"rr$r$r%rÿs cCs|jS)am Gets the time_of_deletion of this SecretVersion. An optional property indicating when to delete the secret version, expressed in `RFC 3339`__ timestamp format. Example: `2019-04-03T21:10:29.600Z` __ https://tools.ietf.org/html/rfc3339 :return: The time_of_deletion of this SecretVersion. :rtype: datetime ©rr'r$r$r%rs zSecretVersion.time_of_deletioncCs ||_dS)a| Sets the time_of_deletion of this SecretVersion. An optional property indicating when to delete the secret version, expressed in `RFC 3339`__ timestamp format. Example: `2019-04-03T21:10:29.600Z` __ https://tools.ietf.org/html/rfc3339 :param time_of_deletion: The time_of_deletion of this SecretVersion. :type: datetime Nr3)r"rr$r$r%rs cCs|jS)a“ Gets the time_of_current_version_expiry of this SecretVersion. An optional property indicating when the current secret version will expire, expressed in `RFC 3339`__ timestamp format. Example: `2019-04-03T21:10:29.600Z` __ https://tools.ietf.org/html/rfc3339 :return: The time_of_current_version_expiry of this SecretVersion. :rtype: datetime ©rr'r$r$r%r,s z,SecretVersion.time_of_current_version_expirycCs ||_dS)a° Sets the time_of_current_version_expiry of this SecretVersion. An optional property indicating when the current secret version will expire, expressed in `RFC 3339`__ timestamp format. Example: `2019-04-03T21:10:29.600Z` __ https://tools.ietf.org/html/rfc3339 :param time_of_current_version_expiry: The time_of_current_version_expiry of this SecretVersion. :type: datetime Nr4)r"rr$r$r%r;s cCs|jS)z» Gets the version_number of this SecretVersion. The version number of the secret. :return: The version_number of this SecretVersion. :rtype: int ©r r'r$r$r%rJs zSecretVersion.version_numbercCs ||_dS)zÈ Sets the version_number of this SecretVersion. The version number of the secret. :param version_number: The version_number of this SecretVersion. :type: int Nr5)r"rr$r$r%rVs cCs|jS)a Gets the is_content_auto_generated of this SecretVersion. Boolean flag indicating whether secret content for this secret version was auto-generated or not. :return: The is_content_auto_generated of this SecretVersion. :rtype: bool ©r!r'r$r$r%rbs z'SecretVersion.is_content_auto_generatedcCs ||_dS)a* Sets the is_content_auto_generated of this SecretVersion. Boolean flag indicating whether secret content for this secret version was auto-generated or not. :param is_content_auto_generated: The is_content_auto_generated of this SecretVersion. :type: bool Nr6)r"rr$r$r%rns cCst|ƒS©N)rr'r$r$r%Ú__repr__zszSecretVersion.__repr__cCs|dur dS|j|jkS)NF)Ú__dict__©r"Úotherr$r$r%Ú__eq__}szSecretVersion.__eq__cCs ||k Sr7r$r:r$r$r%Ú__ne__ƒszSecretVersion.__ne__N)Ú__name__Ú __module__Ú __qualname__Ú__doc__ZCONTENT_TYPE_BASE64ZSTAGES_CURRENTZSTAGES_PENDINGZ STAGES_LATESTZSTAGES_PREVIOUSZSTAGES_DEPRECATEDr&ÚpropertyrÚsetterrrrrrrrrr8r<r=r$r$r$r%r s^P                  rN)Zoci.utilrrrZoci.decoratorsrÚobjectrr$r$r$r%Ús