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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/websecurityscanner_v1alpha/classes.rb,
lib/google/apis/websecurityscanner_v1alpha/representations.rb,
lib/google/apis/websecurityscanner_v1alpha/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.



284
285
286
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 284

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)


277
278
279
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 277

def password
  @password
end

#usernameString

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

Returns:

  • (String)


282
283
284
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 282

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



289
290
291
292
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 289

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