Compute V1 Client - Class SecurityPolicyAdvancedOptionsConfigJsonCustomConfig (1.6.1)

Reference documentation and code samples for the Compute V1 Client class SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.

Generated from protobuf message google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ content_types array

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.

getContentTypes

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.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setContentTypes

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.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this