o
    ëÉ¶d°@  ã                   @   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                   @   sÐ  e 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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d4d5„ Zd6d7„ Zd8d9„ Zd:S );ÚBackupSummarya§  
    Details of Backups such as OCID, description, backupType, and so on.

    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
    c                 K   s0  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“| _ 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$S )%aE
  
        Initializes a new BackupSummary 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 BackupSummary.
        :type id: str

        :param display_name:
            The value to assign to the display_name property of this BackupSummary.
        :type display_name: str

        :param description:
            The value to assign to the description property of this BackupSummary.
        :type description: str

        :param time_created:
            The value to assign to the time_created property of this BackupSummary.
        :type time_created: datetime

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this BackupSummary.
        :type lifecycle_state: str

        :param backup_type:
            The value to assign to the backup_type property of this BackupSummary.
        :type backup_type: str

        :param creation_type:
            The value to assign to the creation_type property of this BackupSummary.
        :type creation_type: str

        :param db_system_id:
            The value to assign to the db_system_id property of this BackupSummary.
        :type db_system_id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this BackupSummary.
        :type compartment_id: str

        :param data_storage_size_in_gbs:
            The value to assign to the data_storage_size_in_gbs property of this BackupSummary.
        :type data_storage_size_in_gbs: int

        :param backup_size_in_gbs:
            The value to assign to the backup_size_in_gbs property of this BackupSummary.
        :type backup_size_in_gbs: int

        :param retention_in_days:
            The value to assign to the retention_in_days property of this BackupSummary.
        :type retention_in_days: int

        :param mysql_version:
            The value to assign to the mysql_version property of this BackupSummary.
        :type mysql_version: str

        :param shape_name:
            The value to assign to the shape_name property of this BackupSummary.
        :type shape_name: str

        :param freeform_tags:
            The value to assign to the freeform_tags property of this BackupSummary.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this BackupSummary.
        :type defined_tags: dict(str, dict(str, object))

        ÚidÚstrÚdisplay_nameÚdescriptionÚtime_createdÚdatetimeÚlifecycle_stateÚbackup_typeÚcreation_typeÚdb_system_idÚcompartment_idÚdata_storage_size_in_gbsÚintÚbackup_size_in_gbsÚretention_in_daysÚmysql_versionÚ
shape_nameÚfreeform_tagszdict(str, str)Údefined_tagszdict(str, dict(str, object))ZdisplayNameZtimeCreatedZlifecycleStateZ
backupTypeZcreationTypeZ
dbSystemIdZcompartmentIdZdataStorageSizeInGBsZbackupSizeInGBsZretentionInDaysZmysqlVersionZ	shapeNameZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_mapÚ_idÚ_display_nameÚ_descriptionÚ_time_createdÚ_lifecycle_stateÚ_backup_typeÚ_creation_typeÚ_db_system_idÚ_compartment_idÚ_data_storage_size_in_gbsÚ_backup_size_in_gbsÚ_retention_in_daysÚ_mysql_versionÚ_shape_nameÚ_freeform_tagsÚ_defined_tags)ÚselfÚkwargs© r,   úCusr/lib/python3.10/site-packages/oci/mysql/models/backup_summary.pyÚ__init__   s¤   Fÿþýüûúùø	÷
öõôóòñðÿþýüûúùø	÷
öõôóòñð
zBackupSummary.__init__c                 C   ó   | j S )z¤
        **[Required]** Gets the id of this BackupSummary.
        OCID of the backup.


        :return: The id of this BackupSummary.
        :rtype: str
        ©r   ©r*   r,   r,   r-   r   –   ó   
zBackupSummary.idc                 C   ó
   || _ dS )z–
        Sets the id of this BackupSummary.
        OCID of the backup.


        :param id: The id of this BackupSummary.
        :type: str
        Nr0   )r*   r   r,   r,   r-   r   ¢   ó   

c                 C   r/   )zÂ
        Gets the display_name of this BackupSummary.
        A user-supplied display name for the backup.


        :return: The display_name of this BackupSummary.
        :rtype: str
        ©r   r1   r,   r,   r-   r	   ®   r2   zBackupSummary.display_namec                 C   r3   )zÍ
        Sets the display_name of this BackupSummary.
        A user-supplied display name for the backup.


        :param display_name: The display_name of this BackupSummary.
        :type: str
        Nr5   )r*   r	   r,   r,   r-   r	   º   r4   c                 C   r/   )z¾
        Gets the description of this BackupSummary.
        A user-supplied description of the backup.


        :return: The description of this BackupSummary.
        :rtype: str
        ©r   r1   r,   r,   r-   r
   Æ   r2   zBackupSummary.descriptionc                 C   r3   )zÈ
        Sets the description of this BackupSummary.
        A user-supplied description of the backup.


        :param description: The description of this BackupSummary.
        :type: str
        Nr6   )r*   r
   r,   r,   r-   r
   Ò   r4   c                 C   r/   )zÊ
        **[Required]** Gets the time_created of this BackupSummary.
        The time the backup was created.


        :return: The time_created of this BackupSummary.
        :rtype: datetime
        ©r   r1   r,   r,   r-   r   Þ   r2   zBackupSummary.time_createdc                 C   r3   )zÆ
        Sets the time_created of this BackupSummary.
        The time the backup was created.


        :param time_created: The time_created of this BackupSummary.
        :type: datetime
        Nr7   )r*   r   r,   r,   r-   r   ê   r4   c                 C   r/   )zÃ
        **[Required]** Gets the lifecycle_state of this BackupSummary.
        The state of the backup.


        :return: The lifecycle_state of this BackupSummary.
        :rtype: str
        ©r   r1   r,   r,   r-   r   ö   r2   zBackupSummary.lifecycle_statec                 C   r3   )zÂ
        Sets the lifecycle_state of this BackupSummary.
        The state of the backup.


        :param lifecycle_state: The lifecycle_state of this BackupSummary.
        :type: str
        Nr8   )r*   r   r,   r,   r-   r     r4   c                 C   r/   )z¶
        **[Required]** Gets the backup_type of this BackupSummary.
        The type of backup.


        :return: The backup_type of this BackupSummary.
        :rtype: str
        ©r   r1   r,   r,   r-   r     r2   zBackupSummary.backup_typec                 C   r3   )z±
        Sets the backup_type of this BackupSummary.
        The type of backup.


        :param backup_type: The backup_type of this BackupSummary.
        :type: str
        Nr9   )r*   r   r,   r,   r-   r     r4   c                 C   r/   )zç
        **[Required]** Gets the creation_type of this BackupSummary.
        If the backup was created automatically, or by a manual request.


        :return: The creation_type of this BackupSummary.
        :rtype: str
        ©r    r1   r,   r,   r-   r   &  r2   zBackupSummary.creation_typec                 C   r3   )zä
        Sets the creation_type of this BackupSummary.
        If the backup was created automatically, or by a manual request.


        :param creation_type: The creation_type of this BackupSummary.
        :type: str
        Nr:   )r*   r   r,   r,   r-   r   2  r4   c                 C   r/   )zÝ
        **[Required]** Gets the db_system_id of this BackupSummary.
        The OCID of the DB System the Backup is associated with.


        :return: The db_system_id of this BackupSummary.
        :rtype: str
        ©r!   r1   r,   r,   r-   r   >  r2   zBackupSummary.db_system_idc                 C   r3   )zÙ
        Sets the db_system_id of this BackupSummary.
        The OCID of the DB System the Backup is associated with.


        :param db_system_id: The db_system_id of this BackupSummary.
        :type: str
        Nr;   )r*   r   r,   r,   r-   r   J  r4   c                 C   r/   )zÚ
        **[Required]** Gets the compartment_id of this BackupSummary.
        The OCID of the compartment the backup exists in.


        :return: The compartment_id of this BackupSummary.
        :rtype: str
        ©r"   r1   r,   r,   r-   r   V  r2   zBackupSummary.compartment_idc                 C   r3   )zØ
        Sets the compartment_id of this BackupSummary.
        The OCID of the compartment the backup exists in.


        :param compartment_id: The compartment_id of this BackupSummary.
        :type: str
        Nr<   )r*   r   r,   r,   r-   r   b  r4   c                 C   r/   )zÎ
        Gets the data_storage_size_in_gbs of this BackupSummary.
        Size of the data volume in GiBs.


        :return: The data_storage_size_in_gbs of this BackupSummary.
        :rtype: int
        ©r#   r1   r,   r,   r-   r   n  r2   z&BackupSummary.data_storage_size_in_gbsc                 C   r3   )zå
        Sets the data_storage_size_in_gbs of this BackupSummary.
        Size of the data volume in GiBs.


        :param data_storage_size_in_gbs: The data_storage_size_in_gbs of this BackupSummary.
        :type: int
        Nr=   )r*   r   r,   r,   r-   r   z  r4   c                 C   r/   )zÁ
        Gets the backup_size_in_gbs of this BackupSummary.
        The size of the backup in GiBs.


        :return: The backup_size_in_gbs of this BackupSummary.
        :rtype: int
        ©r$   r1   r,   r,   r-   r   †  r2   z BackupSummary.backup_size_in_gbsc                 C   r3   )zÒ
        Sets the backup_size_in_gbs of this BackupSummary.
        The size of the backup in GiBs.


        :param backup_size_in_gbs: The backup_size_in_gbs of this BackupSummary.
        :type: int
        Nr>   )r*   r   r,   r,   r-   r   ’  r4   c                 C   r/   )zÅ
        Gets the retention_in_days of this BackupSummary.
        Number of days to retain this backup.


        :return: The retention_in_days of this BackupSummary.
        :rtype: int
        ©r%   r1   r,   r,   r-   r   ž  r2   zBackupSummary.retention_in_daysc                 C   r3   )zÕ
        Sets the retention_in_days of this BackupSummary.
        Number of days to retain this backup.


        :param retention_in_days: The retention_in_days of this BackupSummary.
        :type: int
        Nr?   )r*   r   r,   r,   r-   r   ª  r4   c                 C   r/   )zÅ
        Gets the mysql_version of this BackupSummary.
        The version of the DB System used for backup.


        :return: The mysql_version of this BackupSummary.
        :rtype: str
        ©r&   r1   r,   r,   r-   r   ¶  r2   zBackupSummary.mysql_versionc                 C   r3   )zÑ
        Sets the mysql_version of this BackupSummary.
        The version of the DB System used for backup.


        :param mysql_version: The mysql_version of this BackupSummary.
        :type: str
        Nr@   )r*   r   r,   r,   r-   r   Â  r4   c                 C   r/   )zÆ
        Gets the shape_name of this BackupSummary.
        The shape of the DB System instance used for backup.


        :return: The shape_name of this BackupSummary.
        :rtype: str
        ©r'   r1   r,   r,   r-   r   Î  r2   zBackupSummary.shape_namec                 C   r3   )zÏ
        Sets the shape_name of this BackupSummary.
        The shape of the DB System instance used for backup.


        :param shape_name: The shape_name of this BackupSummary.
        :type: str
        NrA   )r*   r   r,   r,   r-   r   Ú  r4   c                 C   r/   )aA  
        Gets the freeform_tags of this BackupSummary.
        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 BackupSummary.
        :rtype: dict(str, str)
        ©r(   r1   r,   r,   r-   r   æ  ó   zBackupSummary.freeform_tagsc                 C   r3   )aM  
        Sets the freeform_tags of this BackupSummary.
        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 BackupSummary.
        :type: dict(str, str)
        NrB   )r*   r   r,   r,   r-   r   ó  ó   
c                 C   r/   )a;  
        Gets the defined_tags of this BackupSummary.
        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 BackupSummary.
        :rtype: dict(str, dict(str, object))
        ©r)   r1   r,   r,   r-   r      rC   zBackupSummary.defined_tagsc                 C   r3   )aF  
        Sets the defined_tags of this BackupSummary.
        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 BackupSummary.
        :type: dict(str, dict(str, object))
        NrE   )r*   r   r,   r,   r-   r     rD   c                 C   s   t | ƒS ©N)r   r1   r,   r,   r-   Ú__repr__  s   zBackupSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r*   Úotherr,   r,   r-   Ú__eq__  s   zBackupSummary.__eq__c                 C   s
   | |k S rF   r,   rI   r,   r,   r-   Ú__ne__#  s   
zBackupSummary.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r.   Úpropertyr   Úsetterr	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   rG   rK   rL   r,   r,   r,   r-   r      sŒ    }































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r,   r,   r,   r-   Ú<module>   s   