Class: Google::Apis::WebsecurityscannerV1::VulnerableHeaders

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

Information about vulnerable or missing HTTP Headers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VulnerableHeaders

Returns a new instance of VulnerableHeaders.



929
930
931
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 929

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

Instance Attribute Details

#headersArray<Google::Apis::WebsecurityscannerV1::Header>

List of vulnerable headers. Corresponds to the JSON property headers



922
923
924
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 922

def headers
  @headers
end

#missing_headersArray<Google::Apis::WebsecurityscannerV1::Header>

List of missing headers. Corresponds to the JSON property missingHeaders



927
928
929
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 927

def missing_headers
  @missing_headers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



934
935
936
937
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 934

def update!(**args)
  @headers = args[:headers] if args.key?(:headers)
  @missing_headers = args[:missing_headers] if args.key?(:missing_headers)
end