o
    ɶd$Y                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   sN  e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd Zejdd Zedd  Zejd!d  Zed"d# Zejd$d# Zed%d& Zejd'd& Zed(d) Zejd*d) Zed+d, Zejd-d, Zed.d/ Zejd0d/ Zed1d2 Zejd3d2 Zed4d5 Zejd6d5 Zed7d8 Z e jd9d8 Z ed:d; Z!e!jd<d; Z!ed=d> Z"e"jd?d> Z"ed@dA Z#e#jdBdA Z#edCdD Z$e$jdEdD Z$edFdG Z%e%jdHdG Z%dIdJ Z&dKdL Z'dMdN Z(dOS )P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   sb  i ddddddddddddd	dd
dddddddddddddddddddddd| _ i ddddddddddddd	dd
ddddd dd!dd"dd#dd$dd%dd&dd'd(d)d| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _	d*| _
d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*S )+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))

        idstrdisplay_namedescriptioncompartment_idtime_createddatetimetime_updatedlifecycle_statelifecycle_detailsbackup_typecreation_typedb_system_iddb_system_snapshotZDbSystemSnapshotbackup_size_in_gbsintretention_in_daysdata_storage_size_in_gbsmysql_version
shape_namezdict(str, str)zdict(str, dict(str, object)))freeform_tagsdefined_tagsZdisplayNameZcompartmentIdZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZ
backupTypeZcreationTypeZ
dbSystemIdZdbSystemSnapshotZbackupSizeInGBsZretentionInDaysZdataStorageSizeInGBsZmysqlVersionZ	shapeNameZfreeformTagsZdefinedTagsN)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)selfkwargs r>   ;usr/lib/python3.10/site-packages/oci/mysql/models/backup.py__init__K   s   X	

	


zBackup.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Backup.
        OCID of the backup itself


        :return: The id of this Backup.
        :rtype: str
        r)   r<   r>   r>   r?   r         
z	Backup.idc                 C   
   || _ dS )z
        Sets the id of this Backup.
        OCID of the backup itself


        :param id: The id of this Backup.
        :type: str
        NrB   )r<   r   r>   r>   r?   r         

c                 C   rA   )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*   rC   r>   r>   r?   r      rD   zBackup.display_namec                 C   rE   )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
        NrG   )r<   r   r>   r>   r?   r     rF   c                 C   rA   )z
        Gets the description of this Backup.
        A user-supplied description for the backup.


        :return: The description of this Backup.
        :rtype: str
        r+   rC   r>   r>   r?   r     rD   zBackup.descriptionc                 C   rE   )z
        Sets the description of this Backup.
        A user-supplied description for the backup.


        :param description: The description of this Backup.
        :type: str
        NrH   )r<   r   r>   r>   r?   r     rF   c                 C   rA   )z
        **[Required]** Gets the compartment_id of this Backup.
        The OCID of the compartment.


        :return: The compartment_id of this Backup.
        :rtype: str
        r,   rC   r>   r>   r?   r   +  rD   zBackup.compartment_idc                 C   rE   )z
        Sets the compartment_id of this Backup.
        The OCID of the compartment.


        :param compartment_id: The compartment_id of this Backup.
        :type: str
        NrI   )r<   r   r>   r>   r?   r   7  rF   c                 C   rA   )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-   rC   r>   r>   r?   r   C  rD   zBackup.time_createdc                 C   rE   )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
        NrJ   )r<   r   r>   r>   r?   r   O  rF   c                 C   rA   )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
        r.   rC   r>   r>   r?   r   [  rD   zBackup.time_updatedc                 C   rE   )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
        NrK   )r<   r   r>   r>   r?   r   g  rF   c                 C   rA   )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
        )r/   rC   r>   r>   r?   r   s     zBackup.lifecycle_statec                 C       g d}t ||sd}|| _dS )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   r/   )r<   r   allowed_valuesr>   r>   r?   r        


