Class: Google::Apis::RunV1::Handler

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

Overview

Cloud Run fully managed: not supported Cloud Run for Anthos: supported Handler defines a specific action that should be taken

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Handler

Returns a new instance of Handler.



1287
1288
1289
# File 'generated/google/apis/run_v1/classes.rb', line 1287

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

Instance Attribute Details

#execGoogle::Apis::RunV1::ExecAction

Cloud Run fully managed: not supported Cloud Run for Anthos: supported ExecAction describes a "run in container" action. Corresponds to the JSON property exec



1271
1272
1273
# File 'generated/google/apis/run_v1/classes.rb', line 1271

def exec
  @exec
end

#http_getGoogle::Apis::RunV1::HttpGetAction

Cloud Run fully managed: not supported Cloud Run for Anthos: supported HTTPGetAction describes an action based on HTTP Get requests. Corresponds to the JSON property httpGet



1278
1279
1280
# File 'generated/google/apis/run_v1/classes.rb', line 1278

def http_get
  @http_get
end

#tcp_socketGoogle::Apis::RunV1::TcpSocketAction

Cloud Run fully managed: not supported Cloud Run for Anthos: supported TCPSocketAction describes an action based on opening a socket Corresponds to the JSON property tcpSocket



1285
1286
1287
# File 'generated/google/apis/run_v1/classes.rb', line 1285

def tcp_socket
  @tcp_socket
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1292
1293
1294
1295
1296
# File 'generated/google/apis/run_v1/classes.rb', line 1292

def update!(**args)
  @exec = args[:exec] if args.key?(:exec)
  @http_get = args[:http_get] if args.key?(:http_get)
  @tcp_socket = args[:tcp_socket] if args.key?(:tcp_socket)
end