Class: Google::Apis::RunV1alpha1::Handler
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::Handler
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1alpha1/classes.rb,
lib/google/apis/run_v1alpha1/representations.rb,
lib/google/apis/run_v1alpha1/representations.rb
Overview
Handler defines a specific action that should be taken
Instance Attribute Summary collapse
-
#exec ⇒ Google::Apis::RunV1alpha1::ExecAction
ExecAction describes a "run in container" action.
-
#http_get ⇒ Google::Apis::RunV1alpha1::HttpGetAction
HTTPGetAction describes an action based on HTTP Get requests.
-
#tcp_socket ⇒ Google::Apis::RunV1alpha1::TcpSocketAction
TCPSocketAction describes an action based on opening a socket Corresponds to the JSON property
tcpSocket.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Handler
constructor
A new instance of Handler.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Handler
Returns a new instance of Handler.
1282 1283 1284 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1282 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exec ⇒ Google::Apis::RunV1alpha1::ExecAction
ExecAction describes a "run in container" action.
Corresponds to the JSON property exec
1270 1271 1272 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1270 def exec @exec end |
#http_get ⇒ Google::Apis::RunV1alpha1::HttpGetAction
HTTPGetAction describes an action based on HTTP Get requests.
Corresponds to the JSON property httpGet
1275 1276 1277 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1275 def http_get @http_get end |
#tcp_socket ⇒ Google::Apis::RunV1alpha1::TcpSocketAction
TCPSocketAction describes an action based on opening a socket
Corresponds to the JSON property tcpSocket
1280 1281 1282 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1280 def tcp_socket @tcp_socket end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1287 1288 1289 1290 1291 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1287 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 |