Class: Google::Apis::ArtifactregistryV1::UsernamePasswordCredentials

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/artifactregistry_v1/classes.rb,
lib/google/apis/artifactregistry_v1/representations.rb,
lib/google/apis/artifactregistry_v1/representations.rb

Overview

Username and password credentials.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UsernamePasswordCredentials

Returns a new instance of UsernamePasswordCredentials.



2636
2637
2638
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2636

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

Instance Attribute Details

#password_secret_versionString

The Secret Manager key version that holds the password to access the remote repository. Must be in the format of projects/project/secrets/secret/ versions/version`. Corresponds to the JSON propertypasswordSecretVersion`

Returns:

  • (String)


2629
2630
2631
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2629

def password_secret_version
  @password_secret_version
end

#usernameString

The username to access the remote repository. Corresponds to the JSON property username

Returns:

  • (String)


2634
2635
2636
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2634

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2641
2642
2643
2644
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2641

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