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.83.1 lib/svix/application_api.rb
svix-0.83.0 lib/svix/application_api.rb
svix-0.82.1 lib/svix/application_api.rb
svix-0.82.0 lib/svix/application_api.rb
svix-0.81.0 lib/svix/application_api.rb
svix-0.80.0 lib/svix/application_api.rb
svix-0.79.0 lib/svix/application_api.rb
svix-0.78.0 lib/svix/application_api.rb
svix-0.77.0 lib/svix/application_api.rb
svix-0.76.1 lib/svix/application_api.rb
svix-0.76.0 lib/svix/application_api.rb
svix-0.75.0 lib/svix/application_api.rb
svix-0.74.1 lib/svix/application_api.rb
svix-0.74.0 lib/svix/application_api.rb
svix-0.73.0 lib/svix/application_api.rb
svix-0.72.0 lib/svix/application_api.rb
svix-0.71.0 lib/svix/application_api.rb
svix-0.70.0 lib/svix/application_api.rb
svix-0.69.0 lib/svix/application_api.rb
svix-0.68.1 lib/svix/application_api.rb