Class: Google::Apis::CloudbuildV1::GitLabEventsConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::GitLabEventsConfig
- 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
-
#gitlab_config ⇒ Google::Apis::CloudbuildV1::GitLabConfig
GitLabConfig represents the configuration for a GitLab integration.
-
#gitlab_config_resource ⇒ String
The GitLab config resource that this trigger config maps to.
-
#project_namespace ⇒ String
Namespace of the GitLab project.
-
#pull_request ⇒ Google::Apis::CloudbuildV1::PullRequestFilter
PullRequestFilter contains filter properties for matching GitHub Pull Requests.
-
#push ⇒ Google::Apis::CloudbuildV1::PushFilter
Push contains filter properties for matching GitHub git pushes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GitLabEventsConfig
constructor
A new instance of GitLabEventsConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_config ⇒ Google::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_resource ⇒ String
The GitLab config resource that this trigger config maps to.
Corresponds to the JSON property gitlabConfigResource
2467 2468 2469 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2467 def gitlab_config_resource @gitlab_config_resource end |
#project_namespace ⇒ String
Namespace of the GitLab project.
Corresponds to the JSON property projectNamespace
2472 2473 2474 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2472 def project_namespace @project_namespace end |
#pull_request ⇒ Google::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 |
#push ⇒ Google::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 |