API Gateway V1 API - Class Google::Cloud::ApiGateway::V1::Gateway (v2.8.0)

Reference documentation and code samples for the API Gateway V1 API class Google::Cloud::ApiGateway::V1::Gateway.

A Gateway is an API-aware HTTP proxy. It performs API-Method and/or API-Consumer specific actions based on an API Config such as authentication, policy enforcement, and backend selection.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#api_config

def api_config() -> ::String
Returns
  • (::String) — Required. Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}

#api_config=

def api_config=(value) -> ::String
Parameter
  • value (::String) — Required. Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
Returns
  • (::String) — Required. Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#default_hostname

def default_hostname() -> ::String
Returns
  • (::String) — Output only. The default hostname that serves traffic for this Gateway.

#display_name

def display_name() -> ::String
Returns
  • (::String) — Optional. Display name.

#display_name=

def display_name=(value) -> ::String
Parameter
  • value (::String) — Optional. Display name.
Returns
  • (::String) — Optional. Display name.

#effective_streaming_mode

def effective_streaming_mode() -> ::Google::Cloud::ApiGateway::V1::Gateway::EffectiveStreamingMode
Returns
  • (::Google::Cloud::ApiGateway::V1::Gateway::EffectiveStreamingMode) — Output only. The streaming mode this gateway is actually served with, which the service resolves at creation from streaming_mode, the referenced API Config, and the platform default at the time. Read this rather than streaming_mode to determine whether a gateway supports streaming.

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

#name

def name() -> ::String
Returns
  • (::String) — Output only. Resource name of the Gateway. Format: projects/{project}/locations/{location}/gateways/{gateway}

#state

def state() -> ::Google::Cloud::ApiGateway::V1::Gateway::State
Returns

#streaming_mode

def streaming_mode() -> ::Google::Cloud::ApiGateway::V1::Gateway::StreamingMode
Returns
  • (::Google::Cloud::ApiGateway::V1::Gateway::StreamingMode) — Optional. Immutable. Requests streaming for a new gateway. An attempt to change it on update is rejected. If unset, the service selects the mode. This field records only what was requested and is never modified by the service; read effective_streaming_mode for the mode the gateway is served with.

#streaming_mode=

def streaming_mode=(value) -> ::Google::Cloud::ApiGateway::V1::Gateway::StreamingMode
Parameter
  • value (::Google::Cloud::ApiGateway::V1::Gateway::StreamingMode) — Optional. Immutable. Requests streaming for a new gateway. An attempt to change it on update is rejected. If unset, the service selects the mode. This field records only what was requested and is never modified by the service; read effective_streaming_mode for the mode the gateway is served with.
Returns
  • (::Google::Cloud::ApiGateway::V1::Gateway::StreamingMode) — Optional. Immutable. Requests streaming for a new gateway. An attempt to change it on update is rejected. If unset, the service selects the mode. This field records only what was requested and is never modified by the service; read effective_streaming_mode for the mode the gateway is served with.

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns