GitlabServerFilter¶
-
class
oci.devops.models.
GitlabServerFilter
(**kwargs)¶ Bases:
oci.devops.models.filter.Filter
The filter for GitLab self-hosted events.
Attributes
EVENTS_PULL_REQUEST_CREATED
A constant which can be used with the events property of a GitlabServerFilter. EVENTS_PULL_REQUEST_MERGED
A constant which can be used with the events property of a GitlabServerFilter. EVENTS_PULL_REQUEST_REOPENED
A constant which can be used with the events property of a GitlabServerFilter. EVENTS_PULL_REQUEST_UPDATED
A constant which can be used with the events property of a GitlabServerFilter. EVENTS_PUSH
A constant which can be used with the events property of a GitlabServerFilter. events
Gets the events of this GitlabServerFilter. exclude
Gets the exclude of this GitlabServerFilter. include
Gets the include of this GitlabServerFilter. trigger_source
[Required] Gets the trigger_source of this Filter. Methods
__init__
(**kwargs)Initializes a new GitlabServerFilter object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
EVENTS_PULL_REQUEST_CREATED
= 'PULL_REQUEST_CREATED'¶ A constant which can be used with the events property of a GitlabServerFilter. This constant has a value of “PULL_REQUEST_CREATED”
-
EVENTS_PULL_REQUEST_MERGED
= 'PULL_REQUEST_MERGED'¶ A constant which can be used with the events property of a GitlabServerFilter. This constant has a value of “PULL_REQUEST_MERGED”
-
EVENTS_PULL_REQUEST_REOPENED
= 'PULL_REQUEST_REOPENED'¶ A constant which can be used with the events property of a GitlabServerFilter. This constant has a value of “PULL_REQUEST_REOPENED”
-
EVENTS_PULL_REQUEST_UPDATED
= 'PULL_REQUEST_UPDATED'¶ A constant which can be used with the events property of a GitlabServerFilter. This constant has a value of “PULL_REQUEST_UPDATED”
-
EVENTS_PUSH
= 'PUSH'¶ A constant which can be used with the events property of a GitlabServerFilter. This constant has a value of “PUSH”
-
__init__
(**kwargs)¶ Initializes a new GitlabServerFilter object with values from keyword arguments. The default value of the
trigger_source
attribute of this class isGITLAB_SERVER
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - trigger_source (str) – The value to assign to the trigger_source property of this GitlabServerFilter.
- events (list[str]) – The value to assign to the events property of this GitlabServerFilter. Allowed values for items in this list are: “PUSH”, “PULL_REQUEST_CREATED”, “PULL_REQUEST_UPDATED”, “PULL_REQUEST_REOPENED”, “PULL_REQUEST_MERGED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- include (oci.devops.models.GitlabServerFilterAttributes) – The value to assign to the include property of this GitlabServerFilter.
- exclude (oci.devops.models.GitlabServerFilterExclusionAttributes) – The value to assign to the exclude property of this GitlabServerFilter.
-
events
¶ Gets the events of this GitlabServerFilter. The events, for example, PUSH, PULL_REQUEST_MERGE.
Allowed values for items in this list are: “PUSH”, “PULL_REQUEST_CREATED”, “PULL_REQUEST_UPDATED”, “PULL_REQUEST_REOPENED”, “PULL_REQUEST_MERGED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The events of this GitlabServerFilter. Return type: list[str]
-
exclude
¶ Gets the exclude of this GitlabServerFilter.
Returns: The exclude of this GitlabServerFilter. Return type: oci.devops.models.GitlabServerFilterExclusionAttributes
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
include
¶ Gets the include of this GitlabServerFilter.
Returns: The include of this GitlabServerFilter. Return type: oci.devops.models.GitlabServerFilterAttributes
-
trigger_source
¶ [Required] Gets the trigger_source of this Filter. Source of the trigger. Allowed values are, GITHUB and GITLAB.
Returns: The trigger_source of this Filter. Return type: str
-