Class: Ansible::Ruby::Modules::Gcp_compute_instance_group
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Gcp_compute_instance_group
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_group.rb
Overview
Represents an Instance Group resource. Instance groups are self-managed and can contain identical or different instances. Instance groups do not use an instance template. Unlike managed instance groups, you must create and add instances to an instance group manually.
Instance Method Summary collapse
-
#description ⇒ Object?
An optional description of this resource.
-
#name ⇒ String?
The name of the instance group.,The name must be 1-63 characters long, and comply with RFC1035.
-
#named_ports ⇒ Array<Hash>, ...
Assigns a name to a port number.,For example: “http”, port: 80.,This allows the system to reference ports by the assigned name instead of a port number.
-
#network ⇒ String?
The network to which all instances in the instance group belong.
-
#region ⇒ Object?
The region where the instance group is located (for regional resources).
-
#state ⇒ :present, ...
Whether the given object should exist in GCP.
-
#subnetwork ⇒ Object?
The subnetwork to which all instances in the instance group belong.
-
#zone ⇒ String
A reference to the zone where the instance group resides.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#description ⇒ Object?
Returns An optional description of this resource. Provide this property when you create the resource.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_group.rb', line 16 attribute :description |
#name ⇒ String?
Returns The name of the instance group.,The name must be 1-63 characters long, and comply with RFC1035.
19 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_group.rb', line 19 attribute :name |
#named_ports ⇒ Array<Hash>, ...
Returns Assigns a name to a port number.,For example: “http”, port: 80.,This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports.,For example: [“http”, port: 80,“http”, port: 8080] Named ports apply to all instances in this instance group.
23 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_group.rb', line 23 attribute :named_ports |
#network ⇒ String?
Returns The network to which all instances in the instance group belong.
27 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_group.rb', line 27 attribute :network |
#region ⇒ Object?
Returns The region where the instance group is located (for regional resources).
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_group.rb', line 31 attribute :region |
#state ⇒ :present, ...
Returns Whether the given object should exist in GCP.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_group.rb', line 12 attribute :state |
#subnetwork ⇒ Object?
Returns The subnetwork to which all instances in the instance group belong.
34 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_group.rb', line 34 attribute :subnetwork |
#zone ⇒ String
Returns A reference to the zone where the instance group resides.
37 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_group.rb', line 37 attribute :zone |