Class: Google::Apis::DeveloperconnectV1::GitLabConfig
- Inherits:
-
Object
- Object
- Google::Apis::DeveloperconnectV1::GitLabConfig
- 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 gitlab.com.
Instance Attribute Summary collapse
-
#authorizer_credential ⇒ Google::Apis::DeveloperconnectV1::UserCredential
Represents a personal access token that authorized the Connection, and associated metadata.
-
#read_authorizer_credential ⇒ Google::Apis::DeveloperconnectV1::UserCredential
Represents a personal access token that authorized the Connection, and associated metadata.
-
#webhook_secret_secret_version ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GitLabConfig
constructor
A new instance of GitLabConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GitLabConfig
Returns a new instance of GitLabConfig.
495 496 497 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 495 def initialize(**args) update!(**args) end |
Instance Attribute Details
#authorizer_credential ⇒ Google::Apis::DeveloperconnectV1::UserCredential
Represents a personal access token that authorized the Connection, and
associated metadata.
Corresponds to the JSON property authorizerCredential
480 481 482 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 480 def @authorizer_credential end |
#read_authorizer_credential ⇒ Google::Apis::DeveloperconnectV1::UserCredential
Represents a personal access token that authorized the Connection, and
associated metadata.
Corresponds to the JSON property readAuthorizerCredential
486 487 488 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 486 def @read_authorizer_credential end |
#webhook_secret_secret_version ⇒ String
Required. Immutable. SecretManager resource containing the webhook secret of a
GitLab project, formatted as projects/*/secrets/*/versions/*
. This is used
to validate webhooks.
Corresponds to the JSON property webhookSecretSecretVersion
493 494 495 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 493 def webhook_secret_secret_version @webhook_secret_secret_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
500 501 502 503 504 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 500 def update!(**args) @authorizer_credential = args[:authorizer_credential] if args.key?(:authorizer_credential) @read_authorizer_credential = args[:read_authorizer_credential] if args.key?(:read_authorizer_credential) @webhook_secret_secret_version = args[:webhook_secret_secret_version] if args.key?(:webhook_secret_secret_version) end |