Class: Ansible::Ruby::Modules::Profitbricks_volume

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

Overview

Allows you to create or remove a volume from a ProfitBricks datacenter. This module has a dependency on profitbricks >= 1.0.0

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

#auto_incrementBoolean?

Returns Whether or not to increment a single number in the name for created virtual machines.

Returns:

  • (Boolean, nil)

    Whether or not to increment a single number in the name for created virtual machines.



50
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 50

attribute :auto_increment

#bus:IDE, ...

Returns The bus type.

Returns:

  • (:IDE, :VIRTIO, nil)

    The bus type.



24
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 24

attribute :bus

#countInteger?

Returns The number of volumes you wish to create.

Returns:

  • (Integer, nil)

    The number of volumes you wish to create.



46
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 46

attribute :count

#datacenterString

Returns The datacenter in which to create the volumes.

Returns:

  • (String)

    The datacenter in which to create the volumes.



12
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 12

attribute :datacenter

#disk_type:HDD, ...

Returns The disk type of the volume.

Returns:

  • (:HDD, :SSD, nil)

    The disk type of the volume.



38
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 38

attribute :disk_type

#imageObject

Returns The system image ID for the volume, e.g. a3eae284-a2fe-11e4-b187-5f1f641608c8. This can also be a snapshot image ID.

Returns:

  • (Object)

    The system image ID for the volume, e.g. a3eae284-a2fe-11e4-b187-5f1f641608c8. This can also be a snapshot image ID.



28
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 28

attribute :image

#image_passwordObject?

Returns Password set for the administrative user.

Returns:

  • (Object, nil)

    Password set for the administrative user.



32
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 32

attribute :image_password

#instance_idsArray<String>, ...

Returns list of instance ids, currently only used when state=‘absent’ to remove instances.

Returns:

  • (Array<String>, String, nil)

    list of instance ids, currently only used when state=‘absent’ to remove instances.



54
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 54

attribute :instance_ids

#licence_type:LINUX, ...

Returns The licence type for the volume. This is used when the image is non-standard.

Returns:

  • (:LINUX, :WINDOWS, :UNKNOWN, :OTHER, nil)

    The licence type for the volume. This is used when the image is non-standard.



42
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 42

attribute :licence_type

#nameString

Returns The name of the volumes. You can enumerate the names using auto_increment.

Returns:

  • (String)

    The name of the volumes. You can enumerate the names using auto_increment.



16
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 16

attribute :name

#sizeInteger?

Returns The size of the volume.

Returns:

  • (Integer, nil)

    The size of the volume.



20
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 20

attribute :size

#ssh_keysObject?

Returns Public SSH keys allowing access to the virtual machine.

Returns:

  • (Object, nil)

    Public SSH keys allowing access to the virtual machine.



35
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 35

attribute :ssh_keys

#state:present, ...

Returns create or terminate datacenters.

Returns:

  • (:present, :absent, nil)

    create or terminate datacenters



72
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 72

attribute :state

#subscription_passwordObject?

Returns THe ProfitBricks password. Overrides the PB_PASSWORD environment variable.

Returns:

  • (Object, nil)

    THe ProfitBricks password. Overrides the PB_PASSWORD environment variable.



61
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 61

attribute :subscription_password

#subscription_userObject?

Returns The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environment variable.

Returns:

  • (Object, nil)

    The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environment variable.



58
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 58

attribute :subscription_user

#wait:yes, ...

Returns wait for the datacenter to be created before returning.

Returns:

  • (:yes, :no, nil)

    wait for the datacenter to be created before returning



64
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 64

attribute :wait

#wait_timeoutInteger?

Returns how long before wait gives up, in seconds.

Returns:

  • (Integer, nil)

    how long before wait gives up, in seconds



68
# File 'lib/ansible/ruby/modules/generated/cloud/profitbricks/profitbricks_volume.rb', line 68

attribute :wait_timeout