Class: RenderAPI::Clients::Deploys
- Inherits:
-
Base
- Object
- Base
- RenderAPI::Clients::Deploys
show all
- Defined in:
- lib/render_api/clients/deploys.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#create(service_id, clear_cache: nil) ⇒ Object
8
9
10
11
12
13
14
15
|
# File 'lib/render_api/clients/deploys.rb', line 8
def create(service_id, clear_cache: nil)
body = nil
body = { clear_cache: clear_cache } unless clear_cache.nil?
endpoint.post(
"/services/#{service_id}/deploys", body: body
)
end
|
#find(service_id, deploy_id) ⇒ Object
17
18
19
20
21
|
# File 'lib/render_api/clients/deploys.rb', line 17
def find(service_id, deploy_id)
endpoint.get(
"/services/#{service_id}/deploys/#{deploy_id}"
)
end
|
#list(service_id) ⇒ Object
23
24
25
26
27
|
# File 'lib/render_api/clients/deploys.rb', line 23
def list(service_id, ...)
endpoint.get(
"/services/#{service_id}/deploys", params: list_parameters(...)
)
end
|