o
    ɶdA                     @   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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d-d. Zd/d0 Zd1d2 Zd3S )4Scriptz+
    The information about the script.
    SIDEJSc                 K   s   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 )a9	  
        Initializes a new Script 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 Script.
        :type id: str

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

        :param content_type:
            The value to assign to the content_type property of this Script.
            Allowed values for this property are: "SIDE", "JS", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type content_type: str

        :param content:
            The value to assign to the content property of this Script.
        :type content: str

        :param time_uploaded:
            The value to assign to the time_uploaded property of this Script.
        :type time_uploaded: datetime

        :param content_size_in_bytes:
            The value to assign to the content_size_in_bytes property of this Script.
        :type content_size_in_bytes: int

        :param content_file_name:
            The value to assign to the content_file_name property of this Script.
        :type content_file_name: str

        :param parameters:
            The value to assign to the parameters property of this Script.
        :type parameters: list[oci.apm_synthetics.models.ScriptParameterInfo]

        :param monitor_status_count_map:
            The value to assign to the monitor_status_count_map property of this Script.
        :type monitor_status_count_map: oci.apm_synthetics.models.MonitorStatusCountMap

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

        :param time_updated:
            The value to assign to the time_updated property of this Script.
        :type time_updated: datetime

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

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

        strdatetimeintzlist[ScriptParameterInfo]ZMonitorStatusCountMapzdict(str, str)zdict(str, dict(str, object)))iddisplay_namecontent_typecontenttime_uploadedcontent_size_in_bytescontent_file_name
