Class: Google::Apis::ComputeV1::SecurityPolicyRuleHttpHeaderActionHttpHeaderOption

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) ⇒ SecurityPolicyRuleHttpHeaderActionHttpHeaderOption

Returns a new instance of SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.



37311
37312
37313
# File 'lib/google/apis/compute_v1/classes.rb', line 37311

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

Instance Attribute Details

#header_nameString

The name of the header to set. Corresponds to the JSON property headerName

Returns:

  • (String)


37304
37305
37306
# File 'lib/google/apis/compute_v1/classes.rb', line 37304

def header_name
  @header_name
end

#header_valueString

The value to set the named header to. Corresponds to the JSON property headerValue

Returns:

  • (String)


37309
37310
37311
# File 'lib/google/apis/compute_v1/classes.rb', line 37309

def header_value
  @header_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37316
37317
37318
37319
# File 'lib/google/apis/compute_v1/classes.rb', line 37316

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