Class: Ansible::Ruby::Modules::One_image
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::One_image
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/opennebula/one_image.rb
Overview
Manages OpenNebula images
Instance Method Summary collapse
-
#api_password ⇒ Object?
Password of the user to login into OpenNebula RPC server.
-
#api_url ⇒ Object?
URL of the OpenNebula RPC server.,It is recommended to use HTTPS so that the username/password are not,transferred over the network unencrypted.,If not set then the value of the C(ONE_URL) environment variable is used.
-
#api_username ⇒ Object?
Name of the user to login into the OpenNebula RPC server.
-
#enabled ⇒ Symbol?
Whether the image should be enabled or disabled.
-
#id ⇒ Integer, ...
A C(id) of the image you would like to manage.
-
#name ⇒ String?
A C(name) of the image you would like to manage.
-
#new_name ⇒ String?
A name that will be assigned to the existing or new image.,In the case of cloning, by default C(new_name) will take the name of the origin image with the prefix ‘Copy of’.
-
#state ⇒ :present, ...
C(present) - state that is used to manage the image,C(absent) - delete the image,C(cloned) - clone the image,C(renamed) - rename the image to the C(new_name).
Methods inherited from Base
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
#api_password ⇒ Object?
Returns Password of the user to login into OpenNebula RPC server. If not set,then the value of the C(ONE_PASSWORD) environment variable is used.
18 |
# File 'lib/ansible/ruby/modules/generated/cloud/opennebula/one_image.rb', line 18 attribute :api_password |
#api_url ⇒ Object?
Returns URL of the OpenNebula RPC server.,It is recommended to use HTTPS so that the username/password are not,transferred over the network unencrypted.,If not set then the value of the C(ONE_URL) environment variable is used.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/opennebula/one_image.rb', line 12 attribute :api_url |
#api_username ⇒ Object?
Returns Name of the user to login into the OpenNebula RPC server. If not set,then the value of the C(ONE_USERNAME) environment variable is used.
15 |
# File 'lib/ansible/ruby/modules/generated/cloud/opennebula/one_image.rb', line 15 attribute :api_username |
#enabled ⇒ Symbol?
Returns Whether the image should be enabled or disabled.
33 |
# File 'lib/ansible/ruby/modules/generated/cloud/opennebula/one_image.rb', line 33 attribute :enabled |
#id ⇒ Integer, ...
Returns A C(id) of the image you would like to manage.
21 |
# File 'lib/ansible/ruby/modules/generated/cloud/opennebula/one_image.rb', line 21 attribute :id |
#name ⇒ String?
Returns A C(name) of the image you would like to manage.
25 |
# File 'lib/ansible/ruby/modules/generated/cloud/opennebula/one_image.rb', line 25 attribute :name |
#new_name ⇒ String?
Returns A name that will be assigned to the existing or new image.,In the case of cloning, by default C(new_name) will take the name of the origin image with the prefix ‘Copy of’.
37 |
# File 'lib/ansible/ruby/modules/generated/cloud/opennebula/one_image.rb', line 37 attribute :new_name |
#state ⇒ :present, ...
Returns C(present) - state that is used to manage the image,C(absent) - delete the image,C(cloned) - clone the image,C(renamed) - rename the image to the C(new_name).
29 |
# File 'lib/ansible/ruby/modules/generated/cloud/opennebula/one_image.rb', line 29 attribute :state |