Class: Google::Apis::WebsecurityscannerV1beta::CrawledUrl

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CrawledUrl

Returns a new instance of CrawledUrl.



77
78
79
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 77

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

Instance Attribute Details

#bodyString

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_v1beta/classes.rb', line 65

def body
  @body
end

#http_methodString

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

Returns:

  • (String)


70
71
72
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 70

def http_method
  @http_method
end

#urlString

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

Returns:

  • (String)


75
76
77
# File 'generated/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 'generated/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