parametersmonitor_status_count_maptime_createdtime_updatedfreeform_tagsdefined_tagsr   ZdisplayNameZcontentTyper   ZtimeUploadedZcontentSizeInBytesZcontentFileNamer   ZmonitorStatusCountMapZtimeCreatedZtimeUpdatedZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_display_name_content_type_content_time_uploaded_content_size_in_bytes_content_file_name_parameters_monitor_status_count_map_time_created_time_updated_freeform_tags_defined_tags)selfkwargs r(   Dusr/lib/python3.10/site-packages/oci/apm_synthetics/models/script.py__init__   sR   =
zScript.__init__c                 C      | j S )a  
        **[Required]** Gets the id of this Script.
        The `OCID`__ of the script.
        scriptId is mandatory for creation of SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null.

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


        :return: The id of this Script.
        :rtype: str
        r   r&   r(   r(   r)   r         z	Script.idc                 C   
   || _ dS )av  
        Sets the id of this Script.
        The `OCID`__ of the script.
        scriptId is mandatory for creation of SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null.

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


        :param id: The id of this Script.
        :type: str
        Nr,   )r&   r   r(   r(   r)   r      s   
c                 C   r+   )z
        **[Required]** Gets the display_name of this Script.
        Unique name that can be edited. The name should not contain any confidential information.


        :return: The display_name of this Script.
        :rtype: str
        r   r-   r(   r(   r)   r         
zScript.display_namec                 C   r/   )z
        Sets the display_name of this Script.
        Unique name that can be edited. The name should not contain any confidential information.


        :param display_name: The display_name of this Script.
        :type: str
        Nr0   )r&   r   r(   r(   r)   r         

c                 C   r+   )ac  
        **[Required]** Gets the content_type of this Script.
        Content type of the script.

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


        :return: The content_type of this Script.
        :rtype: str
        )r   r-   r(   r(   r)   r      r.   zScript.content_typec                 C   s    ddg}t ||sd}|| _dS )z
        Sets the content_type of this Script.
        Content type of the script.


        :param content_type: The content_type of this Script.
        :type: str
        r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r&   r   Zallowed_valuesr(   r(   r)   r      s   


c                 C   r+   )a  
        Gets the content of this Script.
        The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters.
        The format to set dynamic parameters is: `<ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>`.
        Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false.
        Examples:
        With mandatory param name : `<ORAP><ON>param name</ON></ORAP>`
        With parameter name and value : `<ORAP><ON>param name</ON><OV>param value</OV></ORAP>`
        Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.


        :return: The content of this Script.
        :rtype: str
        r   r-   r(   r(   r)   r      s   zScript.contentc                 C   r/   )a  
        Sets the content of this Script.
        The content of the script. It may contain custom-defined tags that can be used for setting dynamic parameters.
        The format to set dynamic parameters is: `<ORAP><ON>param name</ON><OV>param value</OV><OS>isParamValueSecret(true/false)</OS></ORAP>`.
        Param value and isParamValueSecret are optional, the default value for isParamValueSecret is false.
        Examples:
        With mandatory param name : `<ORAP><ON>param name</ON></ORAP>`
        With parameter name and value : `<ORAP><ON>param name</ON><OV>param value</OV></ORAP>`
        Note that the content is valid if it matches the given content type. For example, if the content type is SIDE, then the content should be in Side script format. If the content type is JS, then the content should be in JavaScript format.


        :param content: The content of this Script.
        :type: str
        Nr3   )r&   r   r(   r(   r)   r      s   
c                 C   r+   )z
        Gets the time_uploaded of this Script.
        The time the script was uploaded.


        :return: The time_uploaded of this Script.
        :rtype: datetime
        r   r-   r(   r(   r)   r      r1   zScript.time_uploadedc                 C   r/   )z
        Sets the time_uploaded of this Script.
        The time the script was uploaded.


        :param time_uploaded: The time_uploaded of this Script.
        :type: datetime
        Nr4   )r&   r   r(   r(   r)   r     r2   c                 C   r+   )z
        Gets the content_size_in_bytes of this Script.
        Size of the script content.


        :return: The content_size_in_bytes of this Script.
        :rtype: int
        r   r-   r(   r(   r)   r     r1   zScript.content_size_in_bytesc                 C   r/   )z
        Sets the content_size_in_bytes of this Script.
        Size of the script content.


        :param content_size_in_bytes: The content_size_in_bytes of this Script.
        :type: int
        Nr5   )r&   r   r(   r(   r)   r      r2   c                 C   r+   )z
        Gets the content_file_name of this Script.
        File name of the uploaded script content.


        :return: The content_file_name of this Script.
        :rtype: str
        r   r-   r(   r(   r)   r   ,  r1   zScript.content_file_namec                 C   r/   )z
        Sets the content_file_name of this Script.
        File name of the uploaded script content.


        :param content_file_name: The content_file_name of this Script.
        :type: str
        Nr6   )r&   r   r(   r(   r)   r   8  r2   c                 C   r+   )aL  
        Gets the parameters of this Script.
        List of script parameters. Example: `[{"scriptParameter": {"paramName": "userid", "paramValue":"testuser", "isSecret": false}, "isOverwritten": false}]`


        :return: The parameters of this Script.
        :rtype: list[oci.apm_synthetics.models.ScriptParameterInfo]
        r    r-   r(   r(   r)   r   D  r1   zScript.parametersc                 C   r/   )aU  
        Sets the parameters of this Script.
        List of script parameters. Example: `[{"scriptParameter": {"paramName": "userid", "paramValue":"testuser", "isSecret": false}, "isOverwritten": false}]`


        :param parameters: The parameters of this Script.
        :type: list[oci.apm_synthetics.models.ScriptParameterInfo]
        Nr7   )r&   r   r(   r(   r)   r   P  r2   c                 C   r+   )z
        **[Required]** Gets the monitor_status_count_map of this Script.

        :return: The monitor_status_count_map of this Script.
        :rtype: oci.apm_synthetics.models.MonitorStatusCountMap
        r!   r-   r(   r(   r)   r   \  s   zScript.monitor_status_count_mapc                 C   r/   )z
        Sets the monitor_status_count_map of this Script.

        :param monitor_status_count_map: The monitor_status_count_map of this Script.
        :type: oci.apm_synthetics.models.MonitorStatusCountMap
        Nr8   )r&   r   r(   r(   r)   r   f  s   
c                 C   r+   )a?  
        Gets the time_created of this Script.
        The time the resource was created, expressed in `RFC 3339`__
        timestamp format.
        Example: `2020-02-12T22:47:12.613Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_created of this Script.
        :rtype: datetime
        r"   r-   r(   r(   r)   r   p     zScript.time_createdc                 C   r/   )aJ  
        Sets the time_created of this Script.
        The time the resource was created, expressed in `RFC 3339`__
        timestamp format.
        Example: `2020-02-12T22:47:12.613Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_created: The time_created of this Script.
        :type: datetime
        Nr9   )r&   r   r(   r(   r)   r        
c                 C   r+   )a?  
        Gets the time_updated of this Script.
        The time the resource was updated, expressed in `RFC 3339`__
        timestamp format.
        Example: `2020-02-13T22:47:12.613Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_updated of this Script.
        :rtype: datetime
        r#   r-   r(   r(   r)   r     r:   zScript.time_updatedc                 C   r/   )aJ  
        Sets the time_updated of this Script.
        The time the resource was updated, expressed in `RFC 3339`__
        timestamp format.
        Example: `2020-02-13T22:47:12.613Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_updated: The time_updated of this Script.
        :type: datetime
        Nr<   )r&   r   r(   r(   r)   r     r;   c                 C   r+   )a3  
        Gets the freeform_tags of this Script.
        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 Script.
        :rtype: dict(str, str)
        r$   r-   r(   r(   r)   r        zScript.freeform_tagsc                 C   r/   )a?  
        Sets the freeform_tags of this Script.
        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 Script.
        :type: dict(str, str)
        Nr=   )r&   r   r(   r(   r)   r        
c                 C   r+   )a-  
        Gets the defined_tags of this Script.
        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 Script.
        :rtype: dict(str, dict(str, object))
        r%   r-   r(   r(   r)   r     r>   zScript.defined_tagsc                 C   r/   )a8  
        Sets the defined_tags of this Script.
        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 Script.
        :type: dict(str, dict(str, object))
        Nr@   )r&   r   r(   r(   r)   r     r?   c                 C   s   t | S N)r   r-   r(   r(   r)   __repr__  s   zScript.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r&   otherr(   r(   r)   __eq__  s   zScript.__eq__c                 C   s
   | |k S rA   r(   rD   r(   r(   r)   __ne__  s   
zScript.__ne__N)__name__
__module____qualname____doc__ZCONTENT_TYPE_SIDEZCONTENT_TYPE_JSr*   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   rB   rF   rG   r(   r(   r(   r)   r      sx    j
















	
	







r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r(   r(   r(   r)   <module>   s   