a f4@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@s4eZdZdZddZeddZejddZeddZejd dZed d Z e jd d Z ed dZ e jddZ eddZ e jddZ eddZ e jddZ eddZ e jddZ eddZejddZeddZejddZedd Zejd!d Zd"d#Zd$d%Zd&d'Zd(S))UpdateSecretDetailsz( Details for updating a secret. c Ksxddddddddd d d |_d d ddddddddd |_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ dS)a Initializes a new UpdateSecretDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param current_version_number: The value to assign to the current_version_number property of this UpdateSecretDetails. :type current_version_number: int :param defined_tags: The value to assign to the defined_tags property of this UpdateSecretDetails. :type defined_tags: dict(str, dict(str, object)) :param description: The value to assign to the description property of this UpdateSecretDetails. :type description: str :param freeform_tags: The value to assign to the freeform_tags property of this UpdateSecretDetails. :type freeform_tags: dict(str, str) :param metadata: The value to assign to the metadata property of this UpdateSecretDetails. :type metadata: dict(str, object) :param secret_content: The value to assign to the secret_content property of this UpdateSecretDetails. :type secret_content: oci.vault.models.SecretContentDetails :param rotation_config: The value to assign to the rotation_config property of this UpdateSecretDetails. :type rotation_config: oci.vault.models.RotationConfig :param secret_rules: The value to assign to the secret_rules property of this UpdateSecretDetails. :type secret_rules: list[oci.vault.models.SecretRule] :param secret_generation_context: The value to assign to the secret_generation_context property of this UpdateSecretDetails. :type secret_generation_context: oci.vault.models.SecretGenerationContext :param enable_auto_generation: The value to assign to the enable_auto_generation property of this UpdateSecretDetails. :type enable_auto_generation: bool intzdict(str, dict(str, object))strzdict(str, str)zdict(str, object)ZSecretContentDetailsZRotationConfigzlist[SecretRule]ZSecretGenerationContextbool) current_version_number defined_tags description freeform_tagsmetadatasecret_contentrotation_config secret_rulessecret_generation_contextenable_auto_generationZcurrentVersionNumberZ definedTagsr Z freeformTagsrZ secretContentZrotationConfigZ secretRulesZsecretGenerationContextZenableAutoGenerationN) Z swagger_typesZ attribute_map_current_version_number _defined_tags _description_freeform_tags _metadata_secret_content_rotation_config _secret_rules_secret_generation_context_enable_auto_generation)selfkwargsr J/usr/lib/python3.9/site-packages/oci/vault/models/update_secret_details.py__init__s@/ zUpdateSecretDetails.__init__cCs|jS)a Gets the current_version_number of this UpdateSecretDetails. Details to update the secret version of the specified secret. The secret contents, version number, and rules can't be specified at the same time. Updating the secret contents automatically creates a new secret version. :return: The current_version_number of this UpdateSecretDetails. :rtype: int rrr r r!r es z*UpdateSecretDetails.current_version_numbercCs ||_dS)a Sets the current_version_number of this UpdateSecretDetails. Details to update the secret version of the specified secret. The secret contents, version number, and rules can't be specified at the same time. Updating the secret contents automatically creates a new secret version. :param current_version_number: The current_version_number of this UpdateSecretDetails. :type: int Nr#)rr r r r!r ss cCs|jS)a Gets the defined_tags of this UpdateSecretDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__. Example: `{"Operations": {"CostCenter": "42"}}` __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :return: The defined_tags of this UpdateSecretDetails. :rtype: dict(str, dict(str, object)) rr$r r r!r sz UpdateSecretDetails.defined_tagscCs ||_dS)a Sets the defined_tags of this UpdateSecretDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__. Example: `{"Operations": {"CostCenter": "42"}}` __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :param defined_tags: The defined_tags of this UpdateSecretDetails. :type: dict(str, dict(str, object)) Nr%)rr r r r!r scCs|jS)z Gets the description of this UpdateSecretDetails. A brief description of the secret. Avoid entering confidential information. :return: The description of this UpdateSecretDetails. :rtype: str rr$r r r!r s zUpdateSecretDetails.descriptioncCs ||_dS)z Sets the description of this UpdateSecretDetails. A brief description of the secret. Avoid entering confidential information. :param description: The description of this UpdateSecretDetails. :type: str Nr&)rr r r r!r s cCs|jS)a Gets the freeform_tags of this UpdateSecretDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__. Example: `{"Department": "Finance"}` __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :return: The freeform_tags of this UpdateSecretDetails. :rtype: dict(str, str) rr$r r r!r sz!UpdateSecretDetails.freeform_tagscCs ||_dS)a Sets the freeform_tags of this UpdateSecretDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__. Example: `{"Department": "Finance"}` __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm :param freeform_tags: The freeform_tags of this UpdateSecretDetails. :type: dict(str, str) Nr')rr r r r!r scCs|jS)a Gets the metadata of this UpdateSecretDetails. Additional metadata that you can use to provide context about how to use the secret or during rotation or other administrative tasks. For example, for a secret that you use to connect to a database, the additional metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs. :return: The metadata of this UpdateSecretDetails. :rtype: dict(str, object) rr$r r r!rs zUpdateSecretDetails.metadatacCs ||_dS)a Sets the metadata of this UpdateSecretDetails. Additional metadata that you can use to provide context about how to use the secret or during rotation or other administrative tasks. For example, for a secret that you use to connect to a database, the additional metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs. :param metadata: The metadata of this UpdateSecretDetails. :type: dict(str, object) Nr()rrr r r!rs cCs|jS)z Gets the secret_content of this UpdateSecretDetails. :return: The secret_content of this UpdateSecretDetails. :rtype: oci.vault.models.SecretContentDetails rr$r r r!rsz"UpdateSecretDetails.secret_contentcCs ||_dS)z Sets the secret_content of this UpdateSecretDetails. :param secret_content: The secret_content of this UpdateSecretDetails. :type: oci.vault.models.SecretContentDetails Nr))rrr r r!rscCs|jS)z Gets the rotation_config of this UpdateSecretDetails. :return: The rotation_config of this UpdateSecretDetails. :rtype: oci.vault.models.RotationConfig rr$r r r!r sz#UpdateSecretDetails.rotation_configcCs ||_dS)z Sets the rotation_config of this UpdateSecretDetails. :param rotation_config: The rotation_config of this UpdateSecretDetails. :type: oci.vault.models.RotationConfig Nr*)rrr r r!rscCs|jS)z Gets the secret_rules of this UpdateSecretDetails. A list of rules to control how the secret is used and managed. :return: The secret_rules of this UpdateSecretDetails. :rtype: list[oci.vault.models.SecretRule] rr$r r r!rs z UpdateSecretDetails.secret_rulescCs ||_dS)a  Sets the secret_rules of this UpdateSecretDetails. A list of rules to control how the secret is used and managed. :param secret_rules: The secret_rules of this UpdateSecretDetails. :type: list[oci.vault.models.SecretRule] Nr+)rrr r r!r)s cCs|jS)z Gets the secret_generation_context of this UpdateSecretDetails. :return: The secret_generation_context of this UpdateSecretDetails. :rtype: oci.vault.models.SecretGenerationContext rr$r r r!r5sz-UpdateSecretDetails.secret_generation_contextcCs ||_dS)z Sets the secret_generation_context of this UpdateSecretDetails. :param secret_generation_context: The secret_generation_context of this UpdateSecretDetails. :type: oci.vault.models.SecretGenerationContext Nr,)rrr r r!r?scCs|jS)a Gets the enable_auto_generation of this UpdateSecretDetails. The value of this flag determines whether or not secret content will be generated automatically. :return: The enable_auto_generation of this UpdateSecretDetails. :rtype: bool rr$r r r!rIs z*UpdateSecretDetails.enable_auto_generationcCs ||_dS)a, Sets the enable_auto_generation of this UpdateSecretDetails. The value of this flag determines whether or not secret content will be generated automatically. :param enable_auto_generation: The enable_auto_generation of this UpdateSecretDetails. :type: bool Nr-)rrr r r!rUs cCst|SN)rr$r r r!__repr__aszUpdateSecretDetails.__repr__cCs|dur dS|j|jkS)NF)__dict__rotherr r r!__eq__dszUpdateSecretDetails.__eq__cCs ||k Sr.r r1r r r!__ne__jszUpdateSecretDetails.__ne__N)__name__ __module__ __qualname____doc__r"propertyr setterr r r rrrrrrr/r3r4r r r r!r sZS                    rN)Zoci.utilrrrZoci.decoratorsrobjectrr r r r!s