a fbU@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@s eZdZdZdZdZdZdZdZdZ dZ d d Z e d d Z e jd d Z e ddZejddZe ddZejddZe ddZejddZe ddZejddZe ddZejddZe ddZejddZe d d!Zejd"d!Ze d#d$Zejd%d$Ze d&d'Zejd(d'Ze d)d*Zejd+d*Ze d,d-Zejd.d-Ze d/d0Zejd1d0Ze d2d3Zejd4d3Ze d5d6Zejd7d6Ze d8d9Zejd:d9Ze d;d<Zejd=d<Ze d>d?Zejd@d?ZdAdBZ dCdDZ!dEdFZ"dGS)HBackupz- Database system backup information. SCHEDULEDMANUALCREATINGACTIVEDELETINGDELETEDFAILEDcKsddddddddddddddddddd|_dd d d d d ddddddddddddd|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_d|_dS)a Initializes a new Backup object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this Backup. :type id: str :param display_name: The value to assign to the display_name property of this Backup. :type display_name: str :param description: The value to assign to the description property of this Backup. :type description: str :param compartment_id: The value to assign to the compartment_id property of this Backup. :type compartment_id: str :param source_type: The value to assign to the source_type property of this Backup. Allowed values for this property are: "SCHEDULED", "MANUAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type source_type: str :param time_created: The value to assign to the time_created property of this Backup. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this Backup. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this Backup. Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this Backup. :type lifecycle_details: str :param retention_period: The value to assign to the retention_period property of this Backup. :type retention_period: int :param backup_size: The value to assign to the backup_size property of this Backup. :type backup_size: int :param db_system_id: The value to assign to the db_system_id property of this Backup. :type db_system_id: str :param db_system_details: The value to assign to the db_system_details property of this Backup. :type db_system_details: oci.psql.models.DbSystemDetails :param last_accepted_request_token: The value to assign to the last_accepted_request_token property of this Backup. :type last_accepted_request_token: str :param last_completed_request_token: The value to assign to the last_completed_request_token property of this Backup. :type last_completed_request_token: str :param freeform_tags: The value to assign to the freeform_tags property of this Backup. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this Backup. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this Backup. :type system_tags: dict(str, dict(str, object)) strZdatetimeintZDbSystemDetailszdict(str, str)zdict(str, dict(str, object)))id display_name descriptioncompartment_id source_type time_created time_updatedlifecycle_statelifecycle_detailsretention_period backup_size db_system_iddb_system_detailslast_accepted_request_tokenlast_completed_request_token freeform_tags defined_tags system_tagsrZ displayNamerZ compartmentIdZ sourceTypeZ timeCreatedZ timeUpdatedZlifecycleStateZlifecycleDetailsZretentionPeriodZ backupSizeZ dbSystemIdZdbSystemDetailsZlastAcceptedRequestTokenZlastCompletedRequestTokenZ freeformTagsZ definedTagsZ systemTagsN)Z swagger_typesZ attribute_map_id _display_name _description_compartment_id _source_type _time_created _time_updated_lifecycle_state_lifecycle_details_retention_period _backup_size _db_system_id_db_system_details_last_accepted_request_token_last_completed_request_token_freeform_tags _defined_tags _system_tags)selfkwargsr6:/usr/lib/python3.9/site-packages/oci/psql/models/backup.py__init__.spSzBackup.__init__cCs|jS)z **[Required]** Gets the id of this Backup. The `OCID`__ of the backup. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The id of this Backup. :rtype: str r"r4r6r6r7rs z Backup.idcCs ||_dS)z Sets the id of this Backup. The `OCID`__ of the backup. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param id: The id of this Backup. :type: str Nr9)r4rr6r6r7rs cCs|jS)z **[Required]** Gets the display_name of this Backup. A user-friendly display name for the backup. Avoid entering confidential information. :return: The display_name of this Backup. :rtype: str r#r:r6r6r7rs zBackup.display_namecCs ||_dS)z Sets the display_name of this Backup. A user-friendly display name for the backup. Avoid entering confidential information. :param display_name: The display_name of this Backup. :type: str Nr;)r4rr6r6r7rs cCs|jS)z Gets the description of this Backup. A description for the backup. :return: The description of this Backup. :rtype: str r$r:r6r6r7rs zBackup.descriptioncCs ||_dS)z Sets the description of this Backup. A description for the backup. :param description: The description of this Backup. :type: str Nr<)r4rr6r6r7rs cCs|jS)a' **[Required]** Gets the compartment_id of this Backup. The `OCID`__ of the compartment that contains the backup. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The compartment_id of this Backup. :rtype: str r%r:r6r6r7r s zBackup.compartment_idcCs ||_dS)a% Sets the compartment_id of this Backup. The `OCID`__ of the compartment that contains the backup. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this Backup. :type: str Nr=)r4rr6r6r7rs cCs|jS)a Gets the source_type of this Backup. Specifies whether the backup was created manually, or by a management policy. Allowed values for this property are: "SCHEDULED", "MANUAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The source_type of this Backup. :rtype: str )r&r:r6r6r7r%s zBackup.source_typecCs ddg}t||sd}||_dS)z Sets the source_type of this Backup. Specifies whether the backup was created manually, or by a management policy. :param source_type: The source_type of this Backup. :type: str rrUNKNOWN_ENUM_VALUEN)rr&)r4rallowed_valuesr6r6r7r4s  cCs|jS)a^ **[Required]** Gets the time_created of this Backup. The date and time the backup request was received, expressed in `RFC 3339`__ timestamp format. Example: `2016-08-25T21:10:29.600Z` __ https://tools.ietf.org/rfc/rfc3339 :return: The time_created of this Backup. :rtype: datetime r'r:r6r6r7rCszBackup.time_createdcCs ||_dS)aZ Sets the time_created of this Backup. The date and time the backup request was received, expressed in `RFC 3339`__ timestamp format. Example: `2016-08-25T21:10:29.600Z` __ https://tools.ietf.org/rfc/rfc3339 :param time_created: The time_created of this Backup. :type: datetime Nr@)r4rr6r6r7rTscCs|jS)aF Gets the time_updated of this Backup. The date and time the backup was updated, expressed in `RFC 3339`__ timestamp format. Example: `2016-08-25T21:10:29.600Z` __ https://tools.ietf.org/rfc/rfc3339 :return: The time_updated of this Backup. :rtype: datetime r(r:r6r6r7reszBackup.time_updatedcCs ||_dS)aQ Sets the time_updated of this Backup. The date and time the backup was updated, expressed in `RFC 3339`__ timestamp format. Example: `2016-08-25T21:10:29.600Z` __ https://tools.ietf.org/rfc/rfc3339 :param time_updated: The time_updated of this Backup. :type: datetime NrA)r4rr6r6r7rvscCs|jS)a **[Required]** Gets the lifecycle_state of this Backup. The current state of the backup. Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this Backup. :rtype: str )r)r:r6r6r7rs zBackup.lifecycle_statecCs gd}t||sd}||_dS)z Sets the lifecycle_state of this Backup. The current state of the backup. :param lifecycle_state: The lifecycle_state of this Backup. :type: str )r r r r r r>N)rr))r4rr?r6r6r7rs  cCs|jS)a# Gets the lifecycle_details of this Backup. A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. :return: The lifecycle_details of this Backup. :rtype: str r*r:r6r6r7rs zBackup.lifecycle_detailscCs ||_dS)a3 Sets the lifecycle_details of this Backup. A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. :param lifecycle_details: The lifecycle_details of this Backup. :type: str NrB)r4rr6r6r7rs cCs|jS)z Gets the retention_period of this Backup. Backup retention period in days. :return: The retention_period of this Backup. :rtype: int r+r:r6r6r7rs zBackup.retention_periodcCs ||_dS)z Sets the retention_period of this Backup. Backup retention period in days. :param retention_period: The retention_period of this Backup. :type: int NrC)r4rr6r6r7rs cCs|jS)z **[Required]** Gets the backup_size of this Backup. The size of the backup, in gigabytes. :return: The backup_size of this Backup. :rtype: int r,r:r6r6r7rs zBackup.backup_sizecCs ||_dS)z Sets the backup_size of this Backup. The size of the backup, in gigabytes. :param backup_size: The backup_size of this Backup. :type: int NrD)r4rr6r6r7rs cCs|jS)a Gets the db_system_id of this Backup. The `OCID`__ of the backup's source database system. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The db_system_id of this Backup. :rtype: str r-r:r6r6r7rs zBackup.db_system_idcCs ||_dS)a Sets the db_system_id of this Backup. The `OCID`__ of the backup's source database system. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param db_system_id: The db_system_id of this Backup. :type: str NrE)r4rr6r6r7rs cCs|jS)z **[Required]** Gets the db_system_details of this Backup. :return: The db_system_details of this Backup. :rtype: oci.psql.models.DbSystemDetails r.r:r6r6r7r szBackup.db_system_detailscCs ||_dS)z Sets the db_system_details of this Backup. :param db_system_details: The db_system_details of this Backup. :type: oci.psql.models.DbSystemDetails NrF)r4rr6r6r7rscCs|jS)z Gets the last_accepted_request_token of this Backup. lastAcceptedRequestToken from MP. :return: The last_accepted_request_token of this Backup. :rtype: str r/r:r6r6r7rs z"Backup.last_accepted_request_tokencCs ||_dS)z Sets the last_accepted_request_token of this Backup. lastAcceptedRequestToken from MP. :param last_accepted_request_token: The last_accepted_request_token of this Backup. :type: str NrG)r4rr6r6r7r)s cCs|jS)z Gets the last_completed_request_token of this Backup. lastCompletedRequestToken from MP. :return: The last_completed_request_token of this Backup. :rtype: str r0r:r6r6r7r5s z#Backup.last_completed_request_tokencCs ||_dS)z Sets the last_completed_request_token of this Backup. lastCompletedRequestToken from MP. :param last_completed_request_token: The last_completed_request_token of this Backup. :type: str NrH)r4rr6r6r7rAs cCs|jS)aB **[Required]** Gets the freeform_tags of this Backup. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` :return: The freeform_tags of this Backup. :rtype: dict(str, str) r1r:r6r6r7rMs zBackup.freeform_tagscCs ||_dS)a? Sets the freeform_tags of this Backup. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` :param freeform_tags: The freeform_tags of this Backup. :type: dict(str, str) NrI)r4rr6r6r7rZs cCs|jS)a< **[Required]** Gets the defined_tags of this Backup. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}` :return: The defined_tags of this Backup. :rtype: dict(str, dict(str, object)) r2r:r6r6r7r gs zBackup.defined_tagscCs ||_dS)a8 Sets the defined_tags of this Backup. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}` :param defined_tags: The defined_tags of this Backup. :type: dict(str, dict(str, object)) NrJ)r4r r6r6r7r ts cCs|jS)a1 Gets the system_tags of this Backup. System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` :return: The system_tags of this Backup. :rtype: dict(str, dict(str, object)) r3r:r6r6r7r!s zBackup.system_tagscCs ||_dS)a; Sets the system_tags of this Backup. System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` :param system_tags: The system_tags of this Backup. :type: dict(str, dict(str, object)) NrK)r4r!r6r6r7r!s cCst|SN)rr:r6r6r7__repr__szBackup.__repr__cCs|dur dS|j|jkS)NF)__dict__r4otherr6r6r7__eq__sz Backup.__eq__cCs ||k SrLr6rOr6r6r7__ne__sz Backup.__ne__N)#__name__ __module__ __qualname____doc__ZSOURCE_TYPE_SCHEDULEDZSOURCE_TYPE_MANUALZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr8propertyrsetterrrrrrrrrrrrrrrrr r!rMrQrRr6r6r6r7r s                                    rN)Zoci.utilrrrZoci.decoratorsrobjectrr6r6r6r7s