Class: Google::Apis::WebsecurityscannerV1beta::VulnerableHeaders

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



952
953
954
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 952

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

Instance Attribute Details

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

List of vulnerable headers. Corresponds to the JSON property headers



945
946
947
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 945

def headers
  @headers
end

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

List of missing headers. Corresponds to the JSON property missingHeaders



950
951
952
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 950

def missing_headers
  @missing_headers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



957
958
959
960
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 957

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