Reference documentation and code samples for the Google Cloud Network Services V1 Client class Gateway.
Gateway represents the configuration for a proxy, typically a load balancer.
It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway.
Generated from protobuf message google.cloud.networkservices.v1.Gateway
Namespace
Google \ Cloud \ NetworkServices \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Name of the Gateway resource. It matches pattern projects/*/locations/*/gateways/<gateway_name>
.
↳ self_link
string
Output only. Server-defined URL of this resource
↳ create_time
↳ update_time
↳ labels
array| Google\Protobuf\Internal\MapField
Optional. Set of label tags associated with the Gateway resource.
↳ description
string
Optional. A free-text description of the resource. Max length 1024 characters.
↳ type
int
Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned.
↳ ports
array
Required. One or more ports that the Gateway must receive traffic on. The proxy binds to the ports specified. Gateway listen on 0.0.0.0 on the ports specified below.
↳ scope
string
Required. Immutable. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
↳ server_tls_policy
string
Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
getName
Required. Name of the Gateway resource. It matches pattern projects/*/locations/*/gateways/<gateway_name>
.
string
setName
Required. Name of the Gateway resource. It matches pattern projects/*/locations/*/gateways/<gateway_name>
.
var
string
$this
getSelfLink
Output only. Server-defined URL of this resource
string
setSelfLink
Output only. Server-defined URL of this resource
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
getLabels
Optional. Set of label tags associated with the Gateway resource.
setLabels
Optional. Set of label tags associated with the Gateway resource.
$this
getDescription
Optional. A free-text description of the resource. Max length 1024 characters.
string
setDescription
Optional. A free-text description of the resource. Max length 1024 characters.
var
string
$this
getType
Immutable. The type of the customer managed gateway.
This field is required. If unspecified, an error is returned.
int
setType
Immutable. The type of the customer managed gateway.
This field is required. If unspecified, an error is returned.
var
int
$this
getPorts
Required. One or more ports that the Gateway must receive traffic on. The proxy binds to the ports specified. Gateway listen on 0.0.0.0 on the ports specified below.
setPorts
Required. One or more ports that the Gateway must receive traffic on. The proxy binds to the ports specified. Gateway listen on 0.0.0.0 on the ports specified below.
var
int[]
$this
getScope
Required. Immutable. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer.
Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
string
setScope
Required. Immutable. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer.
Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
var
string
$this
getServerTlsPolicy
Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
string
setServerTlsPolicy
Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
var
string
$this