Google Cloud Network Services V1 Client - Class ExtensionChain (0.2.1)

Reference documentation and code samples for the Google Cloud Network Services V1 Client class ExtensionChain.

A single extension chain wrapper that contains the match conditions and extensions to execute.

Generated from protobuf message google.cloud.networkservices.v1.ExtensionChain

Namespace

Google \ Cloud \ NetworkServices \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name for this extension chain. The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number.

↳ match_condition ExtensionChain\MatchCondition

Required. Conditions under which this chain is invoked for a request.

↳ extensions array<ExtensionChain\Extension>

Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

getName

Required. The name for this extension chain.

The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number.

Returns
Type Description
string

setName

Required. The name for this extension chain.

The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number.

Parameter
Name Description
var string
Returns
Type Description
$this

getMatchCondition

Required. Conditions under which this chain is invoked for a request.

Returns
Type Description
ExtensionChain\MatchCondition|null

hasMatchCondition

clearMatchCondition

setMatchCondition

Required. Conditions under which this chain is invoked for a request.

Parameter
Name Description
var ExtensionChain\MatchCondition
Returns
Type Description
$this

getExtensions

Required. A set of extensions to execute for the matching request.

At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setExtensions

Required. A set of extensions to execute for the matching request.

At least one extension is required. Up to 3 extensions can be defined for each extension chain for LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.

Parameter
Name Description
var array<ExtensionChain\Extension>
Returns
Type Description
$this