Reference documentation and code samples for the Google Cloud Network Services V1 Client class LbTrafficExtension.
LbTrafficExtension
is a resource that lets the extension service modify the
headers and payloads of both requests and responses without impacting the
choice of backend services or any other security policies associated with the
backend service.
Generated from protobuf message google.cloud.networkservices.v1.LbTrafficExtension
Namespace
Google \ Cloud \ NetworkServices \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Identifier. Name of the LbTrafficExtension
resource in the following format: projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}
.
↳ create_time
↳ update_time
↳ description
string
Optional. A human-readable description of the resource.
↳ labels
array| Google\Protobuf\Internal\MapField
Optional. Set of labels associated with the LbTrafficExtension
resource. The format must comply with the requirements for labels
for Google Cloud resources.
↳ forwarding_rules
array
Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one LBTrafficExtension
resource per forwarding rule.
↳ extension_chains
array< ExtensionChain
>
Required. A set of ordered extension chains that contain the match conditions and extensions to execute. Match conditions for each extension chain are evaluated in sequence for a given request. The first extension chain that has a condition that matches the request is executed. Any subsequent extension chains do not execute. Limited to 5 extension chains per resource.
↳ load_balancing_scheme
int
Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: INTERNAL_MANAGED
, EXTERNAL_MANAGED
. For more information, refer to Choosing a load balancer
.
↳ metadata
Google\Protobuf\Struct
Optional. The metadata provided here is included in the ProcessingRequest.metadata_context.filter_metadata
map field. The metadata is available under the key com.google.lb_traffic_extension.<resource_name>
. The following variables are supported in the metadata: {forwarding_rule_id}
- substituted with the forwarding rule's fully qualified resource name.
getName
Required. Identifier. Name of the LbTrafficExtension
resource in the
following format: projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}
.
string
setName
Required. Identifier. Name of the LbTrafficExtension
resource in the
following format: projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_extension}
.
var
string
$this
getCreateTime
Output only. The timestamp when the resource was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp when the resource was created.
$this
getUpdateTime
Output only. The timestamp when the resource was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp when the resource was updated.
$this
getDescription
Optional. A human-readable description of the resource.
string
setDescription
Optional. A human-readable description of the resource.
var
string
$this
getLabels
Optional. Set of labels associated with the LbTrafficExtension
resource.
The format must comply with the requirements for labels for Google Cloud resources.
setLabels
Optional. Set of labels associated with the LbTrafficExtension
resource.
The format must comply with the requirements for labels for Google Cloud resources.
$this
getForwardingRules
Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required.
There can be only one LBTrafficExtension
resource per forwarding rule.
setForwardingRules
Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required.
There can be only one LBTrafficExtension
resource per forwarding rule.
var
string[]
$this
getExtensionChains
Required. A set of ordered extension chains that contain the match conditions and extensions to execute. Match conditions for each extension chain are evaluated in sequence for a given request. The first extension chain that has a condition that matches the request is executed.
Any subsequent extension chains do not execute. Limited to 5 extension chains per resource.
setExtensionChains
Required. A set of ordered extension chains that contain the match conditions and extensions to execute. Match conditions for each extension chain are evaluated in sequence for a given request. The first extension chain that has a condition that matches the request is executed.
Any subsequent extension chains do not execute. Limited to 5 extension chains per resource.
$this
getLoadBalancingScheme
Required. All backend services and forwarding rules referenced by this
extension must share the same load balancing scheme. Supported values: INTERNAL_MANAGED
, EXTERNAL_MANAGED
. For more information, refer to Choosing a load
balancer
.
int
setLoadBalancingScheme
Required. All backend services and forwarding rules referenced by this
extension must share the same load balancing scheme. Supported values: INTERNAL_MANAGED
, EXTERNAL_MANAGED
. For more information, refer to Choosing a load
balancer
.
var
int
$this
getMetadata
Optional. The metadata provided here is included in the ProcessingRequest.metadata_context.filter_metadata
map field. The
metadata is available under the key com.google.lb_traffic_extension.<resource_name>
.
The following variables are supported in the metadata: {forwarding_rule_id}
- substituted with the forwarding rule's fully
qualified resource name.
hasMetadata
clearMetadata
setMetadata
Optional. The metadata provided here is included in the ProcessingRequest.metadata_context.filter_metadata
map field. The
metadata is available under the key com.google.lb_traffic_extension.<resource_name>
.
The following variables are supported in the metadata: {forwarding_rule_id}
- substituted with the forwarding rule's fully
qualified resource name.
$this