Class: Google::Apis::ComputeBeta::SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Instance Attribute Summary collapse
-
#content_types ⇒ Array<String>
A list of custom Content-Type header values to apply the JSON parsing.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
constructor
A new instance of SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
Returns a new instance of SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.
55386 55387 55388 |
# File 'lib/google/apis/compute_beta/classes.rb', line 55386 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_types ⇒ Array<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
55384 55385 55386 |
# File 'lib/google/apis/compute_beta/classes.rb', line 55384 def content_types @content_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
55391 55392 55393 |
# File 'lib/google/apis/compute_beta/classes.rb', line 55391 def update!(**args) @content_types = args[:content_types] if args.key?(:content_types) end |