Class: Google::Apis::CloudbuildV1::GitHubEventsConfig

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

GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GitHubEventsConfig

Returns a new instance of GitHubEventsConfig.



852
853
854
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 852

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

Instance Attribute Details

#installation_idFixnum

The installationID that emits the GitHub event. Corresponds to the JSON property installationId

Returns:

  • (Fixnum)


828
829
830
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 828

def installation_id
  @installation_id
end

#nameString

Name of the repository. For example: The name for https://github.com/ googlecloudplatform/cloud-builders is "cloud-builders". Corresponds to the JSON property name

Returns:

  • (String)


834
835
836
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 834

def name
  @name
end

#ownerString

Owner of the repository. For example: The owner for https://github.com/ googlecloudplatform/cloud-builders is "googlecloudplatform". Corresponds to the JSON property owner

Returns:

  • (String)


840
841
842
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 840

def owner
  @owner
end

#pull_requestGoogle::Apis::CloudbuildV1::PullRequestFilter

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



845
846
847
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 845

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



850
851
852
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 850

def push
  @push
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



857
858
859
860
861
862
863
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 857

def update!(**args)
  @installation_id = args[:installation_id] if args.key?(:installation_id)
  @name = args[:name] if args.key?(:name)
  @owner = args[:owner] if args.key?(:owner)
  @pull_request = args[:pull_request] if args.key?(:pull_request)
  @push = args[:push] if args.key?(:push)
end