Class: Ansible::Ruby::Modules::Gce_tag

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

Overview

This module can add or remove tags U(cloud.google.com/compute/docs/instances/#tags) to/from GCE instance.

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

#instance_nameString

Returns the name of the GCE instance to add/remove tags.

Returns:

  • (String)

    the name of the GCE instance to add/remove tags



11
# File 'lib/ansible/ruby/modules/generated/extras/cloud/google/gce_tag.rb', line 11

attribute :instance_name

#pem_fileObject?

Returns path to the pem file associated with the service account email.

Returns:

  • (Object, nil)

    path to the pem file associated with the service account email



30
# File 'lib/ansible/ruby/modules/generated/extras/cloud/google/gce_tag.rb', line 30

attribute :pem_file

#project_idObject?

Returns your GCE project ID.

Returns:

  • (Object, nil)

    your GCE project ID



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

attribute :project_id

#service_account_emailObject?

Returns service account email.

Returns:

  • (Object, nil)

    service account email



27
# File 'lib/ansible/ruby/modules/generated/extras/cloud/google/gce_tag.rb', line 27

attribute :service_account_email

#state:present, ...

Returns desired state of the tags.

Returns:

  • (:present, :absent, nil)

    desired state of the tags



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

attribute :state

#tagsArray<String>, String

Returns comma-separated list of tags to add or remove.

Returns:

  • (Array<String>, String)

    comma-separated list of tags to add or remove



15
# File 'lib/ansible/ruby/modules/generated/extras/cloud/google/gce_tag.rb', line 15

attribute :tags

#zoneString?

Returns the zone of the disk specified by source.

Returns:

  • (String, nil)

    the zone of the disk specified by source



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

attribute :zone