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.



2079
2080
2081
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2079

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/* or projects/*/ locations/*/secrets/*/versions/* (if regional secrets are supported in that location). Corresponds to the JSON property oauthTokenSecretVersion

Returns:

  • (String)


2072
2073
2074
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2072

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)


2077
2078
2079
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2077

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2084
2085
2086
2087
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2084

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