Class: Ansible::Ruby::Modules::Gcp_compute_instance_template

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_template.rb

Overview

Defines an Instance Template resource that provides configuration settings for your virtual machine instances. Instance templates are not tied to the lifetime of an instance and can be used and reused as to deploy virtual machines. You can also use different templates to create different virtual machine configurations. Instance templates are required when you create a managed instance group. Tip: Disks should be set to autoDelete=true so that leftover disks are not left behind on machine deletion.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#descriptionObject?

Returns An optional description of this resource. Provide this property when you create the resource.

Returns:

  • (Object, nil)

    An optional description of this resource. Provide this property when you create the resource.



17
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_template.rb', line 17

attribute :description

#nameString

Returns Name of the resource. The name is 1-63 characters long and complies with RFC1035.

Returns:

  • (String)

    Name of the resource. The name is 1-63 characters long and complies with RFC1035.



20
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_template.rb', line 20

attribute :name

#propertiesHash?

Returns The instance properties for this instance template.

Returns:

  • (Hash, nil)

    The instance properties for this instance template.



24
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_template.rb', line 24

attribute :properties

#state:present, ...

Returns Whether the given object should exist in GCP.

Returns:

  • (:present, :absent, nil)

    Whether the given object should exist in GCP



13
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance_template.rb', line 13

attribute :state