Class: Squall::DataStoreZone
Overview
OnApp DataStoreZone
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary (collapse)
-
- (Object) create(options = {})
Creates a new DataStoreZone.
-
- (Object) delete(id)
Deletes an existing DataStoreZone.
-
- (Object) edit(id, options = {})
Updates an existing data store zone.
-
- (Object) list
List data store zones.
-
- (Object) show(id)
Get the details for a data store zone.
Methods inherited from Base
#check_config, #default_params, #key_for_class, #request
Instance Method Details
- (Object) create(options = {})
Creates a new DataStoreZone.
39 40 41 |
# File 'lib/squall/data_store_zone.rb', line 39 def create( = {}) request(:post, "/data_store_zones.json", query: { pack: }) end |
- (Object) delete(id)
Deletes an existing DataStoreZone.
48 49 50 |
# File 'lib/squall/data_store_zone.rb', line 48 def delete(id) request(:delete, "/data_store_zones/#{id}.json") end |
- (Object) edit(id, options = {})
Updates an existing data store zone.
29 30 31 |
# File 'lib/squall/data_store_zone.rb', line 29 def edit(id, = {}) request(:put, "/data_store_zones/#{id}.json", query: { pack: }) end |
- (Object) list
List data store zones.
7 8 9 10 |
# File 'lib/squall/data_store_zone.rb', line 7 def list response = request(:get, "/data_store_zones.json") response.collect { |i| i['data_store_group'] } end |
- (Object) show(id)
Get the details for a data store zone.
17 18 19 20 |
# File 'lib/squall/data_store_zone.rb', line 17 def show(id) response = request(:get, "/data_store_zones/#{id}.json") response['data_store_group'] end |