Class: Google::Apis::DeveloperconnectV1::UserCredential

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 a personal access token that authorized the Connection, and associated metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserCredential

Returns a new instance of UserCredential.



1120
1121
1122
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1120

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#user_token_secret_versionString

Required. A SecretManager resource containing the user token that authorizes the Developer Connect connection. Format: projects/*/secrets/*/versions/*. Corresponds to the JSON property userTokenSecretVersion

Returns:

  • (String)


1113
1114
1115
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1113

def user_token_secret_version
  @user_token_secret_version
end

#usernameString

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

Returns:

  • (String)


1118
1119
1120
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1118

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1125
1126
1127
1128
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1125

def update!(**args)
  @user_token_secret_version = args[:user_token_secret_version] if args.key?(:user_token_secret_version)
  @username = args[:username] if args.key?(:username)
end