Class: Google::Apis::DeveloperconnectV1::OAuthCredential
- Inherits:
-
Object
- Object
- Google::Apis::DeveloperconnectV1::OAuthCredential
- 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
Represents an OAuth token of the account that authorized the Connection, and associated metadata.
Instance Attribute Summary collapse
-
#oauth_token_secret_version ⇒ String
Required.
-
#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.
960 961 962 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 960 def initialize(**args) update!(**args) end |
Instance Attribute Details
#oauth_token_secret_version ⇒ String
Required. A SecretManager resource containing the OAuth token that authorizes
the connection. Format: projects/*/secrets/*/versions/*
.
Corresponds to the JSON property oauthTokenSecretVersion
953 954 955 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 953 def oauth_token_secret_version @oauth_token_secret_version end |
#username ⇒ String
Output only. The username associated with this token.
Corresponds to the JSON property username
958 959 960 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 958 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
965 966 967 968 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 965 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 |