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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GitHubEventsConfig

Returns a new instance of GitHubEventsConfig.



1978
1979
1980
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1978

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

Instance Attribute Details

#enterprise_config_resource_nameString

Optional. The resource name of the github enterprise config that should be applied to this installation. For example: "projects/$project_id/ githubEnterpriseConfigs/$config_id" Corresponds to the JSON property enterpriseConfigResourceName

Returns:

  • (String)


1949
1950
1951
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1949

def enterprise_config_resource_name
  @enterprise_config_resource_name
end

#installation_idFixnum

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

Returns:

  • (Fixnum)


1954
1955
1956
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1954

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)


1960
1961
1962
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1960

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)


1966
1967
1968
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1966

def owner
  @owner
end

#pull_requestGoogle::Apis::CloudbuildV1::PullRequestFilter

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



1971
1972
1973
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1971

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



1976
1977
1978
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1976

def push
  @push
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1983
1984
1985
1986
1987
1988
1989
1990
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1983

def update!(**args)
  @enterprise_config_resource_name = args[:enterprise_config_resource_name] if args.key?(:enterprise_config_resource_name)
  @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