Class: Google::Apis::ComputeAlpha::UdpHealthCheck

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UdpHealthCheck

Returns a new instance of UdpHealthCheck.



42529
42530
42531
# File 'lib/google/apis/compute_alpha/classes.rb', line 42529

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

Instance Attribute Details

#portFixnum

The UDP port number for the health check request. Valid values are 1 through 65535. Corresponds to the JSON property port

Returns:

  • (Fixnum)


42509
42510
42511
# File 'lib/google/apis/compute_alpha/classes.rb', line 42509

def port
  @port
end

#port_nameString

Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. Corresponds to the JSON property portName

Returns:

  • (String)


42515
42516
42517
# File 'lib/google/apis/compute_alpha/classes.rb', line 42515

def port_name
  @port_name
end

#requestString

Raw data of request to send in payload of UDP packet. It is an error if this is empty. The request data can only be ASCII. Corresponds to the JSON property request

Returns:

  • (String)


42521
42522
42523
# File 'lib/google/apis/compute_alpha/classes.rb', line 42521

def request
  @request
end

#responseString

The bytes to match against the beginning of the response data. It is an error if this is empty. The response data can only be ASCII. Corresponds to the JSON property response

Returns:

  • (String)


42527
42528
42529
# File 'lib/google/apis/compute_alpha/classes.rb', line 42527

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



42534
42535
42536
42537
42538
42539
# File 'lib/google/apis/compute_alpha/classes.rb', line 42534

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