Class: Google::Apis::ManagerV1beta2::LbModule

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

Returns a new instance of LbModule



566
567
568
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 566

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


534
535
536
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 534

def description
  @description
end

#health_checksArray<String>

Corresponds to the JSON property healthChecks

Returns:

  • (Array<String>)


539
540
541
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 539

def health_checks
  @health_checks
end

#ip_addressString

Corresponds to the JSON property ipAddress

Returns:

  • (String)


544
545
546
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 544

def ip_address
  @ip_address
end

#ip_protocolString

Corresponds to the JSON property ipProtocol

Returns:

  • (String)


549
550
551
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 549

def ip_protocol
  @ip_protocol
end

#port_rangeString

Corresponds to the JSON property portRange

Returns:

  • (String)


554
555
556
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 554

def port_range
  @port_range
end

#session_affinityString

Corresponds to the JSON property sessionAffinity

Returns:

  • (String)


559
560
561
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 559

def session_affinity
  @session_affinity
end

#target_modulesArray<String>

Corresponds to the JSON property targetModules

Returns:

  • (Array<String>)


564
565
566
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 564

def target_modules
  @target_modules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



571
572
573
574
575
576
577
578
579
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 571

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @health_checks = args[:health_checks] if args.key?(:health_checks)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
  @port_range = args[:port_range] if args.key?(:port_range)
  @session_affinity = args[:session_affinity] if args.key?(:session_affinity)
  @target_modules = args[:target_modules] if args.key?(:target_modules)
end