Class: Google::Apis::CloudbuildV2::UserCredential

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/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.



2682
2683
2684
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2682

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

Instance Attribute Details

#user_token_secret_versionString

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

Returns:

  • (String)


2675
2676
2677
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2675

def user_token_secret_version
  @user_token_secret_version
end

#usernameString

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

Returns:

  • (String)


2680
2681
2682
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2680

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2687
2688
2689
2690
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2687

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