Class: Google::Apis::ArtifactregistryV1::UsernamePasswordCredentials
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ArtifactregistryV1::UsernamePasswordCredentials
 
 
- 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
- 
  
    
      #password_secret_version  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The Secret Manager key version that holds the password to access the remote repository.
 - 
  
    
      #username  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The username to access the remote repository.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ UsernamePasswordCredentials 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of UsernamePasswordCredentials.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ UsernamePasswordCredentials
Returns a new instance of UsernamePasswordCredentials.
      3218 3219 3220  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3218 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#password_secret_version ⇒ String
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`
      3211 3212 3213  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3211 def password_secret_version @password_secret_version end  | 
  
#username ⇒ String
The username to access the remote repository.
Corresponds to the JSON property username
      3216 3217 3218  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3216 def username @username end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3223 3224 3225 3226  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 3223 def update!(**args) @password_secret_version = args[:password_secret_version] if args.key?(:password_secret_version) @username = args[:username] if args.key?(:username) end  |