1
1
from cinderclient import client
2
from cinderclient.v1 import limits
3
from cinderclient.v1 import quota_classes
4
from cinderclient.v1 import quotas
2
5
from cinderclient.v1 import volumes
3
6
from cinderclient.v1 import volume_snapshots
4
7
from cinderclient.v1 import volume_types
24
# FIXME(jesse): project_id isn't required to authenticate
25
def __init__(self, username, api_key, project_id, auth_url,
26
insecure=False, timeout=None, proxy_tenant_id=None,
27
proxy_token=None, region_name=None,
27
def __init__(self, username, api_key, project_id=None, auth_url='',
28
insecure=False, timeout=None, tenant_id=None,
29
proxy_tenant_id=None, proxy_token=None, region_name=None,
28
30
endpoint_type='publicURL', extensions=None,
29
service_type='compute', service_name=None,
31
service_type='volume', service_name=None,
30
32
volume_service_name=None):
31
33
# FIXME(comstud): Rename the api_key argument above when we
32
34
# know it's not being used as keyword argument
36
self.limits = limits.LimitsManager(self)
36
39
self.volumes = volumes.VolumeManager(self)
37
40
self.volume_snapshots = volume_snapshots.SnapshotManager(self)
38
41
self.volume_types = volume_types.VolumeTypeManager(self)
42
self.quota_classes = quota_classes.QuotaClassSetManager(self)
43
self.quotas = quotas.QuotaSetManager(self)
40
45
# Add in any extensions...