Class: Google::Apis::ComputeV1::SecurityPolicyRuleHttpHeaderAction

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicyRuleHttpHeaderAction

Returns a new instance of SecurityPolicyRuleHttpHeaderAction.



37685
37686
37687
# File 'lib/google/apis/compute_v1/classes.rb', line 37685

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

Instance Attribute Details

#request_headers_to_addsArray<Google::Apis::ComputeV1::SecurityPolicyRuleHttpHeaderActionHttpHeaderOption>

The list of request headers to add or overwrite if they're already present. Corresponds to the JSON property requestHeadersToAdds



37683
37684
37685
# File 'lib/google/apis/compute_v1/classes.rb', line 37683

def request_headers_to_adds
  @request_headers_to_adds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37690
37691
37692
# File 'lib/google/apis/compute_v1/classes.rb', line 37690

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