Class: Ansible::Ruby::Modules::Gce_pd

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

Overview

This module can create and destroy unformatted GCE persistent disks U(developers.google.com/compute/docs/disks#persistentdisks). It also supports attaching and detaching disks from running instances. Full install/configuration instructions for the gce* modules can be found in the comments of ansible/test/gce_tests.py.

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

#credentials_fileObject?

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

Returns:

  • (Object, nil)

    path to the JSON file associated with the service account email



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

attribute :credentials_file

#detach_only:yes, ...

Returns do not destroy the disk, merely detach it from an instance.

Returns:

  • (:yes, :no, nil)

    do not destroy the disk, merely detach it from an instance



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

attribute :detach_only

#disk_type:"pd-standard", ...

Returns type of disk provisioned.

Returns:

  • (:"pd-standard", :"pd-ssd", nil)

    type of disk provisioned



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

attribute :disk_type

#imageObject?

Returns the source image to use for the disk.

Returns:

  • (Object, nil)

    the source image to use for the disk



31
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 31

attribute :image

#instance_nameString?

Returns instance name if you wish to attach or detach the disk.

Returns:

  • (String, nil)

    instance name if you wish to attach or detach the disk



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

attribute :instance_name

#mode:READ_WRITE, ...

Returns GCE mount mode of disk, READ_ONLY (default) or READ_WRITE.

Returns:

  • (:READ_WRITE, :READ_ONLY, nil)

    GCE mount mode of disk, READ_ONLY (default) or READ_WRITE



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

attribute :mode

#nameString

Returns name of the disk.

Returns:

  • (String)

    name of the disk



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

attribute :name

#pem_fileObject?

Returns path to the pem file associated with the service account email This option is deprecated. Use ‘credentials_file’.

Returns:

  • (Object, nil)

    path to the pem file associated with the service account email This option is deprecated. Use ‘credentials_file’.



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

attribute :pem_file

#project_idObject?

Returns your GCE project ID.

Returns:

  • (Object, nil)

    your GCE project ID



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

attribute :project_id

#service_account_emailObject?

Returns service account email.

Returns:

  • (Object, nil)

    service account email



45
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 45

attribute :service_account_email

#size_gbInteger?

Returns whole integer size of disk (in GB) to create, default is 10 GB.

Returns:

  • (Integer, nil)

    whole integer size of disk (in GB) to create, default is 10 GB



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

attribute :size_gb

#snapshotObject?

Returns the source snapshot to use for the disk.

Returns:

  • (Object, nil)

    the source snapshot to use for the disk



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

attribute :snapshot

#state:active, ...

Returns desired state of the persistent disk.

Returns:

  • (:active, :present, :absent, :deleted, nil)

    desired state of the persistent disk



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

attribute :state

#zoneString?

Returns zone in which to create the disk.

Returns:

  • (String, nil)

    zone in which to create the disk



41
# File 'lib/ansible/ruby/modules/generated/core/cloud/google/gce_pd.rb', line 41

attribute :zone