Class: Google::Apis::ManagerV1beta2::HealthCheckModule

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

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) ⇒ HealthCheckModule

Returns a new instance of HealthCheckModule.



491
492
493
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 491

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

Instance Attribute Details

#check_interval_secFixnum

Corresponds to the JSON property checkIntervalSec

Returns:

  • (Fixnum)


454
455
456
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 454

def check_interval_sec
  @check_interval_sec
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


459
460
461
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 459

def description
  @description
end

#healthy_thresholdFixnum

Corresponds to the JSON property healthyThreshold

Returns:

  • (Fixnum)


464
465
466
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 464

def healthy_threshold
  @healthy_threshold
end

#hostString

Corresponds to the JSON property host

Returns:

  • (String)


469
470
471
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 469

def host
  @host
end

#pathString

Corresponds to the JSON property path

Returns:

  • (String)


474
475
476
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 474

def path
  @path
end

#portFixnum

Corresponds to the JSON property port

Returns:

  • (Fixnum)


479
480
481
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 479

def port
  @port
end

#timeout_secFixnum

Corresponds to the JSON property timeoutSec

Returns:

  • (Fixnum)


484
485
486
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 484

def timeout_sec
  @timeout_sec
end

#unhealthy_thresholdFixnum

Corresponds to the JSON property unhealthyThreshold

Returns:

  • (Fixnum)


489
490
491
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 489

def unhealthy_threshold
  @unhealthy_threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



496
497
498
499
500
501
502
503
504
505
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 496

def update!(**args)
  @check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec)
  @description = args[:description] if args.key?(:description)
  @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold)
  @host = args[:host] if args.key?(:host)
  @path = args[:path] if args.key?(:path)
  @port = args[:port] if args.key?(:port)
  @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
  @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold)
end