Class: Ansible::Ruby::Modules::Profitbricks_volume_attachments

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

Overview

Allows you to attach or detach a volume from a ProfitBricks server. 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, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

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

Instance Method Details

#datacenterString

Returns The datacenter in which to operate.

Returns:

  • (String)

    The datacenter in which to operate.



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

attribute :datacenter

#serverString

Returns The name of the server you wish to detach or attach the volume.

Returns:

  • (String)

    The name of the server you wish to detach or attach the volume.



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

attribute :server

#state:present, ...

Returns Indicate desired state of the resource.

Returns:

  • (:present, :absent, nil)

    Indicate desired state of the resource



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

attribute :state

#subscription_passwordObject?

Returns THe ProfitBricks password. Overrides the PB_PASSWORD environement variable.

Returns:

  • (Object, nil)

    THe ProfitBricks password. Overrides the PB_PASSWORD environement variable.



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

attribute :subscription_password

#subscription_userObject?

Returns The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environement variable.

Returns:

  • (Object, nil)

    The ProfitBricks username. Overrides the PB_SUBSCRIPTION_ID environement variable.



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

attribute :subscription_user

#volumeString

Returns The volume name or ID.

Returns:

  • (String)

    The volume name or ID.



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

attribute :volume

#wait:yes, ...

Returns wait for the operation to complete before returning.

Returns:

  • (:yes, :no, nil)

    wait for the operation to complete before returning



29
# File 'lib/ansible/ruby/modules/generated/extras/cloud/profitbricks/profitbricks_volume_attachments.rb', line 29

attribute :wait

#wait_timeoutInteger?

Returns how long before wait gives up, in seconds.

Returns:

  • (Integer, nil)

    how long before wait gives up, in seconds



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

attribute :wait_timeout