Class: Google::Apis::RunV2::GoogleCloudRunV2GrpcAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb

Overview

GRPCAction describes an action involving a GRPC port.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2GrpcAction

Returns a new instance of GoogleCloudRunV2GrpcAction.



642
643
644
# File 'lib/google/apis/run_v2/classes.rb', line 642

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#portFixnum

Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to 8080. Corresponds to the JSON property port

Returns:

  • (Fixnum)


633
634
635
# File 'lib/google/apis/run_v2/classes.rb', line 633

def port
  @port
end

#serviceString

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. Corresponds to the JSON property service

Returns:

  • (String)


640
641
642
# File 'lib/google/apis/run_v2/classes.rb', line 640

def service
  @service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



647
648
649
650
# File 'lib/google/apis/run_v2/classes.rb', line 647

def update!(**args)
  @port = args[:port] if args.key?(:port)
  @service = args[:service] if args.key?(:service)
end