Class: Ansible::Ruby::Modules::Gce_img

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

Overview

This module can create and delete GCE private images from gzipped compressed tarball containing raw disk data or from existing detached disks in any zone. U(cloud.google.com/compute/docs/images)

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

#descriptionObject?

Returns an optional description.

Returns:

  • (Object, nil)

    an optional description



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

attribute :description

#nameString

Returns the name of the image to create or delete.

Returns:

  • (String)

    the name of the image to create or delete



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

attribute :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



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

attribute :pem_file

#project_idObject?

Returns your GCE project ID.

Returns:

  • (Object, nil)

    your GCE project ID



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

attribute :project_id

#service_account_emailObject?

Returns service account email.

Returns:

  • (Object, nil)

    service account email



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

attribute :service_account_email

#sourceString?

Returns the source disk or the Google Cloud Storage URI to create the image from.

Returns:

  • (String, nil)

    the source disk or the Google Cloud Storage URI to create the image from



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

attribute :source

#state:present, ...

Returns desired state of the image.

Returns:

  • (:present, :absent, nil)

    desired state of the image



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

attribute :state

#timeoutInteger?

Returns timeout for the operation.

Returns:

  • (Integer, nil)

    timeout for the operation



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

attribute :timeout

#zoneString?

Returns the zone of the disk specified by source.

Returns:

  • (String, nil)

    the zone of the disk specified by source



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

attribute :zone