Class: Influxdb::Api::Namespaces::ShardSpaces
Instance Attribute Summary
Attributes inherited from WithDatabase
#database_name
Attributes inherited from Base
#client
Instance Method Summary
collapse
#initialize
Methods inherited from Base
#initialize
Instance Method Details
#all ⇒ Object
7
8
9
|
# File 'lib/influxdb/api/namespaces/shard_spaces.rb', line 7
def all
perform_get(resource_path)
end
|
#create(attributes) ⇒ Object
11
12
13
14
|
# File 'lib/influxdb/api/namespaces/shard_spaces.rb', line 11
def create(attributes)
perform_post(resource_path(database_name), {}, attributes)
true
end
|
#delete(name) ⇒ Object
21
22
23
24
|
# File 'lib/influxdb/api/namespaces/shard_spaces.rb', line 21
def delete(name)
perform_delete(resource_path(database_name, name))
true
end
|
#update(name, attributes) ⇒ Object
16
17
18
19
|
# File 'lib/influxdb/api/namespaces/shard_spaces.rb', line 16
def update(name, attributes)
perform_post(resource_path(database_name, name), {}, attributes)
true
end
|