Class: RenderAPI::Clients::Domains

Inherits:
Base
  • Object
show all
Defined in:
lib/render_api/clients/domains.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from RenderAPI::Clients::Base

Instance Method Details

#create(service_id, name:) ⇒ Object



8
9
10
11
12
# File 'lib/render_api/clients/domains.rb', line 8

def create(service_id, name:)
  endpoint.post(
    "/services/#{service_id}/custom-domains", body: { name: name }
  )
end

#delete(service_id, domain_id) ⇒ Object



14
15
16
17
18
# File 'lib/render_api/clients/domains.rb', line 14

def delete(service_id, domain_id)
  endpoint.delete(
    "/services/#{service_id}/custom-domains/#{domain_id}"
  )
end

#find(service_id, domain_id) ⇒ Object



20
21
22
23
24
# File 'lib/render_api/clients/domains.rb', line 20

def find(service_id, domain_id)
  endpoint.get(
    "/services/#{service_id}/custom-domains/#{domain_id}"
  )
end

#list(service_id) ⇒ Object



26
27
28
29
30
# File 'lib/render_api/clients/domains.rb', line 26

def list(service_id, ...)
  endpoint.get(
    "/services/#{service_id}/custom-domains", params: list_parameters(...)
  )
end

#verify(service_id, domain_id) ⇒ Object



32
33
34
35
36
# File 'lib/render_api/clients/domains.rb', line 32

def verify(service_id, domain_id)
  endpoint.post(
    "/services/#{service_id}/custom-domains/#{domain_id}/verify"
  )
end