HEX
Server: Apache
System: Linux sh00085.hostgator.com 5.14.0-687.29.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 23 16:18:48 EDT 2026 x86_64
User: yqegzjte (1064)
PHP: 8.5.8
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/oci/devops/models/__pycache__/create_trigger_details.cpython-39.pyc
a

���f�(�@s8ddlmZmZmZddlmZeGdd�de��ZdS)�)�formatted_flat_dict�
NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc@s�eZdZdZdd�Zedd��Zedd��Zej	dd��Zed	d
��Z
e
j	dd
��Z
edd
��Zej	dd
��Zedd��Zej	dd��Zedd��Z
e
j	dd��Z
edd��Zej	dd��Zedd��Zej	dd��Zdd�Zdd�Zdd �Zd!S)"�CreateTriggerDetailsz,
    Information about the new trigger.
    cKsZdddddddd�|_dddd	d
ddd�|_d
|_d
|_d
|_d
|_d
|_d
|_d
|_d
S)a�
        Initializes a new CreateTriggerDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
        to a service operations then you should favor using a subclass over the base class:

        * :class:`~oci.devops.models.CreateGithubTriggerDetails`
        * :class:`~oci.devops.models.CreateVbsTriggerDetails`
        * :class:`~oci.devops.models.CreateDevopsCodeRepositoryTriggerDetails`
        * :class:`~oci.devops.models.CreateBitbucketCloudTriggerDetails`
        * :class:`~oci.devops.models.CreateGitlabServerTriggerDetails`
        * :class:`~oci.devops.models.CreateGitlabTriggerDetails`
        * :class:`~oci.devops.models.CreateBitbucketServerTriggerDetails`

        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

        :param project_id:
            The value to assign to the project_id property of this CreateTriggerDetails.
        :type project_id: str

        :param trigger_source:
            The value to assign to the trigger_source property of this CreateTriggerDetails.
        :type trigger_source: str

        :param actions:
            The value to assign to the actions property of this CreateTriggerDetails.
        :type actions: list[oci.devops.models.TriggerAction]

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

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

        �strzlist[TriggerAction]zdict(str, str)zdict(str, dict(str, object)))�display_name�description�
project_id�trigger_source�actions�
freeform_tags�defined_tagsZdisplayNamer	Z	projectId�
triggerSourcerZfreeformTagsZdefinedTagsN)	Z
swagger_typesZ
attribute_map�
_display_name�_description�_project_id�_trigger_source�_actions�_freeform_tags�
_defined_tags)�self�kwargs�r�L/usr/lib/python3.9/site-packages/oci/devops/models/create_trigger_details.py�__init__s.-��
zCreateTriggerDetails.__init__cCsd|d}|dkrdS|dkr dS|dkr,dS|dkr8d	S|d
krDdS|dkrPd
S|dkr\dSdSdS)z�
        Given the hash representation of a subtype of this class,
        use the info in the hash to return the class of the subtype.
        rZGITHUBZCreateGithubTriggerDetailsZVBSZCreateVbsTriggerDetailsZDEVOPS_CODE_REPOSITORYZ(CreateDevopsCodeRepositoryTriggerDetailsZBITBUCKET_CLOUDZ"CreateBitbucketCloudTriggerDetailsZ
GITLAB_SERVERZ CreateGitlabServerTriggerDetailsZGITLABZCreateGitlabTriggerDetailsZBITBUCKET_SERVERZ#CreateBitbucketServerTriggerDetailsrNr)Zobject_dictionary�typerrr�get_subtypeZs z CreateTriggerDetails.get_subtypecCs|jS)z�
        Gets the display_name of this CreateTriggerDetails.
        Trigger display name. Avoid entering confidential information.


        :return: The display_name of this CreateTriggerDetails.
        :rtype: str
        �r�rrrrrys
z!CreateTriggerDetails.display_namecCs
||_dS)z�
        Sets the display_name of this CreateTriggerDetails.
        Trigger display name. Avoid entering confidential information.


        :param display_name: The display_name of this CreateTriggerDetails.
        :type: str
        Nr)rrrrrr�s
