Class: Ansible::Ruby::Modules::Os_server_volume

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

Overview

Attach or Detach volumes from OpenStack VM’s

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

#availability_zoneObject?

Returns Ignored. Present for backwards compatibility.

Returns:

  • (Object, nil)

    Ignored. Present for backwards compatibility



27
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_volume.rb', line 27

attribute :availability_zone

#deviceObject?

Returns Device you want to attach. Defaults to auto finding a device name.

Returns:

  • (Object, nil)

    Device you want to attach. Defaults to auto finding a device name.



24
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_volume.rb', line 24

attribute :device

#serverObject

Returns Name or ID of server you want to attach a volume to.

Returns:

  • (Object)

    Name or ID of server you want to attach a volume to



16
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_volume.rb', line 16

attribute :server

#state:present, ...

Returns Should the resource be present or absent.

Returns:

  • (:present, :absent, nil)

    Should the resource be present or absent.



12
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_volume.rb', line 12

attribute :state

#volumeObject

Returns Name or id of volume you want to attach to a server.

Returns:

  • (Object)

    Name or id of volume you want to attach to a server



20
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_server_volume.rb', line 20

attribute :volume