Sha256: cb28efddfec1753726bcb06f8faa12d779e256bd64ff3a3c17321f0997b70e37

Contents?: true

Size: 977 Bytes

Versions: 51

Compression:

Stored size: 977 Bytes

Contents

# frozen_string_literal: true

module Svix
    class ApplicationAPI
        def initialize(api_client)
            @api = ApplicationApi.new(api_client)
        end

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

        def create(application_in, options = {})
            return @api.create_application_api_v1_app_post(application_in, options)
        end
        def get_or_create(application_in, options = {})
            return @api.create_application_api_v1_app_post(application_in, {**options, get_if_exists: true})
        end
        def get(app_id)
            return @api.get_application_api_v1_app_app_id_get(app_id)
        end

        def update(app_id, application_in)
            return @api.update_application_api_v1_app_app_id_put(app_id, application_in)
        end

        def delete(app_id)
            return @api.delete_application_api_v1_app_app_id_delete(app_id)
        end
    end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
svix-0.68.0 lib/svix/application_api.rb
svix-0.67.0 lib/svix/application_api.rb
svix-0.66.0 lib/svix/application_api.rb
svix-0.65.1 lib/svix/application_api.rb
svix-0.65.0 lib/svix/application_api.rb
svix-0.64.2 lib/svix/application_api.rb
svix-0.64.1 lib/svix/application_api.rb
svix-0.64.0 lib/svix/application_api.rb
svix-0.63.1 lib/svix/application_api.rb
svix-0.63.0 lib/svix/application_api.rb
svix-0.62.1 lib/svix/application_api.rb
svix-0.62.0 lib/svix/application_api.rb
svix-0.61.0 lib/svix/application_api.rb
svix-0.60.0 lib/svix/application_api.rb
svix-0.59.1 lib/svix/application_api.rb
svix-0.59.0 lib/svix/application_api.rb
svix-0.58.2 lib/svix/application_api.rb
svix-0.58.1 lib/svix/application_api.rb
svix-0.58.0 lib/svix/application_api.rb
svix-0.57.2 lib/svix/application_api.rb