Class: Google::Apis::CloudbuildV2::GitHubConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::GitHubConfig
- 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
-
#app_installation_id ⇒ Fixnum
GitHub App installation id.
-
#authorizer_credential ⇒ Google::Apis::CloudbuildV2::OAuthCredential
Represents an OAuth token of the account that authorized the Connection, and associated metadata.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GitHubConfig
constructor
A new instance of GitHubConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GitHubConfig
Returns a new instance of GitHubConfig.
710 711 712 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 710 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_installation_id ⇒ Fixnum
GitHub App installation id.
Corresponds to the JSON property appInstallationId
702 703 704 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 702 def app_installation_id @app_installation_id end |
#authorizer_credential ⇒ Google::Apis::CloudbuildV2::OAuthCredential
Represents an OAuth token of the account that authorized the Connection, and
associated metadata.
Corresponds to the JSON property authorizerCredential
708 709 710 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 708 def @authorizer_credential end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
715 716 717 718 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 715 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 |