Class: Google::Apis::WebsecurityscannerV1alpha::GoogleAccount

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleAccount

Returns a new instance of GoogleAccount



305
306
307
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 305

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

Instance Attribute Details

#passwordString

Input only. Required. The password of the Google account. The credential is stored encrypted and not returned in any response. Corresponds to the JSON property password

Returns:

  • (String)


297
298
299
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 297

def password
  @password
end

#usernameString

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

Returns:

  • (String)


303
304
305
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 303

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



310
311
312
313
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 310

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