manage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 11 Imported by: 8

Documentation

Overview

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

Please see: https://developers.deepgram.com/reference/get-all-balances https://developers.deepgram.com/reference/get-balance

This package contains the code for the Deepgram Manage API Balances endpoint.

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

Please see: 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

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

Please see: 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

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

Please see: https://developers.deepgram.com/reference/get-members https://developers.deepgram.com/reference/remove-member

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

Please see: 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

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

Please see: https://developers.deepgram.com/reference/get-member-scopes https://developers.deepgram.com/reference/update-scope

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

Please see: 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