Google Cloud Network Services V1 Client - Class RouteDestination (0.1.0)

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

Describe the destination for traffic to be routed to.

Generated from protobuf message google.cloud.networkservices.v1.TlsRoute.RouteDestination

Namespace

Google \ Cloud \ NetworkServices \ V1 \ TlsRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ service_name string

Required. The URL of a BackendService to route traffic to.

↳ weight int

Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: - weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.

getServiceName

Required. The URL of a BackendService to route traffic to.

Returns
Type Description
string

setServiceName

Required. The URL of a BackendService to route traffic to.

Parameter
Name Description
var string
Returns
Type Description
$this

getWeight

Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as:

  • weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
Returns
Type Description
int

setWeight

Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as:

  • weight/Sum(weights in destinations) Weights in all destinations does not need to sum up to 100.
Parameter
Name Description
var int
Returns
Type Description
$this