Class: Google::Apis::ManagerV1beta2::Module

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

Overview

A module in a configuration. A module represents a single homogeneous, possibly replicated task.

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

Returns a new instance of Module



700
701
702
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 700

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

Instance Attribute Details

#autoscaling_moduleGoogle::Apis::ManagerV1beta2::AutoscalingModule

Corresponds to the JSON property autoscalingModule



667
668
669
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 667

def autoscaling_module
  @autoscaling_module
end

#firewall_moduleGoogle::Apis::ManagerV1beta2::FirewallModule

A Firewall resource Corresponds to the JSON property firewallModule



672
673
674
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 672

def firewall_module
  @firewall_module
end

#health_check_moduleGoogle::Apis::ManagerV1beta2::HealthCheckModule

Corresponds to the JSON property healthCheckModule



677
678
679
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 677

def health_check_module
  @health_check_module
end

#lb_moduleGoogle::Apis::ManagerV1beta2::LbModule

Corresponds to the JSON property lbModule



682
683
684
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 682

def lb_module
  @lb_module
end

#network_moduleGoogle::Apis::ManagerV1beta2::NetworkModule

Corresponds to the JSON property networkModule



687
688
689
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 687

def network_module
  @network_module
end

#replica_pool_moduleGoogle::Apis::ManagerV1beta2::ReplicaPoolModule

Corresponds to the JSON property replicaPoolModule



692
693
694
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 692

def replica_pool_module
  @replica_pool_module
end

#typeString

The type of this module. Valid values ("AUTOSCALING", "FIREWALL", " HEALTH_CHECK", "LOAD_BALANCING", "NETWORK", "REPLICA_POOL") Corresponds to the JSON property type

Returns:

  • (String)


698
699
700
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 698

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



705
706
707
708
709
710
711
712
713
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 705

def update!(**args)
  @autoscaling_module = args[:autoscaling_module] if args.key?(:autoscaling_module)
  @firewall_module = args[:firewall_module] if args.key?(:firewall_module)
  @health_check_module = args[:health_check_module] if args.key?(:health_check_module)
  @lb_module = args[:lb_module] if args.key?(:lb_module)
  @network_module = args[:network_module] if args.key?(:network_module)
  @replica_pool_module = args[:replica_pool_module] if args.key?(:replica_pool_module)
  @type = args[:type] if args.key?(:type)
end