Class: Ansible::Ruby::Modules::Gce_mig
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Gce_mig
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/google/gce_mig.rb
Overview
Create, Update or Destroy a Managed Instance Group (MIG). See U(cloud.google.com/compute/docs/instance-groups) for an overview. Full install/configuration instructions for the gce* modules can be found in the comments of ansible/test/gce_tests.py.
Instance Method Summary collapse
-
#autoscaling ⇒ Object?
A dictionary of configuration for the autoscaler.
-
#credentials_file ⇒ Object?
Path to the JSON file associated with the service account email.
-
#name ⇒ String
Name of the Managed Instance Group.
-
#named_ports ⇒ Object?
Define named ports that backend services can forward data to.
-
#project_id ⇒ Object?
GCE project ID.
-
#service_account_email ⇒ Object?
Service account email.
-
#size ⇒ Object?
Size of Managed Instance Group.
-
#state ⇒ :absent, ...
Desired state of the resource.
-
#template ⇒ Object?
Instance Template to be used in creating the VMs.
-
#zone ⇒ Object
The GCE zone to use for this Managed Instance Group.
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
#autoscaling ⇒ Object?
Returns A dictionary of configuration for the autoscaler. ‘enabled (bool)’, ‘name (str)’ and policy.max_instances (int) are required fields if autoscaling is used. See U(cloud.google.com/compute/docs/reference/beta/autoscalers) for more information on Autoscaling.
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_mig.rb', line 39 attribute :autoscaling |
#credentials_file ⇒ Object?
Returns Path to the JSON file associated with the service account email.
25 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_mig.rb', line 25 attribute :credentials_file |
#name ⇒ String
Returns Name of the Managed Instance Group.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_mig.rb', line 12 attribute :name |
#named_ports ⇒ Object?
Returns Define named ports that backend services can forward data to. Format is a a list of name:port dictionaries.
42 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_mig.rb', line 42 attribute :named_ports |
#project_id ⇒ Object?
Returns GCE project ID.
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_mig.rb', line 28 attribute :project_id |
#service_account_email ⇒ Object?
Returns service account email.
22 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_mig.rb', line 22 attribute :service_account_email |
#size ⇒ Object?
Returns Size of Managed Instance Group. If MIG already exists, it will be resized to the number provided here. Required for creating MIGs.
19 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_mig.rb', line 19 attribute :size |
#state ⇒ :absent, ...
Returns desired state of the resource.
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_mig.rb', line 31 attribute :state |
#template ⇒ Object?
Returns Instance Template to be used in creating the VMs. See U(cloud.google.com/compute/docs/instance-templates) to learn more about Instance Templates. Required for creating MIGs.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_mig.rb', line 16 attribute :template |
#zone ⇒ Object
Returns The GCE zone to use for this Managed Instance Group.
35 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_mig.rb', line 35 attribute :zone |