Class: Svix::OperationalWebhookEndpointAPI

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

Instance Method Summary collapse

Constructor Details

#initialize(api_client) ⇒ OperationalWebhookEndpointAPI

Returns a new instance of OperationalWebhookEndpointAPI.



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

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

Instance Method Details

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



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

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

#delete(endpoint_id) ⇒ Object



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

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

#get(endpoint_id) ⇒ Object



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

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

#get_secret(endpoint_id) ⇒ Object



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

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

#list(options = {}) ⇒ Object



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

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

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



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

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

#update(endpoint_id, endpoint_update) ⇒ Object



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

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