c                 C   rA   )z
        **[Required]** Gets the lifecycle_details of this Backup.
        Additional information about the current lifecycleState.


        :return: The lifecycle_details of this Backup.
        :rtype: str
        r0   rC   r>   r>   r?   r     rD   zBackup.lifecycle_detailsc                 C   rE   )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
        NrQ   )r<   r   r>   r>   r?   r     rF   c                 C   rA   )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
        )r1   rC   r>   r>   r?   r     rL   zBackup.backup_typec                 C   s    ddg}t ||sd}|| _dS )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   rN   N)r   r1   )r<   r   rO   r>   r>   r?   r     rP   c                 C   rA   )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
        )r2   rC   r>   r>   r?   r     rL   zBackup.creation_typec                 C   rM   )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   rN   N)r   r2   )r<   r   rO   r>   r>   r?   r     rP   c                 C   rA   )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
        r3   rC   r>   r>   r?   r     rD   zBackup.db_system_idc                 C   rE   )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
        NrR   )r<   r   r>   r>   r?   r     rF   c                 C   rA   )z
        Gets the db_system_snapshot of this Backup.

        :return: The db_system_snapshot of this Backup.
        :rtype: oci.mysql.models.DbSystemSnapshot
        r4   rC   r>   r>   r?   r      s   zBackup.db_system_snapshotc                 C   rE   )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
        NrS   )r<   r    r>   r>   r?   r      s   
c                 C   rA   )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
        r5   rC   r>   r>   r?   r!     rD   zBackup.backup_size_in_gbsc                 C   rE   )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
        NrT   )r<   r!   r>   r>   r?   r!     rF   c                 C   rA   )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
        r6   rC   r>   r>   r?   r#   )  rD   zBackup.retention_in_daysc                 C   rE   )z
        Sets the retention_in_days of this Backup.
        Number of days to retain this backup.


        :param retention_in_days: The retention_in_days of this Backup.
        :type: int
        NrU   )r<   r#   r>   r>   r?   r#   5  rF   c                 C   rA   )z
        Gets the data_storage_size_in_gbs of this Backup.
        Initial size of the data volume in GiBs.


        :return: The data_storage_size_in_gbs of this Backup.
        :rtype: int
        r7   rC   r>   r>   r?   r$   A  rD   zBackup.data_storage_size_in_gbsc                 C   rE   )z
        Sets the data_storage_size_in_gbs of this Backup.
        Initial size of the data volume in GiBs.


        :param data_storage_size_in_gbs: The data_storage_size_in_gbs of this Backup.
        :type: int
        NrV   )r<   r$   r>   r>   r?   r$   M  rF   c                 C   rA   )z
        Gets the mysql_version of this Backup.
        The MySQL server version of the DB System used for backup.


        :return: The mysql_version of this Backup.
        :rtype: str
        r8   rC   r>   r>   r?   r%   Y  rD   zBackup.mysql_versionc                 C   rE   )z
        Sets the mysql_version of this Backup.
        The MySQL server version of the DB System used for backup.


        :param mysql_version: The mysql_version of this Backup.
        :type: str
        NrW   )r<   r%   r>   r>   r?   r%   e  rF   c                 C   rA   )z
        Gets the shape_name of this Backup.
        The shape of the DB System used for backup.


        :return: The shape_name of this Backup.
        :rtype: str
        r9   rC   r>   r>   r?   r&   q  rD   zBackup.shape_namec                 C   rE   )z
        Sets the shape_name of this Backup.
        The shape of the DB System used for backup.


        :param shape_name: The shape_name of this Backup.
        :type: str
        NrX   )r<   r&   r>   r>   r?   r&   }  rF   c                 C   rA   )a3  
        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)
        r:   rC   r>   r>   r?   r'        zBackup.freeform_tagsc                 C   rE   )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)
        NrY   )r<   r'   r>   r>   r?   r'        
c                 C   rA   )a-  
        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))
        r;   rC   r>   r>   r?   r(     rZ   zBackup.defined_tagsc                 C   rE   )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))
        Nr\   )r<   r(   r>   r>   r?   r(     r[   c                 C   s   t | S N)r   rC   r>   r>   r?   __repr__  s   zBackup.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r<   otherr>   r>   r?   __eq__  s   zBackup.__eq__c                 C   s
   | |k S r]   r>   r`   r>   r>   r?   __ne__  s   
zBackup.__ne__N))__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDZBACKUP_TYPE_FULLZBACKUP_TYPE_INCREMENTALZCREATION_TYPE_MANUALZCREATION_TYPE_AUTOMATICZCREATION_TYPE_OPERATORr@   propertyr   setterr   r   r   r   r   r   r   r   r   r   r    r!   r#   r$   r%   r&   r'   r(   r^   rb   rc   r>   r>   r>   r?   r      s     






















	
	













r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r>   r>   r>   r?   <module>   s   