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.



912
913
914
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 912

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)


905
906
907
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 905

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)


910
911
912
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 910

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



917
918
919
920
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 917

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