Class: Google::Apis::ComputeAlpha::SecurityPolicyRuleHttpHeaderAction

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicyRuleHttpHeaderAction

Returns a new instance of SecurityPolicyRuleHttpHeaderAction.



38526
38527
38528
# File 'lib/google/apis/compute_alpha/classes.rb', line 38526

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

Instance Attribute Details

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

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



38524
38525
38526
# File 'lib/google/apis/compute_alpha/classes.rb', line 38524

def request_headers_to_adds
  @request_headers_to_adds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



38531
38532
38533
# File 'lib/google/apis/compute_alpha/classes.rb', line 38531

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