Class: TutumNodeClusters
Constant Summary
Constants inherited
from TutumApi
TutumApi::API_VERSION, TutumApi::BASE_API_PATH
Instance Attribute Summary
Attributes inherited from TutumApi
#headers
Instance Method Summary
collapse
Methods inherited from TutumApi
#http_delete, #http_get, #http_patch, #http_post, #initialize, #url
Constructor Details
This class inherits a constructor from TutumApi
Instance Method Details
#create(params) ⇒ Object
14
15
16
|
# File 'lib/tutum_node_clusters.rb', line 14
def create(params)
http_post(create_url, params)
end
|
#create_url ⇒ Object
10
11
12
|
# File 'lib/tutum_node_clusters.rb', line 10
def create_url
"/nodecluster/"
end
|
#deploy(uuid) ⇒ Object
38
39
40
|
# File 'lib/tutum_node_clusters.rb', line 38
def deploy(uuid)
http_post(deploy_url(uuid))
end
|
#deploy_url(uuid) ⇒ Object
34
35
36
|
# File 'lib/tutum_node_clusters.rb', line 34
def deploy_url(uuid)
"/nodecluster/#{uuid}/deploy/"
end
|
#get(uuid) ⇒ Object
22
23
24
|
# File 'lib/tutum_node_clusters.rb', line 22
def get(uuid)
http_get(get_url(uuid))
end
|
#get_url(uuid) ⇒ Object
18
19
20
|
# File 'lib/tutum_node_clusters.rb', line 18
def get_url(uuid)
"/nodecluster/#{uuid}/"
end
|
#list(params = {}) ⇒ Object
6
7
8
|
# File 'lib/tutum_node_clusters.rb', line 6
def list(params={})
http_get(list_url, params)
end
|
#list_url ⇒ Object
2
3
4
|
# File 'lib/tutum_node_clusters.rb', line 2
def list_url
"/nodecluster/"
end
|
#terminate(uuid) ⇒ Object
46
47
48
|
# File 'lib/tutum_node_clusters.rb', line 46
def terminate(uuid)
http_delete(terminate_url(uuid))
end
|
#terminate_url(uuid) ⇒ Object
42
43
44
|
# File 'lib/tutum_node_clusters.rb', line 42
def terminate_url(uuid)
"/nodecluster/#{uuid}/"
end
|
#update(uuid, params) ⇒ Object
30
31
32
|
# File 'lib/tutum_node_clusters.rb', line 30
def update(uuid, params)
http_patch(update_url(uuid), params)
end
|
#update_url(uuid) ⇒ Object
26
27
28
|
# File 'lib/tutum_node_clusters.rb', line 26
def update_url(uuid)
"/nodecluster/#{uuid}/"
end
|