a Nf(@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZddZeddZeddZej ddZed d Z e j d d Z ed d Z e j dd Z eddZ e j ddZ eddZ e j ddZ eddZej ddZeddZej ddZddZddZdd Zd!S)"CreateTriggerDetailsz, Information about the new trigger. cKsZdddddddd|_dddd d d d 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_idtrigger_sourceactions 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)selfkwargsr/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__cCsd|d}|dkrdS|dkr dS|dkr,dS|dkr8d S|d krDd S|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. rGITHUBCreateGithubTriggerDetailsVBSCreateVbsTriggerDetailsDEVOPS_CODE_REPOSITORY(CreateDevopsCodeRepositoryTriggerDetailsBITBUCKET_CLOUD"CreateBitbucketCloudTriggerDetails GITLAB_SERVER CreateGitlabServerTriggerDetailsGITLABCreateGitlabTriggerDetailsBITBUCKET_SERVER#CreateBitbucketServerTriggerDetailsrNr)object_dictionarytyperrr get_subtypeXs 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 rrrrr rws 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 Nr3)rrrrr rs cCs|jS)z Gets the description of this CreateTriggerDetails. Optional description about the trigger. :return: The description of this CreateTriggerDetails. :rtype: str rr4rrr r 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 Nr5)rr rrr r 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 rr4rrr r 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 Nr6)rr rrr r 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 rr4rrr r 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 Nr7)rr rrr r 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] rr4rrr r 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] Nr8)rr rrr r 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) rr4rrr r 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) Nr9)rr rrr r 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)) rr4rrr r 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:)rrrrr rs cCst|SN)rr4rrr __repr__'szCreateTriggerDetails.__repr__cCs|dur dS|j|jkS)NF)__dict__rotherrrr __eq__*szCreateTriggerDetails.__eq__cCs ||k Sr;rr>rrr __ne__0szCreateTriggerDetails.__ne__N)__name__ __module__ __qualname____doc__r! staticmethodr2propertyrsetterr r r r r rr<r@rArrrr r sFH               rN)oci.utilrrroci.decoratorsrobjectrrrrr s