Class: Google::Apis::RunV2::GoogleCloudRunV2GrpcAction
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2GrpcAction
- 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
-
#port ⇒ Fixnum
Optional.
-
#service ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2GrpcAction
constructor
A new instance of GoogleCloudRunV2GrpcAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2GrpcAction
Returns a new instance of GoogleCloudRunV2GrpcAction.
938 939 940 |
# File 'lib/google/apis/run_v2/classes.rb', line 938 def initialize(**args) update!(**args) end |
Instance Attribute Details
#port ⇒ Fixnum
Optional. Port number of the gRPC service. Number must be in the range 1 to
- If not specified, defaults to the exposed port of the container, which
is the value of container.ports[0].containerPort.
Corresponds to the JSON property
port
928 929 930 |
# File 'lib/google/apis/run_v2/classes.rb', line 928 def port @port end |
#service ⇒ 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.
Corresponds to the JSON property service
936 937 938 |
# File 'lib/google/apis/run_v2/classes.rb', line 936 def service @service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
943 944 945 946 |
# File 'lib/google/apis/run_v2/classes.rb', line 943 def update!(**args) @port = args[:port] if args.key?(:port) @service = args[:service] if args.key?(:service) end |