Google Cloud Network Security V1 Client - Class HeaderSet (1.3.0)

Reference documentation and code samples for the Google Cloud Network Security V1 Client class HeaderSet.

Describes a set of HTTP headers to match against.

Generated from protobuf message google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet

Namespace

Google \ Cloud \ NetworkSecurity \ V1 \ AuthzPolicy \ AuthzRule \ To \ RequestOperation

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ headers array<Google\Cloud\NetworkSecurity\V1\AuthzPolicy\AuthzRule\HeaderMatch>

Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

getHeaders

Required. A list of headers to match against in http header.

The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

Returns
Type Description
Google\Protobuf\RepeatedField<Google\Cloud\NetworkSecurity\V1\AuthzPolicy\AuthzRule\HeaderMatch>

setHeaders

Required. A list of headers to match against in http header.

The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy.

Parameter
Name Description
var array<Google\Cloud\NetworkSecurity\V1\AuthzPolicy\AuthzRule\HeaderMatch>
Returns
Type Description
$this