Class: Ansible::Ruby::Modules::Gce_instance_template
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Gce_instance_template
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb
Overview
Creates or destroy Google instance templates of Compute Engine of Google Cloud Platform.
Instance Method Summary collapse
-
#automatic_restart ⇒ Object?
Defines whether the instance should be automatically restarted when it is terminated by Compute Engine.
-
#can_ip_forward ⇒ :yes, ...
Set to C(yes) to allow instance to send/receive non-matching src/dst packets.
-
#credentials_file ⇒ String?
Path to the JSON file associated with the service account email.
-
#description ⇒ Object?
Description of instance template.
-
#disk_auto_delete ⇒ Boolean?
Indicate that the boot disk should be deleted when the Node is deleted.
-
#disk_type ⇒ String?
Specify a C(pd-standard) disk or C(pd-ssd) for an SSD disk.
-
#disks ⇒ Object?
A list of persistent disks to attach to the instance; a string value gives the name of the disk; alternatively, a dictionary value can define ‘name’ and ‘mode’ (‘READ_ONLY’ or ‘READ_WRITE’).
-
#disks_gce_struct ⇒ Object?
Support passing in the GCE-specific formatted formatted disks[] structure.
-
#external_ip ⇒ String?
The external IP address to use.
-
#image ⇒ Object?
The image to use to create the instance.
-
#image_family ⇒ String?
The image family to use to create the instance.
-
#metadata ⇒ Object?
A hash/dictionary of custom data for the instance; ‘…’.
-
#name ⇒ String?
The name of the GCE instance template.
-
#network ⇒ String?
The network to associate with the instance.
-
#nic_gce_struct ⇒ Object?
Support passing in the GCE-specific formatted networkInterfaces[] structure.
-
#pem_file ⇒ Object?
Path to the pem file associated with the service account email This option is deprecated.
-
#preemptible ⇒ Object?
Defines whether the instance is preemptible.
-
#project_id ⇒ String?
Your GCE project ID.
-
#service_account_email ⇒ String?
Service account email.
-
#service_account_permissions ⇒ :bigquery, ...
Service account permissions (see U(cloud.google.com/sdk/gcloud/reference/compute/instances/create), –scopes section for detailed information).
-
#size ⇒ String?
The desired machine type for the instance template.
-
#source ⇒ Object?
A source disk to attach to the instance.
-
#state ⇒ :present, ...
The desired state for the instance template.
-
#subnetwork ⇒ Object?
The Subnetwork resource name for this instance.
-
#subnetwork_region ⇒ Object?
Region that subnetwork resides in.
-
#tags ⇒ Object?
A comma-separated list of tags to associate with the instance.
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
#automatic_restart ⇒ Object?
Returns Defines whether the instance should be automatically restarted when it is terminated by Compute Engine.
65 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 65 attribute :automatic_restart |
#can_ip_forward ⇒ :yes, ...
Returns Set to C(yes) to allow instance to send/receive non-matching src/dst packets.
49 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 49 attribute :can_ip_forward |
#credentials_file ⇒ String?
Returns path to the JSON file associated with the service account email.
96 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 96 attribute :credentials_file |
#description ⇒ Object?
Returns description of instance template.
77 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 77 attribute :description |
#disk_auto_delete ⇒ Boolean?
Returns Indicate that the boot disk should be deleted when the Node is deleted.
38 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 38 attribute :disk_auto_delete |
#disk_type ⇒ String?
Returns Specify a C(pd-standard) disk or C(pd-ssd) for an SSD disk.
34 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 34 attribute :disk_type |
#disks ⇒ Object?
Returns a list of persistent disks to attach to the instance; a string value gives the name of the disk; alternatively, a dictionary value can define ‘name’ and ‘mode’ (‘READ_ONLY’ or ‘READ_WRITE’). The first entry will be the boot disk (which must be READ_WRITE).
80 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 80 attribute :disks |
#disks_gce_struct ⇒ Object?
Returns Support passing in the GCE-specific formatted formatted disks[] structure. Case sensitive. see U(cloud.google.com/compute/docs/reference/latest/instanceTemplates#resource) for detailed information.
86 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 86 attribute :disks_gce_struct |
#external_ip ⇒ String?
Returns The external IP address to use. If C(ephemeral), a new non-static address will be used. If C(None), then no external address will be used. To use an existing static IP address specify address name.
53 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 53 attribute :external_ip |
#image ⇒ Object?
Returns The image to use to create the instance. Cannot specify both both I(image) and I(source).
27 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 27 attribute :image |
#image_family ⇒ String?
Returns The image family to use to create the instance. If I(image) has been used I(image_family) is ignored. Cannot specify both I(image) and I(source).
30 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 30 attribute :image_family |
#metadata ⇒ Object?
Returns a hash/dictionary of custom data for the instance; ‘…’.
74 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 74 attribute :metadata |
#name ⇒ String?
Returns The name of the GCE instance template.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 16 attribute :name |
#network ⇒ String?
Returns The network to associate with the instance.
42 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 42 attribute :network |
#nic_gce_struct ⇒ Object?
Returns Support passing in the GCE-specific formatted networkInterfaces[] structure.
83 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 83 attribute :nic_gce_struct |
#pem_file ⇒ Object?
Returns path to the pem file associated with the service account email This option is deprecated. Use ‘credentials_file’.
93 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 93 attribute :pem_file |
#preemptible ⇒ Object?
Returns Defines whether the instance is preemptible.
68 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 68 attribute :preemptible |
#project_id ⇒ String?
Returns your GCE project ID.
89 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 89 attribute :project_id |
#service_account_email ⇒ String?
Returns service account email.
57 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 57 attribute :service_account_email |
#service_account_permissions ⇒ :bigquery, ...
Returns service account permissions (see U(cloud.google.com/sdk/gcloud/reference/compute/instances/create), –scopes section for detailed information).
61 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 61 attribute :service_account_permissions |
#size ⇒ String?
Returns The desired machine type for the instance template.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 20 attribute :size |
#source ⇒ Object?
Returns A source disk to attach to the instance. Cannot specify both I(image) and I(source).
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 24 attribute :source |
#state ⇒ :present, ...
Returns The desired state for the instance template.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 12 attribute :state |
#subnetwork ⇒ Object?
Returns The Subnetwork resource name for this instance.
46 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 46 attribute :subnetwork |
#subnetwork_region ⇒ Object?
Returns Region that subnetwork resides in. (Required for subnetwork to successfully complete).
100 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 100 attribute :subnetwork_region |
#tags ⇒ Object?
Returns a comma-separated list of tags to associate with the instance.
71 |
# File 'lib/ansible/ruby/modules/generated/cloud/google/gce_instance_template.rb', line 71 attribute :tags |