Class: Ansible::Ruby::Modules::Os_flavor_facts
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Os_flavor_facts
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/openstack/os_flavor_facts.rb
Overview
Retrieve facts about available OpenStack instance flavors. By default, facts about ALL flavors are retrieved. Filters can be applied to get facts for only matching flavors. For example, you can filter on the amount of RAM available to the flavor, or the number of virtual CPUs available to the flavor, or both. When specifying multiple filters, ALL filters must match on a flavor before that flavor is returned as a fact.
Instance Method Summary collapse
-
#availability_zone ⇒ Object?
Ignored.
-
#ephemeral ⇒ :yes, ...
A string used for filtering flavors based on the amount of ephemeral storage.
-
#limit ⇒ Integer?
Limits the number of flavors returned.
-
#name ⇒ String?
A flavor name.
-
#ram ⇒ :yes, ...
A string used for filtering flavors based on the amount of RAM (in MB) desired.
-
#vcpus ⇒ :yes, ...
A string used for filtering flavors based on the number of virtual CPUs desired.
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
#availability_zone ⇒ Object?
Returns Ignored. Present for backwards compatibility.
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_flavor_facts.rb', line 32 attribute :availability_zone |
#ephemeral ⇒ :yes, ...
Returns A string used for filtering flavors based on the amount of ephemeral storage. Format is the same as the I(ram) parameter.
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_flavor_facts.rb', line 28 attribute :ephemeral |
#limit ⇒ Integer?
Returns Limits the number of flavors returned. All matching flavors are returned by default.
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_flavor_facts.rb', line 24 attribute :limit |
#name ⇒ String?
Returns A flavor name. Cannot be used with I(ram) or I(vcpus) or I(ephemeral).
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_flavor_facts.rb', line 12 attribute :name |
#ram ⇒ :yes, ...
Returns A string used for filtering flavors based on the amount of RAM (in MB) desired. This string accepts the following special values: ‘MIN’ (return flavors with the minimum amount of RAM), and ‘MAX’ (return flavors with the maximum amount of RAM).,A specific amount of RAM may also be specified. Any flavors with this exact amount of RAM will be returned.,A range of acceptable RAM may be given using a special syntax. Simply prefix the amount of RAM with one of these acceptable range values: ‘<’, ‘>’, ‘<=’, ‘>=’. These values represent less than, greater than, less than or equal to, and greater than or equal to, respectively.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_flavor_facts.rb', line 16 attribute :ram |
#vcpus ⇒ :yes, ...
Returns A string used for filtering flavors based on the number of virtual CPUs desired. Format is the same as the I(ram) parameter.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_flavor_facts.rb', line 20 attribute :vcpus |