ruạṛ
a N��f�( � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdd� Zedd� �Zedd� �Zej dd� �Zed d � �Z e j dd � �Z edd � �Zej dd � �Zedd� �Zej dd� �Zedd� �Z e j dd� �Z edd� �Zej dd� �Zedd� �Zej dd� �Zdd� Zdd� Zdd � Zd!S )"�CreateTriggerDetailsz, Information about the new trigger. c K sZ dddddddd�| _ dddd d ddd�| _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_tags�displayNamer � projectId� triggerSourcer �freeformTags�definedTagsN) � swagger_types� attribute_map� _display_name�_description�_project_id�_trigger_source�_actions�_freeform_tags� _defined_tags)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/devops/models/create_trigger_details.py�__init__ s. -�� zCreateTriggerDetails.__init__c C sd | d }|dkrdS |dkr dS |dkr,dS |dkr8d S |d krDdS |dkrPd S |dkr\dS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r �GITHUB�CreateGithubTriggerDetails�VBS�CreateVbsTriggerDetails�DEVOPS_CODE_REPOSITORY�(CreateDevopsCodeRepositoryTriggerDetails�BITBUCKET_CLOUD�"CreateBitbucketCloudTriggerDetails� GITLAB_SERVER� CreateGitlabServerTriggerDetails�GITLAB�CreateGitlabTriggerDetails�BITBUCKET_SERVER�#CreateBitbucketServerTriggerDetailsr Nr )�object_dictionary�typer r r �get_subtypeX s z CreateTriggerDetails.get_subtypec C s | j S )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 �r r r r r w s z!CreateTriggerDetails.display_namec C s || _ 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 Nr3 )r r r r r r � s c C s | j S )z� Gets the description of this CreateTriggerDetails. Optional description about the trigger. :return: The description of this CreateTriggerDetails. :rtype: str �r r4 r r r r � s z CreateTriggerDetails.descriptionc C s || _ dS )z� Sets the description of this CreateTriggerDetails. Optional description about the trigger. :param description: The description of this CreateTriggerDetails. :type: str Nr5 )r r r r r r � s c C s | j S )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 �r r4 r r r r � s zCreateTriggerDetails.project_idc C s || _ 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 Nr6 )r r r r r r � s c C s | j S )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 �r r4 r r r r � s z#CreateTriggerDetails.trigger_sourcec C s || _ 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 Nr7 )r r r r r r � s c C s | j S )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] �r r4 r r r r � s zCreateTriggerDetails.actionsc C s || _ 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] Nr8 )r r r r r r � s c C s | j S )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) �r r4 r r r r � s z"CreateTriggerDetails.freeform_tagsc C s || _ 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) Nr9 )r r r r r r � s c C s | j S )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)) �r r4 r r r r s z!CreateTriggerDetails.defined_tagsc C s || _ 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: )r r r r r r s c C s t | �S �N)r r4 r r r �__repr__' s zCreateTriggerDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__* s zCreateTriggerDetails.__eq__c C s | |k S r; r r>