Class: Svix::EndpointAPI

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

Instance Method Summary collapse

Constructor Details

#initialize(api_client) ⇒ EndpointAPI

Returns a new instance of EndpointAPI.



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

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

Instance Method Details

#create(app_id, endpoint_in, options = {}) ⇒ Object



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

def create(app_id, endpoint_in, options = {})
  return @api.v1_endpoint_create(app_id, endpoint_in, options)
end

#delete(app_id, endpoint_id) ⇒ Object



29
30
31
# File 'lib/svix/endpoint_api.rb', line 29

def delete(app_id, endpoint_id)
  return @api.v1_endpoint_delete(app_id, endpoint_id)
end

#get(app_id, endpoint_id) ⇒ Object



17
18
19
# File 'lib/svix/endpoint_api.rb', line 17

def get(app_id, endpoint_id)
  return @api.v1_endpoint_get(app_id, endpoint_id)
end

#get_headers(app_id, endpoint_id) ⇒ Object



46
47
48
# File 'lib/svix/endpoint_api.rb', line 46

def get_headers(app_id, endpoint_id)
  return @api.v1_endpoint_get_headers(app_id, endpoint_id)
end

#get_secret(app_id, endpoint_id) ⇒ Object



33
34
35
# File 'lib/svix/endpoint_api.rb', line 33

def get_secret(app_id, endpoint_id)
  return @api.v1_endpoint_get_secret(app_id, endpoint_id)
end

#get_stats(app_id, endpoint_id, options = {}) ⇒ Object



58
59
60
# File 'lib/svix/endpoint_api.rb', line 58

def get_stats(app_id, endpoint_id, options = {})
  return @api.v1_endpoint_get_stats(app_id, endpoint_id, options)
end

#list(app_id, options = {}) ⇒ Object



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

def list(app_id, options = {})
  return @api.v1_endpoint_list(app_id, options)
end

#patch(app_id, endpoint_id, endpoint_patch) ⇒ Object



25
26
27
# File 'lib/svix/endpoint_api.rb', line 25

def patch(app_id, endpoint_id, endpoint_patch)
  return @api.v1_endpoint_patch(app_id, endpoint_id, endpoint_patch)
end

#patch_headers(app_id, endpoint_id, endpoint_headers_in) ⇒ Object



54
55
56
# File 'lib/svix/endpoint_api.rb', line 54

def patch_headers(app_id, endpoint_id, endpoint_headers_in)
  return @api.v1_endpoint_patch_headers(app_id, endpoint_id, endpoint_headers_in)
end

#recover(app_id, endpoint_id, recover_in, options = {}) ⇒ Object



41
42
43
44
# File 'lib/svix/endpoint_api.rb', line 41

def recover(app_id, endpoint_id, recover_in, options = {})
  @api.v1_endpoint_recover(app_id, endpoint_id, recover_in, options)
  nil
end

#replay_missing(app_id, endpoint_id, replay_in, options = {}) ⇒ Object



62
63
64
65
# File 'lib/svix/endpoint_api.rb', line 62

def replay_missing(app_id, endpoint_id, replay_in, options = {})
  @api.v1_endpoint_replay(app_id, endpoint_id, replay_in, options)
  nil
end

#rotate_secret(app_id, endpoint_id, endpoint_secret_rotate_in, options = {}) ⇒ Object



37
38
39
# File 'lib/svix/endpoint_api.rb', line 37

def rotate_secret(app_id, endpoint_id, endpoint_secret_rotate_in, options = {})
  return @api.v1_endpoint_rotate_secret(app_id, endpoint_id, endpoint_secret_rotate_in, options)
end

#send_example(app_id, endpoint_id, event_example_in, options = {}) ⇒ Object



76
77
78
# File 'lib/svix/endpoint_api.rb', line 76

def send_example(app_id, endpoint_id, event_example_in, options = {})
  @api.v1_endpoint_send_example(app_id, endpoint_id, event_example_in, options)
end

#transformation_get(app_id, endpoint_id, options = {}) ⇒ Object



67
68
69
# File 'lib/svix/endpoint_api.rb', line 67

def transformation_get(app_id, endpoint_id, options = {})
  return @api.v1_endpoint_transformation_get(app_id, endpoint_id, options)
end

#transformation_partial_update(app_id, endpoint_id, endpoint_transformation_in, options = {}) ⇒ Object



71
72
73
74
# File 'lib/svix/endpoint_api.rb', line 71

def transformation_partial_update(app_id, endpoint_id, endpoint_transformation_in, options = {})
  @api.v1_endpoint_transformation_partial_update(app_id, endpoint_id, endpoint_transformation_in, options)
  nil
end

#update(app_id, endpoint_id, endpoint_update) ⇒ Object



21
22
23
# File 'lib/svix/endpoint_api.rb', line 21

def update(app_id, endpoint_id, endpoint_update)
  return @api.v1_endpoint_update(app_id, endpoint_id, endpoint_update)
end

#update_headers(app_id, endpoint_id, endpoint_headers_in) ⇒ Object



50
51
52
# File 'lib/svix/endpoint_api.rb', line 50

def update_headers(app_id, endpoint_id, endpoint_headers_in)
  return @api.v1_endpoint_update_headers(app_id, endpoint_id, endpoint_headers_in)
end