Class: Google::Apis::WebsecurityscannerV1alpha::CrawledUrl

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CrawledUrl

Returns a new instance of CrawledUrl



75
76
77
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 75

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)


60
61
62
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 60

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)


67
68
69
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 67

def http_method
  @http_method
end

#urlString

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

Returns:

  • (String)


73
74
75
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 73

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



80
81
82
83
84
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 80

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