Class: Google::Apis::WebsecurityscannerV1::GoogleAccount

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/websecurityscanner_v1/classes.rb,
generated/google/apis/websecurityscanner_v1/representations.rb,
generated/google/apis/websecurityscanner_v1/representations.rb

Overview

Describes authentication configuration that uses a Google account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAccount

Returns a new instance of GoogleAccount.



332
333
334
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 332

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#passwordString

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

Returns:

  • (String)


325
326
327
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 325

def password
  @password
end

#usernameString

Required. The user name of the Google account. Corresponds to the JSON property username

Returns:

  • (String)


330
331
332
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 330

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



337
338
339
340
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 337

def update!(**args)
  @password = args[:password] if args.key?(:password)
  @username = args[:username] if args.key?(:username)
end