Class: Ansible::Ruby::Modules::Gcp_compute_instance

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

Overview

An instance is a virtual machine (VM) hosted on Google’s infrastructure.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#can_ip_forwardObject?

Returns Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes.

Returns:

  • (Object, nil)

    Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes.



16
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 16

attribute :can_ip_forward

#disksArray<Hash>, ...

Returns An array of disks that are associated with the instances that are created from this template.

Returns:

  • (Array<Hash>, Hash, nil)

    An array of disks that are associated with the instances that are created from this template.



19
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 19

attribute :disks

#guest_acceleratorsObject?

Returns List of the type and count of accelerator cards attached to the instance .

Returns:

  • (Object, nil)

    List of the type and count of accelerator cards attached to the instance .



23
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 23

attribute :guest_accelerators

#label_fingerprintObject?

Returns A fingerprint for this request, which is essentially a hash of the metadata’s contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.

Returns:

  • (Object, nil)

    A fingerprint for this request, which is essentially a hash of the metadata’s contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.



26
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 26

attribute :label_fingerprint

#machine_typeString?

Returns A reference to a machine type which defines VM kind.

Returns:

  • (String, nil)

    A reference to a machine type which defines VM kind.



33
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 33

attribute :machine_type

#metadataHash?

Returns The metadata key/value pairs to assign to instances that are created from this template. These pairs can consist of custom metadata or predefined keys.

Returns:

  • (Hash, nil)

    The metadata key/value pairs to assign to instances that are created from this template. These pairs can consist of custom metadata or predefined keys.



29
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 29

attribute :metadata

#min_cpu_platformObject?

Returns Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms .

Returns:

  • (Object, nil)

    Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms .



37
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 37

attribute :min_cpu_platform

#nameString?

Returns The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ‘[a-z](*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Returns:

  • (String, nil)

    The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression ‘[a-z](*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.



40
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 40

attribute :name

#network_interfacesArray<Hash>, ...

Returns An array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Only one network interface is supported per instance.

Returns:

  • (Array<Hash>, Hash, nil)

    An array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Only one network interface is supported per instance.



44
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 44

attribute :network_interfaces

#schedulingObject?

Returns Sets the scheduling options for this instance.

Returns:

  • (Object, nil)

    Sets the scheduling options for this instance.



48
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 48

attribute :scheduling

#service_accountsObject?

Returns A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported.

Returns:

  • (Object, nil)

    A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported.



51
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 51

attribute :service_accounts

#state:present, ...

Returns Whether the given object should exist in GCP.

Returns:

  • (:present, :absent, nil)

    Whether the given object should exist in GCP



12
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 12

attribute :state

#tagsObject?

Returns A list of tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.

Returns:

  • (Object, nil)

    A list of tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.



54
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 54

attribute :tags

#zoneString

Returns A reference to the zone where the machine resides.

Returns:

  • (String)

    A reference to the zone where the machine resides.



57
# File 'lib/ansible/ruby/modules/generated/cloud/google/gcp_compute_instance.rb', line 57

attribute :zone