Class: Svix::ApplicationAPI

Inherits:
Object
  • Object
show all
Defined in:
lib/svix/application_api.rb

Instance Method Summary collapse

Constructor Details

#initialize(api_client) ⇒ ApplicationAPI

Returns a new instance of ApplicationAPI.



5
6
7
# File 'lib/svix/application_api.rb', line 5

def initialize(api_client)
  @api = ApplicationApi.new(api_client)
end

Instance Method Details

#create(application_in, options = {}) ⇒ Object



13
14
15
# File 'lib/svix/application_api.rb', line 13

def create(application_in, options = {})
  return @api.v1_application_create(application_in, options)
end

#delete(app_id) ⇒ Object



31
32
33
# File 'lib/svix/application_api.rb', line 31

def delete(app_id)
  return @api.v1_application_delete(app_id)
end

#get(app_id) ⇒ Object



19
20
21
# File 'lib/svix/application_api.rb', line 19

def get(app_id)
  return @api.v1_application_get(app_id)
end

#get_or_create(application_in, options = {}) ⇒ Object



16
17
18
# File 'lib/svix/application_api.rb', line 16

def get_or_create(application_in, options = {})
  return @api.v1_application_create(application_in, {**options, get_if_exists: true})
end

#list(options = {}) ⇒ Object



9
10
11
# File 'lib/svix/application_api.rb', line 9

def list(options = {})
  return @api.v1_application_list(options)
end

#patch(app_id, application_patch) ⇒ Object



27
28
29
# File 'lib/svix/application_api.rb', line 27

def patch(app_id, application_patch)
  return @api.v1_application_patch(app_id, application_patch)
end

#update(app_id, application_in) ⇒ Object



23
24
25
# File 'lib/svix/application_api.rb', line 23

def update(app_id, application_in)
  return @api.v1_application_update(app_id, application_in)
end