Class: Google::Apis::CloudbuildV2::GitHubConfig

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

Overview

Configuration for connections to github.com.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GitHubConfig

Returns a new instance of GitHubConfig.



848
849
850
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 848

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

Instance Attribute Details

#app_installation_idFixnum

Optional. GitHub App installation id. Corresponds to the JSON property appInstallationId

Returns:

  • (Fixnum)


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

def app_installation_id
  @app_installation_id
end

#authorizer_credentialGoogle::Apis::CloudbuildV2::OAuthCredential

Represents an OAuth token of the account that authorized the Connection, and associated metadata. Corresponds to the JSON property authorizerCredential



846
847
848
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 846

def authorizer_credential
  @authorizer_credential
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



853
854
855
856
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 853

def update!(**args)
  @app_installation_id = args[:app_installation_id] if args.key?(:app_installation_id)
  @authorizer_credential = args[:authorizer_credential] if args.key?(:authorizer_credential)
end