Class: Google::Apis::CloudbuildV1::GitLabEventsConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb

Overview

GitLabEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab event is received.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GitLabEventsConfig

Returns a new instance of GitLabEventsConfig.



2518
2519
2520
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2518

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#gitlab_configGoogle::Apis::CloudbuildV1::GitLabConfig

GitLabConfig represents the configuration for a GitLab integration. Corresponds to the JSON property gitlabConfig



2496
2497
2498
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2496

def gitlab_config
  @gitlab_config
end

#gitlab_config_resourceString

The GitLab config resource that this trigger config maps to. Corresponds to the JSON property gitlabConfigResource

Returns:

  • (String)


2501
2502
2503
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2501

def gitlab_config_resource
  @gitlab_config_resource
end

#project_namespaceString

Namespace of the GitLab project. Corresponds to the JSON property projectNamespace

Returns:

  • (String)


2506
2507
2508
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2506

def project_namespace
  @project_namespace
end

#pull_requestGoogle::Apis::CloudbuildV1::PullRequestFilter

PullRequestFilter contains filter properties for matching GitHub Pull Requests. Corresponds to the JSON property pullRequest



2511
2512
2513
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2511

def pull_request
  @pull_request
end

#pushGoogle::Apis::CloudbuildV1::PushFilter

Push contains filter properties for matching GitHub git pushes. Corresponds to the JSON property push



2516
2517
2518
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2516

def push
  @push
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2523
2524
2525
2526
2527
2528
2529
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2523

def update!(**args)
  @gitlab_config = args[:gitlab_config] if args.key?(:gitlab_config)
  @gitlab_config_resource = args[:gitlab_config_resource] if args.key?(:gitlab_config_resource)
  @project_namespace = args[:project_namespace] if args.key?(:project_namespace)
  @pull_request = args[:pull_request] if args.key?(:pull_request)
  @push = args[:push] if args.key?(:push)
end