Class: Google::Apis::DeveloperconnectV1::OAuthCredential

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

Represents an OAuth token of the account that authorized the Connection, and associated metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_versionString

Required. A SecretManager resource containing the OAuth token that authorizes the connection. Format: projects/*/secrets/*/versions/*. Corresponds to the JSON property oauthTokenSecretVersion

Returns:

  • (String)


953
954
955
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 953

def oauth_token_secret_version
  @oauth_token_secret_version
end

#usernameString

Output only. The username associated with this token. Corresponds to the JSON property username

Returns:

  • (String)


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