novaclient.v2.flavor_access module

Flavor access interface.

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

Bases: novaclient.base.Resource

Populate and bind to a manager.

Parameters
  • 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: novaclient.base.ManagerWithFind

Manage FlavorAccess resources.

add_tenant_access(flavor, tenant)

Add a tenant to the given flavor access list.

list(**kwargs)
remove_tenant_access(flavor, tenant)

Remove a tenant from the given flavor access list.

resource_class

alias of novaclient.v2.flavor_access.FlavorAccess