Class: Google::Apis::WebsecurityscannerV1beta::CustomAccount

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 custom account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomAccount

Returns a new instance of CustomAccount.



109
110
111
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 109

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

Instance Attribute Details

#login_urlString

Required. The login form URL of the website. Corresponds to the JSON property loginUrl

Returns:

  • (String)


96
97
98
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 96

def 
  @login_url
end

#passwordString

Required. Input only. The password of the custom 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)


102
103
104
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 102

def password
  @password
end

#usernameString

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

Returns:

  • (String)


107
108
109
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 107

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



114
115
116
117
118
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 114

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