novaclient.v2.flavor_access module

Flavor access interface.

class novaclient.v2.flavor_access.FlavorAccess(manager, info, loaded=False, resp=None)

Bases: Resource

Populate and bind to a manager.

  • manager – BaseManager object

  • info – dictionary representing resource attributes

  • loaded – prevent lazy-loading if set to True

  • resp – Response or list of Response objects

class novaclient.v2.flavor_access.FlavorAccessManager(api)

Bases: ManagerWithFind

Manage FlavorAccess resources.

add_tenant_access(flavor, tenant)

Add a tenant to the given flavor access list.

remove_tenant_access(flavor, tenant)

Remove a tenant from the given flavor access list.


alias of FlavorAccess