Class: Google::Apis::WebsecurityscannerV1::CrawledUrl

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CrawledUrl

Returns a new instance of CrawledUrl.



78
79
80
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 78

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

Instance Attribute Details

#bodyString

Output only. The body of the request that was used to visit the URL. Corresponds to the JSON property body

Returns:

  • (String)


65
66
67
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 65

def body
  @body
end

#http_methodString

Output only. The http method of the request that was used to visit the URL, in uppercase. Corresponds to the JSON property httpMethod

Returns:

  • (String)


71
72
73
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 71

def http_method
  @http_method
end

#urlString

Output only. The URL that was crawled. Corresponds to the JSON property url

Returns:

  • (String)


76
77
78
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 76

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



83
84
85
86
87
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 83

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