Cloud Run V2 API - Class Google::Cloud::Run::V2::GRPCAction (v0.19.0)

Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::GRPCAction.

GRPCAction describes an action involving a GRPC port.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#port

def port() -> ::Integer
Returns
  • (::Integer) —

    Optional. Port number of the gRPC service. Number must be in the range 1 to

    1. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.

#port=

def port=(value) -> ::Integer
Parameter
  • value (::Integer) —

    Optional. Port number of the gRPC service. Number must be in the range 1 to

    1. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.
Returns
  • (::Integer) —

    Optional. Port number of the gRPC service. Number must be in the range 1 to

    1. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.

#service

def service() -> ::String
Returns
  • (::String) — Optional. Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC.

#service=

def service=(value) -> ::String
Parameter
  • value (::String) — Optional. Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC.
Returns
  • (::String) — Optional. Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this is not specified, the default behavior is defined by gRPC.