Class: Google::Apis::DeploymentmanagerV2beta::BasicAuth

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

Overview

Basic Auth used as a credential.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BasicAuth

Returns a new instance of BasicAuth



174
175
176
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 174

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

Instance Attribute Details

#passwordString

Corresponds to the JSON property password

Returns:

  • (String)


167
168
169
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 167

def password
  @password
end

#userString

Corresponds to the JSON property user

Returns:

  • (String)


172
173
174
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 172

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



179
180
181
182
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 179

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