Package yakumo :: Package nova :: Package v2 :: Module security_group :: Class Manager
[hide private]
[frames] | no frames]

Class Manager

source code

  object --+    
           |    
base.Manager --+
               |
              Manager

Manager class for security groups in Compute API v2

Nested Classes [hide private]
  resource_class
Resource class for security groups in Compute API v2
Instance Methods [hide private]
yakumo.nova.v2.security_group.Resource
create(self, name='__UNDEF__', description='__UNDEF__', project='__UNDEF__')
Create a security group
source code

Inherited from base.Manager: __init__, find, find_one, get, get_empty, list

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  service_type = 'compute'
  _attr_mapping = [('id', 'id', <yakumo.mapper.NoopClass object ...
  _hidden_methods = ['update']
  _json_resource_key = 'security_group'
  _json_resources_key = 'security_groups'
  _url_resource_path = '/os-security-groups'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

create(self, name='__UNDEF__', description='__UNDEF__', project='__UNDEF__')

source code 

Create a security group

Parameters:
  • name (str) - Security group name
  • description (str) - Description
  • project (yakumo.project.Resource) - Project
Returns: yakumo.nova.v2.security_group.Resource
Created security group
Overrides: base.Manager.create

Class Variable Details [hide private]

_attr_mapping

Value:
[('id', 'id', mapper.Noop), ('name', 'name', mapper.Noop), ('descripti\
on', 'description', mapper.Noop), ('_rules', 'rules', mapper.Noop), ('\
project', 'tenant_id', mapper.Resource('project')),]