Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The timestamp when the resource was created.
#description
def description() -> ::String
- (::String) — Optional. A free-text description of the resource. Max length 1024 characters.
#description=
def description=(value) -> ::String
- value (::String) — Optional. A free-text description of the resource. Max length 1024 characters.
- (::String) — Optional. A free-text description of the resource. Max length 1024 characters.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Set of label tags associated with the Gateway resource.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. Set of label tags associated with the Gateway resource.
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Set of label tags associated with the Gateway resource.
#name
def name() -> ::String
-
(::String) — Required. Name of the Gateway resource. It matches pattern
projects/*/locations/*/gateways/<gateway_name>
.
#name=
def name=(value) -> ::String
-
value (::String) — Required. Name of the Gateway resource. It matches pattern
projects/*/locations/*/gateways/<gateway_name>
.
-
(::String) — Required. Name of the Gateway resource. It matches pattern
projects/*/locations/*/gateways/<gateway_name>
.
#ports
def ports() -> ::Array<::Integer>
- (::Array<::Integer>) — 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.
#ports=
def ports=(value) -> ::Array<::Integer>
- value (::Array<::Integer>) — 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.
- (::Array<::Integer>) — 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
def scope() -> ::String
-
(::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.
#scope=
def scope=(value) -> ::String
-
value (::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.
-
(::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.
#self_link
def self_link() -> ::String
- (::String) — Output only. Server-defined URL of this resource
#server_tls_policy
def server_tls_policy() -> ::String
- (::String) — Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
#server_tls_policy=
def server_tls_policy=(value) -> ::String
- value (::String) — Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
- (::String) — Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.
#type
def type() -> ::Google::Cloud::NetworkServices::V1::Gateway::Type
- (::Google::Cloud::NetworkServices::V1::Gateway::Type) — Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned.
#type=
def type=(value) -> ::Google::Cloud::NetworkServices::V1::Gateway::Type
- value (::Google::Cloud::NetworkServices::V1::Gateway::Type) — Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned.
- (::Google::Cloud::NetworkServices::V1::Gateway::Type) — Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The timestamp when the resource was updated.