DevopsCodeRepositoryFilter

class oci.devops.models.DevopsCodeRepositoryFilter(**kwargs)

Bases: oci.devops.models.filter.Filter

The filter for GitLab events.

Attributes

EVENTS_PUSH A constant which can be used with the events property of a DevopsCodeRepositoryFilter.
events Gets the events of this DevopsCodeRepositoryFilter.
include Gets the include of this DevopsCodeRepositoryFilter.
trigger_source [Required] Gets the trigger_source of this Filter.

Methods

__init__(**kwargs) Initializes a new DevopsCodeRepositoryFilter 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_PUSH = 'PUSH'

A constant which can be used with the events property of a DevopsCodeRepositoryFilter. This constant has a value of “PUSH”

__init__(**kwargs)

Initializes a new DevopsCodeRepositoryFilter object with values from keyword arguments. The default value of the trigger_source attribute of this class is DEVOPS_CODE_REPOSITORY 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 DevopsCodeRepositoryFilter.
  • events (list[str]) – The value to assign to the events property of this DevopsCodeRepositoryFilter. Allowed values for items in this list are: “PUSH”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • include (oci.devops.models.DevopsCodeRepositoryFilterAttributes) – The value to assign to the include property of this DevopsCodeRepositoryFilter.
events

Gets the events of this DevopsCodeRepositoryFilter. The events only support PUSH.

Allowed values for items in this list are: “PUSH”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The events of this DevopsCodeRepositoryFilter.
Return type:list[str]
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 DevopsCodeRepositoryFilter.

Returns:The include of this DevopsCodeRepositoryFilter.
Return type:oci.devops.models.DevopsCodeRepositoryFilterAttributes
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