openstack.compute.v2.flavor¶
The Flavor Class¶
The Flavor class inherits from Resource.
-
class
openstack.compute.v2.flavor.Flavor(_synchronized=False, connection=None, **attrs)¶ The base resource
- Parameters
_synchronized (bool) – This is not intended to be used directly. See
new()andexisting().connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connectionin Resource code should protect itself with a check for None.
-
links¶ Links pertaining to this flavor. This is a list of dictionaries, each including keys
hrefandrel.
-
name¶ The name of this flavor.
-
description¶ The description of the flavor.
-
disk¶ Size of the disk this flavor offers. Type: int
-
is_public¶ Trueif this is a publicly visible flavor.Falseif this is a private image. Type: bool
-
ram¶ The amount of RAM (in MB) this flavor offers. Type: int
-
vcpus¶ The number of virtual CPUs this flavor offers. Type: int
-
swap¶ Size of the swap partitions.
-
ephemeral¶ Size of the ephemeral data disk attached to this server. Type: int
-
is_disabled¶ Trueif this flavor is disabled,Falseif not. Type: bool
-
rxtx_factor¶ The bandwidth scaling factor this flavor receives on the network.
-
extra_specs¶ A dictionary of the flavor’s extra-specs key-and-value pairs.
The FlavorDetail Class¶
The FlavorDetail class inherits from
Flavor.
-
class
openstack.compute.v2.flavor.FlavorDetail(_synchronized=False, connection=None, **attrs)¶ The base resource
- Parameters
_synchronized (bool) – This is not intended to be used directly. See
new()andexisting().connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connectionin Resource code should protect itself with a check for None.