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

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/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

#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.



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

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



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

attribute :server

#state:present, ...

Returns Should the resource be present or absent.

Returns:

  • (:present, :absent, nil)

    Should the resource be present or absent.



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

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



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

attribute :volume