Class: Google::Apis::WebsecurityscannerV1beta::GoogleAccount

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAccount

Returns a new instance of GoogleAccount.



335
336
337
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 335

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)


328
329
330
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 328

def password
  @password
end

#usernameString

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

Returns:

  • (String)


333
334
335
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 333

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



340
341
342
343
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 340

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