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.



2484
2485
2486
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2484

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



2462
2463
2464
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2462

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)


2467
2468
2469
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2467

def gitlab_config_resource
  @gitlab_config_resource
end

#project_namespaceString

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

Returns:

  • (String)


2472
2473
2474
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2472

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



2477
2478
2479
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2477

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



2482
2483
2484
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2482

def push
  @push
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2489
2490
2491
2492
2493
2494
2495
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2489

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