Class: Google::Apis::DeploymentmanagerV2beta::BasicAuth
- Inherits:
-
Object
- Object
- Google::Apis::DeploymentmanagerV2beta::BasicAuth
- 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
-
#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
200 201 202 |
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 200 def initialize(**args) update!(**args) end |
Instance Attribute Details
#password ⇒ String
Corresponds to the JSON property password
193 194 195 |
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 193 def password @password end |
#user ⇒ String
Corresponds to the JSON property user
198 199 200 |
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 198 def user @user end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
205 206 207 208 |
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 205 def update!(**args) @password = args[:password] if args.key?(:password) @user = args[:user] if args.key?(:user) end |