Class: Google::Apis::ComputeV1::SecurityPolicyAdvancedOptionsConfigJsonCustomConfig

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

Returns a new instance of SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.



38130
38131
38132
# File 'lib/google/apis/compute_v1/classes.rb', line 38130

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

Instance Attribute Details

#content_typesArray<String>

A list of custom Content-Type header values to apply the JSON parsing. As per RFC 1341, a Content-Type header value has the following format: Content-Type := type "/" subtype *[";" parameter] When configuring a custom Content-Type header value, only the type/subtype needs to be specified, and the parameters should be excluded. Corresponds to the JSON property contentTypes

Returns:

  • (Array<String>)


38128
38129
38130
# File 'lib/google/apis/compute_v1/classes.rb', line 38128

def content_types
  @content_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



38135
38136
38137
# File 'lib/google/apis/compute_v1/classes.rb', line 38135

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