Class: Google::Apis::WebsecurityscannerV1beta::CrawledUrl
- Inherits:
-
Object
- Object
- Google::Apis::WebsecurityscannerV1beta::CrawledUrl
- 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
A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web Security Scanner Service crawls the web applications, following all links within the scope of sites, to find the URLs to test against.
Instance Attribute Summary collapse
-
#body ⇒ String
The body of the request that was used to visit the URL.
-
#http_method ⇒ String
The http method of the request that was used to visit the URL, in uppercase.
-
#url ⇒ String
The URL that was crawled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CrawledUrl
constructor
A new instance of CrawledUrl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CrawledUrl
Returns a new instance of CrawledUrl.
77 78 79 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 77 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ String
The body of the request that was used to visit the URL.
Corresponds to the JSON property body
65 66 67 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 65 def body @body end |
#http_method ⇒ String
The http method of the request that was used to visit the URL, in uppercase.
Corresponds to the JSON property httpMethod
70 71 72 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 70 def http_method @http_method end |
#url ⇒ String
The URL that was crawled.
Corresponds to the JSON property url
75 76 77 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 75 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
82 83 84 85 86 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 82 def update!(**args) @body = args[:body] if args.key?(:body) @http_method = args[:http_method] if args.key?(:http_method) @url = args[:url] if args.key?(:url) end |