Class: Svix::EndpointAPI
- Inherits:
-
Object
- Object
- Svix::EndpointAPI
- Defined in:
- lib/svix/endpoint_api.rb
Instance Method Summary collapse
- #create(app_id, endpoint_in, options = {}) ⇒ Object
- #delete(app_id, endpoint_id) ⇒ Object
- #get(app_id, endpoint_id) ⇒ Object
- #get_headers(app_id, endpoint_id) ⇒ Object
- #get_secret(app_id, endpoint_id) ⇒ Object
- #get_stats(app_id, endpoint_id, options = {}) ⇒ Object
-
#initialize(api_client) ⇒ EndpointAPI
constructor
A new instance of EndpointAPI.
- #list(app_id, options = {}) ⇒ Object
- #patch(app_id, endpoint_id, endpoint_patch) ⇒ Object
- #patch_headers(app_id, endpoint_id, endpoint_headers_in) ⇒ Object
- #recover(app_id, endpoint_id, recover_in, options = {}) ⇒ Object
- #replay_missing(app_id, endpoint_id, replay_in, options = {}) ⇒ Object
- #rotate_secret(app_id, endpoint_id, endpoint_secret_rotate_in, options = {}) ⇒ Object
- #send_example(app_id, endpoint_id, event_example_in, options = {}) ⇒ Object
- #transformation_get(app_id, endpoint_id, options = {}) ⇒ Object
- #transformation_partial_update(app_id, endpoint_id, endpoint_transformation_in, options = {}) ⇒ Object
- #update(app_id, endpoint_id, endpoint_update) ⇒ Object
- #update_headers(app_id, endpoint_id, endpoint_headers_in) ⇒ Object
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, = {}) return @api.v1_endpoint_create(app_id, endpoint_in, ) 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, = {}) return @api.v1_endpoint_get_stats(app_id, endpoint_id, ) end |
#list(app_id, options = {}) ⇒ Object
9 10 11 |
# File 'lib/svix/endpoint_api.rb', line 9 def list(app_id, = {}) return @api.v1_endpoint_list(app_id, ) 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, = {}) @api.v1_endpoint_recover(app_id, endpoint_id, recover_in, ) 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, = {}) @api.v1_endpoint_replay(app_id, endpoint_id, replay_in, ) 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, = {}) return @api.v1_endpoint_rotate_secret(app_id, endpoint_id, endpoint_secret_rotate_in, ) 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, = {}) @api.v1_endpoint_send_example(app_id, endpoint_id, event_example_in, ) 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, = {}) return @api.v1_endpoint_transformation_get(app_id, endpoint_id, ) 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, = {}) @api.v1_endpoint_transformation_partial_update(app_id, endpoint_id, endpoint_transformation_in, ) 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 |