Class: Google::Apis::DeveloperconnectV1::GitHubConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/developerconnect_v1/classes.rb,
lib/google/apis/developerconnect_v1/representations.rb,
lib/google/apis/developerconnect_v1/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.



335
336
337
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 335

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)


315
316
317
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 315

def app_installation_id
  @app_installation_id
end

#authorizer_credentialGoogle::Apis::DeveloperconnectV1::OAuthCredential

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



321
322
323
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 321

def authorizer_credential
  @authorizer_credential
end

#github_appString

Required. Immutable. The GitHub Application that was installed to the GitHub user or organization. Corresponds to the JSON property githubApp

Returns:

  • (String)


327
328
329
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 327

def github_app
  @github_app
end

#installation_uriString

Output only. The URI to navigate to in order to manage the installation associated with this GitHubConfig. Corresponds to the JSON property installationUri

Returns:

  • (String)


333
334
335
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 333

def installation_uri
  @installation_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



340
341
342
343
344
345
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 340

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)
  @github_app = args[:github_app] if args.key?(:github_app)
  @installation_uri = args[:installation_uri] if args.key?(:installation_uri)
end