File: //lib/python3.9/site-packages/oci/devops/models/__pycache__/create_trigger_details.cpython-39.pyc
a
���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_tagsZdisplayNamer Z projectId�
triggerSourcer ZfreeformTagsZdefinedTagsN) 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__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 ZGITHUBZCreateGithubTriggerDetailsZVBSZCreateVbsTriggerDetailsZDEVOPS_CODE_REPOSITORYZ(CreateDevopsCodeRepositoryTriggerDetailsZBITBUCKET_CLOUDZ"CreateBitbucketCloudTriggerDetailsZ
GITLAB_SERVERZ CreateGitlabServerTriggerDetailsZGITLABZCreateGitlabTriggerDetailsZBITBUCKET_SERVERZ#CreateBitbucketServerTriggerDetailsr Nr )Zobject_dictionary�typer r r �get_subtypeZ 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 y 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
Nr )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 r 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
Nr )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 r 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
Nr! )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 r 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
Nr"