Compute V1 Client - Class SecurityPolicyAdvancedOptionsConfigJsonCustomConfig (1.18.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
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
Name Description
var string[]
Returns
Type Description
$this