Class: Google::Apis::DeploymentmanagerAlpha::BasicAuth
- Inherits:
-
Object
- Object
- Google::Apis::DeploymentmanagerAlpha::BasicAuth
- 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
-
#password ⇒ String
Corresponds to the JSON property
password
. -
#user ⇒ String
Corresponds to the JSON property
user
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BasicAuth
constructor
A new instance of BasicAuth.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BasicAuth
Returns a new instance of BasicAuth
162 163 164 |
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 162 def initialize(**args) update!(**args) end |
Instance Attribute Details
#password ⇒ String
Corresponds to the JSON property password
155 156 157 |
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 155 def password @password end |
#user ⇒ String
Corresponds to the JSON property user
160 161 162 |
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 160 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
167 168 169 170 |
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 167 def update!(**args) @password = args[:password] if args.key?(:password) @user = args[:user] if args.key?(:user) end |