Class: Google::Apis::DeploymentmanagerAlpha::BasicAuth

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

Overview

Basic Auth used as a credential.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BasicAuth

Returns a new instance of BasicAuth.



175
176
177
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 175

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

Instance Attribute Details

#passwordString

Corresponds to the JSON property password

Returns:

  • (String)


168
169
170
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 168

def password
  @password
end

#userString

Corresponds to the JSON property user

Returns:

  • (String)


173
174
175
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 173

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



180
181
182
183
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 180

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