Class: Ansible::Ruby::Modules::Os_server_volume
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Os_server_volume
- 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
-
#device ⇒ Object?
Device you want to attach.
-
#server ⇒ Object
Name or ID of server you want to attach a volume to.
-
#state ⇒ :present, ...
Should the resource be present or absent.
-
#volume ⇒ Object
Name or id of volume you want to attach to a server.
Methods inherited from Base
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
#device ⇒ Object?
Returns 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 |
#server ⇒ Object
Returns 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.
11 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_server_volume.rb', line 11 attribute :state |
#volume ⇒ Object
Returns 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 |