Class: Google::Apis::CloudbuildV2::OAuthCredential
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::OAuthCredential
- 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
Represents an OAuth token of the account that authorized the Connection, and associated metadata.
Instance Attribute Summary collapse
-
#oauth_token_secret_version ⇒ String
A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection.
-
#username ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OAuthCredential
constructor
A new instance of OAuthCredential.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OAuthCredential
Returns a new instance of OAuthCredential.
1208 1209 1210 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1208 def initialize(**args) update!(**args) end |
Instance Attribute Details
#oauth_token_secret_version ⇒ String
A SecretManager resource containing the OAuth token that authorizes the Cloud
Build connection. Format: projects/*/secrets/*/versions/*.
Corresponds to the JSON property oauthTokenSecretVersion
1201 1202 1203 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1201 def oauth_token_secret_version @oauth_token_secret_version end |
#username ⇒ String
Output only. The username associated to this token.
Corresponds to the JSON property username
1206 1207 1208 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1206 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1213 1214 1215 1216 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1213 def update!(**args) @oauth_token_secret_version = args[:oauth_token_secret_version] if args.key?(:oauth_token_secret_version) @username = args[:username] if args.key?(:username) end |