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.



382
383
384
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 382

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)


362
363
364
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 362

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



368
369
370
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 368

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)


374
375
376
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 374

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)


380
381
382
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 380

def installation_uri
  @installation_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



387
388
389
390
391
392
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 387

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