Class: Google::Apis::WebsecurityscannerV1beta::GoogleAccount
- Inherits:
-
Object
- Object
- Google::Apis::WebsecurityscannerV1beta::GoogleAccount
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/websecurityscanner_v1beta/classes.rb,
lib/google/apis/websecurityscanner_v1beta/representations.rb,
lib/google/apis/websecurityscanner_v1beta/representations.rb
Overview
Describes authentication configuration that uses a Google account.
Instance Attribute Summary collapse
-
#password ⇒ String
Required.
-
#username ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAccount
constructor
A new instance of GoogleAccount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAccount
Returns a new instance of GoogleAccount.
334 335 336 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 334 def initialize(**args) update!(**args) end |
Instance Attribute Details
#password ⇒ String
Required. Input only. The password of the Google account. The credential is
stored encrypted and not returned in any response nor included in audit logs.
Corresponds to the JSON property password
327 328 329 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 327 def password @password end |
#username ⇒ String
Required. The user name of the Google account.
Corresponds to the JSON property username
332 333 334 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 332 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
339 340 341 342 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 339 def update!(**args) @password = args[:password] if args.key?(:password) @username = args[:username] if args.key?(:username) end |