ruạṛ
a ���f�f � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd Zdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zed1d2� �Zejd3d2� �Zed4d5� �Zejd6d5� �Zed7d8� �Z e jd9d8� �Z ed:d;� �Z!e!jd<d;� �Z!ed=d>� �Z"e"jd?d>� �Z"ed@dA� �Z#e#jdBdA� �Z#edCdD� �Z$e$jdEdD� �Z$edFdG� �Z%e%jdHdG� �Z%edIdJ� �Z&e&jdKdJ� �Z&edLdM� �Z'e'jdNdM� �Z'edOdP� �Z(e(jdQdP� �Z(dRdS� Z)dTdU� Z*dVdW� Z+dXS )Y�Backupa� A full or incremental copy of a DB System which can be used to create a new DB System or recover a DB System. To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. __ https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm �CREATING�ACTIVE�INACTIVE�UPDATING�DELETING�DELETED�FAILED�FULL�INCREMENTAL�MANUAL� AUTOMATIC�OPERATORc K s� ddddddddddddddddddddddd�| _ dd d ddd ddddddddddddddddd�| _d| _d| _d| _d| _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 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", "INACTIVE", "UPDATING", "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 backup_type: The value to assign to the backup_type property of this Backup. Allowed values for this property are: "FULL", "INCREMENTAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type backup_type: str :param creation_type: The value to assign to the creation_type property of this Backup. Allowed values for this property are: "MANUAL", "AUTOMATIC", "OPERATOR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type creation_type: str :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_snapshot: The value to assign to the db_system_snapshot property of this Backup. :type db_system_snapshot: oci.mysql.models.DbSystemSnapshot :param backup_size_in_gbs: The value to assign to the backup_size_in_gbs property of this Backup. :type backup_size_in_gbs: int :param retention_in_days: The value to assign to the retention_in_days property of this Backup. :type retention_in_days: int :param data_storage_size_in_gbs: The value to assign to the data_storage_size_in_gbs property of this Backup. :type data_storage_size_in_gbs: int :param mysql_version: The value to assign to the mysql_version property of this Backup. :type mysql_version: str :param shape_name: The value to assign to the shape_name property of this Backup. :type shape_name: 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 immediate_source_backup_id: The value to assign to the immediate_source_backup_id property of this Backup. :type immediate_source_backup_id: str :param original_source_backup_id: The value to assign to the original_source_backup_id property of this Backup. :type original_source_backup_id: str :param time_copy_created: The value to assign to the time_copy_created property of this Backup. :type time_copy_created: datetime �strZdatetimeZDbSystemSnapshot�intzdict(str, str)zdict(str, dict(str, object)))�id�display_name�description�compartment_id�time_created�time_updated�lifecycle_state�lifecycle_details�backup_type� creation_type�db_system_id�db_system_snapshot�backup_size_in_gbs�retention_in_days�data_storage_size_in_gbs� mysql_version� shape_name� freeform_tags�defined_tags�immediate_source_backup_id�original_source_backup_id�time_copy_createdr ZdisplayNamer Z compartmentIdZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZ backupTypeZcreationTypeZ dbSystemIdZdbSystemSnapshotZbackupSizeInGBsZretentionInDaysZdataStorageSizeInGBsZmysqlVersionZ shapeNameZfreeformTagsZdefinedTagsZimmediateSourceBackupIdZoriginalSourceBackupIdZtimeCopyCreatedN)Z swagger_typesZ attribute_map�_id� _display_name�_description�_compartment_id� _time_created� _time_updated�_lifecycle_state�_lifecycle_details�_backup_type�_creation_type� _db_system_id�_db_system_snapshot�_backup_size_in_gbs�_retention_in_days�_data_storage_size_in_gbs�_mysql_version�_shape_name�_freeform_tags� _defined_tags�_immediate_source_backup_id�_original_source_backup_id�_time_copy_created)�self�kwargs� rC �;/usr/lib/python3.9/site-packages/oci/mysql/models/backup.py�__init__K s� e��zBackup.__init__c C s | j S )z� **[Required]** Gets the id of this Backup. OCID of the backup itself :return: The id of this Backup. :rtype: str �r+ �rA rC rC rD r � s z Backup.idc C s || _ dS )z� Sets the id of this Backup. OCID of the backup itself :param id: The id of this Backup. :type: str NrF )rA r rC rC rD r s c C s | j S )z� Gets the display_name of this Backup. A user-supplied display name for the backup. :return: The display_name of this Backup. :rtype: str �r, rG rC rC rD r s zBackup.display_namec C s || _ dS )z� Sets the display_name of this Backup. A user-supplied display name for the backup. :param display_name: The display_name of this Backup. :type: str NrH )rA r rC rC rD r s c C s | j S )z� Gets the description of this Backup. A user-supplied description for the backup. :return: The description of this Backup. :rtype: str �r- rG rC rC rD r ( s zBackup.descriptionc C s || _ dS )z� Sets the description of this Backup. A user-supplied description for the backup. :param description: The description of this Backup. :type: str NrI )rA r rC rC rD r 4 s c C s | j S )z� **[Required]** Gets the compartment_id of this Backup. The OCID of the compartment. :return: The compartment_id of this Backup. :rtype: str �r. rG rC rC rD r @ s zBackup.compartment_idc C s || _ dS )z� Sets the compartment_id of this Backup. The OCID of the compartment. :param compartment_id: The compartment_id of this Backup. :type: str NrJ )rA r rC rC rD r L s c C s | j S )z� **[Required]** Gets the time_created of this Backup. The time the backup record was created. :return: The time_created of this Backup. :rtype: datetime �r/ rG rC rC rD r X s zBackup.time_createdc C s || _ dS )z� Sets the time_created of this Backup. The time the backup record was created. :param time_created: The time_created of this Backup. :type: datetime NrK )rA r rC rC rD r d s c C s | j S )z� **[Required]** Gets the time_updated of this Backup. The time at which the backup was updated. :return: The time_updated of this Backup. :rtype: datetime �r0 rG rC rC rD r p s zBackup.time_updatedc C s || _ dS )z� Sets the time_updated of this Backup. The time at which the backup was updated. :param time_updated: The time_updated of this Backup. :type: datetime NrL )rA r rC rC rD r | s c C s | j S )a� **[Required]** Gets the lifecycle_state of this Backup. The state of the backup. Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "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 )r1 rG rC rC rD r � s zBackup.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this Backup. The state of the backup. :param lifecycle_state: The lifecycle_state of this Backup. :type: str )r r r r r r r �UNKNOWN_ENUM_VALUEN)r r1 )rA r �allowed_valuesrC rC rD r � s c C s | j S )z� **[Required]** Gets the lifecycle_details of this Backup. Additional information about the current lifecycleState. :return: The lifecycle_details of this Backup. :rtype: str �r2 rG rC rC rD r � s zBackup.lifecycle_detailsc C s || _ dS )z� Sets the lifecycle_details of this Backup. Additional information about the current lifecycleState. :param lifecycle_details: The lifecycle_details of this Backup. :type: str NrO )rA r rC rC rD r � s c C s | j S )ab **[Required]** Gets the backup_type of this Backup. The type of backup. Allowed values for this property are: "FULL", "INCREMENTAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The backup_type of this Backup. :rtype: str )r3 rG rC rC rD r � s zBackup.backup_typec C s ddg}t ||�sd}|| _dS )z� Sets the backup_type of this Backup. The type of backup. :param backup_type: The backup_type of this Backup. :type: str r r rM N)r r3 )rA r rN rC rC rD r � s c C s | j S )a� **[Required]** Gets the creation_type of this Backup. Indicates how the backup was created: manually, automatic, or by an Operator. Allowed values for this property are: "MANUAL", "AUTOMATIC", "OPERATOR", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The creation_type of this Backup. :rtype: str )r4 rG rC rC rD r � s zBackup.creation_typec C s g d�}t ||�sd}|| _dS )z� Sets the creation_type of this Backup. Indicates how the backup was created: manually, automatic, or by an Operator. :param creation_type: The creation_type of this Backup. :type: str )r r r rM N)r r4 )rA r rN rC rC rD r � s c C s | j S )z� **[Required]** Gets the db_system_id of this Backup. The OCID of the DB System the backup is associated with. :return: The db_system_id of this Backup. :rtype: str �r5 rG rC rC rD r � s zBackup.db_system_idc C s || _ dS )z� Sets the db_system_id of this Backup. The OCID of the DB System the backup is associated with. :param db_system_id: The db_system_id of this Backup. :type: str NrP )rA r rC rC rD r s c C s | j S )z� Gets the db_system_snapshot of this Backup. :return: The db_system_snapshot of this Backup. :rtype: oci.mysql.models.DbSystemSnapshot �r6 rG rC rC rD r s zBackup.db_system_snapshotc C s || _ dS )z� Sets the db_system_snapshot of this Backup. :param db_system_snapshot: The db_system_snapshot of this Backup. :type: oci.mysql.models.DbSystemSnapshot NrQ )rA r rC rC rD r s c C s | j S )z� Gets the backup_size_in_gbs of this Backup. The size of the backup in base-2 (IEC) gibibytes. (GiB). :return: The backup_size_in_gbs of this Backup. :rtype: int �r7 rG rC rC rD r! & s zBackup.backup_size_in_gbsc C s || _ dS )z� Sets the backup_size_in_gbs of this Backup. The size of the backup in base-2 (IEC) gibibytes. (GiB). :param backup_size_in_gbs: The backup_size_in_gbs of this Backup. :type: int NrR )rA r! rC rC rD r! 2 s c C s | j S )z� Gets the retention_in_days of this Backup. Number of days to retain this backup. :return: The retention_in_days of this Backup. :rtype: int �r8 rG rC rC rD r"