cCs|jS)z�
        Gets the description of this CreateTriggerDetails.
        Optional description about the trigger.


        :return: The description of this CreateTriggerDetails.
        :rtype: str
        �rrrrrr	�s
z CreateTriggerDetails.descriptioncCs
||_dS)z�
        Sets the description of this CreateTriggerDetails.
        Optional description about the trigger.


        :param description: The description of this CreateTriggerDetails.
        :type: str
        Nr )rr	rrrr	�s
cCs|jS)z�
        **[Required]** Gets the project_id of this CreateTriggerDetails.
        The OCID of the DevOps project to which the trigger belongs to.


        :return: The project_id of this CreateTriggerDetails.
        :rtype: str
        �rrrrrr
�s
zCreateTriggerDetails.project_idcCs
||_dS)z�
        Sets the project_id of this CreateTriggerDetails.
        The OCID of the DevOps project to which the trigger belongs to.


        :param project_id: The project_id of this CreateTriggerDetails.
        :type: str
        Nr!)rr
rrrr
�s
cCs|jS)z�
        **[Required]** Gets the trigger_source of this CreateTriggerDetails.
        Source of the trigger. Allowed values are, GITHUB and GITLAB.


        :return: The trigger_source of this CreateTriggerDetails.
        :rtype: str
        �rrrrrr�s
z#CreateTriggerDetails.trigger_sourcecCs
||_dS)z�
        Sets the trigger_source of this CreateTriggerDetails.
        Source of the trigger. Allowed values are, GITHUB and GITLAB.


        :param trigger_source: The trigger_source of this CreateTriggerDetails.
        :type: str
        Nr")rrrrrr�s
cCs|jS)a	
        **[Required]** Gets the actions of this CreateTriggerDetails.
        The list of actions that are to be performed for this trigger.


        :return: The actions of this CreateTriggerDetails.
        :rtype: list[oci.devops.models.TriggerAction]
        �rrrrrr�s
zCreateTriggerDetails.actionscCs
||_dS)a
        Sets the actions of this CreateTriggerDetails.
        The list of actions that are to be performed for this trigger.


        :param actions: The actions of this CreateTriggerDetails.
        :type: list[oci.devops.models.TriggerAction]
        Nr#)rrrrrr�s
cCs|jS)a�
        Gets the freeform_tags of this CreateTriggerDetails.
        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 CreateTriggerDetails.
        :rtype: dict(str, str)
        �rrrrrr
�sz"CreateTriggerDetails.freeform_tagscCs
||_dS)a�
        Sets the freeform_tags of this CreateTriggerDetails.
        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 CreateTriggerDetails.
        :type: dict(str, str)
        Nr$)rr
rrrr
�scCs|jS)a�
        Gets the defined_tags of this CreateTriggerDetails.
        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 CreateTriggerDetails.
        :rtype: dict(str, dict(str, object))
        �rrrrrr
sz!CreateTriggerDetails.defined_tagscCs
||_dS)a�
        Sets the defined_tags of this CreateTriggerDetails.
        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 CreateTriggerDetails.
        :type: dict(str, dict(str, object))
        Nr%)rrrrrrscCst|�S�N)rrrrr�__repr__)szCreateTriggerDetails.__repr__cCs|durdS|j|jkS)NF)�__dict__�r�otherrrr�__eq__,szCreateTriggerDetails.__eq__cCs
||kSr&rr)rrr�__ne__2szCreateTriggerDetails.__ne__N)�__name__�
__module__�__qualname__�__doc__r�staticmethodr�propertyr�setterr	r
rrr
rr'r+r,rrrrrsFH


















rN)Zoci.utilrrrZoci.decoratorsr�objectrrrrr�<module>s