Sha256: f71dbae236aaff11b9a107ef29b217356552df8fa03ec78abf58a8b226b02df0

Contents?: true

Size: 1.3 KB

Versions: 51

Compression:

Stored size: 1.3 KB

Contents

# frozen_string_literal: true

module Svix
    class IntegrationAPI
        def initialize(api_client)
            @api = IntegrationApi.new(api_client)
        end

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

        def create(app_id, integ_in, options = {})
            return @api.create_integration_api_v1_app_app_id_integration_post(app_id, integ_in, options)
        end

        def get(app_id, integ_id)
            return @api.get_integration_api_v1_app_app_id_integration_integ_id_get(integ_id, app_id)
        end

        def update(app_id, integ_id, integ_update)
            return @api.update_integration_api_v1_app_app_id_integration_integ_id_put(integ_id, app_id, integ_update)
        end

        def delete(app_id, integ_id)
            return @api.delete_integration_api_v1_app_app_id_integration_integ_id_delete(integ_id, app_id)
        end

        def get_key(app_id, integ_id)
            return @api.get_integration_key_api_v1_app_app_id_integration_integ_id_key_get(integ_id, app_id)
        end

        def rotate_key(app_id, integ_id, options = {})
            return @api.rotate_integration_key_api_v1_app_app_id_integration_integ_id_key_rotate_post(integ_id, app_id, options)
        end

    end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
svix-0.83.1 lib/svix/integration_api.rb
svix-0.83.0 lib/svix/integration_api.rb
svix-0.82.1 lib/svix/integration_api.rb
svix-0.82.0 lib/svix/integration_api.rb
svix-0.81.0 lib/svix/integration_api.rb
svix-0.80.0 lib/svix/integration_api.rb
svix-0.79.0 lib/svix/integration_api.rb
svix-0.78.0 lib/svix/integration_api.rb
svix-0.77.0 lib/svix/integration_api.rb
svix-0.76.1 lib/svix/integration_api.rb
svix-0.76.0 lib/svix/integration_api.rb
svix-0.75.0 lib/svix/integration_api.rb
svix-0.74.1 lib/svix/integration_api.rb
svix-0.74.0 lib/svix/integration_api.rb
svix-0.73.0 lib/svix/integration_api.rb
svix-0.72.0 lib/svix/integration_api.rb
svix-0.71.0 lib/svix/integration_api.rb
svix-0.70.0 lib/svix/integration_api.rb
svix-0.69.0 lib/svix/integration_api.rb
svix-0.68.1 lib/svix/integration_api.rb