Class: Ansible::Ruby::Modules::Os_nova_flavor

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

Overview

Add or remove flavors from OpenStack.

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

#availability_zoneObject?

Returns Ignored. Present for backwards compatibility.

Returns:

  • (Object, nil)

    Ignored. Present for backwards compatibility



52
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_flavor.rb', line 52

attribute :availability_zone

#diskInteger?

Returns Size of local disk, in GB.

Returns:

  • (Integer, nil)

    Size of local disk, in GB.



28
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_flavor.rb', line 28

attribute :disk

#ephemeralInteger?

Returns Ephemeral space size, in GB.

Returns:

  • (Integer, nil)

    Ephemeral space size, in GB.



32
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_flavor.rb', line 32

attribute :ephemeral

#extra_specsHash?

Returns Metadata dictionary.

Returns:

  • (Hash, nil)

    Metadata dictionary



55
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_flavor.rb', line 55

attribute :extra_specs

#flavoridString?

Returns ID for the flavor. This is optional as a unique UUID will be assigned if a value is not specified.

Returns:

  • (String, nil)

    ID for the flavor. This is optional as a unique UUID will be assigned if a value is not specified.



48
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_flavor.rb', line 48

attribute :flavorid

#is_public:yes, ...

Returns Make flavor accessible to the public.

Returns:

  • (:yes, :no, nil)

    Make flavor accessible to the public.



44
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_flavor.rb', line 44

attribute :is_public

#nameString

Returns Flavor name.

Returns:

  • (String)

    Flavor name.



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

attribute :name

#ramInteger?

Returns Amount of memory, in MB.

Returns:

  • (Integer, nil)

    Amount of memory, in MB.



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

attribute :ram

#rxtx_factorFloat?

Returns RX/TX factor.

Returns:

  • (Float, nil)

    RX/TX factor.



40
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_flavor.rb', line 40

attribute :rxtx_factor

#state:present, ...

Returns Indicate desired state of the resource. When I(state) is ‘present’, then I(ram), I(vcpus), and I(disk) are all required. There are no default values for those parameters.

Returns:

  • (:present, :absent, nil)

    Indicate desired state of the resource. When I(state) is ‘present’, then I(ram), I(vcpus), and I(disk) are all required. There are no default values for those parameters.



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

attribute :state

#swapInteger?

Returns Swap space size, in MB.

Returns:

  • (Integer, nil)

    Swap space size, in MB.



36
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_nova_flavor.rb', line 36

attribute :swap

#vcpusInteger?

Returns Number of virtual CPUs.

Returns:

  • (Integer, nil)

    Number of virtual CPUs.



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

attribute :vcpus