manage

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Balances API: https://developers.deepgram.com/reference/get-all-balances https://developers.deepgram.com/reference/get-balance

Invitations API https://developers.deepgram.com/reference/list-invites https://developers.deepgram.com/reference/send-invites https://developers.deepgram.com/reference/delete-invite https://developers.deepgram.com/reference/leave-project

Keys API: https://developers.deepgram.com/reference/list-keys https://developers.deepgram.com/reference/get-key https://developers.deepgram.com/reference/create-key https://developers.deepgram.com/reference/delete-key

This package contains the code for the Keys APIs in the Deepgram Manage API

Members API: https://developers.deepgram.com/reference/get-members https://developers.deepgram.com/reference/remove-member

Projects API: https://developers.deepgram.com/reference/get-projects https://developers.deepgram.com/reference/get-project https://developers.deepgram.com/reference/update-project https://developers.deepgram.com/reference/delete-project

Scopes API: https://developers.deepgram.com/reference/get-member-scopes https://developers.deepgram.com/reference/update-scope

Usage API: https://developers.deepgram.com/reference/get-all-requests https://developers.deepgram.com/reference/get-request https://developers.deepgram.com/reference/summarize-usage https://developers.deepgram.com/reference/get-fields

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnexpectedInterface unexpected interface encountered
	ErrUnexpectedInterface = errors.New("unexpected interface encountered")
)

Functions

This section is empty.

Types

type ManageClient

type ManageClient struct {
	*client.Client
}

ManageClient is the client for the Deepgram Manage API

func New

func New(client *client.Client) *ManageClient

New creates a new ManageClient

func (*ManageClient) CreateKey

func (c *ManageClient) CreateKey(ctx context.Context, projectId string, key *api.KeyCreateRequest) (*api.APIKey, error)

CreateKey creates a key for a project

func (*ManageClient) DeleteInvitation

func (c *ManageClient) DeleteInvitation(ctx context.Context, projectId string, email string) (*api.MessageResult, error)

DeleteInvitation deletes an invitation to a project

func (*ManageClient) DeleteKey

func (c *ManageClient) DeleteKey(ctx context.Context, projectId string, keyId string) (*api.MessageResult, error)

DeleteKey deletes a key for a project

func (*ManageClient) DeleteProject

func (c *ManageClient) DeleteProject(ctx context.Context, projectId string) (*api.MessageResult, error)

DeleteProject deletes a project

func (*ManageClient) GetBalance

func (c *ManageClient) GetBalance(ctx context.Context, projectId string, balanceId string) (*api.BalanceResult, error)

GetBalance gets a balance for a project

func (*ManageClient) GetFields

func (c *ManageClient) GetFields(ctx context.Context, projectId string, use *api.UsageListRequest) (*api.UsageFieldResult, error)

GetFields gets a list of fields for a project

func (*ManageClient) GetKey

func (c *ManageClient) GetKey(ctx context.Context, projectId string, keyId string) (*api.KeyResult, error)

GetKey gets a key for a project

func (*ManageClient) GetMemberScopes

func (c *ManageClient) GetMemberScopes(ctx context.Context, projectId string, memberId string) (*api.ScopeResult, error)

GetMemberScopes gets the scopes for a member

func (*ManageClient) GetProject

func (c *ManageClient) GetProject(ctx context.Context, projectId string) (*api.ProjectResult, error)

GetProject gets a project by ID

func (*ManageClient) GetRequest

func (c *ManageClient) GetRequest(ctx context.Context, projectId string, requestId string) (*api.UsageRequestResult, error)

GetRequest gets a request by ID

func (*ManageClient) GetUsage

func (c *ManageClient) GetUsage(ctx context.Context, projectId string, use *api.UsageRequest) (*api.UsageResult, error)

GetUsage gets a usage by ID

func (*ManageClient) LeaveProject

func (c *ManageClient) LeaveProject(ctx context.Context, projectId string) (*api.MessageResult, error)

LeaveProject leaves a project

func (*ManageClient) ListBalances

func (c *ManageClient) ListBalances(ctx context.Context, projectId string) (*api.BalancesResult, error)

ListBalances lists all balances for a project

func (*ManageClient) ListInvitations

func (c *ManageClient) ListInvitations(ctx context.Context, projectId string) (*api.InvitationsResult, error)

ListInvitations lists all invitations for a project

func (*ManageClient) ListKeys

func (c *ManageClient) ListKeys(ctx context.Context, projectId string) (*api.KeysResult, error)

ListKeys lists all keys for a project

func (*ManageClient) ListMembers

func (c *ManageClient) ListMembers(ctx context.Context, projectId string) (*api.MembersResult, error)

ListMembers lists all members for a project

func (*ManageClient) ListProjects

func (c *ManageClient) ListProjects(ctx context.Context) (*api.ProjectsResult, error)

ListProjects lists all projects for a user

func (*ManageClient) ListRequests

func (c *ManageClient) ListRequests(ctx context.Context, projectId string, use *api.UsageListRequest) (*api.UsageListResult, error)

ListRequests lists all requests for a project

func (*ManageClient) RemoveMember

func (c *ManageClient) RemoveMember(ctx context.Context, projectId string, memberId string) (*api.MessageResult, error)

RemoveMember removes a member from a project

func (*ManageClient) SendInvitation

func (c *ManageClient) SendInvitation(ctx context.Context, projectId string, invite *api.InvitationRequest) (*api.MessageResult, error)

SendInvitation sends an invitation to a project

func (*ManageClient) UpdateMemberScopes

func (c *ManageClient) UpdateMemberScopes(ctx context.Context, projectId string, memberId string, scope *api.ScopeUpdateRequest) (*api.MessageResult, error)

UpdateMemberScopes updates the scopes for a member

func (*ManageClient) UpdateProject

func (c *ManageClient) UpdateProject(ctx context.Context, projectId string, proj *api.ProjectUpdateRequest) (*api.MessageResult, error)

UpdateProject updates a project

Directories

Path Synopsis
This package provides the types for the Deepgram Manage API.
This package provides the types for the Deepgram Manage API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL