o
    ɶdBJ                     @   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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d(d' Ze	d)d* Zejd+d* Ze	d,d- Zejd.d- Ze	d/d0 Zejd1d0 Ze	d2d3 Zejd4d3 Ze	d5d6 Zejd7d6 Zd8d9 Zd:d; Zd<d= Zd>S )?Schedulez
    The schedule.
    CSVPDFACTIVEINACTIVEc                 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 )%a  
        Initializes a new Schedule 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 Schedule.
        :type id: str

        :param name:
            The value to assign to the name property of this Schedule.
        :type name: str

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

        :param result_location:
            The value to assign to the result_location property of this Schedule.
        :type result_location: oci.usage_api.models.ResultLocation

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

        :param time_next_run:
            The value to assign to the time_next_run property of this Schedule.
        :type time_next_run: datetime

        :param output_file_format:
            The value to assign to the output_file_format property of this Schedule.
            Allowed values for this property are: "CSV", "PDF", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type output_file_format: str

        :param saved_report_id:
            The value to assign to the saved_report_id property of this Schedule.
        :type saved_report_id: str

        :param schedule_recurrences:
            The value to assign to the schedule_recurrences property of this Schedule.
        :type schedule_recurrences: str

        :param time_scheduled:
            The value to assign to the time_scheduled property of this Schedule.
        :type time_scheduled: datetime

        :param query_properties:
            The value to assign to the query_properties property of this Schedule.
        :type query_properties: oci.usage_api.models.QueryProperties

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Schedule.
            Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

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

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

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

        idstrnamecompartment_idresult_locationZResultLocationdescriptiontime_next_rundatetimeoutput_file_formatsaved_report_idschedule_recurrencestime_scheduledquery_propertiesZQueryPropertiestime_createdlifecycle_statefreeform_tagszdict(str, str)defined_tagszdict(str, dict(str, object))system_tagsZcompartmentIdZresultLocationZtimeNextRunZoutputFileFormatZsavedReportIdZscheduleRecurrencesZtimeScheduledZqueryPropertiesZtimeCreatedZlifecycleStateZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_map_id_name_compartment_id_result_location_description_time_next_run_output_file_format_saved_report_id_schedule_recurrences_time_scheduled_query_properties_time_created_lifecycle_state_freeform_tags_defined_tags_system_tags)selfkwargs r/   Ausr/lib/python3.10/site-packages/oci/usage_api/models/schedule.py__init__"   s   J	
	

zSchedule.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Schedule.
        The OCID representing a unique shedule.


        :return: The id of this Schedule.
        :rtype: str
        r   r-   r/   r/   r0   r         
zSchedule.idc                 C   
   || _ dS )z
        Sets the id of this Schedule.
        The OCID representing a unique shedule.


        :param id: The id of this Schedule.
        :type: str
        Nr3   )r-   r   r/   r/   r0   r         

c                 C   r2   )z
        **[Required]** Gets the name of this Schedule.
        The unique name of the schedule created by the user.


        :return: The name of this Schedule.
        :rtype: str
        r   r4   r/   r/   r0   r      r5   zSchedule.namec                 C   r6   )z
        Sets the name of this Schedule.
        The unique name of the schedule created by the user.


        :param name: The name of this Schedule.
        :type: str
        Nr8   )r-   r   r/   r/   r0   r      r7   c                 C   r2   )z
        **[Required]** Gets the compartment_id of this Schedule.
        The customer tenancy.


        :return: The compartment_id of this Schedule.
        :rtype: str
        r   r4   r/   r/   r0   r      r5   zSchedule.compartment_idc                 C   r6   )z
        Sets the compartment_id of this Schedule.
        The customer tenancy.


        :param compartment_id: The compartment_id of this Schedule.
        :type: str
        Nr9   )r-   r   r/   r/   r0   r      r7   c                 C   r2   )z
        **[Required]** Gets the result_location of this Schedule.

        :return: The result_location of this Schedule.
        :rtype: oci.usage_api.models.ResultLocation
        r    r4   r/   r/   r0   r         zSchedule.result_locationc                 C   r6   )z
        Sets the result_location of this Schedule.

        :param result_location: The result_location of this Schedule.
        :type: oci.usage_api.models.ResultLocation
        Nr:   )r-   r   r/   r/   r0   r         
c                 C   r2   )z
        Gets the description of this Schedule.
        The description of the schedule.


        :return: The description of this Schedule.
        :rtype: str
        r!   r4   r/   r/   r0   r      r5   zSchedule.descriptionc                 C   r6   )z
        Sets the description of this Schedule.
        The description of the schedule.


        :param description: The description of this Schedule.
        :type: str
        Nr=   )r-   r   r/   r/   r0   r     r7   c                 C   r2   )z
        Gets the time_next_run of this Schedule.
        The date and time of the next job execution.


        :return: The time_next_run of this Schedule.
        :rtype: datetime
        r"   r4   r/   r/   r0   r     r5   zSchedule.time_next_runc                 C   r6   )z
        Sets the time_next_run of this Schedule.
        The date and time of the next job execution.


        :param time_next_run: The time_next_run of this Schedule.
        :type: datetime
        Nr>   )r-   r   r/   r/   r0   r   #  r7   c                 C   r2   )ap  
        Gets the output_file_format of this Schedule.
        Specifies supported output file format.

        Allowed values for this property are: "CSV", "PDF", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The output_file_format of this Schedule.
        :rtype: str
        )r#   r4   r/   r/   r0   r   /     zSchedule.output_file_formatc                 C       ddg}t ||sd}|| _dS )z
        Sets the output_file_format of this Schedule.
        Specifies supported output file format.


        :param output_file_format: The output_file_format of this Schedule.
        :type: str
        r   r   UNKNOWN_ENUM_VALUEN)r   r#   )r-   r   allowed_valuesr/   r/   r0   r   >     


c                 C   r2   )z
        Gets the saved_report_id of this Schedule.
        The saved report id which can also be used to generate query.


        :return: The saved_report_id of this Schedule.
        :rtype: str
        r$   r4   r/   r/   r0   r   M  r5   zSchedule.saved_report_idc                 C   r6   )z
        Sets the saved_report_id of this Schedule.
        The saved report id which can also be used to generate query.


        :param saved_report_id: The saved_report_id of this Schedule.
        :type: str
        NrD   )r-   r   r/   r/   r0   r   Y  r7   c                 C   r2   )a  
        **[Required]** Gets the schedule_recurrences of this Schedule.
        Specifies the frequency according to when the schedule will be run,
        in the x-obmcs-recurring-time format described in `RFC 5545 section 3.3.10`__.
        Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.

        __ https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10


        :return: The schedule_recurrences of this Schedule.
        :rtype: str
        r%   r4   r/   r/   r0   r   e  s   zSchedule.schedule_recurrencesc                 C   r6   )a  
        Sets the schedule_recurrences of this Schedule.
        Specifies the frequency according to when the schedule will be run,
        in the x-obmcs-recurring-time format described in `RFC 5545 section 3.3.10`__.
        Supported values are : ONE_TIME, DAILY, WEEKLY and MONTHLY.

        __ https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10


        :param schedule_recurrences: The schedule_recurrences of this Schedule.
        :type: str
        NrE   )r-   r   r/   r/   r0   r   u  s   
c                 C   r2   )z
        **[Required]** Gets the time_scheduled of this Schedule.
        The date and time of the first time job execution.


        :return: The time_scheduled of this Schedule.
        :rtype: datetime
        r&   r4   r/   r/   r0   r     r5   zSchedule.time_scheduledc                 C   r6   )z
        Sets the time_scheduled of this Schedule.
        The date and time of the first time job execution.


        :param time_scheduled: The time_scheduled of this Schedule.
        :type: datetime
        NrF   )r-   r   r/   r/   r0   r     r7   c                 C   r2   )z
        Gets the query_properties of this Schedule.

        :return: The query_properties of this Schedule.
        :rtype: oci.usage_api.models.QueryProperties
        r'   r4   r/   r/   r0   r     r;   zSchedule.query_propertiesc                 C   r6   )z
        Sets the query_properties of this Schedule.

        :param query_properties: The query_properties of this Schedule.
        :type: oci.usage_api.models.QueryProperties
        NrG   )r-   r   r/   r/   r0   r     r<   c                 C   r2   )z
        **[Required]** Gets the time_created of this Schedule.
        The date and time the schedule was created.


        :return: The time_created of this Schedule.
        :rtype: datetime
        r(   r4   r/   r/   r0   r     r5   zSchedule.time_createdc                 C   r6   )z
        Sets the time_created of this Schedule.
        The date and time the schedule was created.


        :param time_created: The time_created of this Schedule.
        :type: datetime
        NrH   )r-   r   r/   r/   r0   r     r7   c                 C   r2   )aw  
        **[Required]** Gets the lifecycle_state of this Schedule.
        The schedule lifecycle state.

        Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this Schedule.
        :rtype: str
        )r)   r4   r/   r/   r0   r     r?   zSchedule.lifecycle_statec                 C   r@   )z
        Sets the lifecycle_state of this Schedule.
        The schedule lifecycle state.


        :param lifecycle_state: The lifecycle_state of this Schedule.
        :type: str
        r	   r
   rA   N)r   r)   )r-   r   rB   r/   r/   r0   r     rC   c                 C   r2   )a  
        Gets the freeform_tags of this Schedule.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        See `Resource Tags`__. Example: `{"bar-key": "value"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this Schedule.
        :rtype: dict(str, str)
        r*   r4   r/   r/   r0   r     r?   zSchedule.freeform_tagsc                 C   r6   )a  
        Sets the freeform_tags of this Schedule.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        See `Resource Tags`__. Example: `{"bar-key": "value"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this Schedule.
        :type: dict(str, str)
        NrI   )r-   r   r/   r/   r0   r     s   
c                 C   r2   )a  
        Gets the defined_tags of this Schedule.
        Defined tags for this resource. Each key is predefined and scoped to a namespace. See `Resource Tags`__. Example: `{"foo-namespace": {"bar-key": "value"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this Schedule.
        :rtype: dict(str, dict(str, object))
        r+   r4   r/   r/   r0   r        zSchedule.defined_tagsc                 C   r6   )a  
        Sets the defined_tags of this Schedule.
        Defined tags for this resource. Each key is predefined and scoped to a namespace. See `Resource Tags`__. Example: `{"foo-namespace": {"bar-key": "value"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this Schedule.
        :type: dict(str, dict(str, object))
        NrJ   )r-   r   r/   r/   r0   r        
c                 C   r2   )a  
        Gets the system_tags of this Schedule.
        Usage of system tag keys. These predefined keys are scoped to namespaces. See `Resource Tags`__. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The system_tags of this Schedule.
        :rtype: dict(str, dict(str, object))
        r,   r4   r/   r/   r0   r   !  rK   zSchedule.system_tagsc                 C   r6   )a  
        Sets the system_tags of this Schedule.
        Usage of system tag keys. These predefined keys are scoped to namespaces. See `Resource Tags`__. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param system_tags: The system_tags of this Schedule.
        :type: dict(str, dict(str, object))
        NrM   )r-   r   r/   r/   r0   r   /  rL   c                 C   s   t | S N)r   r4   r/   r/   r0   __repr__=  s   zSchedule.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r-   otherr/   r/   r0   __eq__@  s   zSchedule.__eq__c                 C   s
   | |k S rN   r/   rQ   r/   r/   r0   __ne__F  s   
zSchedule.__ne__N)__name__
__module____qualname____doc__ZOUTPUT_FILE_FORMAT_CSVZOUTPUT_FILE_FORMAT_PDFZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEr1   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rO   rS   rT   r/   r/   r/   r0   r      s     






	
	












	
	









r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r/   r/   r/   r0   <module>   s   