Class: Influxdb::Api::Namespaces::ShardSpaces

Inherits:
WithDatabase show all
Defined in:
lib/influxdb/api/namespaces/shard_spaces.rb

Instance Attribute Summary

Attributes inherited from WithDatabase

#database_name

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from WithDatabase

#initialize

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Influxdb::Api::Namespaces::WithDatabase

Instance Method Details

#allObject



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