Sha256: 1616f90a2e0f3310ddbb2c3c11fd9fdeaba729ea64923eb5e1365321394da143

Contents?: true

Size: 941 Bytes

Versions: 9

Compression:

Stored size: 941 Bytes

Contents

# frozen_string_literal: true

module Svix
  class OperationalWebhookEndpointAPI
    def initialize(api_client)
      @api = OperationalWebhookEndpointApi.new(api_client)
    end

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

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

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

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

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
svix-1.56.0 lib/svix/operational_webhook_endpoint_api.rb
svix-1.45.1 lib/svix/operational_webhook_endpoint_api.rb
svix-1.45.0 lib/svix/operational_webhook_endpoint_api.rb
svix-1.44.0 lib/svix/operational_webhook_endpoint_api.rb
svix-1.43.0 lib/svix/operational_webhook_endpoint_api.rb
svix-1.42.0 lib/svix/operational_webhook_endpoint_api.rb
svix-1.41.0 lib/svix/operational_webhook_endpoint_api.rb
svix-1.40.0 lib/svix/operational_webhook_endpoint_api.rb
svix-1.39.0 lib/svix/operational_webhook_endpoint_api.rb