Class: Google::Apis::WebsecurityscannerV1alpha::GoogleAccount
- Inherits:
-
Object
- Object
- Google::Apis::WebsecurityscannerV1alpha::GoogleAccount
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/websecurityscanner_v1alpha/classes.rb,
generated/google/apis/websecurityscanner_v1alpha/representations.rb,
generated/google/apis/websecurityscanner_v1alpha/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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleAccount
Returns a new instance of GoogleAccount
297 298 299 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 297 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
290 291 292 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 290 def password @password end |
#username ⇒ String
Required. The user name of the Google account.
Corresponds to the JSON property username
295 296 297 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 295 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
302 303 304 305 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 302 def update!(**args) @password = args[:password] if args.key?(:password) @username = args[:username] if args.key?(:username) end |