Class: Google::Apis::WebsecurityscannerV1alpha::CrawledUrl
- Inherits:
-
Object
- Object
- Google::Apis::WebsecurityscannerV1alpha::CrawledUrl
- 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
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
Output only.
-
#http_method ⇒ String
Output only.
-
#url ⇒ String
Output only.
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.
72 73 74 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 72 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ String
Output only. The body of the request that was used to visit the URL.
Corresponds to the JSON property body
59 60 61 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 59 def body @body end |
#http_method ⇒ String
Output only. The http method of the request that was used to visit the URL, in
uppercase.
Corresponds to the JSON property httpMethod
65 66 67 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 65 def http_method @http_method end |
#url ⇒ String
Output only. The URL that was crawled.
Corresponds to the JSON property url
70 71 72 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 70 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
77 78 79 80 81 |
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 77 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 |