Class: Google::Apis::ManagerV1beta2::Module
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::Module
- 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
-
#autoscaling_module ⇒ Google::Apis::ManagerV1beta2::AutoscalingModule
Corresponds to the JSON property
autoscalingModule
. -
#firewall_module ⇒ Google::Apis::ManagerV1beta2::FirewallModule
A Firewall resource Corresponds to the JSON property
firewallModule
. -
#health_check_module ⇒ Google::Apis::ManagerV1beta2::HealthCheckModule
Corresponds to the JSON property
healthCheckModule
. -
#lb_module ⇒ Google::Apis::ManagerV1beta2::LbModule
Corresponds to the JSON property
lbModule
. -
#network_module ⇒ Google::Apis::ManagerV1beta2::NetworkModule
Corresponds to the JSON property
networkModule
. -
#replica_pool_module ⇒ Google::Apis::ManagerV1beta2::ReplicaPoolModule
Corresponds to the JSON property
replicaPoolModule
. -
#type ⇒ String
The type of this module.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Module
constructor
A new instance of Module.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_module ⇒ Google::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_module ⇒ Google::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_module ⇒ Google::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_module ⇒ Google::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_module ⇒ Google::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_module ⇒ Google::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 |
#type ⇒ String
The type of this module. Valid values ("AUTOSCALING", "FIREWALL", "
HEALTH_CHECK", "LOAD_BALANCING", "NETWORK", "REPLICA_POOL")
Corresponds to the JSON property type
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 |