Class: Google::Apis::RunV1alpha1::Handler

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

Overview

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.



1830
1831
1832
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1830

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

Instance Attribute Details

#execGoogle::Apis::RunV1alpha1::ExecAction

ExecAction describes a "run in container" action. Corresponds to the JSON property exec



1818
1819
1820
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1818

def exec
  @exec
end

#http_getGoogle::Apis::RunV1alpha1::HttpGetAction

HTTPGetAction describes an action based on HTTP Get requests. Corresponds to the JSON property httpGet



1823
1824
1825
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1823

def http_get
  @http_get
end

#tcp_socketGoogle::Apis::RunV1alpha1::TcpSocketAction

TCPSocketAction describes an action based on opening a socket Corresponds to the JSON property tcpSocket



1828
1829
1830
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1828

def tcp_socket
  @tcp_socket
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1835
1836
1837
1838
1839
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1835

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