Class: Keystone::V2_0::TenantManager
- Inherits:
-
Openstack::Client::Manager
- Object
- Openstack::Client::Manager
- Keystone::V2_0::TenantManager
- Defined in:
- lib/keystone/v2_0/tenants.rb
Constant Summary collapse
Instance Attribute Summary
Attributes inherited from Openstack::Client::Manager
Instance Method Summary collapse
- #get(tenant) ⇒ Object
-
#initialize(api) ⇒ TenantManager
constructor
A new instance of TenantManager.
- #list(limit = nil, marker = nil) ⇒ Object
Methods inherited from Openstack::Client::Manager
#_create, #_delete, #_get, #_list, #_update, #get_id, #url_with_params
Constructor Details
#initialize(api) ⇒ TenantManager
Returns a new instance of TenantManager.
17 18 19 |
# File 'lib/keystone/v2_0/tenants.rb', line 17 def initialize api super end |
Instance Method Details
#get(tenant) ⇒ Object
21 22 23 |
# File 'lib/keystone/v2_0/tenants.rb', line 21 def get tenant self._get("/tenants/#{get_id(tenant)}", 'tenant') end |
#list(limit = nil, marker = nil) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/keystone/v2_0/tenants.rb', line 25 def list limit=nil, marker=nil params = {} params['limit'] = limit if limit params['marker'] = marker if marker self._list(url_with_params("/tenants", params), 'tenants') end |