Package yakumo :: Package swift :: Package v1 :: Module container :: Class Manager
[hide private]
[frames] | no frames]

Class Manager

source code

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

manager class for containers on Object Storage V1 API

Nested Classes [hide private]
  resource_class
resource class for containers on Object Storage V1 API
Instance Methods [hide private]
yakumo.swift.v1.container.Resource
create(self, name, read_acl='__UNDEF__', write_acl='__UNDEF__', sync_to='__UNDEF__', sync_key='__UNDEF__', versions_location='__UNDEF__', history_location='__UNDEF__', ac_allow_origin='__UNDEF__', ac_max_age='__UNDEF__', quota_bytes='__UNDEF__', quota_count='__UNDEF__', temp_url_key='__UNDEF__', temp_url_key2='__UNDEF__', trans_id_extra='__UNDEF__', storage_policy='__UNDEF__', metadata='__UNDEF__')
Create a volume
source code

Inherited from base.SwiftV1Manager: get

Inherited from base.SwiftV1Manager (private): _attr2json, _find_gen, _json2attr

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

Inherited from base.Manager (private): _no_such_api

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

Class Variables [hide private]
  service_type = 'object-store'
  _attr_mapping = [('name', 'name', <yakumo.mapper.NoopClass obj...
  _has_detail = False
  _url_resource_path = None
  _json_resource_key = 'container'

Inherited from base.SwiftV1Manager (private): _id_attr

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

create(self, name, read_acl='__UNDEF__', write_acl='__UNDEF__', sync_to='__UNDEF__', sync_key='__UNDEF__', versions_location='__UNDEF__', history_location='__UNDEF__', ac_allow_origin='__UNDEF__', ac_max_age='__UNDEF__', quota_bytes='__UNDEF__', quota_count='__UNDEF__', temp_url_key='__UNDEF__', temp_url_key2='__UNDEF__', trans_id_extra='__UNDEF__', storage_policy='__UNDEF__', metadata='__UNDEF__')

source code 

Create a volume

Parameters:
  • name (str) - Container name
  • read_acl (str) - The ACL that grants read access
  • write_acl (str) - The ACL that grants write access
  • sync_to (str) - The destination for container synchronization
  • sync_key (str) - The secret key for container synchronization
  • versions_location - The URL-encoded UTF-8 representation
  • ac_allow_origin (int) - Originating URLs allowed to make cross-origin requests (CORS), separated by spaces.
  • ac_max_age (int) - Maximum time for the origin to hold the preflight results
  • quota_bytes (int) - The maximum size of the container, in bytes
  • quota_count - The maximum object count of the container
  • temp_url_key (str) - The secret key value for temporary URLs
  • temp_url_key2 (str) - The 2nd secret key value for temporary URLs
  • trans_id_extra (str) - Extra transaction information
  • storage_policy (str) - Name of the storage policy
  • metadata (dict) - Key-value style metadata
  • history_location (str)
  • qouta_count (int)
Returns: yakumo.swift.v1.container.Resource
Created container
Overrides: base.Manager.create

Class Variable Details [hide private]

_attr_mapping

Value:
[('name', 'name', mapper.Noop), ('object_count', 'x-container-object-c\
ount', mapper.IntStr), ('used_bytes', 'x-container-bytes-used', mapper\
.IntStr), ('temp_url_key', 'x-container-meta-temp-url-key', mapper.Noo\
p), ('temp_url_key2', 'x-container-meta-temp-url-key-2', mapper.Noop),\
 ('quota_count', 'x-container-meta-quota-count', mapper.IntStr), ('quo\
ta_bytes', 'x-container-meta-quota-bytes', mapper.IntStr), ('storage_p\
olicy', 'x-storage-policy', mapper.Noop), ('read_acl', 'x-container-re\
ad', mapper.Noop), ('write_acl', 'x-container-write', mapper.Noop), ('\
...