Class: Ansible::Ruby::Modules::One_image

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

Overview

Manages OpenNebula images

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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_passwordObject?

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.

Returns:

  • (Object, nil)

    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_urlObject?

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.

Returns:

  • (Object, nil)

    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_usernameObject?

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.

Returns:

  • (Object, nil)

    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

#enabledSymbol?

Returns Whether the image should be enabled or disabled.

Returns:

  • (Symbol, nil)

    Whether the image should be enabled or disabled.



33
# File 'lib/ansible/ruby/modules/generated/cloud/opennebula/one_image.rb', line 33

attribute :enabled

#idInteger, ...

Returns A C(id) of the image you would like to manage.

Returns:

  • (Integer, String, nil)

    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

#nameString?

Returns A C(name) of the image you would like to manage.

Returns:

  • (String, nil)

    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_nameString?

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

Returns:

  • (String, nil)

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

Returns:

  • (:present, :absent, :cloned, :renamed, nil)

    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