Class: Google::Apis::WebsecurityscannerV1beta::GoogleAccount
- Inherits:
-
Object
- Object
- Google::Apis::WebsecurityscannerV1beta::GoogleAccount
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/websecurityscanner_v1beta/classes.rb,
generated/google/apis/websecurityscanner_v1beta/representations.rb,
generated/google/apis/websecurityscanner_v1beta/representations.rb
Overview
Describes authentication configuration that uses a Google account.
Instance Attribute Summary collapse
-
#password ⇒ String
Input only.
-
#username ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAccount
constructor
A new instance of GoogleAccount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleAccount
Returns a new instance of GoogleAccount
344 345 346 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 344 def initialize(**args) update!(**args) end |
Instance Attribute Details
#password ⇒ String
Input only.
Required.
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
336 337 338 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 336 def password @password end |
#username ⇒ String
Required.
The user name of the Google account.
Corresponds to the JSON property username
342 343 344 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 342 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
349 350 351 352 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 349 def update!(**args) @password = args[:password] if args.key?(:password) @username = args[:username] if args.key?(:username) end |